summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Simon <jamsimox@amazon.com>2023-09-13 07:46:36 -0400
committerJames Simon <jamsimox@amazon.com>2023-09-13 07:46:36 -0400
commit318c653ef9f761a27abbc952ee77a82176d224be (patch)
tree852a6208ce6a22f6a619442f8390465c8eb01700
parent57e11c93c40098dac59e31501bb1dc360e56acb0 (diff)
Newest Commit
Signed-off-by: James Simon <jamsimox@amazon.com> Change-Id: I9786889a4335d4b79b02ec3d505882fc85e71601
-rw-r--r--.DS_Storebin8196 -> 6148 bytes
-rw-r--r--.gradle/7.6/checksums/checksums.lockbin17 -> 0 bytes
-rw-r--r--.gradle/7.6/dependencies-accessors/dependencies-accessors.lockbin17 -> 0 bytes
-rw-r--r--.gradle/7.6/executionHistory/executionHistory.binbin469176 -> 0 bytes
-rw-r--r--.gradle/7.6/executionHistory/executionHistory.lockbin17 -> 0 bytes
-rw-r--r--.gradle/7.6/fileHashes/fileHashes.binbin141033 -> 0 bytes
-rw-r--r--.gradle/7.6/fileHashes/fileHashes.lockbin17 -> 0 bytes
-rw-r--r--.gradle/8.0.2/checksums/checksums.lockbin0 -> 17 bytes
-rw-r--r--.gradle/8.0.2/checksums/md5-checksums.binbin0 -> 19297 bytes
-rw-r--r--.gradle/8.0.2/checksums/sha1-checksums.binbin0 -> 20819 bytes
-rw-r--r--.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lockbin0 -> 17 bytes
-rw-r--r--.gradle/8.0.2/dependencies-accessors/gc.properties (renamed from .gradle/7.6/dependencies-accessors/gc.properties)0
-rw-r--r--.gradle/8.0.2/executionHistory/executionHistory.binbin0 -> 38430 bytes
-rw-r--r--.gradle/8.0.2/executionHistory/executionHistory.lockbin0 -> 17 bytes
-rw-r--r--.gradle/8.0.2/fileChanges/last-build.bin (renamed from .gradle/7.6/fileChanges/last-build.bin)bin1 -> 1 bytes
-rw-r--r--.gradle/8.0.2/fileHashes/fileHashes.binbin0 -> 20497 bytes
-rw-r--r--.gradle/8.0.2/fileHashes/fileHashes.lockbin0 -> 17 bytes
-rw-r--r--.gradle/8.0.2/fileHashes/resourceHashesCache.bin (renamed from .gradle/7.6/fileHashes/resourceHashesCache.bin)bin21183 -> 19007 bytes
-rw-r--r--.gradle/8.0.2/gc.properties (renamed from .gradle/7.6/gc.properties)0
-rw-r--r--.gradle/buildOutputCleanup/buildOutputCleanup.lockbin17 -> 17 bytes
-rw-r--r--.gradle/buildOutputCleanup/cache.properties4
-rw-r--r--.gradle/buildOutputCleanup/outputFiles.binbin19127 -> 18965 bytes
-rw-r--r--.gradle/file-system.probebin8 -> 8 bytes
-rw-r--r--build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.cc1728
-rw-r--r--build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.h2052
-rw-r--r--build/generated/source/proto/main/doc/ v2c.md121
-rw-r--r--build/generated/source/proto/main/java/messages/VehicleRemoteHvac.java4222
-rw-r--r--build/generated/source/proto/main/java/messages/hvac/VehicleRemoteHvac.java6536
-rw-r--r--build/tmp/.cache/expanded.lockbin0 -> 17 bytes
-rw-r--r--src/main/cpp/messages/VehicleRemoteHvac.pb.cc1728
-rw-r--r--src/main/cpp/messages/VehicleRemoteHvac.pb.h2052
-rw-r--r--src/main/doc/ v2c.md121
-rw-r--r--src/main/doc/images/C4_Project_Architecture.pngbin59324 -> 58854 bytes
-rw-r--r--src/main/doc/puml/C4_Project_Architecture.puml2
-rw-r--r--src/main/java/com/hvac/VehicleRemoteHvac.java6535
-rw-r--r--src/main/java/com/openai/vehiclesignals/VehicleRemoteHvac.java6540
-rw-r--r--src/main/java/hvac/VehicleRemoteHvac.java5785
-rw-r--r--src/main/java/messages/hvac/VehicleRemoteHvac.java6536
-rw-r--r--src/main/proto/.DS_Storebin6148 -> 6148 bytes
-rw-r--r--src/main/proto/messages/VehiclePrecisionLocation.proto2
-rw-r--r--src/main/proto/messages/VehicleRemoteHvac.proto121
41 files changed, 37098 insertions, 6987 deletions
diff --git a/.DS_Store b/.DS_Store
index e286e0e..e72d429 100644
--- a/.DS_Store
+++ b/.DS_Store
Binary files differ
diff --git a/.gradle/7.6/checksums/checksums.lock b/.gradle/7.6/checksums/checksums.lock
deleted file mode 100644
index cc102a1..0000000
--- a/.gradle/7.6/checksums/checksums.lock
+++ /dev/null
Binary files differ
diff --git a/.gradle/7.6/dependencies-accessors/dependencies-accessors.lock b/.gradle/7.6/dependencies-accessors/dependencies-accessors.lock
deleted file mode 100644
index 92de99e..0000000
--- a/.gradle/7.6/dependencies-accessors/dependencies-accessors.lock
+++ /dev/null
Binary files differ
diff --git a/.gradle/7.6/executionHistory/executionHistory.bin b/.gradle/7.6/executionHistory/executionHistory.bin
deleted file mode 100644
index f3288e0..0000000
--- a/.gradle/7.6/executionHistory/executionHistory.bin
+++ /dev/null
Binary files differ
diff --git a/.gradle/7.6/executionHistory/executionHistory.lock b/.gradle/7.6/executionHistory/executionHistory.lock
deleted file mode 100644
index ae343d5..0000000
--- a/.gradle/7.6/executionHistory/executionHistory.lock
+++ /dev/null
Binary files differ
diff --git a/.gradle/7.6/fileHashes/fileHashes.bin b/.gradle/7.6/fileHashes/fileHashes.bin
deleted file mode 100644
index 2229ae1..0000000
--- a/.gradle/7.6/fileHashes/fileHashes.bin
+++ /dev/null
Binary files differ
diff --git a/.gradle/7.6/fileHashes/fileHashes.lock b/.gradle/7.6/fileHashes/fileHashes.lock
deleted file mode 100644
index 8c9e055..0000000
--- a/.gradle/7.6/fileHashes/fileHashes.lock
+++ /dev/null
Binary files differ
diff --git a/.gradle/8.0.2/checksums/checksums.lock b/.gradle/8.0.2/checksums/checksums.lock
new file mode 100644
index 0000000..6c09748
--- /dev/null
+++ b/.gradle/8.0.2/checksums/checksums.lock
Binary files differ
diff --git a/.gradle/8.0.2/checksums/md5-checksums.bin b/.gradle/8.0.2/checksums/md5-checksums.bin
new file mode 100644
index 0000000..8c18670
--- /dev/null
+++ b/.gradle/8.0.2/checksums/md5-checksums.bin
Binary files differ
diff --git a/.gradle/8.0.2/checksums/sha1-checksums.bin b/.gradle/8.0.2/checksums/sha1-checksums.bin
new file mode 100644
index 0000000..30c0dc1
--- /dev/null
+++ b/.gradle/8.0.2/checksums/sha1-checksums.bin
Binary files differ
diff --git a/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock b/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock
new file mode 100644
index 0000000..ff430fc
--- /dev/null
+++ b/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock
Binary files differ
diff --git a/.gradle/7.6/dependencies-accessors/gc.properties b/.gradle/8.0.2/dependencies-accessors/gc.properties
index e69de29..e69de29 100644
--- a/.gradle/7.6/dependencies-accessors/gc.properties
+++ b/.gradle/8.0.2/dependencies-accessors/gc.properties
diff --git a/.gradle/8.0.2/executionHistory/executionHistory.bin b/.gradle/8.0.2/executionHistory/executionHistory.bin
new file mode 100644
index 0000000..1fd9a16
--- /dev/null
+++ b/.gradle/8.0.2/executionHistory/executionHistory.bin
Binary files differ
diff --git a/.gradle/8.0.2/executionHistory/executionHistory.lock b/.gradle/8.0.2/executionHistory/executionHistory.lock
new file mode 100644
index 0000000..aef0ac2
--- /dev/null
+++ b/.gradle/8.0.2/executionHistory/executionHistory.lock
Binary files differ
diff --git a/.gradle/7.6/fileChanges/last-build.bin b/.gradle/8.0.2/fileChanges/last-build.bin
index f76dd23..f76dd23 100644
--- a/.gradle/7.6/fileChanges/last-build.bin
+++ b/.gradle/8.0.2/fileChanges/last-build.bin
Binary files differ
diff --git a/.gradle/8.0.2/fileHashes/fileHashes.bin b/.gradle/8.0.2/fileHashes/fileHashes.bin
new file mode 100644
index 0000000..f5fe180
--- /dev/null
+++ b/.gradle/8.0.2/fileHashes/fileHashes.bin
Binary files differ
diff --git a/.gradle/8.0.2/fileHashes/fileHashes.lock b/.gradle/8.0.2/fileHashes/fileHashes.lock
new file mode 100644
index 0000000..d77c693
--- /dev/null
+++ b/.gradle/8.0.2/fileHashes/fileHashes.lock
Binary files differ
diff --git a/.gradle/7.6/fileHashes/resourceHashesCache.bin b/.gradle/8.0.2/fileHashes/resourceHashesCache.bin
index d78a0b8..55f2ddd 100644
--- a/.gradle/7.6/fileHashes/resourceHashesCache.bin
+++ b/.gradle/8.0.2/fileHashes/resourceHashesCache.bin
Binary files differ
diff --git a/.gradle/7.6/gc.properties b/.gradle/8.0.2/gc.properties
index e69de29..e69de29 100644
--- a/.gradle/7.6/gc.properties
+++ b/.gradle/8.0.2/gc.properties
diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock
index 4beb83b..7b75a62 100644
--- a/.gradle/buildOutputCleanup/buildOutputCleanup.lock
+++ b/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary files differ
diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties
index fb9ee96..db29795 100644
--- a/.gradle/buildOutputCleanup/cache.properties
+++ b/.gradle/buildOutputCleanup/cache.properties
@@ -1,2 +1,2 @@
-#Sun Mar 05 21:42:01 EST 2023
-gradle.version=7.6
+#Sun Jul 09 22:18:37 EDT 2023
+gradle.version=8.0.2
diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin
index dcc6ecd..dd48ff2 100644
--- a/.gradle/buildOutputCleanup/outputFiles.bin
+++ b/.gradle/buildOutputCleanup/outputFiles.bin
Binary files differ
diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe
index 7de62e5..34bd4a8 100644
--- a/.gradle/file-system.probe
+++ b/.gradle/file-system.probe
Binary files differ
diff --git a/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.cc b/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.cc
index 894932e..f4e7efe 100644
--- a/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.cc
+++ b/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.cc
@@ -19,223 +19,267 @@ PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace messages {
-PROTOBUF_CONSTEXPR CabinPreconditionRequest::CabinPreconditionRequest(
+namespace hvac {
+PROTOBUF_CONSTEXPR Temperature::Temperature(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.messageheader_)*/nullptr
- , /*decltype(_impl_.setacstatus_)*/nullptr
- , /*decltype(_impl_.settemp_)*/nullptr
+ /*decltype(_impl_.unit_)*/ {
+ &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
+ }
+
+ , /*decltype(_impl_.value_)*/ 0
+
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct CabinPreconditionRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR CabinPreconditionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~CabinPreconditionRequestDefaultTypeInternal() {}
+struct TemperatureDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR TemperatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~TemperatureDefaultTypeInternal() {}
union {
- CabinPreconditionRequest _instance;
+ Temperature _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinPreconditionRequestDefaultTypeInternal _CabinPreconditionRequest_default_instance_;
-PROTOBUF_CONSTEXPR CabinPreConditionReponse::CabinPreConditionReponse(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemperatureDefaultTypeInternal _Temperature_default_instance_;
+PROTOBUF_CONSTEXPR HVACZone::HVACZone(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.messageheader_)*/nullptr
- , /*decltype(_impl_.setacstatusreply_)*/nullptr
- , /*decltype(_impl_.settemperaturereply_)*/nullptr
+ /*decltype(_impl_.target_temperature_)*/nullptr
+ , /*decltype(_impl_.zone_)*/ 0
+
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct CabinPreConditionReponseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR CabinPreConditionReponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~CabinPreConditionReponseDefaultTypeInternal() {}
+struct HVACZoneDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR HVACZoneDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~HVACZoneDefaultTypeInternal() {}
union {
- CabinPreConditionReponse _instance;
+ HVACZone _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinPreConditionReponseDefaultTypeInternal _CabinPreConditionReponse_default_instance_;
-PROTOBUF_CONSTEXPR SetAcStatusRequest::SetAcStatusRequest(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HVACZoneDefaultTypeInternal _HVACZone_default_instance_;
+PROTOBUF_CONSTEXPR PreconditionRequest::PreconditionRequest(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.desiredstatus_)*/ 0
-
+ /*decltype(_impl_.hvac_zones_)*/{}
+ , /*decltype(_impl_.start_time_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetAcStatusRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetAcStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetAcStatusRequestDefaultTypeInternal() {}
+struct PreconditionRequestDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR PreconditionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~PreconditionRequestDefaultTypeInternal() {}
union {
- SetAcStatusRequest _instance;
+ PreconditionRequest _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAcStatusRequestDefaultTypeInternal _SetAcStatusRequest_default_instance_;
-PROTOBUF_CONSTEXPR SetAcStatusReply::SetAcStatusReply(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionRequestDefaultTypeInternal _PreconditionRequest_default_instance_;
+PROTOBUF_CONSTEXPR PreconditionResponse::PreconditionResponse(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.status_)*/ 0
+ /*decltype(_impl_.message_)*/ {
+ &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
+ }
+
+ , /*decltype(_impl_.status_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetAcStatusReplyDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetAcStatusReplyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetAcStatusReplyDefaultTypeInternal() {}
+struct PreconditionResponseDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR PreconditionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~PreconditionResponseDefaultTypeInternal() {}
union {
- SetAcStatusReply _instance;
+ PreconditionResponse _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAcStatusReplyDefaultTypeInternal _SetAcStatusReply_default_instance_;
-PROTOBUF_CONSTEXPR SetTemperatureRequest::SetTemperatureRequest(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionResponseDefaultTypeInternal _PreconditionResponse_default_instance_;
+PROTOBUF_CONSTEXPR HVACState::HVACState(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.temperature_)*/ 0
+ /*decltype(_impl_.current_zone_)*/nullptr
+ , /*decltype(_impl_.state_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetTemperatureRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetTemperatureRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetTemperatureRequestDefaultTypeInternal() {}
+struct HVACStateDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR HVACStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~HVACStateDefaultTypeInternal() {}
union {
- SetTemperatureRequest _instance;
+ HVACState _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTemperatureRequestDefaultTypeInternal _SetTemperatureRequest_default_instance_;
-PROTOBUF_CONSTEXPR SetTemperatureReply::SetTemperatureReply(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HVACStateDefaultTypeInternal _HVACState_default_instance_;
+PROTOBUF_CONSTEXPR CabinTemperature::CabinTemperature(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.tempstatus_)*/ 0
+ /*decltype(_impl_.temperature_)*/nullptr
+ , /*decltype(_impl_.zone_)*/nullptr
+ , /*decltype(_impl_._cached_size_)*/{}} {}
+struct CabinTemperatureDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR CabinTemperatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~CabinTemperatureDefaultTypeInternal() {}
+ union {
+ CabinTemperature _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinTemperatureDefaultTypeInternal _CabinTemperature_default_instance_;
+PROTOBUF_CONSTEXPR CabinConditionStatusPublish::CabinConditionStatusPublish(
+ ::_pbi::ConstantInitialized): _impl_{
+ /*decltype(_impl_.event_time_)*/nullptr
+ , /*decltype(_impl_.hvac_state_)*/nullptr
+ , /*decltype(_impl_.cabin_temperature_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetTemperatureReplyDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetTemperatureReplyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetTemperatureReplyDefaultTypeInternal() {}
+struct CabinConditionStatusPublishDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR CabinConditionStatusPublishDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~CabinConditionStatusPublishDefaultTypeInternal() {}
union {
- SetTemperatureReply _instance;
+ CabinConditionStatusPublish _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTemperatureReplyDefaultTypeInternal _SetTemperatureReply_default_instance_;
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinConditionStatusPublishDefaultTypeInternal _CabinConditionStatusPublish_default_instance_;
+} // namespace hvac
} // namespace messages
-static ::_pb::Metadata file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[6];
-static const ::_pb::EnumDescriptor* file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[2];
+static ::_pb::Metadata file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[7];
+static const ::_pb::EnumDescriptor* file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[3];
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_messages_2fVehicleRemoteHvac_2eproto = nullptr;
const ::uint32_t TableStruct_messages_2fVehicleRemoteHvac_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::Temperature, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _impl_.messageheader_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _impl_.setacstatus_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _impl_.settemp_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::Temperature, _impl_.value_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::Temperature, _impl_.unit_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACZone, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _impl_.messageheader_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _impl_.setacstatusreply_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _impl_.settemperaturereply_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACZone, _impl_.zone_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACZone, _impl_.target_temperature_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusRequest, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionRequest, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusRequest, _impl_.desiredstatus_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionRequest, _impl_.hvac_zones_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionRequest, _impl_.start_time_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusReply, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionResponse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusReply, _impl_.status_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionResponse, _impl_.status_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionResponse, _impl_.message_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureRequest, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACState, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureRequest, _impl_.temperature_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACState, _impl_.state_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACState, _impl_.current_zone_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureReply, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinTemperature, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureReply, _impl_.tempstatus_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinTemperature, _impl_.temperature_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinTemperature, _impl_.zone_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ ~0u, // no _split_
+ ~0u, // no sizeof(Split)
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _impl_.event_time_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _impl_.hvac_state_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _impl_.cabin_temperature_),
};
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, -1, sizeof(::messages::CabinPreconditionRequest)},
- { 11, -1, -1, sizeof(::messages::CabinPreConditionReponse)},
- { 22, -1, -1, sizeof(::messages::SetAcStatusRequest)},
- { 31, -1, -1, sizeof(::messages::SetAcStatusReply)},
- { 40, -1, -1, sizeof(::messages::SetTemperatureRequest)},
- { 49, -1, -1, sizeof(::messages::SetTemperatureReply)},
+ { 0, -1, -1, sizeof(::messages::hvac::Temperature)},
+ { 10, -1, -1, sizeof(::messages::hvac::HVACZone)},
+ { 20, -1, -1, sizeof(::messages::hvac::PreconditionRequest)},
+ { 30, -1, -1, sizeof(::messages::hvac::PreconditionResponse)},
+ { 40, -1, -1, sizeof(::messages::hvac::HVACState)},
+ { 50, -1, -1, sizeof(::messages::hvac::CabinTemperature)},
+ { 60, -1, -1, sizeof(::messages::hvac::CabinConditionStatusPublish)},
};
static const ::_pb::Message* const file_default_instances[] = {
- &::messages::_CabinPreconditionRequest_default_instance_._instance,
- &::messages::_CabinPreConditionReponse_default_instance_._instance,
- &::messages::_SetAcStatusRequest_default_instance_._instance,
- &::messages::_SetAcStatusReply_default_instance_._instance,
- &::messages::_SetTemperatureRequest_default_instance_._instance,
- &::messages::_SetTemperatureReply_default_instance_._instance,
+ &::messages::hvac::_Temperature_default_instance_._instance,
+ &::messages::hvac::_HVACZone_default_instance_._instance,
+ &::messages::hvac::_PreconditionRequest_default_instance_._instance,
+ &::messages::hvac::_PreconditionResponse_default_instance_._instance,
+ &::messages::hvac::_HVACState_default_instance_._instance,
+ &::messages::hvac::_CabinTemperature_default_instance_._instance,
+ &::messages::hvac::_CabinConditionStatusPublish_default_instance_._instance,
};
const char descriptor_table_protodef_messages_2fVehicleRemoteHvac_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n messages/VehicleRemoteHvac.proto\022\010mess"
- "ages\032\017vss/vspec.proto\032#messages/VehicleM"
- "essageHeader.proto\"\267\001\n\030CabinPrecondition"
- "Request\0226\n\rmessageHeader\030\001 \001(\0132\037.message"
- "s.VehicleMessageHeading\0221\n\013setAcStatus\030\002"
- " \001(\0132\034.messages.SetAcStatusRequest\0220\n\007se"
- "tTemp\030\003 \001(\0132\037.messages.SetTemperatureReq"
- "uest\"\304\001\n\030CabinPreConditionReponse\0226\n\rmes"
- "sageHeader\030\001 \001(\0132\037.messages.VehicleMessa"
- "geHeading\0224\n\020setAcStatusReply\030\002 \001(\0132\032.me"
- "ssages.SetAcStatusReply\022:\n\023setTemperatur"
- "eReply\030\003 \001(\0132\035.messages.SetTemperatureRe"
- "ply\"C\n\022SetAcStatusRequest\022-\n\rdesiredStat"
- "us\030\001 \001(\0162\026.messages.AcStatusEnum\":\n\020SetA"
- "cStatusReply\022&\n\006status\030\001 \001(\0162\026.messages."
- "AcStatusEnum\",\n\025SetTemperatureRequest\022\023\n"
- "\013temperature\030\001 \001(\002\"F\n\023SetTemperatureRepl"
- "y\022/\n\ntempStatus\030\001 \001(\0162\033.messages.SetTemp"
- "StatusEnum*2\n\014AcStatusEnum\022\006\n\002ON\020\000\022\007\n\003OF"
- "F\020\001\022\021\n\rUKNONWN_ERROR\020\002*5\n\021SetTempStatusE"
- "num\022\020\n\014TEMP_SUCCESS\020\000\022\016\n\nTEMP_ERROR\020\001b\006p"
- "roto3"
+ "\n messages/VehicleRemoteHvac.proto\022\rmess"
+ "ages.hvac\032\037google/protobuf/timestamp.pro"
+ "to\"*\n\013Temperature\022\r\n\005value\030\001 \001(\002\022\014\n\004unit"
+ "\030\002 \001(\t\"\260\001\n\010HVACZone\022*\n\004zone\030\001 \001(\0162\034.mess"
+ "ages.hvac.HVACZone.Zone\0226\n\022target_temper"
+ "ature\030\002 \001(\0132\032.messages.hvac.Temperature\""
+ "@\n\004Zone\022\n\n\006DRIVER\020\000\022\r\n\tPASSENGER\020\001\022\r\n\tRE"
+ "AR_LEFT\020\002\022\016\n\nREAR_RIGHT\020\003\"r\n\023Preconditio"
+ "nRequest\022+\n\nhvac_zones\030\001 \003(\0132\027.messages."
+ "hvac.HVACZone\022.\n\nstart_time\030\002 \001(\0132\032.goog"
+ "le.protobuf.Timestamp\"\224\001\n\024PreconditionRe"
+ "sponse\022:\n\006status\030\001 \001(\0162*.messages.hvac.P"
+ "reconditionResponse.Status\022\017\n\007message\030\002 "
+ "\001(\t\"/\n\006Status\022\013\n\007SUCCESS\020\000\022\013\n\007FAILURE\020\001\022"
+ "\013\n\007PENDING\020\002\"\237\001\n\tHVACState\022-\n\005state\030\001 \001("
+ "\0162\036.messages.hvac.HVACState.State\022-\n\014cur"
+ "rent_zone\030\002 \001(\0132\027.messages.hvac.HVACZone"
+ "\"4\n\005State\022\007\n\003OFF\020\000\022\013\n\007HEATING\020\001\022\013\n\007COOLI"
+ "NG\020\002\022\010\n\004IDLE\020\003\"j\n\020CabinTemperature\022/\n\013te"
+ "mperature\030\001 \001(\0132\032.messages.hvac.Temperat"
+ "ure\022%\n\004zone\030\002 \001(\0132\027.messages.hvac.HVACZo"
+ "ne\"\267\001\n\033CabinConditionStatusPublish\022.\n\nev"
+ "ent_time\030\001 \001(\0132\032.google.protobuf.Timesta"
+ "mp\022,\n\nhvac_state\030\002 \001(\0132\030.messages.hvac.H"
+ "VACState\022:\n\021cabin_temperature\030\003 \001(\0132\037.me"
+ "ssages.hvac.CabinTemperatureb\006proto3"
};
-static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehicleRemoteHvac_2eproto_deps[2] =
+static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehicleRemoteHvac_2eproto_deps[1] =
{
- &::descriptor_table_messages_2fVehicleMessageHeader_2eproto,
- &::descriptor_table_vss_2fvspec_2eproto,
+ &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
};
static ::absl::once_flag descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_messages_2fVehicleRemoteHvac_2eproto = {
false,
false,
- 845,
+ 1036,
descriptor_table_protodef_messages_2fVehicleRemoteHvac_2eproto,
"messages/VehicleRemoteHvac.proto",
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
descriptor_table_messages_2fVehicleRemoteHvac_2eproto_deps,
- 2,
- 6,
+ 1,
+ 7,
schemas,
file_default_instances,
TableStruct_messages_2fVehicleRemoteHvac_2eproto::offsets,
@@ -262,99 +306,374 @@ PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_messages
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_messages_2fVehicleRemoteHvac_2eproto(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
namespace messages {
-const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AcStatusEnum_descriptor() {
+namespace hvac {
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HVACZone_Zone_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
return file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[0];
}
-bool AcStatusEnum_IsValid(int value) {
+bool HVACZone_Zone_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
+ case 3:
return true;
default:
return false;
}
}
-const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SetTempStatusEnum_descriptor() {
+#if (__cplusplus < 201703) && \
+ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+
+constexpr HVACZone_Zone HVACZone::DRIVER;
+constexpr HVACZone_Zone HVACZone::PASSENGER;
+constexpr HVACZone_Zone HVACZone::REAR_LEFT;
+constexpr HVACZone_Zone HVACZone::REAR_RIGHT;
+constexpr HVACZone_Zone HVACZone::Zone_MIN;
+constexpr HVACZone_Zone HVACZone::Zone_MAX;
+constexpr int HVACZone::Zone_ARRAYSIZE;
+
+#endif // (__cplusplus < 201703) &&
+ // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PreconditionResponse_Status_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
return file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[1];
}
-bool SetTempStatusEnum_IsValid(int value) {
+bool PreconditionResponse_Status_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+#if (__cplusplus < 201703) && \
+ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+
+constexpr PreconditionResponse_Status PreconditionResponse::SUCCESS;
+constexpr PreconditionResponse_Status PreconditionResponse::FAILURE;
+constexpr PreconditionResponse_Status PreconditionResponse::PENDING;
+constexpr PreconditionResponse_Status PreconditionResponse::Status_MIN;
+constexpr PreconditionResponse_Status PreconditionResponse::Status_MAX;
+constexpr int PreconditionResponse::Status_ARRAYSIZE;
+
+#endif // (__cplusplus < 201703) &&
+ // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HVACState_State_descriptor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
+ return file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[2];
+}
+bool HVACState_State_IsValid(int value) {
switch (value) {
case 0:
case 1:
+ case 2:
+ case 3:
return true;
default:
return false;
}
}
+#if (__cplusplus < 201703) && \
+ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+
+constexpr HVACState_State HVACState::OFF;
+constexpr HVACState_State HVACState::HEATING;
+constexpr HVACState_State HVACState::COOLING;
+constexpr HVACState_State HVACState::IDLE;
+constexpr HVACState_State HVACState::State_MIN;
+constexpr HVACState_State HVACState::State_MAX;
+constexpr int HVACState::State_ARRAYSIZE;
+
+#endif // (__cplusplus < 201703) &&
+ // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
// ===================================================================
-class CabinPreconditionRequest::_Internal {
+class Temperature::_Internal {
public:
- static const ::messages::VehicleMessageHeading& messageheader(const CabinPreconditionRequest* msg);
- static const ::messages::SetAcStatusRequest& setacstatus(const CabinPreconditionRequest* msg);
- static const ::messages::SetTemperatureRequest& settemp(const CabinPreconditionRequest* msg);
};
-const ::messages::VehicleMessageHeading&
-CabinPreconditionRequest::_Internal::messageheader(const CabinPreconditionRequest* msg) {
- return *msg->_impl_.messageheader_;
+Temperature::Temperature(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.Temperature)
+}
+Temperature::Temperature(const Temperature& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ Temperature* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.unit_) {}
+
+ , decltype(_impl_.value_) {}
+
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ _impl_.unit_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.unit_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_unit().empty()) {
+ _this->_impl_.unit_.Set(from._internal_unit(), _this->GetArenaForAllocation());
+ }
+ _this->_impl_.value_ = from._impl_.value_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.Temperature)
+}
+
+inline void Temperature::SharedCtor(::_pb::Arena* arena) {
+ (void)arena;
+ new (&_impl_) Impl_{
+ decltype(_impl_.unit_) {}
+
+ , decltype(_impl_.value_) { 0 }
+
+ , /*decltype(_impl_._cached_size_)*/{}
+ };
+ _impl_.unit_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.unit_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+Temperature::~Temperature() {
+ // @@protoc_insertion_point(destructor:messages.hvac.Temperature)
+ if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
+ (void)arena;
+ return;
+ }
+ SharedDtor();
+}
+
+inline void Temperature::SharedDtor() {
+ ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ _impl_.unit_.Destroy();
+}
+
+void Temperature::SetCachedSize(int size) const {
+ _impl_._cached_size_.Set(size);
+}
+
+void Temperature::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.Temperature)
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ _impl_.unit_.ClearToEmpty();
+ _impl_.value_ = 0;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* Temperature::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ ::uint32_t tag;
+ ptr = ::_pbi::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // float value = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
+ _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // string unit = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ auto str = _internal_mutable_unit();
+ ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ CHK_(::_pbi::VerifyUTF8(str, "messages.hvac.Temperature.unit"));
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
}
-const ::messages::SetAcStatusRequest&
-CabinPreconditionRequest::_Internal::setacstatus(const CabinPreconditionRequest* msg) {
- return *msg->_impl_.setacstatus_;
+
+::uint8_t* Temperature::_InternalSerialize(
+ ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.Temperature)
+ ::uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // float value = 1;
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
+ float tmp_value = this->_internal_value();
+ ::uint32_t raw_value;
+ memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
+ if (raw_value != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
+ 1, this->_internal_value(), target);
+ }
+
+ // string unit = 2;
+ if (!this->_internal_unit().empty()) {
+ const std::string& _s = this->_internal_unit();
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.hvac.Temperature.unit");
+ target = stream->WriteStringMaybeAliased(2, _s, target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.Temperature)
+ return target;
}
-const ::messages::SetTemperatureRequest&
-CabinPreconditionRequest::_Internal::settemp(const CabinPreconditionRequest* msg) {
- return *msg->_impl_.settemp_;
+
+::size_t Temperature::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.Temperature)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string unit = 2;
+ if (!this->_internal_unit().empty()) {
+ total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_unit());
+ }
+
+ // float value = 1;
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
+ float tmp_value = this->_internal_value();
+ ::uint32_t raw_value;
+ memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
+ if (raw_value != 0) {
+ total_size += 5;
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-void CabinPreconditionRequest::clear_messageheader() {
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Temperature::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
+ Temperature::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Temperature::GetClassData() const { return &_class_data_; }
+
+
+void Temperature::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<Temperature*>(&to_msg);
+ auto& from = static_cast<const Temperature&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.Temperature)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_unit().empty()) {
+ _this->_internal_set_unit(from._internal_unit());
}
- _impl_.messageheader_ = nullptr;
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
+ float tmp_value = from._internal_value();
+ ::uint32_t raw_value;
+ memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
+ if (raw_value != 0) {
+ _this->_internal_set_value(from._internal_value());
+ }
+ _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void Temperature::CopyFrom(const Temperature& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.Temperature)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Temperature::IsInitialized() const {
+ return true;
+}
+
+void Temperature::InternalSwap(Temperature* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.unit_, lhs_arena,
+ &other->_impl_.unit_, rhs_arena);
+
+ swap(_impl_.value_, other->_impl_.value_);
}
-CabinPreconditionRequest::CabinPreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+
+::PROTOBUF_NAMESPACE_ID::Metadata Temperature::GetMetadata() const {
+ return ::_pbi::AssignDescriptors(
+ &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[0]);
+}
+// ===================================================================
+
+class HVACZone::_Internal {
+ public:
+ static const ::messages::hvac::Temperature& target_temperature(const HVACZone* msg);
+};
+
+const ::messages::hvac::Temperature&
+HVACZone::_Internal::target_temperature(const HVACZone* msg) {
+ return *msg->_impl_.target_temperature_;
+}
+HVACZone::HVACZone(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.CabinPreconditionRequest)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.HVACZone)
}
-CabinPreconditionRequest::CabinPreconditionRequest(const CabinPreconditionRequest& from)
+HVACZone::HVACZone(const HVACZone& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
- CabinPreconditionRequest* const _this = this; (void)_this;
+ HVACZone* const _this = this; (void)_this;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatus_){nullptr}
- , decltype(_impl_.settemp_){nullptr}
+ decltype(_impl_.target_temperature_){nullptr}
+ , decltype(_impl_.zone_) {}
+
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_messageheader()) {
- _this->_impl_.messageheader_ = new ::messages::VehicleMessageHeading(*from._impl_.messageheader_);
- }
- if (from._internal_has_setacstatus()) {
- _this->_impl_.setacstatus_ = new ::messages::SetAcStatusRequest(*from._impl_.setacstatus_);
+ if (from._internal_has_target_temperature()) {
+ _this->_impl_.target_temperature_ = new ::messages::hvac::Temperature(*from._impl_.target_temperature_);
}
- if (from._internal_has_settemp()) {
- _this->_impl_.settemp_ = new ::messages::SetTemperatureRequest(*from._impl_.settemp_);
- }
- // @@protoc_insertion_point(copy_constructor:messages.CabinPreconditionRequest)
+ _this->_impl_.zone_ = from._impl_.zone_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.HVACZone)
}
-inline void CabinPreconditionRequest::SharedCtor(::_pb::Arena* arena) {
+inline void HVACZone::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatus_){nullptr}
- , decltype(_impl_.settemp_){nullptr}
+ decltype(_impl_.target_temperature_){nullptr}
+ , decltype(_impl_.zone_) { 0 }
+
, /*decltype(_impl_._cached_size_)*/{}
};
}
-CabinPreconditionRequest::~CabinPreconditionRequest() {
- // @@protoc_insertion_point(destructor:messages.CabinPreconditionRequest)
+HVACZone::~HVACZone() {
+ // @@protoc_insertion_point(destructor:messages.hvac.HVACZone)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -362,66 +681,49 @@ CabinPreconditionRequest::~CabinPreconditionRequest() {
SharedDtor();
}
-inline void CabinPreconditionRequest::SharedDtor() {
+inline void HVACZone::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance()) delete _impl_.messageheader_;
- if (this != internal_default_instance()) delete _impl_.setacstatus_;
- if (this != internal_default_instance()) delete _impl_.settemp_;
+ if (this != internal_default_instance()) delete _impl_.target_temperature_;
}
-void CabinPreconditionRequest::SetCachedSize(int size) const {
+void HVACZone::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void CabinPreconditionRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.CabinPreconditionRequest)
+void HVACZone::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.HVACZone)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
- }
- _impl_.messageheader_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatus_ != nullptr) {
- delete _impl_.setacstatus_;
+ if (GetArenaForAllocation() == nullptr && _impl_.target_temperature_ != nullptr) {
+ delete _impl_.target_temperature_;
}
- _impl_.setacstatus_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.settemp_ != nullptr) {
- delete _impl_.settemp_;
- }
- _impl_.settemp_ = nullptr;
+ _impl_.target_temperature_ = nullptr;
+ _impl_.zone_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* CabinPreconditionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* HVACZone::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.VehicleMessageHeading messageHeader = 1;
+ // .messages.hvac.HVACZone.Zone zone = 1;
case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_messageheader(), ptr);
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
+ ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
+ _internal_set_zone(static_cast<::messages::hvac::HVACZone_Zone>(val));
} else {
goto handle_unusual;
}
continue;
- // .messages.SetAcStatusRequest setAcStatus = 2;
+ // .messages.hvac.Temperature target_temperature = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_setacstatus(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .messages.SetTemperatureRequest setTemp = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_settemp(), ptr);
+ ptr = ctx->ParseMessage(_internal_mutable_target_temperature(), ptr);
CHK_(ptr);
} else {
goto handle_unusual;
@@ -450,196 +752,158 @@ failure:
#undef CHK_
}
-::uint8_t* CabinPreconditionRequest::_InternalSerialize(
+::uint8_t* HVACZone::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.CabinPreconditionRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.HVACZone)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, _Internal::messageheader(this),
- _Internal::messageheader(this).GetCachedSize(), target, stream);
- }
-
- // .messages.SetAcStatusRequest setAcStatus = 2;
- if (this->_internal_has_setacstatus()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, _Internal::setacstatus(this),
- _Internal::setacstatus(this).GetCachedSize(), target, stream);
+ // .messages.hvac.HVACZone.Zone zone = 1;
+ if (this->_internal_zone() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 1, this->_internal_zone(), target);
}
- // .messages.SetTemperatureRequest setTemp = 3;
- if (this->_internal_has_settemp()) {
+ // .messages.hvac.Temperature target_temperature = 2;
+ if (this->_internal_has_target_temperature()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::settemp(this),
- _Internal::settemp(this).GetCachedSize(), target, stream);
+ InternalWriteMessage(2, _Internal::target_temperature(this),
+ _Internal::target_temperature(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.CabinPreconditionRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.HVACZone)
return target;
}
-::size_t CabinPreconditionRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.CabinPreconditionRequest)
+::size_t HVACZone::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.HVACZone)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
+ // .messages.hvac.Temperature target_temperature = 2;
+ if (this->_internal_has_target_temperature()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.messageheader_);
+ *_impl_.target_temperature_);
}
- // .messages.SetAcStatusRequest setAcStatus = 2;
- if (this->_internal_has_setacstatus()) {
+ // .messages.hvac.HVACZone.Zone zone = 1;
+ if (this->_internal_zone() != 0) {
total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.setacstatus_);
- }
-
- // .messages.SetTemperatureRequest setTemp = 3;
- if (this->_internal_has_settemp()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.settemp_);
+ ::_pbi::WireFormatLite::EnumSize(this->_internal_zone());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinPreconditionRequest::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HVACZone::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- CabinPreconditionRequest::MergeImpl
+ HVACZone::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinPreconditionRequest::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HVACZone::GetClassData() const { return &_class_data_; }
-void CabinPreconditionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<CabinPreconditionRequest*>(&to_msg);
- auto& from = static_cast<const CabinPreconditionRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.CabinPreconditionRequest)
+void HVACZone::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<HVACZone*>(&to_msg);
+ auto& from = static_cast<const HVACZone&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.HVACZone)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_has_messageheader()) {
- _this->_internal_mutable_messageheader()->::messages::VehicleMessageHeading::MergeFrom(
- from._internal_messageheader());
+ if (from._internal_has_target_temperature()) {
+ _this->_internal_mutable_target_temperature()->::messages::hvac::Temperature::MergeFrom(
+ from._internal_target_temperature());
}
- if (from._internal_has_setacstatus()) {
- _this->_internal_mutable_setacstatus()->::messages::SetAcStatusRequest::MergeFrom(
- from._internal_setacstatus());
- }
- if (from._internal_has_settemp()) {
- _this->_internal_mutable_settemp()->::messages::SetTemperatureRequest::MergeFrom(
- from._internal_settemp());
+ if (from._internal_zone() != 0) {
+ _this->_internal_set_zone(from._internal_zone());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void CabinPreconditionRequest::CopyFrom(const CabinPreconditionRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.CabinPreconditionRequest)
+void HVACZone::CopyFrom(const HVACZone& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.HVACZone)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool CabinPreconditionRequest::IsInitialized() const {
+bool HVACZone::IsInitialized() const {
return true;
}
-void CabinPreconditionRequest::InternalSwap(CabinPreconditionRequest* other) {
+void HVACZone::InternalSwap(HVACZone* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(CabinPreconditionRequest, _impl_.settemp_)
- + sizeof(CabinPreconditionRequest::_impl_.settemp_)
- - PROTOBUF_FIELD_OFFSET(CabinPreconditionRequest, _impl_.messageheader_)>(
- reinterpret_cast<char*>(&_impl_.messageheader_),
- reinterpret_cast<char*>(&other->_impl_.messageheader_));
+ PROTOBUF_FIELD_OFFSET(HVACZone, _impl_.zone_)
+ + sizeof(HVACZone::_impl_.zone_)
+ - PROTOBUF_FIELD_OFFSET(HVACZone, _impl_.target_temperature_)>(
+ reinterpret_cast<char*>(&_impl_.target_temperature_),
+ reinterpret_cast<char*>(&other->_impl_.target_temperature_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata CabinPreconditionRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata HVACZone::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[0]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[1]);
}
// ===================================================================
-class CabinPreConditionReponse::_Internal {
+class PreconditionRequest::_Internal {
public:
- static const ::messages::VehicleMessageHeading& messageheader(const CabinPreConditionReponse* msg);
- static const ::messages::SetAcStatusReply& setacstatusreply(const CabinPreConditionReponse* msg);
- static const ::messages::SetTemperatureReply& settemperaturereply(const CabinPreConditionReponse* msg);
+ static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_time(const PreconditionRequest* msg);
};
-const ::messages::VehicleMessageHeading&
-CabinPreConditionReponse::_Internal::messageheader(const CabinPreConditionReponse* msg) {
- return *msg->_impl_.messageheader_;
+const ::PROTOBUF_NAMESPACE_ID::Timestamp&
+PreconditionRequest::_Internal::start_time(const PreconditionRequest* msg) {
+ return *msg->_impl_.start_time_;
}
-const ::messages::SetAcStatusReply&
-CabinPreConditionReponse::_Internal::setacstatusreply(const CabinPreConditionReponse* msg) {
- return *msg->_impl_.setacstatusreply_;
-}
-const ::messages::SetTemperatureReply&
-CabinPreConditionReponse::_Internal::settemperaturereply(const CabinPreConditionReponse* msg) {
- return *msg->_impl_.settemperaturereply_;
-}
-void CabinPreConditionReponse::clear_messageheader() {
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
+void PreconditionRequest::clear_start_time() {
+ if (GetArenaForAllocation() == nullptr && _impl_.start_time_ != nullptr) {
+ delete _impl_.start_time_;
}
- _impl_.messageheader_ = nullptr;
+ _impl_.start_time_ = nullptr;
}
-CabinPreConditionReponse::CabinPreConditionReponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+PreconditionRequest::PreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.PreconditionRequest)
}
-CabinPreConditionReponse::CabinPreConditionReponse(const CabinPreConditionReponse& from)
+PreconditionRequest::PreconditionRequest(const PreconditionRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
- CabinPreConditionReponse* const _this = this; (void)_this;
+ PreconditionRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatusreply_){nullptr}
- , decltype(_impl_.settemperaturereply_){nullptr}
+ decltype(_impl_.hvac_zones_){from._impl_.hvac_zones_}
+ , decltype(_impl_.start_time_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_messageheader()) {
- _this->_impl_.messageheader_ = new ::messages::VehicleMessageHeading(*from._impl_.messageheader_);
- }
- if (from._internal_has_setacstatusreply()) {
- _this->_impl_.setacstatusreply_ = new ::messages::SetAcStatusReply(*from._impl_.setacstatusreply_);
+ if (from._internal_has_start_time()) {
+ _this->_impl_.start_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.start_time_);
}
- if (from._internal_has_settemperaturereply()) {
- _this->_impl_.settemperaturereply_ = new ::messages::SetTemperatureReply(*from._impl_.settemperaturereply_);
- }
- // @@protoc_insertion_point(copy_constructor:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.PreconditionRequest)
}
-inline void CabinPreConditionReponse::SharedCtor(::_pb::Arena* arena) {
+inline void PreconditionRequest::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatusreply_){nullptr}
- , decltype(_impl_.settemperaturereply_){nullptr}
+ decltype(_impl_.hvac_zones_){arena}
+ , decltype(_impl_.start_time_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
-CabinPreConditionReponse::~CabinPreConditionReponse() {
- // @@protoc_insertion_point(destructor:messages.CabinPreConditionReponse)
+PreconditionRequest::~PreconditionRequest() {
+ // @@protoc_insertion_point(destructor:messages.hvac.PreconditionRequest)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -647,66 +911,54 @@ CabinPreConditionReponse::~CabinPreConditionReponse() {
SharedDtor();
}
-inline void CabinPreConditionReponse::SharedDtor() {
+inline void PreconditionRequest::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance()) delete _impl_.messageheader_;
- if (this != internal_default_instance()) delete _impl_.setacstatusreply_;
- if (this != internal_default_instance()) delete _impl_.settemperaturereply_;
+ _impl_.hvac_zones_.~RepeatedPtrField();
+ if (this != internal_default_instance()) delete _impl_.start_time_;
}
-void CabinPreConditionReponse::SetCachedSize(int size) const {
+void PreconditionRequest::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void CabinPreConditionReponse::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.CabinPreConditionReponse)
+void PreconditionRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.PreconditionRequest)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
- }
- _impl_.messageheader_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatusreply_ != nullptr) {
- delete _impl_.setacstatusreply_;
+ _impl_.hvac_zones_.Clear();
+ if (GetArenaForAllocation() == nullptr && _impl_.start_time_ != nullptr) {
+ delete _impl_.start_time_;
}
- _impl_.setacstatusreply_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.settemperaturereply_ != nullptr) {
- delete _impl_.settemperaturereply_;
- }
- _impl_.settemperaturereply_ = nullptr;
+ _impl_.start_time_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* CabinPreConditionReponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* PreconditionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.VehicleMessageHeading messageHeader = 1;
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_messageheader(), ptr);
- CHK_(ptr);
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_hvac_zones(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else {
goto handle_unusual;
}
continue;
- // .messages.SetAcStatusReply setAcStatusReply = 2;
+ // .google.protobuf.Timestamp start_time = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_setacstatusreply(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_settemperaturereply(), ptr);
+ ptr = ctx->ParseMessage(_internal_mutable_start_time(), ptr);
CHK_(ptr);
} else {
goto handle_unusual;
@@ -735,159 +987,156 @@ failure:
#undef CHK_
}
-::uint8_t* CabinPreConditionReponse::_InternalSerialize(
+::uint8_t* PreconditionRequest::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.PreconditionRequest)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, _Internal::messageheader(this),
- _Internal::messageheader(this).GetCachedSize(), target, stream);
- }
-
- // .messages.SetAcStatusReply setAcStatusReply = 2;
- if (this->_internal_has_setacstatusreply()) {
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
+ for (unsigned i = 0,
+ n = static_cast<unsigned>(this->_internal_hvac_zones_size()); i < n; i++) {
+ const auto& repfield = this->_internal_hvac_zones(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, _Internal::setacstatusreply(this),
- _Internal::setacstatusreply(this).GetCachedSize(), target, stream);
+ InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- if (this->_internal_has_settemperaturereply()) {
+ // .google.protobuf.Timestamp start_time = 2;
+ if (this->_internal_has_start_time()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::settemperaturereply(this),
- _Internal::settemperaturereply(this).GetCachedSize(), target, stream);
+ InternalWriteMessage(2, _Internal::start_time(this),
+ _Internal::start_time(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.PreconditionRequest)
return target;
}
-::size_t CabinPreConditionReponse::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.CabinPreConditionReponse)
+::size_t PreconditionRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.PreconditionRequest)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.messageheader_);
- }
-
- // .messages.SetAcStatusReply setAcStatusReply = 2;
- if (this->_internal_has_setacstatusreply()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.setacstatusreply_);
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
+ total_size += 1UL * this->_internal_hvac_zones_size();
+ for (const auto& msg : this->_impl_.hvac_zones_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- if (this->_internal_has_settemperaturereply()) {
+ // .google.protobuf.Timestamp start_time = 2;
+ if (this->_internal_has_start_time()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.settemperaturereply_);
+ *_impl_.start_time_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinPreConditionReponse::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionRequest::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- CabinPreConditionReponse::MergeImpl
+ PreconditionRequest::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinPreConditionReponse::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionRequest::GetClassData() const { return &_class_data_; }
-void CabinPreConditionReponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<CabinPreConditionReponse*>(&to_msg);
- auto& from = static_cast<const CabinPreConditionReponse&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.CabinPreConditionReponse)
+void PreconditionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<PreconditionRequest*>(&to_msg);
+ auto& from = static_cast<const PreconditionRequest&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.PreconditionRequest)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_has_messageheader()) {
- _this->_internal_mutable_messageheader()->::messages::VehicleMessageHeading::MergeFrom(
- from._internal_messageheader());
- }
- if (from._internal_has_setacstatusreply()) {
- _this->_internal_mutable_setacstatusreply()->::messages::SetAcStatusReply::MergeFrom(
- from._internal_setacstatusreply());
- }
- if (from._internal_has_settemperaturereply()) {
- _this->_internal_mutable_settemperaturereply()->::messages::SetTemperatureReply::MergeFrom(
- from._internal_settemperaturereply());
+ _this->_impl_.hvac_zones_.MergeFrom(from._impl_.hvac_zones_);
+ if (from._internal_has_start_time()) {
+ _this->_internal_mutable_start_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
+ from._internal_start_time());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void CabinPreConditionReponse::CopyFrom(const CabinPreConditionReponse& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.CabinPreConditionReponse)
+void PreconditionRequest::CopyFrom(const PreconditionRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.PreconditionRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool CabinPreConditionReponse::IsInitialized() const {
+bool PreconditionRequest::IsInitialized() const {
return true;
}
-void CabinPreConditionReponse::InternalSwap(CabinPreConditionReponse* other) {
+void PreconditionRequest::InternalSwap(PreconditionRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(CabinPreConditionReponse, _impl_.settemperaturereply_)
- + sizeof(CabinPreConditionReponse::_impl_.settemperaturereply_)
- - PROTOBUF_FIELD_OFFSET(CabinPreConditionReponse, _impl_.messageheader_)>(
- reinterpret_cast<char*>(&_impl_.messageheader_),
- reinterpret_cast<char*>(&other->_impl_.messageheader_));
+ _impl_.hvac_zones_.InternalSwap(&other->_impl_.hvac_zones_);
+ swap(_impl_.start_time_, other->_impl_.start_time_);
}
-::PROTOBUF_NAMESPACE_ID::Metadata CabinPreConditionReponse::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata PreconditionRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[1]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[2]);
}
// ===================================================================
-class SetAcStatusRequest::_Internal {
+class PreconditionResponse::_Internal {
public:
};
-SetAcStatusRequest::SetAcStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+PreconditionResponse::PreconditionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.PreconditionResponse)
}
-SetAcStatusRequest::SetAcStatusRequest(const SetAcStatusRequest& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetAcStatusRequest)
+PreconditionResponse::PreconditionResponse(const PreconditionResponse& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ PreconditionResponse* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.message_) {}
+
+ , decltype(_impl_.status_) {}
+
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ _impl_.message_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.message_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_message().empty()) {
+ _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
+ }
+ _this->_impl_.status_ = from._impl_.status_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.PreconditionResponse)
}
-inline void SetAcStatusRequest::SharedCtor(::_pb::Arena* arena) {
+inline void PreconditionResponse::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.desiredstatus_) { 0 }
+ decltype(_impl_.message_) {}
+
+ , decltype(_impl_.status_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
+ _impl_.message_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.message_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
-SetAcStatusRequest::~SetAcStatusRequest() {
- // @@protoc_insertion_point(destructor:messages.SetAcStatusRequest)
+PreconditionResponse::~PreconditionResponse() {
+ // @@protoc_insertion_point(destructor:messages.hvac.PreconditionResponse)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -895,36 +1144,49 @@ SetAcStatusRequest::~SetAcStatusRequest() {
SharedDtor();
}
-inline void SetAcStatusRequest::SharedDtor() {
+inline void PreconditionResponse::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ _impl_.message_.Destroy();
}
-void SetAcStatusRequest::SetCachedSize(int size) const {
+void PreconditionResponse::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetAcStatusRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetAcStatusRequest)
+void PreconditionResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.PreconditionResponse)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.desiredstatus_ = 0;
+ _impl_.message_.ClearToEmpty();
+ _impl_.status_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetAcStatusRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* PreconditionResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.AcStatusEnum desiredStatus = 1;
+ // .messages.hvac.PreconditionResponse.Status status = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
- _internal_set_desiredstatus(static_cast<::messages::AcStatusEnum>(val));
+ _internal_set_status(static_cast<::messages::hvac::PreconditionResponse_Status>(val));
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // string message = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ auto str = _internal_mutable_message();
+ ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ CHK_(::_pbi::VerifyUTF8(str, "messages.hvac.PreconditionResponse.message"));
} else {
goto handle_unusual;
}
@@ -952,116 +1214,153 @@ failure:
#undef CHK_
}
-::uint8_t* SetAcStatusRequest::_InternalSerialize(
+::uint8_t* PreconditionResponse::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.PreconditionResponse)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.AcStatusEnum desiredStatus = 1;
- if (this->_internal_desiredstatus() != 0) {
+ // .messages.hvac.PreconditionResponse.Status status = 1;
+ if (this->_internal_status() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_desiredstatus(), target);
+ 1, this->_internal_status(), target);
+ }
+
+ // string message = 2;
+ if (!this->_internal_message().empty()) {
+ const std::string& _s = this->_internal_message();
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.hvac.PreconditionResponse.message");
+ target = stream->WriteStringMaybeAliased(2, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.PreconditionResponse)
return target;
}
-::size_t SetAcStatusRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetAcStatusRequest)
+::size_t PreconditionResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.PreconditionResponse)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.AcStatusEnum desiredStatus = 1;
- if (this->_internal_desiredstatus() != 0) {
+ // string message = 2;
+ if (!this->_internal_message().empty()) {
+ total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_message());
+ }
+
+ // .messages.hvac.PreconditionResponse.Status status = 1;
+ if (this->_internal_status() != 0) {
total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_desiredstatus());
+ ::_pbi::WireFormatLite::EnumSize(this->_internal_status());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAcStatusRequest::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionResponse::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetAcStatusRequest::MergeImpl
+ PreconditionResponse::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAcStatusRequest::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionResponse::GetClassData() const { return &_class_data_; }
-void SetAcStatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetAcStatusRequest*>(&to_msg);
- auto& from = static_cast<const SetAcStatusRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetAcStatusRequest)
+void PreconditionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<PreconditionResponse*>(&to_msg);
+ auto& from = static_cast<const PreconditionResponse&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.PreconditionResponse)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_desiredstatus() != 0) {
- _this->_internal_set_desiredstatus(from._internal_desiredstatus());
+ if (!from._internal_message().empty()) {
+ _this->_internal_set_message(from._internal_message());
+ }
+ if (from._internal_status() != 0) {
+ _this->_internal_set_status(from._internal_status());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetAcStatusRequest::CopyFrom(const SetAcStatusRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetAcStatusRequest)
+void PreconditionResponse::CopyFrom(const PreconditionResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.PreconditionResponse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetAcStatusRequest::IsInitialized() const {
+bool PreconditionResponse::IsInitialized() const {
return true;
}
-void SetAcStatusRequest::InternalSwap(SetAcStatusRequest* other) {
+void PreconditionResponse::InternalSwap(PreconditionResponse* other) {
using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.desiredstatus_, other->_impl_.desiredstatus_);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, lhs_arena,
+ &other->_impl_.message_, rhs_arena);
+ swap(_impl_.status_, other->_impl_.status_);
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetAcStatusRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata PreconditionResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[2]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[3]);
}
// ===================================================================
-class SetAcStatusReply::_Internal {
+class HVACState::_Internal {
public:
+ static const ::messages::hvac::HVACZone& current_zone(const HVACState* msg);
};
-SetAcStatusReply::SetAcStatusReply(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+const ::messages::hvac::HVACZone&
+HVACState::_Internal::current_zone(const HVACState* msg) {
+ return *msg->_impl_.current_zone_;
+}
+HVACState::HVACState(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.HVACState)
}
-SetAcStatusReply::SetAcStatusReply(const SetAcStatusReply& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetAcStatusReply)
+HVACState::HVACState(const HVACState& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ HVACState* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.current_zone_){nullptr}
+ , decltype(_impl_.state_) {}
+
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_current_zone()) {
+ _this->_impl_.current_zone_ = new ::messages::hvac::HVACZone(*from._impl_.current_zone_);
+ }
+ _this->_impl_.state_ = from._impl_.state_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.HVACState)
}
-inline void SetAcStatusReply::SharedCtor(::_pb::Arena* arena) {
+inline void HVACState::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.status_) { 0 }
+ decltype(_impl_.current_zone_){nullptr}
+ , decltype(_impl_.state_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
}
-SetAcStatusReply::~SetAcStatusReply() {
- // @@protoc_insertion_point(destructor:messages.SetAcStatusReply)
+HVACState::~HVACState() {
+ // @@protoc_insertion_point(destructor:messages.hvac.HVACState)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -1069,36 +1368,50 @@ SetAcStatusReply::~SetAcStatusReply() {
SharedDtor();
}
-inline void SetAcStatusReply::SharedDtor() {
+inline void HVACState::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.current_zone_;
}
-void SetAcStatusReply::SetCachedSize(int size) const {
+void HVACState::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetAcStatusReply::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetAcStatusReply)
+void HVACState::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.HVACState)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.status_ = 0;
+ if (GetArenaForAllocation() == nullptr && _impl_.current_zone_ != nullptr) {
+ delete _impl_.current_zone_;
+ }
+ _impl_.current_zone_ = nullptr;
+ _impl_.state_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetAcStatusReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* HVACState::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.AcStatusEnum status = 1;
+ // .messages.hvac.HVACState.State state = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
- _internal_set_status(static_cast<::messages::AcStatusEnum>(val));
+ _internal_set_state(static_cast<::messages::hvac::HVACState_State>(val));
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.HVACZone current_zone = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_current_zone(), ptr);
+ CHK_(ptr);
} else {
goto handle_unusual;
}
@@ -1126,116 +1439,160 @@ failure:
#undef CHK_
}
-::uint8_t* SetAcStatusReply::_InternalSerialize(
+::uint8_t* HVACState::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.HVACState)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.AcStatusEnum status = 1;
- if (this->_internal_status() != 0) {
+ // .messages.hvac.HVACState.State state = 1;
+ if (this->_internal_state() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_status(), target);
+ 1, this->_internal_state(), target);
+ }
+
+ // .messages.hvac.HVACZone current_zone = 2;
+ if (this->_internal_has_current_zone()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(2, _Internal::current_zone(this),
+ _Internal::current_zone(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.HVACState)
return target;
}
-::size_t SetAcStatusReply::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetAcStatusReply)
+::size_t HVACState::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.HVACState)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.AcStatusEnum status = 1;
- if (this->_internal_status() != 0) {
+ // .messages.hvac.HVACZone current_zone = 2;
+ if (this->_internal_has_current_zone()) {
total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_status());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.current_zone_);
+ }
+
+ // .messages.hvac.HVACState.State state = 1;
+ if (this->_internal_state() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAcStatusReply::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HVACState::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetAcStatusReply::MergeImpl
+ HVACState::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAcStatusReply::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HVACState::GetClassData() const { return &_class_data_; }
-void SetAcStatusReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetAcStatusReply*>(&to_msg);
- auto& from = static_cast<const SetAcStatusReply&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetAcStatusReply)
+void HVACState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<HVACState*>(&to_msg);
+ auto& from = static_cast<const HVACState&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.HVACState)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_status() != 0) {
- _this->_internal_set_status(from._internal_status());
+ if (from._internal_has_current_zone()) {
+ _this->_internal_mutable_current_zone()->::messages::hvac::HVACZone::MergeFrom(
+ from._internal_current_zone());
+ }
+ if (from._internal_state() != 0) {
+ _this->_internal_set_state(from._internal_state());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetAcStatusReply::CopyFrom(const SetAcStatusReply& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetAcStatusReply)
+void HVACState::CopyFrom(const HVACState& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.HVACState)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetAcStatusReply::IsInitialized() const {
+bool HVACState::IsInitialized() const {
return true;
}
-void SetAcStatusReply::InternalSwap(SetAcStatusReply* other) {
+void HVACState::InternalSwap(HVACState* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.status_, other->_impl_.status_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(HVACState, _impl_.state_)
+ + sizeof(HVACState::_impl_.state_)
+ - PROTOBUF_FIELD_OFFSET(HVACState, _impl_.current_zone_)>(
+ reinterpret_cast<char*>(&_impl_.current_zone_),
+ reinterpret_cast<char*>(&other->_impl_.current_zone_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetAcStatusReply::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata HVACState::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[3]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[4]);
}
// ===================================================================
-class SetTemperatureRequest::_Internal {
+class CabinTemperature::_Internal {
public:
+ static const ::messages::hvac::Temperature& temperature(const CabinTemperature* msg);
+ static const ::messages::hvac::HVACZone& zone(const CabinTemperature* msg);
};
-SetTemperatureRequest::SetTemperatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+const ::messages::hvac::Temperature&
+CabinTemperature::_Internal::temperature(const CabinTemperature* msg) {
+ return *msg->_impl_.temperature_;
+}
+const ::messages::hvac::HVACZone&
+CabinTemperature::_Internal::zone(const CabinTemperature* msg) {
+ return *msg->_impl_.zone_;
+}
+CabinTemperature::CabinTemperature(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetTemperatureRequest)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.CabinTemperature)
}
-SetTemperatureRequest::SetTemperatureRequest(const SetTemperatureRequest& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetTemperatureRequest)
+CabinTemperature::CabinTemperature(const CabinTemperature& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ CabinTemperature* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.temperature_){nullptr}
+ , decltype(_impl_.zone_){nullptr}
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_temperature()) {
+ _this->_impl_.temperature_ = new ::messages::hvac::Temperature(*from._impl_.temperature_);
+ }
+ if (from._internal_has_zone()) {
+ _this->_impl_.zone_ = new ::messages::hvac::HVACZone(*from._impl_.zone_);
+ }
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.CabinTemperature)
}
-inline void SetTemperatureRequest::SharedCtor(::_pb::Arena* arena) {
+inline void CabinTemperature::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.temperature_) { 0 }
-
+ decltype(_impl_.temperature_){nullptr}
+ , decltype(_impl_.zone_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
-SetTemperatureRequest::~SetTemperatureRequest() {
- // @@protoc_insertion_point(destructor:messages.SetTemperatureRequest)
+CabinTemperature::~CabinTemperature() {
+ // @@protoc_insertion_point(destructor:messages.hvac.CabinTemperature)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -1243,35 +1600,53 @@ SetTemperatureRequest::~SetTemperatureRequest() {
SharedDtor();
}
-inline void SetTemperatureRequest::SharedDtor() {
+inline void CabinTemperature::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.temperature_;
+ if (this != internal_default_instance()) delete _impl_.zone_;
}
-void SetTemperatureRequest::SetCachedSize(int size) const {
+void CabinTemperature::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetTemperatureRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetTemperatureRequest)
+void CabinTemperature::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.CabinTemperature)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.temperature_ = 0;
+ if (GetArenaForAllocation() == nullptr && _impl_.temperature_ != nullptr) {
+ delete _impl_.temperature_;
+ }
+ _impl_.temperature_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && _impl_.zone_ != nullptr) {
+ delete _impl_.zone_;
+ }
+ _impl_.zone_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetTemperatureRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* CabinTemperature::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // float temperature = 1;
+ // .messages.hvac.Temperature temperature = 1;
case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_temperature(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.HVACZone zone = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_zone(), ptr);
+ CHK_(ptr);
} else {
goto handle_unusual;
}
@@ -1299,128 +1674,178 @@ failure:
#undef CHK_
}
-::uint8_t* SetTemperatureRequest::_InternalSerialize(
+::uint8_t* CabinTemperature::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetTemperatureRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.CabinTemperature)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // float temperature = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_temperature = this->_internal_temperature();
- ::uint32_t raw_temperature;
- memcpy(&raw_temperature, &tmp_temperature, sizeof(tmp_temperature));
- if (raw_temperature != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_temperature(), target);
+ // .messages.hvac.Temperature temperature = 1;
+ if (this->_internal_has_temperature()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, _Internal::temperature(this),
+ _Internal::temperature(this).GetCachedSize(), target, stream);
+ }
+
+ // .messages.hvac.HVACZone zone = 2;
+ if (this->_internal_has_zone()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(2, _Internal::zone(this),
+ _Internal::zone(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetTemperatureRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.CabinTemperature)
return target;
}
-::size_t SetTemperatureRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetTemperatureRequest)
+::size_t CabinTemperature::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.CabinTemperature)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // float temperature = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_temperature = this->_internal_temperature();
- ::uint32_t raw_temperature;
- memcpy(&raw_temperature, &tmp_temperature, sizeof(tmp_temperature));
- if (raw_temperature != 0) {
- total_size += 5;
+ // .messages.hvac.Temperature temperature = 1;
+ if (this->_internal_has_temperature()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.temperature_);
+ }
+
+ // .messages.hvac.HVACZone zone = 2;
+ if (this->_internal_has_zone()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.zone_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTemperatureRequest::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinTemperature::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetTemperatureRequest::MergeImpl
+ CabinTemperature::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTemperatureRequest::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinTemperature::GetClassData() const { return &_class_data_; }
-void SetTemperatureRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetTemperatureRequest*>(&to_msg);
- auto& from = static_cast<const SetTemperatureRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetTemperatureRequest)
+void CabinTemperature::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<CabinTemperature*>(&to_msg);
+ auto& from = static_cast<const CabinTemperature&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.CabinTemperature)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_temperature = from._internal_temperature();
- ::uint32_t raw_temperature;
- memcpy(&raw_temperature, &tmp_temperature, sizeof(tmp_temperature));
- if (raw_temperature != 0) {
- _this->_internal_set_temperature(from._internal_temperature());
+ if (from._internal_has_temperature()) {
+ _this->_internal_mutable_temperature()->::messages::hvac::Temperature::MergeFrom(
+ from._internal_temperature());
+ }
+ if (from._internal_has_zone()) {
+ _this->_internal_mutable_zone()->::messages::hvac::HVACZone::MergeFrom(
+ from._internal_zone());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetTemperatureRequest::CopyFrom(const SetTemperatureRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetTemperatureRequest)
+void CabinTemperature::CopyFrom(const CabinTemperature& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.CabinTemperature)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetTemperatureRequest::IsInitialized() const {
+bool CabinTemperature::IsInitialized() const {
return true;
}
-void SetTemperatureRequest::InternalSwap(SetTemperatureRequest* other) {
+void CabinTemperature::InternalSwap(CabinTemperature* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
-
- swap(_impl_.temperature_, other->_impl_.temperature_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CabinTemperature, _impl_.zone_)
+ + sizeof(CabinTemperature::_impl_.zone_)
+ - PROTOBUF_FIELD_OFFSET(CabinTemperature, _impl_.temperature_)>(
+ reinterpret_cast<char*>(&_impl_.temperature_),
+ reinterpret_cast<char*>(&other->_impl_.temperature_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetTemperatureRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata CabinTemperature::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[4]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[5]);
}
// ===================================================================
-class SetTemperatureReply::_Internal {
+class CabinConditionStatusPublish::_Internal {
public:
+ static const ::PROTOBUF_NAMESPACE_ID::Timestamp& event_time(const CabinConditionStatusPublish* msg);
+ static const ::messages::hvac::HVACState& hvac_state(const CabinConditionStatusPublish* msg);
+ static const ::messages::hvac::CabinTemperature& cabin_temperature(const CabinConditionStatusPublish* msg);
};
-SetTemperatureReply::SetTemperatureReply(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+const ::PROTOBUF_NAMESPACE_ID::Timestamp&
+CabinConditionStatusPublish::_Internal::event_time(const CabinConditionStatusPublish* msg) {
+ return *msg->_impl_.event_time_;
+}
+const ::messages::hvac::HVACState&
+CabinConditionStatusPublish::_Internal::hvac_state(const CabinConditionStatusPublish* msg) {
+ return *msg->_impl_.hvac_state_;
+}
+const ::messages::hvac::CabinTemperature&
+CabinConditionStatusPublish::_Internal::cabin_temperature(const CabinConditionStatusPublish* msg) {
+ return *msg->_impl_.cabin_temperature_;
+}
+void CabinConditionStatusPublish::clear_event_time() {
+ if (GetArenaForAllocation() == nullptr && _impl_.event_time_ != nullptr) {
+ delete _impl_.event_time_;
+ }
+ _impl_.event_time_ = nullptr;
+}
+CabinConditionStatusPublish::CabinConditionStatusPublish(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetTemperatureReply)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.CabinConditionStatusPublish)
}
-SetTemperatureReply::SetTemperatureReply(const SetTemperatureReply& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetTemperatureReply)
+CabinConditionStatusPublish::CabinConditionStatusPublish(const CabinConditionStatusPublish& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ CabinConditionStatusPublish* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.event_time_){nullptr}
+ , decltype(_impl_.hvac_state_){nullptr}
+ , decltype(_impl_.cabin_temperature_){nullptr}
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_event_time()) {
+ _this->_impl_.event_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.event_time_);
+ }
+ if (from._internal_has_hvac_state()) {
+ _this->_impl_.hvac_state_ = new ::messages::hvac::HVACState(*from._impl_.hvac_state_);
+ }
+ if (from._internal_has_cabin_temperature()) {
+ _this->_impl_.cabin_temperature_ = new ::messages::hvac::CabinTemperature(*from._impl_.cabin_temperature_);
+ }
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.CabinConditionStatusPublish)
}
-inline void SetTemperatureReply::SharedCtor(::_pb::Arena* arena) {
+inline void CabinConditionStatusPublish::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.tempstatus_) { 0 }
-
+ decltype(_impl_.event_time_){nullptr}
+ , decltype(_impl_.hvac_state_){nullptr}
+ , decltype(_impl_.cabin_temperature_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
-SetTemperatureReply::~SetTemperatureReply() {
- // @@protoc_insertion_point(destructor:messages.SetTemperatureReply)
+CabinConditionStatusPublish::~CabinConditionStatusPublish() {
+ // @@protoc_insertion_point(destructor:messages.hvac.CabinConditionStatusPublish)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -1428,36 +1853,67 @@ SetTemperatureReply::~SetTemperatureReply() {
SharedDtor();
}
-inline void SetTemperatureReply::SharedDtor() {
+inline void CabinConditionStatusPublish::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.event_time_;
+ if (this != internal_default_instance()) delete _impl_.hvac_state_;
+ if (this != internal_default_instance()) delete _impl_.cabin_temperature_;
}
-void SetTemperatureReply::SetCachedSize(int size) const {
+void CabinConditionStatusPublish::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetTemperatureReply::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetTemperatureReply)
+void CabinConditionStatusPublish::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.CabinConditionStatusPublish)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.tempstatus_ = 0;
+ if (GetArenaForAllocation() == nullptr && _impl_.event_time_ != nullptr) {
+ delete _impl_.event_time_;
+ }
+ _impl_.event_time_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && _impl_.hvac_state_ != nullptr) {
+ delete _impl_.hvac_state_;
+ }
+ _impl_.hvac_state_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && _impl_.cabin_temperature_ != nullptr) {
+ delete _impl_.cabin_temperature_;
+ }
+ _impl_.cabin_temperature_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetTemperatureReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* CabinConditionStatusPublish::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.SetTempStatusEnum tempStatus = 1;
+ // .google.protobuf.Timestamp event_time = 1;
case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_event_time(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.HVACState hvac_state = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_hvac_state(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_cabin_temperature(), ptr);
CHK_(ptr);
- _internal_set_tempstatus(static_cast<::messages::SetTempStatusEnum>(val));
} else {
goto handle_unusual;
}
@@ -1485,113 +1941,161 @@ failure:
#undef CHK_
}
-::uint8_t* SetTemperatureReply::_InternalSerialize(
+::uint8_t* CabinConditionStatusPublish::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetTemperatureReply)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.CabinConditionStatusPublish)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.SetTempStatusEnum tempStatus = 1;
- if (this->_internal_tempstatus() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_tempstatus(), target);
+ // .google.protobuf.Timestamp event_time = 1;
+ if (this->_internal_has_event_time()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, _Internal::event_time(this),
+ _Internal::event_time(this).GetCachedSize(), target, stream);
+ }
+
+ // .messages.hvac.HVACState hvac_state = 2;
+ if (this->_internal_has_hvac_state()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(2, _Internal::hvac_state(this),
+ _Internal::hvac_state(this).GetCachedSize(), target, stream);
+ }
+
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ if (this->_internal_has_cabin_temperature()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(3, _Internal::cabin_temperature(this),
+ _Internal::cabin_temperature(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetTemperatureReply)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.CabinConditionStatusPublish)
return target;
}
-::size_t SetTemperatureReply::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetTemperatureReply)
+::size_t CabinConditionStatusPublish::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.CabinConditionStatusPublish)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.SetTempStatusEnum tempStatus = 1;
- if (this->_internal_tempstatus() != 0) {
+ // .google.protobuf.Timestamp event_time = 1;
+ if (this->_internal_has_event_time()) {
total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_tempstatus());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.event_time_);
+ }
+
+ // .messages.hvac.HVACState hvac_state = 2;
+ if (this->_internal_has_hvac_state()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.hvac_state_);
+ }
+
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ if (this->_internal_has_cabin_temperature()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.cabin_temperature_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTemperatureReply::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinConditionStatusPublish::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetTemperatureReply::MergeImpl
+ CabinConditionStatusPublish::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTemperatureReply::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinConditionStatusPublish::GetClassData() const { return &_class_data_; }
-void SetTemperatureReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetTemperatureReply*>(&to_msg);
- auto& from = static_cast<const SetTemperatureReply&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetTemperatureReply)
+void CabinConditionStatusPublish::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<CabinConditionStatusPublish*>(&to_msg);
+ auto& from = static_cast<const CabinConditionStatusPublish&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.CabinConditionStatusPublish)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_tempstatus() != 0) {
- _this->_internal_set_tempstatus(from._internal_tempstatus());
+ if (from._internal_has_event_time()) {
+ _this->_internal_mutable_event_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
+ from._internal_event_time());
+ }
+ if (from._internal_has_hvac_state()) {
+ _this->_internal_mutable_hvac_state()->::messages::hvac::HVACState::MergeFrom(
+ from._internal_hvac_state());
+ }
+ if (from._internal_has_cabin_temperature()) {
+ _this->_internal_mutable_cabin_temperature()->::messages::hvac::CabinTemperature::MergeFrom(
+ from._internal_cabin_temperature());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetTemperatureReply::CopyFrom(const SetTemperatureReply& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetTemperatureReply)
+void CabinConditionStatusPublish::CopyFrom(const CabinConditionStatusPublish& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.CabinConditionStatusPublish)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetTemperatureReply::IsInitialized() const {
+bool CabinConditionStatusPublish::IsInitialized() const {
return true;
}
-void SetTemperatureReply::InternalSwap(SetTemperatureReply* other) {
+void CabinConditionStatusPublish::InternalSwap(CabinConditionStatusPublish* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.tempstatus_, other->_impl_.tempstatus_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CabinConditionStatusPublish, _impl_.cabin_temperature_)
+ + sizeof(CabinConditionStatusPublish::_impl_.cabin_temperature_)
+ - PROTOBUF_FIELD_OFFSET(CabinConditionStatusPublish, _impl_.event_time_)>(
+ reinterpret_cast<char*>(&_impl_.event_time_),
+ reinterpret_cast<char*>(&other->_impl_.event_time_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetTemperatureReply::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata CabinConditionStatusPublish::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[5]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[6]);
}
// @@protoc_insertion_point(namespace_scope)
+} // namespace hvac
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
-template<> PROTOBUF_NOINLINE ::messages::CabinPreconditionRequest*
-Arena::CreateMaybeMessage< ::messages::CabinPreconditionRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::CabinPreconditionRequest >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::Temperature*
+Arena::CreateMaybeMessage< ::messages::hvac::Temperature >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::Temperature >(arena);
+}
+template<> PROTOBUF_NOINLINE ::messages::hvac::HVACZone*
+Arena::CreateMaybeMessage< ::messages::hvac::HVACZone >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::HVACZone >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::CabinPreConditionReponse*
-Arena::CreateMaybeMessage< ::messages::CabinPreConditionReponse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::CabinPreConditionReponse >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::PreconditionRequest*
+Arena::CreateMaybeMessage< ::messages::hvac::PreconditionRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::PreconditionRequest >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetAcStatusRequest*
-Arena::CreateMaybeMessage< ::messages::SetAcStatusRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetAcStatusRequest >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::PreconditionResponse*
+Arena::CreateMaybeMessage< ::messages::hvac::PreconditionResponse >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::PreconditionResponse >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetAcStatusReply*
-Arena::CreateMaybeMessage< ::messages::SetAcStatusReply >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetAcStatusReply >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::HVACState*
+Arena::CreateMaybeMessage< ::messages::hvac::HVACState >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::HVACState >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetTemperatureRequest*
-Arena::CreateMaybeMessage< ::messages::SetTemperatureRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetTemperatureRequest >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::CabinTemperature*
+Arena::CreateMaybeMessage< ::messages::hvac::CabinTemperature >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::CabinTemperature >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetTemperatureReply*
-Arena::CreateMaybeMessage< ::messages::SetTemperatureReply >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetTemperatureReply >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::CabinConditionStatusPublish*
+Arena::CreateMaybeMessage< ::messages::hvac::CabinConditionStatusPublish >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::CabinConditionStatusPublish >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
diff --git a/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.h b/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.h
index af50b78..c65ed7a 100644
--- a/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.h
+++ b/build/generated/source/proto/main/cpp/messages/VehicleRemoteHvac.pb.h
@@ -32,8 +32,7 @@
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
-#include "vss/vspec.pb.h"
-#include "messages/VehicleMessageHeader.pb.h"
+#include "google/protobuf/timestamp.pb.h"
// @@protoc_insertion_point(includes)
// Must be included last.
@@ -54,105 +53,149 @@ struct TableStruct_messages_2fVehicleRemoteHvac_2eproto {
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
descriptor_table_messages_2fVehicleRemoteHvac_2eproto;
namespace messages {
-class CabinPreConditionReponse;
-struct CabinPreConditionReponseDefaultTypeInternal;
-extern CabinPreConditionReponseDefaultTypeInternal _CabinPreConditionReponse_default_instance_;
-class CabinPreconditionRequest;
-struct CabinPreconditionRequestDefaultTypeInternal;
-extern CabinPreconditionRequestDefaultTypeInternal _CabinPreconditionRequest_default_instance_;
-class SetAcStatusReply;
-struct SetAcStatusReplyDefaultTypeInternal;
-extern SetAcStatusReplyDefaultTypeInternal _SetAcStatusReply_default_instance_;
-class SetAcStatusRequest;
-struct SetAcStatusRequestDefaultTypeInternal;
-extern SetAcStatusRequestDefaultTypeInternal _SetAcStatusRequest_default_instance_;
-class SetTemperatureReply;
-struct SetTemperatureReplyDefaultTypeInternal;
-extern SetTemperatureReplyDefaultTypeInternal _SetTemperatureReply_default_instance_;
-class SetTemperatureRequest;
-struct SetTemperatureRequestDefaultTypeInternal;
-extern SetTemperatureRequestDefaultTypeInternal _SetTemperatureRequest_default_instance_;
+namespace hvac {
+class CabinConditionStatusPublish;
+struct CabinConditionStatusPublishDefaultTypeInternal;
+extern CabinConditionStatusPublishDefaultTypeInternal _CabinConditionStatusPublish_default_instance_;
+class CabinTemperature;
+struct CabinTemperatureDefaultTypeInternal;
+extern CabinTemperatureDefaultTypeInternal _CabinTemperature_default_instance_;
+class HVACState;
+struct HVACStateDefaultTypeInternal;
+extern HVACStateDefaultTypeInternal _HVACState_default_instance_;
+class HVACZone;
+struct HVACZoneDefaultTypeInternal;
+extern HVACZoneDefaultTypeInternal _HVACZone_default_instance_;
+class PreconditionRequest;
+struct PreconditionRequestDefaultTypeInternal;
+extern PreconditionRequestDefaultTypeInternal _PreconditionRequest_default_instance_;
+class PreconditionResponse;
+struct PreconditionResponseDefaultTypeInternal;
+extern PreconditionResponseDefaultTypeInternal _PreconditionResponse_default_instance_;
+class Temperature;
+struct TemperatureDefaultTypeInternal;
+extern TemperatureDefaultTypeInternal _Temperature_default_instance_;
+} // namespace hvac
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
-::messages::CabinPreConditionReponse* Arena::CreateMaybeMessage<::messages::CabinPreConditionReponse>(Arena*);
+::messages::hvac::CabinConditionStatusPublish* Arena::CreateMaybeMessage<::messages::hvac::CabinConditionStatusPublish>(Arena*);
template <>
-::messages::CabinPreconditionRequest* Arena::CreateMaybeMessage<::messages::CabinPreconditionRequest>(Arena*);
+::messages::hvac::CabinTemperature* Arena::CreateMaybeMessage<::messages::hvac::CabinTemperature>(Arena*);
template <>
-::messages::SetAcStatusReply* Arena::CreateMaybeMessage<::messages::SetAcStatusReply>(Arena*);
+::messages::hvac::HVACState* Arena::CreateMaybeMessage<::messages::hvac::HVACState>(Arena*);
template <>
-::messages::SetAcStatusRequest* Arena::CreateMaybeMessage<::messages::SetAcStatusRequest>(Arena*);
+::messages::hvac::HVACZone* Arena::CreateMaybeMessage<::messages::hvac::HVACZone>(Arena*);
template <>
-::messages::SetTemperatureReply* Arena::CreateMaybeMessage<::messages::SetTemperatureReply>(Arena*);
+::messages::hvac::PreconditionRequest* Arena::CreateMaybeMessage<::messages::hvac::PreconditionRequest>(Arena*);
template <>
-::messages::SetTemperatureRequest* Arena::CreateMaybeMessage<::messages::SetTemperatureRequest>(Arena*);
+::messages::hvac::PreconditionResponse* Arena::CreateMaybeMessage<::messages::hvac::PreconditionResponse>(Arena*);
+template <>
+::messages::hvac::Temperature* Arena::CreateMaybeMessage<::messages::hvac::Temperature>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
-enum AcStatusEnum : int {
- ON = 0,
- OFF = 1,
- UKNONWN_ERROR = 2,
- AcStatusEnum_INT_MIN_SENTINEL_DO_NOT_USE_ =
+namespace hvac {
+enum HVACZone_Zone : int {
+ HVACZone_Zone_DRIVER = 0,
+ HVACZone_Zone_PASSENGER = 1,
+ HVACZone_Zone_REAR_LEFT = 2,
+ HVACZone_Zone_REAR_RIGHT = 3,
+ HVACZone_Zone_HVACZone_Zone_INT_MIN_SENTINEL_DO_NOT_USE_ =
+ std::numeric_limits<::int32_t>::min(),
+ HVACZone_Zone_HVACZone_Zone_INT_MAX_SENTINEL_DO_NOT_USE_ =
+ std::numeric_limits<::int32_t>::max(),
+};
+
+bool HVACZone_Zone_IsValid(int value);
+constexpr HVACZone_Zone HVACZone_Zone_Zone_MIN = static_cast<HVACZone_Zone>(0);
+constexpr HVACZone_Zone HVACZone_Zone_Zone_MAX = static_cast<HVACZone_Zone>(3);
+constexpr int HVACZone_Zone_Zone_ARRAYSIZE = 3 + 1;
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
+HVACZone_Zone_descriptor();
+template <typename T>
+const std::string& HVACZone_Zone_Name(T value) {
+ static_assert(std::is_same<T, HVACZone_Zone>::value ||
+ std::is_integral<T>::value,
+ "Incorrect type passed to Zone_Name().");
+ return HVACZone_Zone_Name(static_cast<HVACZone_Zone>(value));
+}
+template <>
+inline const std::string& HVACZone_Zone_Name(HVACZone_Zone value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<HVACZone_Zone_descriptor,
+ 0, 3>(
+ static_cast<int>(value));
+}
+inline bool HVACZone_Zone_Parse(absl::string_view name, HVACZone_Zone* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HVACZone_Zone>(
+ HVACZone_Zone_descriptor(), name, value);
+}
+enum PreconditionResponse_Status : int {
+ PreconditionResponse_Status_SUCCESS = 0,
+ PreconditionResponse_Status_FAILURE = 1,
+ PreconditionResponse_Status_PENDING = 2,
+ PreconditionResponse_Status_PreconditionResponse_Status_INT_MIN_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::min(),
- AcStatusEnum_INT_MAX_SENTINEL_DO_NOT_USE_ =
+ PreconditionResponse_Status_PreconditionResponse_Status_INT_MAX_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::max(),
};
-bool AcStatusEnum_IsValid(int value);
-constexpr AcStatusEnum AcStatusEnum_MIN = static_cast<AcStatusEnum>(0);
-constexpr AcStatusEnum AcStatusEnum_MAX = static_cast<AcStatusEnum>(2);
-constexpr int AcStatusEnum_ARRAYSIZE = 2 + 1;
+bool PreconditionResponse_Status_IsValid(int value);
+constexpr PreconditionResponse_Status PreconditionResponse_Status_Status_MIN = static_cast<PreconditionResponse_Status>(0);
+constexpr PreconditionResponse_Status PreconditionResponse_Status_Status_MAX = static_cast<PreconditionResponse_Status>(2);
+constexpr int PreconditionResponse_Status_Status_ARRAYSIZE = 2 + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
-AcStatusEnum_descriptor();
+PreconditionResponse_Status_descriptor();
template <typename T>
-const std::string& AcStatusEnum_Name(T value) {
- static_assert(std::is_same<T, AcStatusEnum>::value ||
+const std::string& PreconditionResponse_Status_Name(T value) {
+ static_assert(std::is_same<T, PreconditionResponse_Status>::value ||
std::is_integral<T>::value,
- "Incorrect type passed to AcStatusEnum_Name().");
- return AcStatusEnum_Name(static_cast<AcStatusEnum>(value));
+ "Incorrect type passed to Status_Name().");
+ return PreconditionResponse_Status_Name(static_cast<PreconditionResponse_Status>(value));
}
template <>
-inline const std::string& AcStatusEnum_Name(AcStatusEnum value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<AcStatusEnum_descriptor,
+inline const std::string& PreconditionResponse_Status_Name(PreconditionResponse_Status value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<PreconditionResponse_Status_descriptor,
0, 2>(
static_cast<int>(value));
}
-inline bool AcStatusEnum_Parse(absl::string_view name, AcStatusEnum* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AcStatusEnum>(
- AcStatusEnum_descriptor(), name, value);
+inline bool PreconditionResponse_Status_Parse(absl::string_view name, PreconditionResponse_Status* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PreconditionResponse_Status>(
+ PreconditionResponse_Status_descriptor(), name, value);
}
-enum SetTempStatusEnum : int {
- TEMP_SUCCESS = 0,
- TEMP_ERROR = 1,
- SetTempStatusEnum_INT_MIN_SENTINEL_DO_NOT_USE_ =
+enum HVACState_State : int {
+ HVACState_State_OFF = 0,
+ HVACState_State_HEATING = 1,
+ HVACState_State_COOLING = 2,
+ HVACState_State_IDLE = 3,
+ HVACState_State_HVACState_State_INT_MIN_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::min(),
- SetTempStatusEnum_INT_MAX_SENTINEL_DO_NOT_USE_ =
+ HVACState_State_HVACState_State_INT_MAX_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::max(),
};
-bool SetTempStatusEnum_IsValid(int value);
-constexpr SetTempStatusEnum SetTempStatusEnum_MIN = static_cast<SetTempStatusEnum>(0);
-constexpr SetTempStatusEnum SetTempStatusEnum_MAX = static_cast<SetTempStatusEnum>(1);
-constexpr int SetTempStatusEnum_ARRAYSIZE = 1 + 1;
+bool HVACState_State_IsValid(int value);
+constexpr HVACState_State HVACState_State_State_MIN = static_cast<HVACState_State>(0);
+constexpr HVACState_State HVACState_State_State_MAX = static_cast<HVACState_State>(3);
+constexpr int HVACState_State_State_ARRAYSIZE = 3 + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
-SetTempStatusEnum_descriptor();
+HVACState_State_descriptor();
template <typename T>
-const std::string& SetTempStatusEnum_Name(T value) {
- static_assert(std::is_same<T, SetTempStatusEnum>::value ||
+const std::string& HVACState_State_Name(T value) {
+ static_assert(std::is_same<T, HVACState_State>::value ||
std::is_integral<T>::value,
- "Incorrect type passed to SetTempStatusEnum_Name().");
- return SetTempStatusEnum_Name(static_cast<SetTempStatusEnum>(value));
+ "Incorrect type passed to State_Name().");
+ return HVACState_State_Name(static_cast<HVACState_State>(value));
}
template <>
-inline const std::string& SetTempStatusEnum_Name(SetTempStatusEnum value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<SetTempStatusEnum_descriptor,
- 0, 1>(
+inline const std::string& HVACState_State_Name(HVACState_State value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<HVACState_State_descriptor,
+ 0, 3>(
static_cast<int>(value));
}
-inline bool SetTempStatusEnum_Parse(absl::string_view name, SetTempStatusEnum* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SetTempStatusEnum>(
- SetTempStatusEnum_descriptor(), name, value);
+inline bool HVACState_State_Parse(absl::string_view name, HVACState_State* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HVACState_State>(
+ HVACState_State_descriptor(), name, value);
}
// ===================================================================
@@ -160,24 +203,24 @@ inline bool SetTempStatusEnum_Parse(absl::string_view name, SetTempStatusEnum* v
// -------------------------------------------------------------------
-class CabinPreconditionRequest final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.CabinPreconditionRequest) */ {
+class Temperature final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.Temperature) */ {
public:
- inline CabinPreconditionRequest() : CabinPreconditionRequest(nullptr) {}
- ~CabinPreconditionRequest() override;
- explicit PROTOBUF_CONSTEXPR CabinPreconditionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline Temperature() : Temperature(nullptr) {}
+ ~Temperature() override;
+ explicit PROTOBUF_CONSTEXPR Temperature(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- CabinPreconditionRequest(const CabinPreconditionRequest& from);
- CabinPreconditionRequest(CabinPreconditionRequest&& from) noexcept
- : CabinPreconditionRequest() {
+ Temperature(const Temperature& from);
+ Temperature(Temperature&& from) noexcept
+ : Temperature() {
*this = ::std::move(from);
}
- inline CabinPreconditionRequest& operator=(const CabinPreconditionRequest& from) {
+ inline Temperature& operator=(const Temperature& from) {
CopyFrom(from);
return *this;
}
- inline CabinPreconditionRequest& operator=(CabinPreconditionRequest&& from) noexcept {
+ inline Temperature& operator=(Temperature&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -200,20 +243,20 @@ class CabinPreconditionRequest final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const CabinPreconditionRequest& default_instance() {
+ static const Temperature& default_instance() {
return *internal_default_instance();
}
- static inline const CabinPreconditionRequest* internal_default_instance() {
- return reinterpret_cast<const CabinPreconditionRequest*>(
- &_CabinPreconditionRequest_default_instance_);
+ static inline const Temperature* internal_default_instance() {
+ return reinterpret_cast<const Temperature*>(
+ &_Temperature_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
- friend void swap(CabinPreconditionRequest& a, CabinPreconditionRequest& b) {
+ friend void swap(Temperature& a, Temperature& b) {
a.Swap(&b);
}
- inline void Swap(CabinPreconditionRequest* other) {
+ inline void Swap(Temperature* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -226,7 +269,7 @@ class CabinPreconditionRequest final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(CabinPreconditionRequest* other) {
+ void UnsafeArenaSwap(Temperature* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -234,14 +277,14 @@ class CabinPreconditionRequest final :
// implements Message ----------------------------------------------
- CabinPreconditionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<CabinPreconditionRequest>(arena);
+ Temperature* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<Temperature>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const CabinPreconditionRequest& from);
+ void CopyFrom(const Temperature& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const CabinPreconditionRequest& from) {
- CabinPreconditionRequest::MergeImpl(*this, from);
+ void MergeFrom( const Temperature& from) {
+ Temperature::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -259,15 +302,15 @@ class CabinPreconditionRequest final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(CabinPreconditionRequest* other);
+ void InternalSwap(Temperature* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.CabinPreconditionRequest";
+ return "messages.hvac.Temperature";
}
protected:
- explicit CabinPreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit Temperature(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -280,65 +323,229 @@ class CabinPreconditionRequest final :
// accessors -------------------------------------------------------
enum : int {
- kMessageHeaderFieldNumber = 1,
- kSetAcStatusFieldNumber = 2,
- kSetTempFieldNumber = 3,
+ kUnitFieldNumber = 2,
+ kValueFieldNumber = 1,
};
- // .messages.VehicleMessageHeading messageHeader = 1;
- bool has_messageheader() const;
+ // string unit = 2;
+ void clear_unit() ;
+ const std::string& unit() const;
+
+
+
+
+ template <typename Arg_ = const std::string&, typename... Args_>
+ void set_unit(Arg_&& arg, Args_... args);
+ std::string* mutable_unit();
+ PROTOBUF_NODISCARD std::string* release_unit();
+ void set_allocated_unit(std::string* ptr);
+
private:
- bool _internal_has_messageheader() const;
+ const std::string& _internal_unit() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_unit(
+ const std::string& value);
+ std::string* _internal_mutable_unit();
public:
- void clear_messageheader() ;
- const ::messages::VehicleMessageHeading& messageheader() const;
- PROTOBUF_NODISCARD ::messages::VehicleMessageHeading* release_messageheader();
- ::messages::VehicleMessageHeading* mutable_messageheader();
- void set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader);
+ // float value = 1;
+ void clear_value() ;
+ float value() const;
+ void set_value(float value);
+
private:
- const ::messages::VehicleMessageHeading& _internal_messageheader() const;
- ::messages::VehicleMessageHeading* _internal_mutable_messageheader();
+ float _internal_value() const;
+ void _internal_set_value(float value);
+
public:
- void unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader);
- ::messages::VehicleMessageHeading* unsafe_arena_release_messageheader();
- // .messages.SetAcStatusRequest setAcStatus = 2;
- bool has_setacstatus() const;
- private:
- bool _internal_has_setacstatus() const;
+ // @@protoc_insertion_point(class_scope:messages.hvac.Temperature)
+ private:
+ class _Internal;
+
+ template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ struct Impl_ {
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr unit_;
+ float value_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ };
+ union { Impl_ _impl_; };
+ friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
+};// -------------------------------------------------------------------
+
+class HVACZone final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.HVACZone) */ {
+ public:
+ inline HVACZone() : HVACZone(nullptr) {}
+ ~HVACZone() override;
+ explicit PROTOBUF_CONSTEXPR HVACZone(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+
+ HVACZone(const HVACZone& from);
+ HVACZone(HVACZone&& from) noexcept
+ : HVACZone() {
+ *this = ::std::move(from);
+ }
+ inline HVACZone& operator=(const HVACZone& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline HVACZone& operator=(HVACZone&& from) noexcept {
+ if (this == &from) return *this;
+ if (GetOwningArena() == from.GetOwningArena()
+ #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
+ && GetOwningArena() != nullptr
+ #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
+ ) {
+ InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return default_instance().GetMetadata().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return default_instance().GetMetadata().reflection;
+ }
+ static const HVACZone& default_instance() {
+ return *internal_default_instance();
+ }
+ static inline const HVACZone* internal_default_instance() {
+ return reinterpret_cast<const HVACZone*>(
+ &_HVACZone_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
+ friend void swap(HVACZone& a, HVACZone& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(HVACZone* other) {
+ if (other == this) return;
+ #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
+ if (GetOwningArena() != nullptr &&
+ GetOwningArena() == other->GetOwningArena()) {
+ #else // PROTOBUF_FORCE_COPY_IN_SWAP
+ if (GetOwningArena() == other->GetOwningArena()) {
+ #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
+ InternalSwap(other);
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
+ }
+ }
+ void UnsafeArenaSwap(HVACZone* other) {
+ if (other == this) return;
+ ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ HVACZone* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<HVACZone>(arena);
+ }
+ using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
+ void CopyFrom(const HVACZone& from);
+ using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
+ void MergeFrom( const HVACZone& from) {
+ HVACZone::MergeImpl(*this, from);
+ }
+ private:
+ static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
- void clear_setacstatus() ;
- const ::messages::SetAcStatusRequest& setacstatus() const;
- PROTOBUF_NODISCARD ::messages::SetAcStatusRequest* release_setacstatus();
- ::messages::SetAcStatusRequest* mutable_setacstatus();
- void set_allocated_setacstatus(::messages::SetAcStatusRequest* setacstatus);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ ::size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::uint8_t* _InternalSerialize(
+ ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
+
+ private:
+ void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ void SharedDtor();
+ void SetCachedSize(int size) const final;
+ void InternalSwap(HVACZone* other);
+
private:
- const ::messages::SetAcStatusRequest& _internal_setacstatus() const;
- ::messages::SetAcStatusRequest* _internal_mutable_setacstatus();
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::absl::string_view FullMessageName() {
+ return "messages.hvac.HVACZone";
+ }
+ protected:
+ explicit HVACZone(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
- void unsafe_arena_set_allocated_setacstatus(
- ::messages::SetAcStatusRequest* setacstatus);
- ::messages::SetAcStatusRequest* unsafe_arena_release_setacstatus();
- // .messages.SetTemperatureRequest setTemp = 3;
- bool has_settemp() const;
+
+ static const ClassData _class_data_;
+ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
+
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+
+ // nested types ----------------------------------------------------
+
+ using Zone = HVACZone_Zone;
+ static constexpr Zone DRIVER = HVACZone_Zone_DRIVER;
+ static constexpr Zone PASSENGER = HVACZone_Zone_PASSENGER;
+ static constexpr Zone REAR_LEFT = HVACZone_Zone_REAR_LEFT;
+ static constexpr Zone REAR_RIGHT = HVACZone_Zone_REAR_RIGHT;
+ static inline bool Zone_IsValid(int value) {
+ return HVACZone_Zone_IsValid(value);
+ }
+ static constexpr Zone Zone_MIN = HVACZone_Zone_Zone_MIN;
+ static constexpr Zone Zone_MAX = HVACZone_Zone_Zone_MAX;
+ static constexpr int Zone_ARRAYSIZE = HVACZone_Zone_Zone_ARRAYSIZE;
+ static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Zone_descriptor() {
+ return HVACZone_Zone_descriptor();
+ }
+ template <typename T>
+ static inline const std::string& Zone_Name(T value) {
+ return HVACZone_Zone_Name(value);
+ }
+ static inline bool Zone_Parse(absl::string_view name, Zone* value) {
+ return HVACZone_Zone_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kTargetTemperatureFieldNumber = 2,
+ kZoneFieldNumber = 1,
+ };
+ // .messages.hvac.Temperature target_temperature = 2;
+ bool has_target_temperature() const;
private:
- bool _internal_has_settemp() const;
+ bool _internal_has_target_temperature() const;
public:
- void clear_settemp() ;
- const ::messages::SetTemperatureRequest& settemp() const;
- PROTOBUF_NODISCARD ::messages::SetTemperatureRequest* release_settemp();
- ::messages::SetTemperatureRequest* mutable_settemp();
- void set_allocated_settemp(::messages::SetTemperatureRequest* settemp);
+ void clear_target_temperature() ;
+ const ::messages::hvac::Temperature& target_temperature() const;
+ PROTOBUF_NODISCARD ::messages::hvac::Temperature* release_target_temperature();
+ ::messages::hvac::Temperature* mutable_target_temperature();
+ void set_allocated_target_temperature(::messages::hvac::Temperature* target_temperature);
private:
- const ::messages::SetTemperatureRequest& _internal_settemp() const;
- ::messages::SetTemperatureRequest* _internal_mutable_settemp();
+ const ::messages::hvac::Temperature& _internal_target_temperature() const;
+ ::messages::hvac::Temperature* _internal_mutable_target_temperature();
public:
- void unsafe_arena_set_allocated_settemp(
- ::messages::SetTemperatureRequest* settemp);
- ::messages::SetTemperatureRequest* unsafe_arena_release_settemp();
- // @@protoc_insertion_point(class_scope:messages.CabinPreconditionRequest)
+ void unsafe_arena_set_allocated_target_temperature(
+ ::messages::hvac::Temperature* target_temperature);
+ ::messages::hvac::Temperature* unsafe_arena_release_target_temperature();
+ // .messages.hvac.HVACZone.Zone zone = 1;
+ void clear_zone() ;
+ ::messages::hvac::HVACZone_Zone zone() const;
+ void set_zone(::messages::hvac::HVACZone_Zone value);
+
+ private:
+ ::messages::hvac::HVACZone_Zone _internal_zone() const;
+ void _internal_set_zone(::messages::hvac::HVACZone_Zone value);
+
+ public:
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACZone)
private:
class _Internal;
@@ -346,33 +553,32 @@ class CabinPreconditionRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- ::messages::VehicleMessageHeading* messageheader_;
- ::messages::SetAcStatusRequest* setacstatus_;
- ::messages::SetTemperatureRequest* settemp_;
+ ::messages::hvac::Temperature* target_temperature_;
+ int zone_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class CabinPreConditionReponse final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.CabinPreConditionReponse) */ {
+class PreconditionRequest final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.PreconditionRequest) */ {
public:
- inline CabinPreConditionReponse() : CabinPreConditionReponse(nullptr) {}
- ~CabinPreConditionReponse() override;
- explicit PROTOBUF_CONSTEXPR CabinPreConditionReponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline PreconditionRequest() : PreconditionRequest(nullptr) {}
+ ~PreconditionRequest() override;
+ explicit PROTOBUF_CONSTEXPR PreconditionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- CabinPreConditionReponse(const CabinPreConditionReponse& from);
- CabinPreConditionReponse(CabinPreConditionReponse&& from) noexcept
- : CabinPreConditionReponse() {
+ PreconditionRequest(const PreconditionRequest& from);
+ PreconditionRequest(PreconditionRequest&& from) noexcept
+ : PreconditionRequest() {
*this = ::std::move(from);
}
- inline CabinPreConditionReponse& operator=(const CabinPreConditionReponse& from) {
+ inline PreconditionRequest& operator=(const PreconditionRequest& from) {
CopyFrom(from);
return *this;
}
- inline CabinPreConditionReponse& operator=(CabinPreConditionReponse&& from) noexcept {
+ inline PreconditionRequest& operator=(PreconditionRequest&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -395,20 +601,20 @@ class CabinPreConditionReponse final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const CabinPreConditionReponse& default_instance() {
+ static const PreconditionRequest& default_instance() {
return *internal_default_instance();
}
- static inline const CabinPreConditionReponse* internal_default_instance() {
- return reinterpret_cast<const CabinPreConditionReponse*>(
- &_CabinPreConditionReponse_default_instance_);
+ static inline const PreconditionRequest* internal_default_instance() {
+ return reinterpret_cast<const PreconditionRequest*>(
+ &_PreconditionRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 1;
+ 2;
- friend void swap(CabinPreConditionReponse& a, CabinPreConditionReponse& b) {
+ friend void swap(PreconditionRequest& a, PreconditionRequest& b) {
a.Swap(&b);
}
- inline void Swap(CabinPreConditionReponse* other) {
+ inline void Swap(PreconditionRequest* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -421,7 +627,7 @@ class CabinPreConditionReponse final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(CabinPreConditionReponse* other) {
+ void UnsafeArenaSwap(PreconditionRequest* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -429,14 +635,14 @@ class CabinPreConditionReponse final :
// implements Message ----------------------------------------------
- CabinPreConditionReponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<CabinPreConditionReponse>(arena);
+ PreconditionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<PreconditionRequest>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const CabinPreConditionReponse& from);
+ void CopyFrom(const PreconditionRequest& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const CabinPreConditionReponse& from) {
- CabinPreConditionReponse::MergeImpl(*this, from);
+ void MergeFrom( const PreconditionRequest& from) {
+ PreconditionRequest::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -454,15 +660,15 @@ class CabinPreConditionReponse final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(CabinPreConditionReponse* other);
+ void InternalSwap(PreconditionRequest* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.CabinPreConditionReponse";
+ return "messages.hvac.PreconditionRequest";
}
protected:
- explicit CabinPreConditionReponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit PreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -475,65 +681,46 @@ class CabinPreConditionReponse final :
// accessors -------------------------------------------------------
enum : int {
- kMessageHeaderFieldNumber = 1,
- kSetAcStatusReplyFieldNumber = 2,
- kSetTemperatureReplyFieldNumber = 3,
+ kHvacZonesFieldNumber = 1,
+ kStartTimeFieldNumber = 2,
};
- // .messages.VehicleMessageHeading messageHeader = 1;
- bool has_messageheader() const;
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
+ int hvac_zones_size() const;
private:
- bool _internal_has_messageheader() const;
+ int _internal_hvac_zones_size() const;
public:
- void clear_messageheader() ;
- const ::messages::VehicleMessageHeading& messageheader() const;
- PROTOBUF_NODISCARD ::messages::VehicleMessageHeading* release_messageheader();
- ::messages::VehicleMessageHeading* mutable_messageheader();
- void set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader);
+ void clear_hvac_zones() ;
+ ::messages::hvac::HVACZone* mutable_hvac_zones(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >*
+ mutable_hvac_zones();
private:
- const ::messages::VehicleMessageHeading& _internal_messageheader() const;
- ::messages::VehicleMessageHeading* _internal_mutable_messageheader();
+ const ::messages::hvac::HVACZone& _internal_hvac_zones(int index) const;
+ ::messages::hvac::HVACZone* _internal_add_hvac_zones();
public:
- void unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader);
- ::messages::VehicleMessageHeading* unsafe_arena_release_messageheader();
- // .messages.SetAcStatusReply setAcStatusReply = 2;
- bool has_setacstatusreply() const;
+ const ::messages::hvac::HVACZone& hvac_zones(int index) const;
+ ::messages::hvac::HVACZone* add_hvac_zones();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >&
+ hvac_zones() const;
+ // .google.protobuf.Timestamp start_time = 2;
+ bool has_start_time() const;
private:
- bool _internal_has_setacstatusreply() const;
+ bool _internal_has_start_time() const;
public:
- void clear_setacstatusreply() ;
- const ::messages::SetAcStatusReply& setacstatusreply() const;
- PROTOBUF_NODISCARD ::messages::SetAcStatusReply* release_setacstatusreply();
- ::messages::SetAcStatusReply* mutable_setacstatusreply();
- void set_allocated_setacstatusreply(::messages::SetAcStatusReply* setacstatusreply);
+ void clear_start_time() ;
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_time() const;
+ PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_start_time();
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_start_time();
+ void set_allocated_start_time(::PROTOBUF_NAMESPACE_ID::Timestamp* start_time);
private:
- const ::messages::SetAcStatusReply& _internal_setacstatusreply() const;
- ::messages::SetAcStatusReply* _internal_mutable_setacstatusreply();
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_start_time() const;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_start_time();
public:
- void unsafe_arena_set_allocated_setacstatusreply(
- ::messages::SetAcStatusReply* setacstatusreply);
- ::messages::SetAcStatusReply* unsafe_arena_release_setacstatusreply();
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- bool has_settemperaturereply() const;
- private:
- bool _internal_has_settemperaturereply() const;
-
- public:
- void clear_settemperaturereply() ;
- const ::messages::SetTemperatureReply& settemperaturereply() const;
- PROTOBUF_NODISCARD ::messages::SetTemperatureReply* release_settemperaturereply();
- ::messages::SetTemperatureReply* mutable_settemperaturereply();
- void set_allocated_settemperaturereply(::messages::SetTemperatureReply* settemperaturereply);
- private:
- const ::messages::SetTemperatureReply& _internal_settemperaturereply() const;
- ::messages::SetTemperatureReply* _internal_mutable_settemperaturereply();
- public:
- void unsafe_arena_set_allocated_settemperaturereply(
- ::messages::SetTemperatureReply* settemperaturereply);
- ::messages::SetTemperatureReply* unsafe_arena_release_settemperaturereply();
- // @@protoc_insertion_point(class_scope:messages.CabinPreConditionReponse)
+ void unsafe_arena_set_allocated_start_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* start_time);
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_start_time();
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionRequest)
private:
class _Internal;
@@ -541,33 +728,32 @@ class CabinPreConditionReponse final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- ::messages::VehicleMessageHeading* messageheader_;
- ::messages::SetAcStatusReply* setacstatusreply_;
- ::messages::SetTemperatureReply* settemperaturereply_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone > hvac_zones_;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* start_time_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetAcStatusRequest final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetAcStatusRequest) */ {
+class PreconditionResponse final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.PreconditionResponse) */ {
public:
- inline SetAcStatusRequest() : SetAcStatusRequest(nullptr) {}
- ~SetAcStatusRequest() override;
- explicit PROTOBUF_CONSTEXPR SetAcStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline PreconditionResponse() : PreconditionResponse(nullptr) {}
+ ~PreconditionResponse() override;
+ explicit PROTOBUF_CONSTEXPR PreconditionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetAcStatusRequest(const SetAcStatusRequest& from);
- SetAcStatusRequest(SetAcStatusRequest&& from) noexcept
- : SetAcStatusRequest() {
+ PreconditionResponse(const PreconditionResponse& from);
+ PreconditionResponse(PreconditionResponse&& from) noexcept
+ : PreconditionResponse() {
*this = ::std::move(from);
}
- inline SetAcStatusRequest& operator=(const SetAcStatusRequest& from) {
+ inline PreconditionResponse& operator=(const PreconditionResponse& from) {
CopyFrom(from);
return *this;
}
- inline SetAcStatusRequest& operator=(SetAcStatusRequest&& from) noexcept {
+ inline PreconditionResponse& operator=(PreconditionResponse&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -590,20 +776,20 @@ class SetAcStatusRequest final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetAcStatusRequest& default_instance() {
+ static const PreconditionResponse& default_instance() {
return *internal_default_instance();
}
- static inline const SetAcStatusRequest* internal_default_instance() {
- return reinterpret_cast<const SetAcStatusRequest*>(
- &_SetAcStatusRequest_default_instance_);
+ static inline const PreconditionResponse* internal_default_instance() {
+ return reinterpret_cast<const PreconditionResponse*>(
+ &_PreconditionResponse_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 2;
+ 3;
- friend void swap(SetAcStatusRequest& a, SetAcStatusRequest& b) {
+ friend void swap(PreconditionResponse& a, PreconditionResponse& b) {
a.Swap(&b);
}
- inline void Swap(SetAcStatusRequest* other) {
+ inline void Swap(PreconditionResponse* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -616,7 +802,7 @@ class SetAcStatusRequest final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetAcStatusRequest* other) {
+ void UnsafeArenaSwap(PreconditionResponse* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -624,14 +810,14 @@ class SetAcStatusRequest final :
// implements Message ----------------------------------------------
- SetAcStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetAcStatusRequest>(arena);
+ PreconditionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<PreconditionResponse>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetAcStatusRequest& from);
+ void CopyFrom(const PreconditionResponse& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetAcStatusRequest& from) {
- SetAcStatusRequest::MergeImpl(*this, from);
+ void MergeFrom( const PreconditionResponse& from) {
+ PreconditionResponse::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -649,15 +835,15 @@ class SetAcStatusRequest final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetAcStatusRequest* other);
+ void InternalSwap(PreconditionResponse* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetAcStatusRequest";
+ return "messages.hvac.PreconditionResponse";
}
protected:
- explicit SetAcStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit PreconditionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -667,22 +853,64 @@ class SetAcStatusRequest final :
// nested types ----------------------------------------------------
+ using Status = PreconditionResponse_Status;
+ static constexpr Status SUCCESS = PreconditionResponse_Status_SUCCESS;
+ static constexpr Status FAILURE = PreconditionResponse_Status_FAILURE;
+ static constexpr Status PENDING = PreconditionResponse_Status_PENDING;
+ static inline bool Status_IsValid(int value) {
+ return PreconditionResponse_Status_IsValid(value);
+ }
+ static constexpr Status Status_MIN = PreconditionResponse_Status_Status_MIN;
+ static constexpr Status Status_MAX = PreconditionResponse_Status_Status_MAX;
+ static constexpr int Status_ARRAYSIZE = PreconditionResponse_Status_Status_ARRAYSIZE;
+ static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_descriptor() {
+ return PreconditionResponse_Status_descriptor();
+ }
+ template <typename T>
+ static inline const std::string& Status_Name(T value) {
+ return PreconditionResponse_Status_Name(value);
+ }
+ static inline bool Status_Parse(absl::string_view name, Status* value) {
+ return PreconditionResponse_Status_Parse(name, value);
+ }
+
// accessors -------------------------------------------------------
enum : int {
- kDesiredStatusFieldNumber = 1,
+ kMessageFieldNumber = 2,
+ kStatusFieldNumber = 1,
};
- // .messages.AcStatusEnum desiredStatus = 1;
- void clear_desiredstatus() ;
- ::messages::AcStatusEnum desiredstatus() const;
- void set_desiredstatus(::messages::AcStatusEnum value);
+ // string message = 2;
+ void clear_message() ;
+ const std::string& message() const;
+
+
+
+
+ template <typename Arg_ = const std::string&, typename... Args_>
+ void set_message(Arg_&& arg, Args_... args);
+ std::string* mutable_message();
+ PROTOBUF_NODISCARD std::string* release_message();
+ void set_allocated_message(std::string* ptr);
+
+ private:
+ const std::string& _internal_message() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(
+ const std::string& value);
+ std::string* _internal_mutable_message();
+
+ public:
+ // .messages.hvac.PreconditionResponse.Status status = 1;
+ void clear_status() ;
+ ::messages::hvac::PreconditionResponse_Status status() const;
+ void set_status(::messages::hvac::PreconditionResponse_Status value);
private:
- ::messages::AcStatusEnum _internal_desiredstatus() const;
- void _internal_set_desiredstatus(::messages::AcStatusEnum value);
+ ::messages::hvac::PreconditionResponse_Status _internal_status() const;
+ void _internal_set_status(::messages::hvac::PreconditionResponse_Status value);
public:
- // @@protoc_insertion_point(class_scope:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionResponse)
private:
class _Internal;
@@ -690,31 +918,32 @@ class SetAcStatusRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- int desiredstatus_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
+ int status_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetAcStatusReply final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetAcStatusReply) */ {
+class HVACState final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.HVACState) */ {
public:
- inline SetAcStatusReply() : SetAcStatusReply(nullptr) {}
- ~SetAcStatusReply() override;
- explicit PROTOBUF_CONSTEXPR SetAcStatusReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline HVACState() : HVACState(nullptr) {}
+ ~HVACState() override;
+ explicit PROTOBUF_CONSTEXPR HVACState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetAcStatusReply(const SetAcStatusReply& from);
- SetAcStatusReply(SetAcStatusReply&& from) noexcept
- : SetAcStatusReply() {
+ HVACState(const HVACState& from);
+ HVACState(HVACState&& from) noexcept
+ : HVACState() {
*this = ::std::move(from);
}
- inline SetAcStatusReply& operator=(const SetAcStatusReply& from) {
+ inline HVACState& operator=(const HVACState& from) {
CopyFrom(from);
return *this;
}
- inline SetAcStatusReply& operator=(SetAcStatusReply&& from) noexcept {
+ inline HVACState& operator=(HVACState&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -737,20 +966,20 @@ class SetAcStatusReply final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetAcStatusReply& default_instance() {
+ static const HVACState& default_instance() {
return *internal_default_instance();
}
- static inline const SetAcStatusReply* internal_default_instance() {
- return reinterpret_cast<const SetAcStatusReply*>(
- &_SetAcStatusReply_default_instance_);
+ static inline const HVACState* internal_default_instance() {
+ return reinterpret_cast<const HVACState*>(
+ &_HVACState_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 3;
+ 4;
- friend void swap(SetAcStatusReply& a, SetAcStatusReply& b) {
+ friend void swap(HVACState& a, HVACState& b) {
a.Swap(&b);
}
- inline void Swap(SetAcStatusReply* other) {
+ inline void Swap(HVACState* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -763,7 +992,7 @@ class SetAcStatusReply final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetAcStatusReply* other) {
+ void UnsafeArenaSwap(HVACState* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -771,14 +1000,14 @@ class SetAcStatusReply final :
// implements Message ----------------------------------------------
- SetAcStatusReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetAcStatusReply>(arena);
+ HVACState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<HVACState>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetAcStatusReply& from);
+ void CopyFrom(const HVACState& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetAcStatusReply& from) {
- SetAcStatusReply::MergeImpl(*this, from);
+ void MergeFrom( const HVACState& from) {
+ HVACState::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -796,15 +1025,15 @@ class SetAcStatusReply final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetAcStatusReply* other);
+ void InternalSwap(HVACState* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetAcStatusReply";
+ return "messages.hvac.HVACState";
}
protected:
- explicit SetAcStatusReply(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit HVACState(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -814,22 +1043,63 @@ class SetAcStatusReply final :
// nested types ----------------------------------------------------
+ using State = HVACState_State;
+ static constexpr State OFF = HVACState_State_OFF;
+ static constexpr State HEATING = HVACState_State_HEATING;
+ static constexpr State COOLING = HVACState_State_COOLING;
+ static constexpr State IDLE = HVACState_State_IDLE;
+ static inline bool State_IsValid(int value) {
+ return HVACState_State_IsValid(value);
+ }
+ static constexpr State State_MIN = HVACState_State_State_MIN;
+ static constexpr State State_MAX = HVACState_State_State_MAX;
+ static constexpr int State_ARRAYSIZE = HVACState_State_State_ARRAYSIZE;
+ static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State_descriptor() {
+ return HVACState_State_descriptor();
+ }
+ template <typename T>
+ static inline const std::string& State_Name(T value) {
+ return HVACState_State_Name(value);
+ }
+ static inline bool State_Parse(absl::string_view name, State* value) {
+ return HVACState_State_Parse(name, value);
+ }
+
// accessors -------------------------------------------------------
enum : int {
- kStatusFieldNumber = 1,
+ kCurrentZoneFieldNumber = 2,
+ kStateFieldNumber = 1,
};
- // .messages.AcStatusEnum status = 1;
- void clear_status() ;
- ::messages::AcStatusEnum status() const;
- void set_status(::messages::AcStatusEnum value);
+ // .messages.hvac.HVACZone current_zone = 2;
+ bool has_current_zone() const;
+ private:
+ bool _internal_has_current_zone() const;
+
+ public:
+ void clear_current_zone() ;
+ const ::messages::hvac::HVACZone& current_zone() const;
+ PROTOBUF_NODISCARD ::messages::hvac::HVACZone* release_current_zone();
+ ::messages::hvac::HVACZone* mutable_current_zone();
+ void set_allocated_current_zone(::messages::hvac::HVACZone* current_zone);
+ private:
+ const ::messages::hvac::HVACZone& _internal_current_zone() const;
+ ::messages::hvac::HVACZone* _internal_mutable_current_zone();
+ public:
+ void unsafe_arena_set_allocated_current_zone(
+ ::messages::hvac::HVACZone* current_zone);
+ ::messages::hvac::HVACZone* unsafe_arena_release_current_zone();
+ // .messages.hvac.HVACState.State state = 1;
+ void clear_state() ;
+ ::messages::hvac::HVACState_State state() const;
+ void set_state(::messages::hvac::HVACState_State value);
private:
- ::messages::AcStatusEnum _internal_status() const;
- void _internal_set_status(::messages::AcStatusEnum value);
+ ::messages::hvac::HVACState_State _internal_state() const;
+ void _internal_set_state(::messages::hvac::HVACState_State value);
public:
- // @@protoc_insertion_point(class_scope:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACState)
private:
class _Internal;
@@ -837,31 +1107,32 @@ class SetAcStatusReply final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- int status_;
+ ::messages::hvac::HVACZone* current_zone_;
+ int state_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetTemperatureRequest final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetTemperatureRequest) */ {
+class CabinTemperature final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.CabinTemperature) */ {
public:
- inline SetTemperatureRequest() : SetTemperatureRequest(nullptr) {}
- ~SetTemperatureRequest() override;
- explicit PROTOBUF_CONSTEXPR SetTemperatureRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline CabinTemperature() : CabinTemperature(nullptr) {}
+ ~CabinTemperature() override;
+ explicit PROTOBUF_CONSTEXPR CabinTemperature(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetTemperatureRequest(const SetTemperatureRequest& from);
- SetTemperatureRequest(SetTemperatureRequest&& from) noexcept
- : SetTemperatureRequest() {
+ CabinTemperature(const CabinTemperature& from);
+ CabinTemperature(CabinTemperature&& from) noexcept
+ : CabinTemperature() {
*this = ::std::move(from);
}
- inline SetTemperatureRequest& operator=(const SetTemperatureRequest& from) {
+ inline CabinTemperature& operator=(const CabinTemperature& from) {
CopyFrom(from);
return *this;
}
- inline SetTemperatureRequest& operator=(SetTemperatureRequest&& from) noexcept {
+ inline CabinTemperature& operator=(CabinTemperature&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -884,20 +1155,20 @@ class SetTemperatureRequest final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetTemperatureRequest& default_instance() {
+ static const CabinTemperature& default_instance() {
return *internal_default_instance();
}
- static inline const SetTemperatureRequest* internal_default_instance() {
- return reinterpret_cast<const SetTemperatureRequest*>(
- &_SetTemperatureRequest_default_instance_);
+ static inline const CabinTemperature* internal_default_instance() {
+ return reinterpret_cast<const CabinTemperature*>(
+ &_CabinTemperature_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 4;
+ 5;
- friend void swap(SetTemperatureRequest& a, SetTemperatureRequest& b) {
+ friend void swap(CabinTemperature& a, CabinTemperature& b) {
a.Swap(&b);
}
- inline void Swap(SetTemperatureRequest* other) {
+ inline void Swap(CabinTemperature* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -910,7 +1181,7 @@ class SetTemperatureRequest final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetTemperatureRequest* other) {
+ void UnsafeArenaSwap(CabinTemperature* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -918,14 +1189,14 @@ class SetTemperatureRequest final :
// implements Message ----------------------------------------------
- SetTemperatureRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetTemperatureRequest>(arena);
+ CabinTemperature* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<CabinTemperature>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetTemperatureRequest& from);
+ void CopyFrom(const CabinTemperature& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetTemperatureRequest& from) {
- SetTemperatureRequest::MergeImpl(*this, from);
+ void MergeFrom( const CabinTemperature& from) {
+ CabinTemperature::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -943,15 +1214,15 @@ class SetTemperatureRequest final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetTemperatureRequest* other);
+ void InternalSwap(CabinTemperature* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetTemperatureRequest";
+ return "messages.hvac.CabinTemperature";
}
protected:
- explicit SetTemperatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit CabinTemperature(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -965,18 +1236,45 @@ class SetTemperatureRequest final :
enum : int {
kTemperatureFieldNumber = 1,
+ kZoneFieldNumber = 2,
};
- // float temperature = 1;
- void clear_temperature() ;
- float temperature() const;
- void set_temperature(float value);
+ // .messages.hvac.Temperature temperature = 1;
+ bool has_temperature() const;
+ private:
+ bool _internal_has_temperature() const;
+ public:
+ void clear_temperature() ;
+ const ::messages::hvac::Temperature& temperature() const;
+ PROTOBUF_NODISCARD ::messages::hvac::Temperature* release_temperature();
+ ::messages::hvac::Temperature* mutable_temperature();
+ void set_allocated_temperature(::messages::hvac::Temperature* temperature);
+ private:
+ const ::messages::hvac::Temperature& _internal_temperature() const;
+ ::messages::hvac::Temperature* _internal_mutable_temperature();
+ public:
+ void unsafe_arena_set_allocated_temperature(
+ ::messages::hvac::Temperature* temperature);
+ ::messages::hvac::Temperature* unsafe_arena_release_temperature();
+ // .messages.hvac.HVACZone zone = 2;
+ bool has_zone() const;
private:
- float _internal_temperature() const;
- void _internal_set_temperature(float value);
+ bool _internal_has_zone() const;
public:
- // @@protoc_insertion_point(class_scope:messages.SetTemperatureRequest)
+ void clear_zone() ;
+ const ::messages::hvac::HVACZone& zone() const;
+ PROTOBUF_NODISCARD ::messages::hvac::HVACZone* release_zone();
+ ::messages::hvac::HVACZone* mutable_zone();
+ void set_allocated_zone(::messages::hvac::HVACZone* zone);
+ private:
+ const ::messages::hvac::HVACZone& _internal_zone() const;
+ ::messages::hvac::HVACZone* _internal_mutable_zone();
+ public:
+ void unsafe_arena_set_allocated_zone(
+ ::messages::hvac::HVACZone* zone);
+ ::messages::hvac::HVACZone* unsafe_arena_release_zone();
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinTemperature)
private:
class _Internal;
@@ -984,31 +1282,32 @@ class SetTemperatureRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- float temperature_;
+ ::messages::hvac::Temperature* temperature_;
+ ::messages::hvac::HVACZone* zone_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetTemperatureReply final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetTemperatureReply) */ {
+class CabinConditionStatusPublish final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.CabinConditionStatusPublish) */ {
public:
- inline SetTemperatureReply() : SetTemperatureReply(nullptr) {}
- ~SetTemperatureReply() override;
- explicit PROTOBUF_CONSTEXPR SetTemperatureReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline CabinConditionStatusPublish() : CabinConditionStatusPublish(nullptr) {}
+ ~CabinConditionStatusPublish() override;
+ explicit PROTOBUF_CONSTEXPR CabinConditionStatusPublish(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetTemperatureReply(const SetTemperatureReply& from);
- SetTemperatureReply(SetTemperatureReply&& from) noexcept
- : SetTemperatureReply() {
+ CabinConditionStatusPublish(const CabinConditionStatusPublish& from);
+ CabinConditionStatusPublish(CabinConditionStatusPublish&& from) noexcept
+ : CabinConditionStatusPublish() {
*this = ::std::move(from);
}
- inline SetTemperatureReply& operator=(const SetTemperatureReply& from) {
+ inline CabinConditionStatusPublish& operator=(const CabinConditionStatusPublish& from) {
CopyFrom(from);
return *this;
}
- inline SetTemperatureReply& operator=(SetTemperatureReply&& from) noexcept {
+ inline CabinConditionStatusPublish& operator=(CabinConditionStatusPublish&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -1031,20 +1330,20 @@ class SetTemperatureReply final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetTemperatureReply& default_instance() {
+ static const CabinConditionStatusPublish& default_instance() {
return *internal_default_instance();
}
- static inline const SetTemperatureReply* internal_default_instance() {
- return reinterpret_cast<const SetTemperatureReply*>(
- &_SetTemperatureReply_default_instance_);
+ static inline const CabinConditionStatusPublish* internal_default_instance() {
+ return reinterpret_cast<const CabinConditionStatusPublish*>(
+ &_CabinConditionStatusPublish_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 5;
+ 6;
- friend void swap(SetTemperatureReply& a, SetTemperatureReply& b) {
+ friend void swap(CabinConditionStatusPublish& a, CabinConditionStatusPublish& b) {
a.Swap(&b);
}
- inline void Swap(SetTemperatureReply* other) {
+ inline void Swap(CabinConditionStatusPublish* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -1057,7 +1356,7 @@ class SetTemperatureReply final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetTemperatureReply* other) {
+ void UnsafeArenaSwap(CabinConditionStatusPublish* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -1065,14 +1364,14 @@ class SetTemperatureReply final :
// implements Message ----------------------------------------------
- SetTemperatureReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetTemperatureReply>(arena);
+ CabinConditionStatusPublish* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<CabinConditionStatusPublish>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetTemperatureReply& from);
+ void CopyFrom(const CabinConditionStatusPublish& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetTemperatureReply& from) {
- SetTemperatureReply::MergeImpl(*this, from);
+ void MergeFrom( const CabinConditionStatusPublish& from) {
+ CabinConditionStatusPublish::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -1090,15 +1389,15 @@ class SetTemperatureReply final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetTemperatureReply* other);
+ void InternalSwap(CabinConditionStatusPublish* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetTemperatureReply";
+ return "messages.hvac.CabinConditionStatusPublish";
}
protected:
- explicit SetTemperatureReply(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit CabinConditionStatusPublish(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -1111,19 +1410,65 @@ class SetTemperatureReply final :
// accessors -------------------------------------------------------
enum : int {
- kTempStatusFieldNumber = 1,
+ kEventTimeFieldNumber = 1,
+ kHvacStateFieldNumber = 2,
+ kCabinTemperatureFieldNumber = 3,
};
- // .messages.SetTempStatusEnum tempStatus = 1;
- void clear_tempstatus() ;
- ::messages::SetTempStatusEnum tempstatus() const;
- void set_tempstatus(::messages::SetTempStatusEnum value);
+ // .google.protobuf.Timestamp event_time = 1;
+ bool has_event_time() const;
+ private:
+ bool _internal_has_event_time() const;
+
+ public:
+ void clear_event_time() ;
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& event_time() const;
+ PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_event_time();
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_event_time();
+ void set_allocated_event_time(::PROTOBUF_NAMESPACE_ID::Timestamp* event_time);
+ private:
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_event_time() const;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_event_time();
+ public:
+ void unsafe_arena_set_allocated_event_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* event_time);
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_event_time();
+ // .messages.hvac.HVACState hvac_state = 2;
+ bool has_hvac_state() const;
+ private:
+ bool _internal_has_hvac_state() const;
+ public:
+ void clear_hvac_state() ;
+ const ::messages::hvac::HVACState& hvac_state() const;
+ PROTOBUF_NODISCARD ::messages::hvac::HVACState* release_hvac_state();
+ ::messages::hvac::HVACState* mutable_hvac_state();
+ void set_allocated_hvac_state(::messages::hvac::HVACState* hvac_state);
private:
- ::messages::SetTempStatusEnum _internal_tempstatus() const;
- void _internal_set_tempstatus(::messages::SetTempStatusEnum value);
+ const ::messages::hvac::HVACState& _internal_hvac_state() const;
+ ::messages::hvac::HVACState* _internal_mutable_hvac_state();
+ public:
+ void unsafe_arena_set_allocated_hvac_state(
+ ::messages::hvac::HVACState* hvac_state);
+ ::messages::hvac::HVACState* unsafe_arena_release_hvac_state();
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ bool has_cabin_temperature() const;
+ private:
+ bool _internal_has_cabin_temperature() const;
public:
- // @@protoc_insertion_point(class_scope:messages.SetTemperatureReply)
+ void clear_cabin_temperature() ;
+ const ::messages::hvac::CabinTemperature& cabin_temperature() const;
+ PROTOBUF_NODISCARD ::messages::hvac::CabinTemperature* release_cabin_temperature();
+ ::messages::hvac::CabinTemperature* mutable_cabin_temperature();
+ void set_allocated_cabin_temperature(::messages::hvac::CabinTemperature* cabin_temperature);
+ private:
+ const ::messages::hvac::CabinTemperature& _internal_cabin_temperature() const;
+ ::messages::hvac::CabinTemperature* _internal_mutable_cabin_temperature();
+ public:
+ void unsafe_arena_set_allocated_cabin_temperature(
+ ::messages::hvac::CabinTemperature* cabin_temperature);
+ ::messages::hvac::CabinTemperature* unsafe_arena_release_cabin_temperature();
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinConditionStatusPublish)
private:
class _Internal;
@@ -1131,7 +1476,9 @@ class SetTemperatureReply final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- int tempstatus_;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* event_time_;
+ ::messages::hvac::HVACState* hvac_state_;
+ ::messages::hvac::CabinTemperature* cabin_temperature_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -1152,36 +1499,133 @@ class SetTemperatureReply final :
#endif // __GNUC__
// -------------------------------------------------------------------
-// CabinPreconditionRequest
+// Temperature
+
+// float value = 1;
+inline void Temperature::clear_value() {
+ _impl_.value_ = 0;
+}
+inline float Temperature::value() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.Temperature.value)
+ return _internal_value();
+}
+inline void Temperature::set_value(float value) {
+ _internal_set_value(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.Temperature.value)
+}
+inline float Temperature::_internal_value() const {
+ return _impl_.value_;
+}
+inline void Temperature::_internal_set_value(float value) {
+ ;
+ _impl_.value_ = value;
+}
+
+// string unit = 2;
+inline void Temperature::clear_unit() {
+ _impl_.unit_.ClearToEmpty();
+}
+inline const std::string& Temperature::unit() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.Temperature.unit)
+ return _internal_unit();
+}
+template <typename Arg_, typename... Args_>
+inline PROTOBUF_ALWAYS_INLINE void Temperature::set_unit(Arg_&& arg,
+ Args_... args) {
+ ;
+ _impl_.unit_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:messages.hvac.Temperature.unit)
+}
+inline std::string* Temperature::mutable_unit() {
+ std::string* _s = _internal_mutable_unit();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.Temperature.unit)
+ return _s;
+}
+inline const std::string& Temperature::_internal_unit() const {
+ return _impl_.unit_.Get();
+}
+inline void Temperature::_internal_set_unit(const std::string& value) {
+ ;
+
+
+ _impl_.unit_.Set(value, GetArenaForAllocation());
+}
+inline std::string* Temperature::_internal_mutable_unit() {
+ ;
+ return _impl_.unit_.Mutable( GetArenaForAllocation());
+}
+inline std::string* Temperature::release_unit() {
+ // @@protoc_insertion_point(field_release:messages.hvac.Temperature.unit)
+ return _impl_.unit_.Release();
+}
+inline void Temperature::set_allocated_unit(std::string* value) {
+ _impl_.unit_.SetAllocated(value, GetArenaForAllocation());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (_impl_.unit_.IsDefault()) {
+ _impl_.unit_.Set("", GetArenaForAllocation());
+ }
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.Temperature.unit)
+}
+
+// -------------------------------------------------------------------
+
+// HVACZone
+
+// .messages.hvac.HVACZone.Zone zone = 1;
+inline void HVACZone::clear_zone() {
+ _impl_.zone_ = 0;
+}
+inline ::messages::hvac::HVACZone_Zone HVACZone::zone() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACZone.zone)
+ return _internal_zone();
+}
+inline void HVACZone::set_zone(::messages::hvac::HVACZone_Zone value) {
+ _internal_set_zone(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.HVACZone.zone)
+}
+inline ::messages::hvac::HVACZone_Zone HVACZone::_internal_zone() const {
+ return static_cast<::messages::hvac::HVACZone_Zone>(_impl_.zone_);
+}
+inline void HVACZone::_internal_set_zone(::messages::hvac::HVACZone_Zone value) {
+ ;
+ _impl_.zone_ = value;
+}
-// .messages.VehicleMessageHeading messageHeader = 1;
-inline bool CabinPreconditionRequest::_internal_has_messageheader() const {
- return this != internal_default_instance() && _impl_.messageheader_ != nullptr;
+// .messages.hvac.Temperature target_temperature = 2;
+inline bool HVACZone::_internal_has_target_temperature() const {
+ return this != internal_default_instance() && _impl_.target_temperature_ != nullptr;
}
-inline bool CabinPreconditionRequest::has_messageheader() const {
- return _internal_has_messageheader();
+inline bool HVACZone::has_target_temperature() const {
+ return _internal_has_target_temperature();
}
-inline const ::messages::VehicleMessageHeading& CabinPreconditionRequest::_internal_messageheader() const {
- const ::messages::VehicleMessageHeading* p = _impl_.messageheader_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::VehicleMessageHeading&>(
- ::messages::_VehicleMessageHeading_default_instance_);
+inline void HVACZone::clear_target_temperature() {
+ if (GetArenaForAllocation() == nullptr && _impl_.target_temperature_ != nullptr) {
+ delete _impl_.target_temperature_;
+ }
+ _impl_.target_temperature_ = nullptr;
+}
+inline const ::messages::hvac::Temperature& HVACZone::_internal_target_temperature() const {
+ const ::messages::hvac::Temperature* p = _impl_.target_temperature_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::Temperature&>(
+ ::messages::hvac::_Temperature_default_instance_);
}
-inline const ::messages::VehicleMessageHeading& CabinPreconditionRequest::messageheader() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreconditionRequest.messageHeader)
- return _internal_messageheader();
+inline const ::messages::hvac::Temperature& HVACZone::target_temperature() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACZone.target_temperature)
+ return _internal_target_temperature();
}
-inline void CabinPreconditionRequest::unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader) {
+inline void HVACZone::unsafe_arena_set_allocated_target_temperature(
+ ::messages::hvac::Temperature* target_temperature) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_temperature_);
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreconditionRequest.messageHeader)
+ _impl_.target_temperature_ = target_temperature;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.HVACZone.target_temperature)
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::release_messageheader() {
+inline ::messages::hvac::Temperature* HVACZone::release_target_temperature() {
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.target_temperature_;
+ _impl_.target_temperature_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1193,81 +1637,118 @@ inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::release_mess
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::unsafe_arena_release_messageheader() {
- // @@protoc_insertion_point(field_release:messages.CabinPreconditionRequest.messageHeader)
+inline ::messages::hvac::Temperature* HVACZone::unsafe_arena_release_target_temperature() {
+ // @@protoc_insertion_point(field_release:messages.hvac.HVACZone.target_temperature)
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.target_temperature_;
+ _impl_.target_temperature_ = nullptr;
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::_internal_mutable_messageheader() {
+inline ::messages::hvac::Temperature* HVACZone::_internal_mutable_target_temperature() {
- if (_impl_.messageheader_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::VehicleMessageHeading>(GetArenaForAllocation());
- _impl_.messageheader_ = p;
+ if (_impl_.target_temperature_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::Temperature>(GetArenaForAllocation());
+ _impl_.target_temperature_ = p;
}
- return _impl_.messageheader_;
+ return _impl_.target_temperature_;
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::mutable_messageheader() {
- ::messages::VehicleMessageHeading* _msg = _internal_mutable_messageheader();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreconditionRequest.messageHeader)
+inline ::messages::hvac::Temperature* HVACZone::mutable_target_temperature() {
+ ::messages::hvac::Temperature* _msg = _internal_mutable_target_temperature();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.HVACZone.target_temperature)
return _msg;
}
-inline void CabinPreconditionRequest::set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader) {
+inline void HVACZone::set_allocated_target_temperature(::messages::hvac::Temperature* target_temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete _impl_.target_temperature_;
}
- if (messageheader) {
+ if (target_temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(messageheader));
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(target_temperature);
if (message_arena != submessage_arena) {
- messageheader = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, messageheader, submessage_arena);
+ target_temperature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, target_temperature, submessage_arena);
}
} else {
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreconditionRequest.messageHeader)
+ _impl_.target_temperature_ = target_temperature;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.HVACZone.target_temperature)
}
-// .messages.SetAcStatusRequest setAcStatus = 2;
-inline bool CabinPreconditionRequest::_internal_has_setacstatus() const {
- return this != internal_default_instance() && _impl_.setacstatus_ != nullptr;
+// -------------------------------------------------------------------
+
+// PreconditionRequest
+
+// repeated .messages.hvac.HVACZone hvac_zones = 1;
+inline int PreconditionRequest::_internal_hvac_zones_size() const {
+ return _impl_.hvac_zones_.size();
}
-inline bool CabinPreconditionRequest::has_setacstatus() const {
- return _internal_has_setacstatus();
+inline int PreconditionRequest::hvac_zones_size() const {
+ return _internal_hvac_zones_size();
}
-inline void CabinPreconditionRequest::clear_setacstatus() {
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatus_ != nullptr) {
- delete _impl_.setacstatus_;
- }
- _impl_.setacstatus_ = nullptr;
+inline void PreconditionRequest::clear_hvac_zones() {
+ _impl_.hvac_zones_.Clear();
+}
+inline ::messages::hvac::HVACZone* PreconditionRequest::mutable_hvac_zones(int index) {
+ // @@protoc_insertion_point(field_mutable:messages.hvac.PreconditionRequest.hvac_zones)
+ return _impl_.hvac_zones_.Mutable(index);
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >*
+PreconditionRequest::mutable_hvac_zones() {
+ // @@protoc_insertion_point(field_mutable_list:messages.hvac.PreconditionRequest.hvac_zones)
+ return &_impl_.hvac_zones_;
}
-inline const ::messages::SetAcStatusRequest& CabinPreconditionRequest::_internal_setacstatus() const {
- const ::messages::SetAcStatusRequest* p = _impl_.setacstatus_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetAcStatusRequest&>(
- ::messages::_SetAcStatusRequest_default_instance_);
+inline const ::messages::hvac::HVACZone& PreconditionRequest::_internal_hvac_zones(int index) const {
+ return _impl_.hvac_zones_.Get(index);
}
-inline const ::messages::SetAcStatusRequest& CabinPreconditionRequest::setacstatus() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreconditionRequest.setAcStatus)
- return _internal_setacstatus();
+inline const ::messages::hvac::HVACZone& PreconditionRequest::hvac_zones(int index) const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionRequest.hvac_zones)
+ return _internal_hvac_zones(index);
}
-inline void CabinPreconditionRequest::unsafe_arena_set_allocated_setacstatus(
- ::messages::SetAcStatusRequest* setacstatus) {
+inline ::messages::hvac::HVACZone* PreconditionRequest::_internal_add_hvac_zones() {
+ return _impl_.hvac_zones_.Add();
+}
+inline ::messages::hvac::HVACZone* PreconditionRequest::add_hvac_zones() {
+ ::messages::hvac::HVACZone* _add = _internal_add_hvac_zones();
+ // @@protoc_insertion_point(field_add:messages.hvac.PreconditionRequest.hvac_zones)
+ return _add;
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >&
+PreconditionRequest::hvac_zones() const {
+ // @@protoc_insertion_point(field_list:messages.hvac.PreconditionRequest.hvac_zones)
+ return _impl_.hvac_zones_;
+}
+
+// .google.protobuf.Timestamp start_time = 2;
+inline bool PreconditionRequest::_internal_has_start_time() const {
+ return this != internal_default_instance() && _impl_.start_time_ != nullptr;
+}
+inline bool PreconditionRequest::has_start_time() const {
+ return _internal_has_start_time();
+}
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PreconditionRequest::_internal_start_time() const {
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.start_time_;
+ return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Timestamp&>(
+ ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
+}
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PreconditionRequest::start_time() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionRequest.start_time)
+ return _internal_start_time();
+}
+inline void PreconditionRequest::unsafe_arena_set_allocated_start_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* start_time) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.setacstatus_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_time_);
}
- _impl_.setacstatus_ = setacstatus;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreconditionRequest.setAcStatus)
+ _impl_.start_time_ = start_time;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.PreconditionRequest.start_time)
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::release_setacstatus() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::release_start_time() {
- ::messages::SetAcStatusRequest* temp = _impl_.setacstatus_;
- _impl_.setacstatus_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_time_;
+ _impl_.start_time_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1279,80 +1760,176 @@ inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::release_setacst
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::unsafe_arena_release_setacstatus() {
- // @@protoc_insertion_point(field_release:messages.CabinPreconditionRequest.setAcStatus)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::unsafe_arena_release_start_time() {
+ // @@protoc_insertion_point(field_release:messages.hvac.PreconditionRequest.start_time)
- ::messages::SetAcStatusRequest* temp = _impl_.setacstatus_;
- _impl_.setacstatus_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_time_;
+ _impl_.start_time_ = nullptr;
return temp;
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::_internal_mutable_setacstatus() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::_internal_mutable_start_time() {
- if (_impl_.setacstatus_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetAcStatusRequest>(GetArenaForAllocation());
- _impl_.setacstatus_ = p;
+ if (_impl_.start_time_ == nullptr) {
+ auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
+ _impl_.start_time_ = p;
}
- return _impl_.setacstatus_;
+ return _impl_.start_time_;
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::mutable_setacstatus() {
- ::messages::SetAcStatusRequest* _msg = _internal_mutable_setacstatus();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreconditionRequest.setAcStatus)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::mutable_start_time() {
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_start_time();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.PreconditionRequest.start_time)
return _msg;
}
-inline void CabinPreconditionRequest::set_allocated_setacstatus(::messages::SetAcStatusRequest* setacstatus) {
+inline void PreconditionRequest::set_allocated_start_time(::PROTOBUF_NAMESPACE_ID::Timestamp* start_time) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.setacstatus_;
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_time_);
}
- if (setacstatus) {
+ if (start_time) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setacstatus);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_time));
if (message_arena != submessage_arena) {
- setacstatus = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, setacstatus, submessage_arena);
+ start_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, start_time, submessage_arena);
}
} else {
}
- _impl_.setacstatus_ = setacstatus;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreconditionRequest.setAcStatus)
+ _impl_.start_time_ = start_time;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.PreconditionRequest.start_time)
+}
+
+// -------------------------------------------------------------------
+
+// PreconditionResponse
+
+// .messages.hvac.PreconditionResponse.Status status = 1;
+inline void PreconditionResponse::clear_status() {
+ _impl_.status_ = 0;
+}
+inline ::messages::hvac::PreconditionResponse_Status PreconditionResponse::status() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionResponse.status)
+ return _internal_status();
+}
+inline void PreconditionResponse::set_status(::messages::hvac::PreconditionResponse_Status value) {
+ _internal_set_status(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.PreconditionResponse.status)
+}
+inline ::messages::hvac::PreconditionResponse_Status PreconditionResponse::_internal_status() const {
+ return static_cast<::messages::hvac::PreconditionResponse_Status>(_impl_.status_);
+}
+inline void PreconditionResponse::_internal_set_status(::messages::hvac::PreconditionResponse_Status value) {
+ ;
+ _impl_.status_ = value;
+}
+
+// string message = 2;
+inline void PreconditionResponse::clear_message() {
+ _impl_.message_.ClearToEmpty();
+}
+inline const std::string& PreconditionResponse::message() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionResponse.message)
+ return _internal_message();
+}
+template <typename Arg_, typename... Args_>
+inline PROTOBUF_ALWAYS_INLINE void PreconditionResponse::set_message(Arg_&& arg,
+ Args_... args) {
+ ;
+ _impl_.message_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:messages.hvac.PreconditionResponse.message)
+}
+inline std::string* PreconditionResponse::mutable_message() {
+ std::string* _s = _internal_mutable_message();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.PreconditionResponse.message)
+ return _s;
+}
+inline const std::string& PreconditionResponse::_internal_message() const {
+ return _impl_.message_.Get();
+}
+inline void PreconditionResponse::_internal_set_message(const std::string& value) {
+ ;
+
+
+ _impl_.message_.Set(value, GetArenaForAllocation());
+}
+inline std::string* PreconditionResponse::_internal_mutable_message() {
+ ;
+ return _impl_.message_.Mutable( GetArenaForAllocation());
+}
+inline std::string* PreconditionResponse::release_message() {
+ // @@protoc_insertion_point(field_release:messages.hvac.PreconditionResponse.message)
+ return _impl_.message_.Release();
+}
+inline void PreconditionResponse::set_allocated_message(std::string* value) {
+ _impl_.message_.SetAllocated(value, GetArenaForAllocation());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (_impl_.message_.IsDefault()) {
+ _impl_.message_.Set("", GetArenaForAllocation());
+ }
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.PreconditionResponse.message)
+}
+
+// -------------------------------------------------------------------
+
+// HVACState
+
+// .messages.hvac.HVACState.State state = 1;
+inline void HVACState::clear_state() {
+ _impl_.state_ = 0;
+}
+inline ::messages::hvac::HVACState_State HVACState::state() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACState.state)
+ return _internal_state();
+}
+inline void HVACState::set_state(::messages::hvac::HVACState_State value) {
+ _internal_set_state(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.HVACState.state)
+}
+inline ::messages::hvac::HVACState_State HVACState::_internal_state() const {
+ return static_cast<::messages::hvac::HVACState_State>(_impl_.state_);
+}
+inline void HVACState::_internal_set_state(::messages::hvac::HVACState_State value) {
+ ;
+ _impl_.state_ = value;
}
-// .messages.SetTemperatureRequest setTemp = 3;
-inline bool CabinPreconditionRequest::_internal_has_settemp() const {
- return this != internal_default_instance() && _impl_.settemp_ != nullptr;
+// .messages.hvac.HVACZone current_zone = 2;
+inline bool HVACState::_internal_has_current_zone() const {
+ return this != internal_default_instance() && _impl_.current_zone_ != nullptr;
}
-inline bool CabinPreconditionRequest::has_settemp() const {
- return _internal_has_settemp();
+inline bool HVACState::has_current_zone() const {
+ return _internal_has_current_zone();
}
-inline void CabinPreconditionRequest::clear_settemp() {
- if (GetArenaForAllocation() == nullptr && _impl_.settemp_ != nullptr) {
- delete _impl_.settemp_;
+inline void HVACState::clear_current_zone() {
+ if (GetArenaForAllocation() == nullptr && _impl_.current_zone_ != nullptr) {
+ delete _impl_.current_zone_;
}
- _impl_.settemp_ = nullptr;
+ _impl_.current_zone_ = nullptr;
}
-inline const ::messages::SetTemperatureRequest& CabinPreconditionRequest::_internal_settemp() const {
- const ::messages::SetTemperatureRequest* p = _impl_.settemp_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetTemperatureRequest&>(
- ::messages::_SetTemperatureRequest_default_instance_);
+inline const ::messages::hvac::HVACZone& HVACState::_internal_current_zone() const {
+ const ::messages::hvac::HVACZone* p = _impl_.current_zone_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::HVACZone&>(
+ ::messages::hvac::_HVACZone_default_instance_);
}
-inline const ::messages::SetTemperatureRequest& CabinPreconditionRequest::settemp() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreconditionRequest.setTemp)
- return _internal_settemp();
+inline const ::messages::hvac::HVACZone& HVACState::current_zone() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACState.current_zone)
+ return _internal_current_zone();
}
-inline void CabinPreconditionRequest::unsafe_arena_set_allocated_settemp(
- ::messages::SetTemperatureRequest* settemp) {
+inline void HVACState::unsafe_arena_set_allocated_current_zone(
+ ::messages::hvac::HVACZone* current_zone) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.settemp_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.current_zone_);
}
- _impl_.settemp_ = settemp;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreconditionRequest.setTemp)
+ _impl_.current_zone_ = current_zone;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.HVACState.current_zone)
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::release_settemp() {
+inline ::messages::hvac::HVACZone* HVACState::release_current_zone() {
- ::messages::SetTemperatureRequest* temp = _impl_.settemp_;
- _impl_.settemp_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.current_zone_;
+ _impl_.current_zone_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1364,78 +1941,84 @@ inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::release_sett
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::unsafe_arena_release_settemp() {
- // @@protoc_insertion_point(field_release:messages.CabinPreconditionRequest.setTemp)
+inline ::messages::hvac::HVACZone* HVACState::unsafe_arena_release_current_zone() {
+ // @@protoc_insertion_point(field_release:messages.hvac.HVACState.current_zone)
- ::messages::SetTemperatureRequest* temp = _impl_.settemp_;
- _impl_.settemp_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.current_zone_;
+ _impl_.current_zone_ = nullptr;
return temp;
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::_internal_mutable_settemp() {
+inline ::messages::hvac::HVACZone* HVACState::_internal_mutable_current_zone() {
- if (_impl_.settemp_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetTemperatureRequest>(GetArenaForAllocation());
- _impl_.settemp_ = p;
+ if (_impl_.current_zone_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::HVACZone>(GetArenaForAllocation());
+ _impl_.current_zone_ = p;
}
- return _impl_.settemp_;
+ return _impl_.current_zone_;
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::mutable_settemp() {
- ::messages::SetTemperatureRequest* _msg = _internal_mutable_settemp();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreconditionRequest.setTemp)
+inline ::messages::hvac::HVACZone* HVACState::mutable_current_zone() {
+ ::messages::hvac::HVACZone* _msg = _internal_mutable_current_zone();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.HVACState.current_zone)
return _msg;
}
-inline void CabinPreconditionRequest::set_allocated_settemp(::messages::SetTemperatureRequest* settemp) {
+inline void HVACState::set_allocated_current_zone(::messages::hvac::HVACZone* current_zone) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.settemp_;
+ delete _impl_.current_zone_;
}
- if (settemp) {
+ if (current_zone) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(settemp);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(current_zone);
if (message_arena != submessage_arena) {
- settemp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, settemp, submessage_arena);
+ current_zone = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, current_zone, submessage_arena);
}
} else {
}
- _impl_.settemp_ = settemp;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreconditionRequest.setTemp)
+ _impl_.current_zone_ = current_zone;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.HVACState.current_zone)
}
// -------------------------------------------------------------------
-// CabinPreConditionReponse
+// CabinTemperature
-// .messages.VehicleMessageHeading messageHeader = 1;
-inline bool CabinPreConditionReponse::_internal_has_messageheader() const {
- return this != internal_default_instance() && _impl_.messageheader_ != nullptr;
+// .messages.hvac.Temperature temperature = 1;
+inline bool CabinTemperature::_internal_has_temperature() const {
+ return this != internal_default_instance() && _impl_.temperature_ != nullptr;
+}
+inline bool CabinTemperature::has_temperature() const {
+ return _internal_has_temperature();
}
-inline bool CabinPreConditionReponse::has_messageheader() const {
- return _internal_has_messageheader();
+inline void CabinTemperature::clear_temperature() {
+ if (GetArenaForAllocation() == nullptr && _impl_.temperature_ != nullptr) {
+ delete _impl_.temperature_;
+ }
+ _impl_.temperature_ = nullptr;
}
-inline const ::messages::VehicleMessageHeading& CabinPreConditionReponse::_internal_messageheader() const {
- const ::messages::VehicleMessageHeading* p = _impl_.messageheader_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::VehicleMessageHeading&>(
- ::messages::_VehicleMessageHeading_default_instance_);
+inline const ::messages::hvac::Temperature& CabinTemperature::_internal_temperature() const {
+ const ::messages::hvac::Temperature* p = _impl_.temperature_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::Temperature&>(
+ ::messages::hvac::_Temperature_default_instance_);
}
-inline const ::messages::VehicleMessageHeading& CabinPreConditionReponse::messageheader() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreConditionReponse.messageHeader)
- return _internal_messageheader();
+inline const ::messages::hvac::Temperature& CabinTemperature::temperature() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinTemperature.temperature)
+ return _internal_temperature();
}
-inline void CabinPreConditionReponse::unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader) {
+inline void CabinTemperature::unsafe_arena_set_allocated_temperature(
+ ::messages::hvac::Temperature* temperature) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.temperature_);
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreConditionReponse.messageHeader)
+ _impl_.temperature_ = temperature;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinTemperature.temperature)
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::release_messageheader() {
+inline ::messages::hvac::Temperature* CabinTemperature::release_temperature() {
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.temperature_;
+ _impl_.temperature_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1447,81 +2030,80 @@ inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::release_mess
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::unsafe_arena_release_messageheader() {
- // @@protoc_insertion_point(field_release:messages.CabinPreConditionReponse.messageHeader)
+inline ::messages::hvac::Temperature* CabinTemperature::unsafe_arena_release_temperature() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinTemperature.temperature)
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.temperature_;
+ _impl_.temperature_ = nullptr;
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::_internal_mutable_messageheader() {
+inline ::messages::hvac::Temperature* CabinTemperature::_internal_mutable_temperature() {
- if (_impl_.messageheader_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::VehicleMessageHeading>(GetArenaForAllocation());
- _impl_.messageheader_ = p;
+ if (_impl_.temperature_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::Temperature>(GetArenaForAllocation());
+ _impl_.temperature_ = p;
}
- return _impl_.messageheader_;
+ return _impl_.temperature_;
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::mutable_messageheader() {
- ::messages::VehicleMessageHeading* _msg = _internal_mutable_messageheader();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreConditionReponse.messageHeader)
+inline ::messages::hvac::Temperature* CabinTemperature::mutable_temperature() {
+ ::messages::hvac::Temperature* _msg = _internal_mutable_temperature();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinTemperature.temperature)
return _msg;
}
-inline void CabinPreConditionReponse::set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader) {
+inline void CabinTemperature::set_allocated_temperature(::messages::hvac::Temperature* temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete _impl_.temperature_;
}
- if (messageheader) {
+ if (temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(messageheader));
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(temperature);
if (message_arena != submessage_arena) {
- messageheader = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, messageheader, submessage_arena);
+ temperature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, temperature, submessage_arena);
}
} else {
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreConditionReponse.messageHeader)
+ _impl_.temperature_ = temperature;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinTemperature.temperature)
}
-// .messages.SetAcStatusReply setAcStatusReply = 2;
-inline bool CabinPreConditionReponse::_internal_has_setacstatusreply() const {
- return this != internal_default_instance() && _impl_.setacstatusreply_ != nullptr;
+// .messages.hvac.HVACZone zone = 2;
+inline bool CabinTemperature::_internal_has_zone() const {
+ return this != internal_default_instance() && _impl_.zone_ != nullptr;
}
-inline bool CabinPreConditionReponse::has_setacstatusreply() const {
- return _internal_has_setacstatusreply();
+inline bool CabinTemperature::has_zone() const {
+ return _internal_has_zone();
}
-inline void CabinPreConditionReponse::clear_setacstatusreply() {
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatusreply_ != nullptr) {
- delete _impl_.setacstatusreply_;
+inline void CabinTemperature::clear_zone() {
+ if (GetArenaForAllocation() == nullptr && _impl_.zone_ != nullptr) {
+ delete _impl_.zone_;
}
- _impl_.setacstatusreply_ = nullptr;
+ _impl_.zone_ = nullptr;
}
-inline const ::messages::SetAcStatusReply& CabinPreConditionReponse::_internal_setacstatusreply() const {
- const ::messages::SetAcStatusReply* p = _impl_.setacstatusreply_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetAcStatusReply&>(
- ::messages::_SetAcStatusReply_default_instance_);
+inline const ::messages::hvac::HVACZone& CabinTemperature::_internal_zone() const {
+ const ::messages::hvac::HVACZone* p = _impl_.zone_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::HVACZone&>(
+ ::messages::hvac::_HVACZone_default_instance_);
}
-inline const ::messages::SetAcStatusReply& CabinPreConditionReponse::setacstatusreply() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreConditionReponse.setAcStatusReply)
- return _internal_setacstatusreply();
+inline const ::messages::hvac::HVACZone& CabinTemperature::zone() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinTemperature.zone)
+ return _internal_zone();
}
-inline void CabinPreConditionReponse::unsafe_arena_set_allocated_setacstatusreply(
- ::messages::SetAcStatusReply* setacstatusreply) {
+inline void CabinTemperature::unsafe_arena_set_allocated_zone(
+ ::messages::hvac::HVACZone* zone) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.setacstatusreply_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.zone_);
}
- _impl_.setacstatusreply_ = setacstatusreply;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreConditionReponse.setAcStatusReply)
+ _impl_.zone_ = zone;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinTemperature.zone)
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::release_setacstatusreply() {
+inline ::messages::hvac::HVACZone* CabinTemperature::release_zone() {
- ::messages::SetAcStatusReply* temp = _impl_.setacstatusreply_;
- _impl_.setacstatusreply_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.zone_;
+ _impl_.zone_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1533,80 +2115,78 @@ inline ::messages::SetAcStatusReply* CabinPreConditionReponse::release_setacstat
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::unsafe_arena_release_setacstatusreply() {
- // @@protoc_insertion_point(field_release:messages.CabinPreConditionReponse.setAcStatusReply)
+inline ::messages::hvac::HVACZone* CabinTemperature::unsafe_arena_release_zone() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinTemperature.zone)
- ::messages::SetAcStatusReply* temp = _impl_.setacstatusreply_;
- _impl_.setacstatusreply_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.zone_;
+ _impl_.zone_ = nullptr;
return temp;
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::_internal_mutable_setacstatusreply() {
+inline ::messages::hvac::HVACZone* CabinTemperature::_internal_mutable_zone() {
- if (_impl_.setacstatusreply_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetAcStatusReply>(GetArenaForAllocation());
- _impl_.setacstatusreply_ = p;
+ if (_impl_.zone_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::HVACZone>(GetArenaForAllocation());
+ _impl_.zone_ = p;
}
- return _impl_.setacstatusreply_;
+ return _impl_.zone_;
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::mutable_setacstatusreply() {
- ::messages::SetAcStatusReply* _msg = _internal_mutable_setacstatusreply();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreConditionReponse.setAcStatusReply)
+inline ::messages::hvac::HVACZone* CabinTemperature::mutable_zone() {
+ ::messages::hvac::HVACZone* _msg = _internal_mutable_zone();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinTemperature.zone)
return _msg;
}
-inline void CabinPreConditionReponse::set_allocated_setacstatusreply(::messages::SetAcStatusReply* setacstatusreply) {
+inline void CabinTemperature::set_allocated_zone(::messages::hvac::HVACZone* zone) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.setacstatusreply_;
+ delete _impl_.zone_;
}
- if (setacstatusreply) {
+ if (zone) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setacstatusreply);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(zone);
if (message_arena != submessage_arena) {
- setacstatusreply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, setacstatusreply, submessage_arena);
+ zone = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, zone, submessage_arena);
}
} else {
}
- _impl_.setacstatusreply_ = setacstatusreply;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreConditionReponse.setAcStatusReply)
+ _impl_.zone_ = zone;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinTemperature.zone)
}
-// .messages.SetTemperatureReply setTemperatureReply = 3;
-inline bool CabinPreConditionReponse::_internal_has_settemperaturereply() const {
- return this != internal_default_instance() && _impl_.settemperaturereply_ != nullptr;
-}
-inline bool CabinPreConditionReponse::has_settemperaturereply() const {
- return _internal_has_settemperaturereply();
+// -------------------------------------------------------------------
+
+// CabinConditionStatusPublish
+
+// .google.protobuf.Timestamp event_time = 1;
+inline bool CabinConditionStatusPublish::_internal_has_event_time() const {
+ return this != internal_default_instance() && _impl_.event_time_ != nullptr;
}
-inline void CabinPreConditionReponse::clear_settemperaturereply() {
- if (GetArenaForAllocation() == nullptr && _impl_.settemperaturereply_ != nullptr) {
- delete _impl_.settemperaturereply_;
- }
- _impl_.settemperaturereply_ = nullptr;
+inline bool CabinConditionStatusPublish::has_event_time() const {
+ return _internal_has_event_time();
}
-inline const ::messages::SetTemperatureReply& CabinPreConditionReponse::_internal_settemperaturereply() const {
- const ::messages::SetTemperatureReply* p = _impl_.settemperaturereply_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetTemperatureReply&>(
- ::messages::_SetTemperatureReply_default_instance_);
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CabinConditionStatusPublish::_internal_event_time() const {
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.event_time_;
+ return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Timestamp&>(
+ ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
}
-inline const ::messages::SetTemperatureReply& CabinPreConditionReponse::settemperaturereply() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreConditionReponse.setTemperatureReply)
- return _internal_settemperaturereply();
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CabinConditionStatusPublish::event_time() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinConditionStatusPublish.event_time)
+ return _internal_event_time();
}
-inline void CabinPreConditionReponse::unsafe_arena_set_allocated_settemperaturereply(
- ::messages::SetTemperatureReply* settemperaturereply) {
+inline void CabinConditionStatusPublish::unsafe_arena_set_allocated_event_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* event_time) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.settemperaturereply_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.event_time_);
}
- _impl_.settemperaturereply_ = settemperaturereply;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreConditionReponse.setTemperatureReply)
+ _impl_.event_time_ = event_time;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinConditionStatusPublish.event_time)
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::release_settemperaturereply() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::release_event_time() {
- ::messages::SetTemperatureReply* temp = _impl_.settemperaturereply_;
- _impl_.settemperaturereply_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.event_time_;
+ _impl_.event_time_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1618,140 +2198,215 @@ inline ::messages::SetTemperatureReply* CabinPreConditionReponse::release_settem
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::unsafe_arena_release_settemperaturereply() {
- // @@protoc_insertion_point(field_release:messages.CabinPreConditionReponse.setTemperatureReply)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::unsafe_arena_release_event_time() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinConditionStatusPublish.event_time)
- ::messages::SetTemperatureReply* temp = _impl_.settemperaturereply_;
- _impl_.settemperaturereply_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.event_time_;
+ _impl_.event_time_ = nullptr;
return temp;
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::_internal_mutable_settemperaturereply() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::_internal_mutable_event_time() {
- if (_impl_.settemperaturereply_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetTemperatureReply>(GetArenaForAllocation());
- _impl_.settemperaturereply_ = p;
+ if (_impl_.event_time_ == nullptr) {
+ auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
+ _impl_.event_time_ = p;
}
- return _impl_.settemperaturereply_;
+ return _impl_.event_time_;
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::mutable_settemperaturereply() {
- ::messages::SetTemperatureReply* _msg = _internal_mutable_settemperaturereply();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreConditionReponse.setTemperatureReply)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::mutable_event_time() {
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_event_time();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinConditionStatusPublish.event_time)
return _msg;
}
-inline void CabinPreConditionReponse::set_allocated_settemperaturereply(::messages::SetTemperatureReply* settemperaturereply) {
+inline void CabinConditionStatusPublish::set_allocated_event_time(::PROTOBUF_NAMESPACE_ID::Timestamp* event_time) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.settemperaturereply_;
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.event_time_);
}
- if (settemperaturereply) {
+ if (event_time) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(settemperaturereply);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(event_time));
if (message_arena != submessage_arena) {
- settemperaturereply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, settemperaturereply, submessage_arena);
+ event_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, event_time, submessage_arena);
}
} else {
}
- _impl_.settemperaturereply_ = settemperaturereply;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreConditionReponse.setTemperatureReply)
+ _impl_.event_time_ = event_time;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinConditionStatusPublish.event_time)
}
-// -------------------------------------------------------------------
-
-// SetAcStatusRequest
-
-// .messages.AcStatusEnum desiredStatus = 1;
-inline void SetAcStatusRequest::clear_desiredstatus() {
- _impl_.desiredstatus_ = 0;
+// .messages.hvac.HVACState hvac_state = 2;
+inline bool CabinConditionStatusPublish::_internal_has_hvac_state() const {
+ return this != internal_default_instance() && _impl_.hvac_state_ != nullptr;
}
-inline ::messages::AcStatusEnum SetAcStatusRequest::desiredstatus() const {
- // @@protoc_insertion_point(field_get:messages.SetAcStatusRequest.desiredStatus)
- return _internal_desiredstatus();
+inline bool CabinConditionStatusPublish::has_hvac_state() const {
+ return _internal_has_hvac_state();
}
-inline void SetAcStatusRequest::set_desiredstatus(::messages::AcStatusEnum value) {
- _internal_set_desiredstatus(value);
- // @@protoc_insertion_point(field_set:messages.SetAcStatusRequest.desiredStatus)
+inline void CabinConditionStatusPublish::clear_hvac_state() {
+ if (GetArenaForAllocation() == nullptr && _impl_.hvac_state_ != nullptr) {
+ delete _impl_.hvac_state_;
+ }
+ _impl_.hvac_state_ = nullptr;
}
-inline ::messages::AcStatusEnum SetAcStatusRequest::_internal_desiredstatus() const {
- return static_cast<::messages::AcStatusEnum>(_impl_.desiredstatus_);
+inline const ::messages::hvac::HVACState& CabinConditionStatusPublish::_internal_hvac_state() const {
+ const ::messages::hvac::HVACState* p = _impl_.hvac_state_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::HVACState&>(
+ ::messages::hvac::_HVACState_default_instance_);
}
-inline void SetAcStatusRequest::_internal_set_desiredstatus(::messages::AcStatusEnum value) {
- ;
- _impl_.desiredstatus_ = value;
+inline const ::messages::hvac::HVACState& CabinConditionStatusPublish::hvac_state() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinConditionStatusPublish.hvac_state)
+ return _internal_hvac_state();
}
-
-// -------------------------------------------------------------------
-
-// SetAcStatusReply
-
-// .messages.AcStatusEnum status = 1;
-inline void SetAcStatusReply::clear_status() {
- _impl_.status_ = 0;
+inline void CabinConditionStatusPublish::unsafe_arena_set_allocated_hvac_state(
+ ::messages::hvac::HVACState* hvac_state) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.hvac_state_);
+ }
+ _impl_.hvac_state_ = hvac_state;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinConditionStatusPublish.hvac_state)
}
-inline ::messages::AcStatusEnum SetAcStatusReply::status() const {
- // @@protoc_insertion_point(field_get:messages.SetAcStatusReply.status)
- return _internal_status();
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::release_hvac_state() {
+
+ ::messages::hvac::HVACState* temp = _impl_.hvac_state_;
+ _impl_.hvac_state_ = nullptr;
+#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
+ auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ if (GetArenaForAllocation() == nullptr) { delete old; }
+#else // PROTOBUF_FORCE_COPY_IN_RELEASE
+ if (GetArenaForAllocation() != nullptr) {
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ }
+#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
+ return temp;
}
-inline void SetAcStatusReply::set_status(::messages::AcStatusEnum value) {
- _internal_set_status(value);
- // @@protoc_insertion_point(field_set:messages.SetAcStatusReply.status)
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::unsafe_arena_release_hvac_state() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinConditionStatusPublish.hvac_state)
+
+ ::messages::hvac::HVACState* temp = _impl_.hvac_state_;
+ _impl_.hvac_state_ = nullptr;
+ return temp;
}
-inline ::messages::AcStatusEnum SetAcStatusReply::_internal_status() const {
- return static_cast<::messages::AcStatusEnum>(_impl_.status_);
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::_internal_mutable_hvac_state() {
+
+ if (_impl_.hvac_state_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::HVACState>(GetArenaForAllocation());
+ _impl_.hvac_state_ = p;
+ }
+ return _impl_.hvac_state_;
}
-inline void SetAcStatusReply::_internal_set_status(::messages::AcStatusEnum value) {
- ;
- _impl_.status_ = value;
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::mutable_hvac_state() {
+ ::messages::hvac::HVACState* _msg = _internal_mutable_hvac_state();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinConditionStatusPublish.hvac_state)
+ return _msg;
}
+inline void CabinConditionStatusPublish::set_allocated_hvac_state(::messages::hvac::HVACState* hvac_state) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete _impl_.hvac_state_;
+ }
+ if (hvac_state) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(hvac_state);
+ if (message_arena != submessage_arena) {
+ hvac_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, hvac_state, submessage_arena);
+ }
-// -------------------------------------------------------------------
+ } else {
-// SetTemperatureRequest
+ }
+ _impl_.hvac_state_ = hvac_state;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinConditionStatusPublish.hvac_state)
+}
-// float temperature = 1;
-inline void SetTemperatureRequest::clear_temperature() {
- _impl_.temperature_ = 0;
+// .messages.hvac.CabinTemperature cabin_temperature = 3;
+inline bool CabinConditionStatusPublish::_internal_has_cabin_temperature() const {
+ return this != internal_default_instance() && _impl_.cabin_temperature_ != nullptr;
}
-inline float SetTemperatureRequest::temperature() const {
- // @@protoc_insertion_point(field_get:messages.SetTemperatureRequest.temperature)
- return _internal_temperature();
+inline bool CabinConditionStatusPublish::has_cabin_temperature() const {
+ return _internal_has_cabin_temperature();
}
-inline void SetTemperatureRequest::set_temperature(float value) {
- _internal_set_temperature(value);
- // @@protoc_insertion_point(field_set:messages.SetTemperatureRequest.temperature)
+inline void CabinConditionStatusPublish::clear_cabin_temperature() {
+ if (GetArenaForAllocation() == nullptr && _impl_.cabin_temperature_ != nullptr) {
+ delete _impl_.cabin_temperature_;
+ }
+ _impl_.cabin_temperature_ = nullptr;
}
-inline float SetTemperatureRequest::_internal_temperature() const {
- return _impl_.temperature_;
+inline const ::messages::hvac::CabinTemperature& CabinConditionStatusPublish::_internal_cabin_temperature() const {
+ const ::messages::hvac::CabinTemperature* p = _impl_.cabin_temperature_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::CabinTemperature&>(
+ ::messages::hvac::_CabinTemperature_default_instance_);
}
-inline void SetTemperatureRequest::_internal_set_temperature(float value) {
- ;
- _impl_.temperature_ = value;
+inline const ::messages::hvac::CabinTemperature& CabinConditionStatusPublish::cabin_temperature() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
+ return _internal_cabin_temperature();
}
-
-// -------------------------------------------------------------------
-
-// SetTemperatureReply
-
-// .messages.SetTempStatusEnum tempStatus = 1;
-inline void SetTemperatureReply::clear_tempstatus() {
- _impl_.tempstatus_ = 0;
+inline void CabinConditionStatusPublish::unsafe_arena_set_allocated_cabin_temperature(
+ ::messages::hvac::CabinTemperature* cabin_temperature) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cabin_temperature_);
+ }
+ _impl_.cabin_temperature_ = cabin_temperature;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
}
-inline ::messages::SetTempStatusEnum SetTemperatureReply::tempstatus() const {
- // @@protoc_insertion_point(field_get:messages.SetTemperatureReply.tempStatus)
- return _internal_tempstatus();
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::release_cabin_temperature() {
+
+ ::messages::hvac::CabinTemperature* temp = _impl_.cabin_temperature_;
+ _impl_.cabin_temperature_ = nullptr;
+#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
+ auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ if (GetArenaForAllocation() == nullptr) { delete old; }
+#else // PROTOBUF_FORCE_COPY_IN_RELEASE
+ if (GetArenaForAllocation() != nullptr) {
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ }
+#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
+ return temp;
}
-inline void SetTemperatureReply::set_tempstatus(::messages::SetTempStatusEnum value) {
- _internal_set_tempstatus(value);
- // @@protoc_insertion_point(field_set:messages.SetTemperatureReply.tempStatus)
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::unsafe_arena_release_cabin_temperature() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
+
+ ::messages::hvac::CabinTemperature* temp = _impl_.cabin_temperature_;
+ _impl_.cabin_temperature_ = nullptr;
+ return temp;
}
-inline ::messages::SetTempStatusEnum SetTemperatureReply::_internal_tempstatus() const {
- return static_cast<::messages::SetTempStatusEnum>(_impl_.tempstatus_);
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::_internal_mutable_cabin_temperature() {
+
+ if (_impl_.cabin_temperature_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::CabinTemperature>(GetArenaForAllocation());
+ _impl_.cabin_temperature_ = p;
+ }
+ return _impl_.cabin_temperature_;
}
-inline void SetTemperatureReply::_internal_set_tempstatus(::messages::SetTempStatusEnum value) {
- ;
- _impl_.tempstatus_ = value;
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::mutable_cabin_temperature() {
+ ::messages::hvac::CabinTemperature* _msg = _internal_mutable_cabin_temperature();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
+ return _msg;
+}
+inline void CabinConditionStatusPublish::set_allocated_cabin_temperature(::messages::hvac::CabinTemperature* cabin_temperature) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete _impl_.cabin_temperature_;
+ }
+ if (cabin_temperature) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cabin_temperature);
+ if (message_arena != submessage_arena) {
+ cabin_temperature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, cabin_temperature, submessage_arena);
+ }
+
+ } else {
+
+ }
+ _impl_.cabin_temperature_ = cabin_temperature;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
}
#ifdef __GNUC__
@@ -1759,22 +2414,29 @@ inline void SetTemperatureReply::_internal_set_tempstatus(::messages::SetTempSta
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
+} // namespace hvac
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
-struct is_proto_enum<::messages::AcStatusEnum> : std::true_type {};
+struct is_proto_enum<::messages::hvac::HVACZone_Zone> : std::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor<::messages::hvac::HVACZone_Zone>() {
+ return ::messages::hvac::HVACZone_Zone_descriptor();
+}
+template <>
+struct is_proto_enum<::messages::hvac::PreconditionResponse_Status> : std::true_type {};
template <>
-inline const EnumDescriptor* GetEnumDescriptor<::messages::AcStatusEnum>() {
- return ::messages::AcStatusEnum_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor<::messages::hvac::PreconditionResponse_Status>() {
+ return ::messages::hvac::PreconditionResponse_Status_descriptor();
}
template <>
-struct is_proto_enum<::messages::SetTempStatusEnum> : std::true_type {};
+struct is_proto_enum<::messages::hvac::HVACState_State> : std::true_type {};
template <>
-inline const EnumDescriptor* GetEnumDescriptor<::messages::SetTempStatusEnum>() {
- return ::messages::SetTempStatusEnum_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor<::messages::hvac::HVACState_State>() {
+ return ::messages::hvac::HVACState_State_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE
diff --git a/build/generated/source/proto/main/doc/ v2c.md b/build/generated/source/proto/main/doc/ v2c.md
index 0d16428..44187a6 100644
--- a/build/generated/source/proto/main/doc/ v2c.md
+++ b/build/generated/source/proto/main/doc/ v2c.md
@@ -15,15 +15,17 @@
- [ResponseStatusEnum](#messages-ResponseStatusEnum)
- [messages/VehicleRemoteHvac.proto](#messages_VehicleRemoteHvac-proto)
- - [CabinPreConditionReponse](#messages-CabinPreConditionReponse)
- - [CabinPreconditionRequest](#messages-CabinPreconditionRequest)
- - [SetAcStatusReply](#messages-SetAcStatusReply)
- - [SetAcStatusRequest](#messages-SetAcStatusRequest)
- - [SetTemperatureReply](#messages-SetTemperatureReply)
- - [SetTemperatureRequest](#messages-SetTemperatureRequest)
+ - [CabinConditionStatusPublish](#messages-hvac-CabinConditionStatusPublish)
+ - [CabinTemperature](#messages-hvac-CabinTemperature)
+ - [HVACState](#messages-hvac-HVACState)
+ - [HVACZone](#messages-hvac-HVACZone)
+ - [PreconditionRequest](#messages-hvac-PreconditionRequest)
+ - [PreconditionResponse](#messages-hvac-PreconditionResponse)
+ - [Temperature](#messages-hvac-Temperature)
- - [AcStatusEnum](#messages-AcStatusEnum)
- - [SetTempStatusEnum](#messages-SetTempStatusEnum)
+ - [HVACState.State](#messages-hvac-HVACState-State)
+ - [HVACZone.Zone](#messages-hvac-HVACZone-Zone)
+ - [PreconditionResponse.Status](#messages-hvac-PreconditionResponse-Status)
- [vss/vspec.proto](#vss_vspec-proto)
- [Vehicle](#vss-Vehicle)
@@ -451,94 +453,113 @@ services deeper in the vehicle or the cloud services.
-<a name="messages-CabinPreConditionReponse"></a>
+<a name="messages-hvac-CabinConditionStatusPublish"></a>
-### CabinPreConditionReponse
+### CabinConditionStatusPublish
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| messageHeader | [VehicleMessageHeading](#messages-VehicleMessageHeading) | | |
-| setAcStatusReply | [SetAcStatusReply](#messages-SetAcStatusReply) | | |
-| setTemperatureReply | [SetTemperatureReply](#messages-SetTemperatureReply) | | |
+| event_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Time of the event |
+| hvac_state | [HVACState](#messages-hvac-HVACState) | | Current state of the HVAC |
+| cabin_temperature | [CabinTemperature](#messages-hvac-CabinTemperature) | | Current cabin temperature |
-<a name="messages-CabinPreconditionRequest"></a>
+<a name="messages-hvac-CabinTemperature"></a>
-### CabinPreconditionRequest
+### CabinTemperature
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| messageHeader | [VehicleMessageHeading](#messages-VehicleMessageHeading) | | |
-| setAcStatus | [SetAcStatusRequest](#messages-SetAcStatusRequest) | | |
-| setTemp | [SetTemperatureRequest](#messages-SetTemperatureRequest) | | |
+| temperature | [Temperature](#messages-hvac-Temperature) | | Current cabin temperature |
+| zone | [HVACZone](#messages-hvac-HVACZone) | | Zone of the reported temperature |
-<a name="messages-SetAcStatusReply"></a>
+<a name="messages-hvac-HVACState"></a>
+
+### HVACState
-### SetAcStatusReply
-@brief
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| status | [AcStatusEnum](#messages-AcStatusEnum) | | |
+| state | [HVACState.State](#messages-hvac-HVACState-State) | | Current state of the HVAC |
+| current_zone | [HVACZone](#messages-hvac-HVACZone) | | Current active zone |
-<a name="messages-SetAcStatusRequest"></a>
+<a name="messages-hvac-HVACZone"></a>
-### SetAcStatusRequest
+### HVACZone
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| desiredStatus | [AcStatusEnum](#messages-AcStatusEnum) | | The desired status of A/C |
+| zone | [HVACZone.Zone](#messages-hvac-HVACZone-Zone) | | HVAC Zone |
+| target_temperature | [Temperature](#messages-hvac-Temperature) | | Target temperature |
+
+<a name="messages-hvac-PreconditionRequest"></a>
-<a name="messages-SetTemperatureReply"></a>
+### PreconditionRequest
-### SetTemperatureReply
-@brief
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| tempStatus | [SetTempStatusEnum](#messages-SetTempStatusEnum) | | |
+| hvac_zones | [HVACZone](#messages-hvac-HVACZone) | repeated | List of HVAC zones to precondition |
+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | For scheduled preconditioning, set the start_time to the desired future time. For on-demand preconditioning, leave the start_time unset. |
+
+<a name="messages-hvac-PreconditionResponse"></a>
-<a name="messages-SetTemperatureRequest"></a>
+### PreconditionResponse
-### SetTemperatureRequest
-@brief
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| temperature | [float](#float) | | The desired cabin temperature in degree Celsius |
+| status | [PreconditionResponse.Status](#messages-hvac-PreconditionResponse-Status) | | Status of the precondition request |
+| message | [string](#string) | | Optional message |
+
+
+
+
+
+
+<a name="messages-hvac-Temperature"></a>
+
+### Temperature
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| value | [float](#float) | | Temperature value |
+| unit | [string](#string) | | Temperature unit (e.g., &#34;Celsius&#34;, &#34;Fahrenheit&#34;) |
@@ -547,28 +568,44 @@ services deeper in the vehicle or the cloud services.
-<a name="messages-AcStatusEnum"></a>
+<a name="messages-hvac-HVACState-State"></a>
+
+### HVACState.State
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| OFF | 0 | |
+| HEATING | 1 | |
+| COOLING | 2 | |
+| IDLE | 3 | |
+
+
+
+<a name="messages-hvac-HVACZone-Zone"></a>
-### AcStatusEnum
+### HVACZone.Zone
| Name | Number | Description |
| ---- | ------ | ----------- |
-| ON | 0 | |
-| OFF | 1 | |
-| UKNONWN_ERROR | 2 | |
+| DRIVER | 0 | |
+| PASSENGER | 1 | |
+| REAR_LEFT | 2 | |
+| REAR_RIGHT | 3 | |
-<a name="messages-SetTempStatusEnum"></a>
+<a name="messages-hvac-PreconditionResponse-Status"></a>
-### SetTempStatusEnum
+### PreconditionResponse.Status
| Name | Number | Description |
| ---- | ------ | ----------- |
-| TEMP_SUCCESS | 0 | |
-| TEMP_ERROR | 1 | |
+| SUCCESS | 0 | |
+| FAILURE | 1 | |
+| PENDING | 2 | |
diff --git a/build/generated/source/proto/main/java/messages/VehicleRemoteHvac.java b/build/generated/source/proto/main/java/messages/VehicleRemoteHvac.java
deleted file mode 100644
index d8b05ff..0000000
--- a/build/generated/source/proto/main/java/messages/VehicleRemoteHvac.java
+++ /dev/null
@@ -1,4222 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: messages/VehicleRemoteHvac.proto
-
-package messages;
-
-public final class VehicleRemoteHvac {
- private VehicleRemoteHvac() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- /**
- * Protobuf enum {@code messages.AcStatusEnum}
- */
- public enum AcStatusEnum
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <code>ON = 0;</code>
- */
- ON(0),
- /**
- * <code>OFF = 1;</code>
- */
- OFF(1),
- /**
- * <code>UKNONWN_ERROR = 2;</code>
- */
- UKNONWN_ERROR(2),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * <code>ON = 0;</code>
- */
- public static final int ON_VALUE = 0;
- /**
- * <code>OFF = 1;</code>
- */
- public static final int OFF_VALUE = 1;
- /**
- * <code>UKNONWN_ERROR = 2;</code>
- */
- public static final int UKNONWN_ERROR_VALUE = 2;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static AcStatusEnum valueOf(int value) {
- return forNumber(value);
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static AcStatusEnum forNumber(int value) {
- switch (value) {
- case 0: return ON;
- case 1: return OFF;
- case 2: return UKNONWN_ERROR;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<AcStatusEnum>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- AcStatusEnum> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<AcStatusEnum>() {
- public AcStatusEnum findValueByNumber(int number) {
- return AcStatusEnum.forNumber(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalStateException(
- "Can't get the descriptor of an unrecognized enum value.");
- }
- return getDescriptor().getValues().get(ordinal());
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final AcStatusEnum[] VALUES = values();
-
- public static AcStatusEnum valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- if (desc.getIndex() == -1) {
- return UNRECOGNIZED;
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int value;
-
- private AcStatusEnum(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:messages.AcStatusEnum)
- }
-
- /**
- * Protobuf enum {@code messages.SetTempStatusEnum}
- */
- public enum SetTempStatusEnum
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <code>TEMP_SUCCESS = 0;</code>
- */
- TEMP_SUCCESS(0),
- /**
- * <code>TEMP_ERROR = 1;</code>
- */
- TEMP_ERROR(1),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * <code>TEMP_SUCCESS = 0;</code>
- */
- public static final int TEMP_SUCCESS_VALUE = 0;
- /**
- * <code>TEMP_ERROR = 1;</code>
- */
- public static final int TEMP_ERROR_VALUE = 1;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static SetTempStatusEnum valueOf(int value) {
- return forNumber(value);
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static SetTempStatusEnum forNumber(int value) {
- switch (value) {
- case 0: return TEMP_SUCCESS;
- case 1: return TEMP_ERROR;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<SetTempStatusEnum>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- SetTempStatusEnum> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<SetTempStatusEnum>() {
- public SetTempStatusEnum findValueByNumber(int number) {
- return SetTempStatusEnum.forNumber(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalStateException(
- "Can't get the descriptor of an unrecognized enum value.");
- }
- return getDescriptor().getValues().get(ordinal());
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.getDescriptor().getEnumTypes().get(1);
- }
-
- private static final SetTempStatusEnum[] VALUES = values();
-
- public static SetTempStatusEnum valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- if (desc.getIndex() == -1) {
- return UNRECOGNIZED;
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int value;
-
- private SetTempStatusEnum(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:messages.SetTempStatusEnum)
- }
-
- public interface CabinPreconditionRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.CabinPreconditionRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return Whether the messageHeader field is set.
- */
- boolean hasMessageHeader();
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return The messageHeader.
- */
- messages.VehicleMessageHeader.VehicleMessageHeading getMessageHeader();
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder getMessageHeaderOrBuilder();
-
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- * @return Whether the setAcStatus field is set.
- */
- boolean hasSetAcStatus();
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- * @return The setAcStatus.
- */
- messages.VehicleRemoteHvac.SetAcStatusRequest getSetAcStatus();
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- messages.VehicleRemoteHvac.SetAcStatusRequestOrBuilder getSetAcStatusOrBuilder();
-
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- * @return Whether the setTemp field is set.
- */
- boolean hasSetTemp();
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- * @return The setTemp.
- */
- messages.VehicleRemoteHvac.SetTemperatureRequest getSetTemp();
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- messages.VehicleRemoteHvac.SetTemperatureRequestOrBuilder getSetTempOrBuilder();
- }
- /**
- * Protobuf type {@code messages.CabinPreconditionRequest}
- */
- public static final class CabinPreconditionRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.CabinPreconditionRequest)
- CabinPreconditionRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use CabinPreconditionRequest.newBuilder() to construct.
- private CabinPreconditionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private CabinPreconditionRequest() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new CabinPreconditionRequest();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreconditionRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreconditionRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.CabinPreconditionRequest.class, messages.VehicleRemoteHvac.CabinPreconditionRequest.Builder.class);
- }
-
- public static final int MESSAGEHEADER_FIELD_NUMBER = 1;
- private messages.VehicleMessageHeader.VehicleMessageHeading messageHeader_;
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return Whether the messageHeader field is set.
- */
- @java.lang.Override
- public boolean hasMessageHeader() {
- return messageHeader_ != null;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return The messageHeader.
- */
- @java.lang.Override
- public messages.VehicleMessageHeader.VehicleMessageHeading getMessageHeader() {
- return messageHeader_ == null ? messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- @java.lang.Override
- public messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder getMessageHeaderOrBuilder() {
- return messageHeader_ == null ? messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- }
-
- public static final int SETACSTATUS_FIELD_NUMBER = 2;
- private messages.VehicleRemoteHvac.SetAcStatusRequest setAcStatus_;
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- * @return Whether the setAcStatus field is set.
- */
- @java.lang.Override
- public boolean hasSetAcStatus() {
- return setAcStatus_ != null;
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- * @return The setAcStatus.
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusRequest getSetAcStatus() {
- return setAcStatus_ == null ? messages.VehicleRemoteHvac.SetAcStatusRequest.getDefaultInstance() : setAcStatus_;
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusRequestOrBuilder getSetAcStatusOrBuilder() {
- return setAcStatus_ == null ? messages.VehicleRemoteHvac.SetAcStatusRequest.getDefaultInstance() : setAcStatus_;
- }
-
- public static final int SETTEMP_FIELD_NUMBER = 3;
- private messages.VehicleRemoteHvac.SetTemperatureRequest setTemp_;
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- * @return Whether the setTemp field is set.
- */
- @java.lang.Override
- public boolean hasSetTemp() {
- return setTemp_ != null;
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- * @return The setTemp.
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureRequest getSetTemp() {
- return setTemp_ == null ? messages.VehicleRemoteHvac.SetTemperatureRequest.getDefaultInstance() : setTemp_;
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureRequestOrBuilder getSetTempOrBuilder() {
- return setTemp_ == null ? messages.VehicleRemoteHvac.SetTemperatureRequest.getDefaultInstance() : setTemp_;
- }
-
- 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 (messageHeader_ != null) {
- output.writeMessage(1, getMessageHeader());
- }
- if (setAcStatus_ != null) {
- output.writeMessage(2, getSetAcStatus());
- }
- if (setTemp_ != null) {
- output.writeMessage(3, getSetTemp());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (messageHeader_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getMessageHeader());
- }
- if (setAcStatus_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getSetAcStatus());
- }
- if (setTemp_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getSetTemp());
- }
- 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 messages.VehicleRemoteHvac.CabinPreconditionRequest)) {
- return super.equals(obj);
- }
- messages.VehicleRemoteHvac.CabinPreconditionRequest other = (messages.VehicleRemoteHvac.CabinPreconditionRequest) obj;
-
- if (hasMessageHeader() != other.hasMessageHeader()) return false;
- if (hasMessageHeader()) {
- if (!getMessageHeader()
- .equals(other.getMessageHeader())) return false;
- }
- if (hasSetAcStatus() != other.hasSetAcStatus()) return false;
- if (hasSetAcStatus()) {
- if (!getSetAcStatus()
- .equals(other.getSetAcStatus())) return false;
- }
- if (hasSetTemp() != other.hasSetTemp()) return false;
- if (hasSetTemp()) {
- if (!getSetTemp()
- .equals(other.getSetTemp())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasMessageHeader()) {
- hash = (37 * hash) + MESSAGEHEADER_FIELD_NUMBER;
- hash = (53 * hash) + getMessageHeader().hashCode();
- }
- if (hasSetAcStatus()) {
- hash = (37 * hash) + SETACSTATUS_FIELD_NUMBER;
- hash = (53 * hash) + getSetAcStatus().hashCode();
- }
- if (hasSetTemp()) {
- hash = (37 * hash) + SETTEMP_FIELD_NUMBER;
- hash = (53 * hash) + getSetTemp().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest 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 messages.VehicleRemoteHvac.CabinPreconditionRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest 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 messages.VehicleRemoteHvac.CabinPreconditionRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest 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(messages.VehicleRemoteHvac.CabinPreconditionRequest 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.CabinPreconditionRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.CabinPreconditionRequest)
- messages.VehicleRemoteHvac.CabinPreconditionRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreconditionRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreconditionRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.CabinPreconditionRequest.class, messages.VehicleRemoteHvac.CabinPreconditionRequest.Builder.class);
- }
-
- // Construct using messages.VehicleRemoteHvac.CabinPreconditionRequest.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- messageHeader_ = null;
- if (messageHeaderBuilder_ != null) {
- messageHeaderBuilder_.dispose();
- messageHeaderBuilder_ = null;
- }
- setAcStatus_ = null;
- if (setAcStatusBuilder_ != null) {
- setAcStatusBuilder_.dispose();
- setAcStatusBuilder_ = null;
- }
- setTemp_ = null;
- if (setTempBuilder_ != null) {
- setTempBuilder_.dispose();
- setTempBuilder_ = null;
- }
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreconditionRequest_descriptor;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreconditionRequest getDefaultInstanceForType() {
- return messages.VehicleRemoteHvac.CabinPreconditionRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreconditionRequest build() {
- messages.VehicleRemoteHvac.CabinPreconditionRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreconditionRequest buildPartial() {
- messages.VehicleRemoteHvac.CabinPreconditionRequest result = new messages.VehicleRemoteHvac.CabinPreconditionRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(messages.VehicleRemoteHvac.CabinPreconditionRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.messageHeader_ = messageHeaderBuilder_ == null
- ? messageHeader_
- : messageHeaderBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.setAcStatus_ = setAcStatusBuilder_ == null
- ? setAcStatus_
- : setAcStatusBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.setTemp_ = setTempBuilder_ == null
- ? setTemp_
- : setTempBuilder_.build();
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof messages.VehicleRemoteHvac.CabinPreconditionRequest) {
- return mergeFrom((messages.VehicleRemoteHvac.CabinPreconditionRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(messages.VehicleRemoteHvac.CabinPreconditionRequest other) {
- if (other == messages.VehicleRemoteHvac.CabinPreconditionRequest.getDefaultInstance()) return this;
- if (other.hasMessageHeader()) {
- mergeMessageHeader(other.getMessageHeader());
- }
- if (other.hasSetAcStatus()) {
- mergeSetAcStatus(other.getSetAcStatus());
- }
- if (other.hasSetTemp()) {
- mergeSetTemp(other.getSetTemp());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getMessageHeaderFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getSetAcStatusFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- input.readMessage(
- getSetTempFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- 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 messages.VehicleMessageHeader.VehicleMessageHeading messageHeader_;
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleMessageHeader.VehicleMessageHeading, messages.VehicleMessageHeader.VehicleMessageHeading.Builder, messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder> messageHeaderBuilder_;
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return Whether the messageHeader field is set.
- */
- public boolean hasMessageHeader() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return The messageHeader.
- */
- public messages.VehicleMessageHeader.VehicleMessageHeading getMessageHeader() {
- if (messageHeaderBuilder_ == null) {
- return messageHeader_ == null ? messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- } else {
- return messageHeaderBuilder_.getMessage();
- }
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder setMessageHeader(messages.VehicleMessageHeader.VehicleMessageHeading value) {
- if (messageHeaderBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- messageHeader_ = value;
- } else {
- messageHeaderBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder setMessageHeader(
- messages.VehicleMessageHeader.VehicleMessageHeading.Builder builderForValue) {
- if (messageHeaderBuilder_ == null) {
- messageHeader_ = builderForValue.build();
- } else {
- messageHeaderBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder mergeMessageHeader(messages.VehicleMessageHeader.VehicleMessageHeading value) {
- if (messageHeaderBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- messageHeader_ != null &&
- messageHeader_ != messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance()) {
- getMessageHeaderBuilder().mergeFrom(value);
- } else {
- messageHeader_ = value;
- }
- } else {
- messageHeaderBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder clearMessageHeader() {
- bitField0_ = (bitField0_ & ~0x00000001);
- messageHeader_ = null;
- if (messageHeaderBuilder_ != null) {
- messageHeaderBuilder_.dispose();
- messageHeaderBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public messages.VehicleMessageHeader.VehicleMessageHeading.Builder getMessageHeaderBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getMessageHeaderFieldBuilder().getBuilder();
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder getMessageHeaderOrBuilder() {
- if (messageHeaderBuilder_ != null) {
- return messageHeaderBuilder_.getMessageOrBuilder();
- } else {
- return messageHeader_ == null ?
- messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- }
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleMessageHeader.VehicleMessageHeading, messages.VehicleMessageHeader.VehicleMessageHeading.Builder, messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder>
- getMessageHeaderFieldBuilder() {
- if (messageHeaderBuilder_ == null) {
- messageHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleMessageHeader.VehicleMessageHeading, messages.VehicleMessageHeader.VehicleMessageHeading.Builder, messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder>(
- getMessageHeader(),
- getParentForChildren(),
- isClean());
- messageHeader_ = null;
- }
- return messageHeaderBuilder_;
- }
-
- private messages.VehicleRemoteHvac.SetAcStatusRequest setAcStatus_;
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetAcStatusRequest, messages.VehicleRemoteHvac.SetAcStatusRequest.Builder, messages.VehicleRemoteHvac.SetAcStatusRequestOrBuilder> setAcStatusBuilder_;
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- * @return Whether the setAcStatus field is set.
- */
- public boolean hasSetAcStatus() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- * @return The setAcStatus.
- */
- public messages.VehicleRemoteHvac.SetAcStatusRequest getSetAcStatus() {
- if (setAcStatusBuilder_ == null) {
- return setAcStatus_ == null ? messages.VehicleRemoteHvac.SetAcStatusRequest.getDefaultInstance() : setAcStatus_;
- } else {
- return setAcStatusBuilder_.getMessage();
- }
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- public Builder setSetAcStatus(messages.VehicleRemoteHvac.SetAcStatusRequest value) {
- if (setAcStatusBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- setAcStatus_ = value;
- } else {
- setAcStatusBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- public Builder setSetAcStatus(
- messages.VehicleRemoteHvac.SetAcStatusRequest.Builder builderForValue) {
- if (setAcStatusBuilder_ == null) {
- setAcStatus_ = builderForValue.build();
- } else {
- setAcStatusBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- public Builder mergeSetAcStatus(messages.VehicleRemoteHvac.SetAcStatusRequest value) {
- if (setAcStatusBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- setAcStatus_ != null &&
- setAcStatus_ != messages.VehicleRemoteHvac.SetAcStatusRequest.getDefaultInstance()) {
- getSetAcStatusBuilder().mergeFrom(value);
- } else {
- setAcStatus_ = value;
- }
- } else {
- setAcStatusBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- public Builder clearSetAcStatus() {
- bitField0_ = (bitField0_ & ~0x00000002);
- setAcStatus_ = null;
- if (setAcStatusBuilder_ != null) {
- setAcStatusBuilder_.dispose();
- setAcStatusBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- public messages.VehicleRemoteHvac.SetAcStatusRequest.Builder getSetAcStatusBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getSetAcStatusFieldBuilder().getBuilder();
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- public messages.VehicleRemoteHvac.SetAcStatusRequestOrBuilder getSetAcStatusOrBuilder() {
- if (setAcStatusBuilder_ != null) {
- return setAcStatusBuilder_.getMessageOrBuilder();
- } else {
- return setAcStatus_ == null ?
- messages.VehicleRemoteHvac.SetAcStatusRequest.getDefaultInstance() : setAcStatus_;
- }
- }
- /**
- * <code>.messages.SetAcStatusRequest setAcStatus = 2;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetAcStatusRequest, messages.VehicleRemoteHvac.SetAcStatusRequest.Builder, messages.VehicleRemoteHvac.SetAcStatusRequestOrBuilder>
- getSetAcStatusFieldBuilder() {
- if (setAcStatusBuilder_ == null) {
- setAcStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetAcStatusRequest, messages.VehicleRemoteHvac.SetAcStatusRequest.Builder, messages.VehicleRemoteHvac.SetAcStatusRequestOrBuilder>(
- getSetAcStatus(),
- getParentForChildren(),
- isClean());
- setAcStatus_ = null;
- }
- return setAcStatusBuilder_;
- }
-
- private messages.VehicleRemoteHvac.SetTemperatureRequest setTemp_;
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetTemperatureRequest, messages.VehicleRemoteHvac.SetTemperatureRequest.Builder, messages.VehicleRemoteHvac.SetTemperatureRequestOrBuilder> setTempBuilder_;
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- * @return Whether the setTemp field is set.
- */
- public boolean hasSetTemp() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- * @return The setTemp.
- */
- public messages.VehicleRemoteHvac.SetTemperatureRequest getSetTemp() {
- if (setTempBuilder_ == null) {
- return setTemp_ == null ? messages.VehicleRemoteHvac.SetTemperatureRequest.getDefaultInstance() : setTemp_;
- } else {
- return setTempBuilder_.getMessage();
- }
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- public Builder setSetTemp(messages.VehicleRemoteHvac.SetTemperatureRequest value) {
- if (setTempBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- setTemp_ = value;
- } else {
- setTempBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- public Builder setSetTemp(
- messages.VehicleRemoteHvac.SetTemperatureRequest.Builder builderForValue) {
- if (setTempBuilder_ == null) {
- setTemp_ = builderForValue.build();
- } else {
- setTempBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- public Builder mergeSetTemp(messages.VehicleRemoteHvac.SetTemperatureRequest value) {
- if (setTempBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0) &&
- setTemp_ != null &&
- setTemp_ != messages.VehicleRemoteHvac.SetTemperatureRequest.getDefaultInstance()) {
- getSetTempBuilder().mergeFrom(value);
- } else {
- setTemp_ = value;
- }
- } else {
- setTempBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- public Builder clearSetTemp() {
- bitField0_ = (bitField0_ & ~0x00000004);
- setTemp_ = null;
- if (setTempBuilder_ != null) {
- setTempBuilder_.dispose();
- setTempBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- public messages.VehicleRemoteHvac.SetTemperatureRequest.Builder getSetTempBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getSetTempFieldBuilder().getBuilder();
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- public messages.VehicleRemoteHvac.SetTemperatureRequestOrBuilder getSetTempOrBuilder() {
- if (setTempBuilder_ != null) {
- return setTempBuilder_.getMessageOrBuilder();
- } else {
- return setTemp_ == null ?
- messages.VehicleRemoteHvac.SetTemperatureRequest.getDefaultInstance() : setTemp_;
- }
- }
- /**
- * <code>.messages.SetTemperatureRequest setTemp = 3;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetTemperatureRequest, messages.VehicleRemoteHvac.SetTemperatureRequest.Builder, messages.VehicleRemoteHvac.SetTemperatureRequestOrBuilder>
- getSetTempFieldBuilder() {
- if (setTempBuilder_ == null) {
- setTempBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetTemperatureRequest, messages.VehicleRemoteHvac.SetTemperatureRequest.Builder, messages.VehicleRemoteHvac.SetTemperatureRequestOrBuilder>(
- getSetTemp(),
- getParentForChildren(),
- isClean());
- setTemp_ = null;
- }
- return setTempBuilder_;
- }
- @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.CabinPreconditionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:messages.CabinPreconditionRequest)
- private static final messages.VehicleRemoteHvac.CabinPreconditionRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new messages.VehicleRemoteHvac.CabinPreconditionRequest();
- }
-
- public static messages.VehicleRemoteHvac.CabinPreconditionRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<CabinPreconditionRequest>
- PARSER = new com.google.protobuf.AbstractParser<CabinPreconditionRequest>() {
- @java.lang.Override
- public CabinPreconditionRequest 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<CabinPreconditionRequest> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<CabinPreconditionRequest> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreconditionRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface CabinPreConditionReponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.CabinPreConditionReponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return Whether the messageHeader field is set.
- */
- boolean hasMessageHeader();
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return The messageHeader.
- */
- messages.VehicleMessageHeader.VehicleMessageHeading getMessageHeader();
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder getMessageHeaderOrBuilder();
-
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- * @return Whether the setAcStatusReply field is set.
- */
- boolean hasSetAcStatusReply();
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- * @return The setAcStatusReply.
- */
- messages.VehicleRemoteHvac.SetAcStatusReply getSetAcStatusReply();
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- messages.VehicleRemoteHvac.SetAcStatusReplyOrBuilder getSetAcStatusReplyOrBuilder();
-
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- * @return Whether the setTemperatureReply field is set.
- */
- boolean hasSetTemperatureReply();
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- * @return The setTemperatureReply.
- */
- messages.VehicleRemoteHvac.SetTemperatureReply getSetTemperatureReply();
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- messages.VehicleRemoteHvac.SetTemperatureReplyOrBuilder getSetTemperatureReplyOrBuilder();
- }
- /**
- * Protobuf type {@code messages.CabinPreConditionReponse}
- */
- public static final class CabinPreConditionReponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.CabinPreConditionReponse)
- CabinPreConditionReponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use CabinPreConditionReponse.newBuilder() to construct.
- private CabinPreConditionReponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private CabinPreConditionReponse() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new CabinPreConditionReponse();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreConditionReponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreConditionReponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.CabinPreConditionReponse.class, messages.VehicleRemoteHvac.CabinPreConditionReponse.Builder.class);
- }
-
- public static final int MESSAGEHEADER_FIELD_NUMBER = 1;
- private messages.VehicleMessageHeader.VehicleMessageHeading messageHeader_;
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return Whether the messageHeader field is set.
- */
- @java.lang.Override
- public boolean hasMessageHeader() {
- return messageHeader_ != null;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return The messageHeader.
- */
- @java.lang.Override
- public messages.VehicleMessageHeader.VehicleMessageHeading getMessageHeader() {
- return messageHeader_ == null ? messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- @java.lang.Override
- public messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder getMessageHeaderOrBuilder() {
- return messageHeader_ == null ? messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- }
-
- public static final int SETACSTATUSREPLY_FIELD_NUMBER = 2;
- private messages.VehicleRemoteHvac.SetAcStatusReply setAcStatusReply_;
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- * @return Whether the setAcStatusReply field is set.
- */
- @java.lang.Override
- public boolean hasSetAcStatusReply() {
- return setAcStatusReply_ != null;
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- * @return The setAcStatusReply.
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusReply getSetAcStatusReply() {
- return setAcStatusReply_ == null ? messages.VehicleRemoteHvac.SetAcStatusReply.getDefaultInstance() : setAcStatusReply_;
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusReplyOrBuilder getSetAcStatusReplyOrBuilder() {
- return setAcStatusReply_ == null ? messages.VehicleRemoteHvac.SetAcStatusReply.getDefaultInstance() : setAcStatusReply_;
- }
-
- public static final int SETTEMPERATUREREPLY_FIELD_NUMBER = 3;
- private messages.VehicleRemoteHvac.SetTemperatureReply setTemperatureReply_;
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- * @return Whether the setTemperatureReply field is set.
- */
- @java.lang.Override
- public boolean hasSetTemperatureReply() {
- return setTemperatureReply_ != null;
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- * @return The setTemperatureReply.
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureReply getSetTemperatureReply() {
- return setTemperatureReply_ == null ? messages.VehicleRemoteHvac.SetTemperatureReply.getDefaultInstance() : setTemperatureReply_;
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureReplyOrBuilder getSetTemperatureReplyOrBuilder() {
- return setTemperatureReply_ == null ? messages.VehicleRemoteHvac.SetTemperatureReply.getDefaultInstance() : setTemperatureReply_;
- }
-
- 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 (messageHeader_ != null) {
- output.writeMessage(1, getMessageHeader());
- }
- if (setAcStatusReply_ != null) {
- output.writeMessage(2, getSetAcStatusReply());
- }
- if (setTemperatureReply_ != null) {
- output.writeMessage(3, getSetTemperatureReply());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (messageHeader_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getMessageHeader());
- }
- if (setAcStatusReply_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getSetAcStatusReply());
- }
- if (setTemperatureReply_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getSetTemperatureReply());
- }
- 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 messages.VehicleRemoteHvac.CabinPreConditionReponse)) {
- return super.equals(obj);
- }
- messages.VehicleRemoteHvac.CabinPreConditionReponse other = (messages.VehicleRemoteHvac.CabinPreConditionReponse) obj;
-
- if (hasMessageHeader() != other.hasMessageHeader()) return false;
- if (hasMessageHeader()) {
- if (!getMessageHeader()
- .equals(other.getMessageHeader())) return false;
- }
- if (hasSetAcStatusReply() != other.hasSetAcStatusReply()) return false;
- if (hasSetAcStatusReply()) {
- if (!getSetAcStatusReply()
- .equals(other.getSetAcStatusReply())) return false;
- }
- if (hasSetTemperatureReply() != other.hasSetTemperatureReply()) return false;
- if (hasSetTemperatureReply()) {
- if (!getSetTemperatureReply()
- .equals(other.getSetTemperatureReply())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasMessageHeader()) {
- hash = (37 * hash) + MESSAGEHEADER_FIELD_NUMBER;
- hash = (53 * hash) + getMessageHeader().hashCode();
- }
- if (hasSetAcStatusReply()) {
- hash = (37 * hash) + SETACSTATUSREPLY_FIELD_NUMBER;
- hash = (53 * hash) + getSetAcStatusReply().hashCode();
- }
- if (hasSetTemperatureReply()) {
- hash = (37 * hash) + SETTEMPERATUREREPLY_FIELD_NUMBER;
- hash = (53 * hash) + getSetTemperatureReply().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse 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 messages.VehicleRemoteHvac.CabinPreConditionReponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse 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 messages.VehicleRemoteHvac.CabinPreConditionReponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse 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(messages.VehicleRemoteHvac.CabinPreConditionReponse 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.CabinPreConditionReponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.CabinPreConditionReponse)
- messages.VehicleRemoteHvac.CabinPreConditionReponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreConditionReponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreConditionReponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.CabinPreConditionReponse.class, messages.VehicleRemoteHvac.CabinPreConditionReponse.Builder.class);
- }
-
- // Construct using messages.VehicleRemoteHvac.CabinPreConditionReponse.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- messageHeader_ = null;
- if (messageHeaderBuilder_ != null) {
- messageHeaderBuilder_.dispose();
- messageHeaderBuilder_ = null;
- }
- setAcStatusReply_ = null;
- if (setAcStatusReplyBuilder_ != null) {
- setAcStatusReplyBuilder_.dispose();
- setAcStatusReplyBuilder_ = null;
- }
- setTemperatureReply_ = null;
- if (setTemperatureReplyBuilder_ != null) {
- setTemperatureReplyBuilder_.dispose();
- setTemperatureReplyBuilder_ = null;
- }
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return messages.VehicleRemoteHvac.internal_static_messages_CabinPreConditionReponse_descriptor;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreConditionReponse getDefaultInstanceForType() {
- return messages.VehicleRemoteHvac.CabinPreConditionReponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreConditionReponse build() {
- messages.VehicleRemoteHvac.CabinPreConditionReponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreConditionReponse buildPartial() {
- messages.VehicleRemoteHvac.CabinPreConditionReponse result = new messages.VehicleRemoteHvac.CabinPreConditionReponse(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(messages.VehicleRemoteHvac.CabinPreConditionReponse result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.messageHeader_ = messageHeaderBuilder_ == null
- ? messageHeader_
- : messageHeaderBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.setAcStatusReply_ = setAcStatusReplyBuilder_ == null
- ? setAcStatusReply_
- : setAcStatusReplyBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.setTemperatureReply_ = setTemperatureReplyBuilder_ == null
- ? setTemperatureReply_
- : setTemperatureReplyBuilder_.build();
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof messages.VehicleRemoteHvac.CabinPreConditionReponse) {
- return mergeFrom((messages.VehicleRemoteHvac.CabinPreConditionReponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(messages.VehicleRemoteHvac.CabinPreConditionReponse other) {
- if (other == messages.VehicleRemoteHvac.CabinPreConditionReponse.getDefaultInstance()) return this;
- if (other.hasMessageHeader()) {
- mergeMessageHeader(other.getMessageHeader());
- }
- if (other.hasSetAcStatusReply()) {
- mergeSetAcStatusReply(other.getSetAcStatusReply());
- }
- if (other.hasSetTemperatureReply()) {
- mergeSetTemperatureReply(other.getSetTemperatureReply());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getMessageHeaderFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- input.readMessage(
- getSetAcStatusReplyFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- input.readMessage(
- getSetTemperatureReplyFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- 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 messages.VehicleMessageHeader.VehicleMessageHeading messageHeader_;
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleMessageHeader.VehicleMessageHeading, messages.VehicleMessageHeader.VehicleMessageHeading.Builder, messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder> messageHeaderBuilder_;
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return Whether the messageHeader field is set.
- */
- public boolean hasMessageHeader() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- * @return The messageHeader.
- */
- public messages.VehicleMessageHeader.VehicleMessageHeading getMessageHeader() {
- if (messageHeaderBuilder_ == null) {
- return messageHeader_ == null ? messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- } else {
- return messageHeaderBuilder_.getMessage();
- }
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder setMessageHeader(messages.VehicleMessageHeader.VehicleMessageHeading value) {
- if (messageHeaderBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- messageHeader_ = value;
- } else {
- messageHeaderBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder setMessageHeader(
- messages.VehicleMessageHeader.VehicleMessageHeading.Builder builderForValue) {
- if (messageHeaderBuilder_ == null) {
- messageHeader_ = builderForValue.build();
- } else {
- messageHeaderBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder mergeMessageHeader(messages.VehicleMessageHeader.VehicleMessageHeading value) {
- if (messageHeaderBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- messageHeader_ != null &&
- messageHeader_ != messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance()) {
- getMessageHeaderBuilder().mergeFrom(value);
- } else {
- messageHeader_ = value;
- }
- } else {
- messageHeaderBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public Builder clearMessageHeader() {
- bitField0_ = (bitField0_ & ~0x00000001);
- messageHeader_ = null;
- if (messageHeaderBuilder_ != null) {
- messageHeaderBuilder_.dispose();
- messageHeaderBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public messages.VehicleMessageHeader.VehicleMessageHeading.Builder getMessageHeaderBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getMessageHeaderFieldBuilder().getBuilder();
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- public messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder getMessageHeaderOrBuilder() {
- if (messageHeaderBuilder_ != null) {
- return messageHeaderBuilder_.getMessageOrBuilder();
- } else {
- return messageHeader_ == null ?
- messages.VehicleMessageHeader.VehicleMessageHeading.getDefaultInstance() : messageHeader_;
- }
- }
- /**
- * <code>.messages.VehicleMessageHeading messageHeader = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleMessageHeader.VehicleMessageHeading, messages.VehicleMessageHeader.VehicleMessageHeading.Builder, messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder>
- getMessageHeaderFieldBuilder() {
- if (messageHeaderBuilder_ == null) {
- messageHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleMessageHeader.VehicleMessageHeading, messages.VehicleMessageHeader.VehicleMessageHeading.Builder, messages.VehicleMessageHeader.VehicleMessageHeadingOrBuilder>(
- getMessageHeader(),
- getParentForChildren(),
- isClean());
- messageHeader_ = null;
- }
- return messageHeaderBuilder_;
- }
-
- private messages.VehicleRemoteHvac.SetAcStatusReply setAcStatusReply_;
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetAcStatusReply, messages.VehicleRemoteHvac.SetAcStatusReply.Builder, messages.VehicleRemoteHvac.SetAcStatusReplyOrBuilder> setAcStatusReplyBuilder_;
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- * @return Whether the setAcStatusReply field is set.
- */
- public boolean hasSetAcStatusReply() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- * @return The setAcStatusReply.
- */
- public messages.VehicleRemoteHvac.SetAcStatusReply getSetAcStatusReply() {
- if (setAcStatusReplyBuilder_ == null) {
- return setAcStatusReply_ == null ? messages.VehicleRemoteHvac.SetAcStatusReply.getDefaultInstance() : setAcStatusReply_;
- } else {
- return setAcStatusReplyBuilder_.getMessage();
- }
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- public Builder setSetAcStatusReply(messages.VehicleRemoteHvac.SetAcStatusReply value) {
- if (setAcStatusReplyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- setAcStatusReply_ = value;
- } else {
- setAcStatusReplyBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- public Builder setSetAcStatusReply(
- messages.VehicleRemoteHvac.SetAcStatusReply.Builder builderForValue) {
- if (setAcStatusReplyBuilder_ == null) {
- setAcStatusReply_ = builderForValue.build();
- } else {
- setAcStatusReplyBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- public Builder mergeSetAcStatusReply(messages.VehicleRemoteHvac.SetAcStatusReply value) {
- if (setAcStatusReplyBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- setAcStatusReply_ != null &&
- setAcStatusReply_ != messages.VehicleRemoteHvac.SetAcStatusReply.getDefaultInstance()) {
- getSetAcStatusReplyBuilder().mergeFrom(value);
- } else {
- setAcStatusReply_ = value;
- }
- } else {
- setAcStatusReplyBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- public Builder clearSetAcStatusReply() {
- bitField0_ = (bitField0_ & ~0x00000002);
- setAcStatusReply_ = null;
- if (setAcStatusReplyBuilder_ != null) {
- setAcStatusReplyBuilder_.dispose();
- setAcStatusReplyBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- public messages.VehicleRemoteHvac.SetAcStatusReply.Builder getSetAcStatusReplyBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getSetAcStatusReplyFieldBuilder().getBuilder();
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- public messages.VehicleRemoteHvac.SetAcStatusReplyOrBuilder getSetAcStatusReplyOrBuilder() {
- if (setAcStatusReplyBuilder_ != null) {
- return setAcStatusReplyBuilder_.getMessageOrBuilder();
- } else {
- return setAcStatusReply_ == null ?
- messages.VehicleRemoteHvac.SetAcStatusReply.getDefaultInstance() : setAcStatusReply_;
- }
- }
- /**
- * <code>.messages.SetAcStatusReply setAcStatusReply = 2;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetAcStatusReply, messages.VehicleRemoteHvac.SetAcStatusReply.Builder, messages.VehicleRemoteHvac.SetAcStatusReplyOrBuilder>
- getSetAcStatusReplyFieldBuilder() {
- if (setAcStatusReplyBuilder_ == null) {
- setAcStatusReplyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetAcStatusReply, messages.VehicleRemoteHvac.SetAcStatusReply.Builder, messages.VehicleRemoteHvac.SetAcStatusReplyOrBuilder>(
- getSetAcStatusReply(),
- getParentForChildren(),
- isClean());
- setAcStatusReply_ = null;
- }
- return setAcStatusReplyBuilder_;
- }
-
- private messages.VehicleRemoteHvac.SetTemperatureReply setTemperatureReply_;
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetTemperatureReply, messages.VehicleRemoteHvac.SetTemperatureReply.Builder, messages.VehicleRemoteHvac.SetTemperatureReplyOrBuilder> setTemperatureReplyBuilder_;
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- * @return Whether the setTemperatureReply field is set.
- */
- public boolean hasSetTemperatureReply() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- * @return The setTemperatureReply.
- */
- public messages.VehicleRemoteHvac.SetTemperatureReply getSetTemperatureReply() {
- if (setTemperatureReplyBuilder_ == null) {
- return setTemperatureReply_ == null ? messages.VehicleRemoteHvac.SetTemperatureReply.getDefaultInstance() : setTemperatureReply_;
- } else {
- return setTemperatureReplyBuilder_.getMessage();
- }
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- public Builder setSetTemperatureReply(messages.VehicleRemoteHvac.SetTemperatureReply value) {
- if (setTemperatureReplyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- setTemperatureReply_ = value;
- } else {
- setTemperatureReplyBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- public Builder setSetTemperatureReply(
- messages.VehicleRemoteHvac.SetTemperatureReply.Builder builderForValue) {
- if (setTemperatureReplyBuilder_ == null) {
- setTemperatureReply_ = builderForValue.build();
- } else {
- setTemperatureReplyBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- public Builder mergeSetTemperatureReply(messages.VehicleRemoteHvac.SetTemperatureReply value) {
- if (setTemperatureReplyBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0) &&
- setTemperatureReply_ != null &&
- setTemperatureReply_ != messages.VehicleRemoteHvac.SetTemperatureReply.getDefaultInstance()) {
- getSetTemperatureReplyBuilder().mergeFrom(value);
- } else {
- setTemperatureReply_ = value;
- }
- } else {
- setTemperatureReplyBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- public Builder clearSetTemperatureReply() {
- bitField0_ = (bitField0_ & ~0x00000004);
- setTemperatureReply_ = null;
- if (setTemperatureReplyBuilder_ != null) {
- setTemperatureReplyBuilder_.dispose();
- setTemperatureReplyBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- public messages.VehicleRemoteHvac.SetTemperatureReply.Builder getSetTemperatureReplyBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getSetTemperatureReplyFieldBuilder().getBuilder();
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- public messages.VehicleRemoteHvac.SetTemperatureReplyOrBuilder getSetTemperatureReplyOrBuilder() {
- if (setTemperatureReplyBuilder_ != null) {
- return setTemperatureReplyBuilder_.getMessageOrBuilder();
- } else {
- return setTemperatureReply_ == null ?
- messages.VehicleRemoteHvac.SetTemperatureReply.getDefaultInstance() : setTemperatureReply_;
- }
- }
- /**
- * <code>.messages.SetTemperatureReply setTemperatureReply = 3;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetTemperatureReply, messages.VehicleRemoteHvac.SetTemperatureReply.Builder, messages.VehicleRemoteHvac.SetTemperatureReplyOrBuilder>
- getSetTemperatureReplyFieldBuilder() {
- if (setTemperatureReplyBuilder_ == null) {
- setTemperatureReplyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- messages.VehicleRemoteHvac.SetTemperatureReply, messages.VehicleRemoteHvac.SetTemperatureReply.Builder, messages.VehicleRemoteHvac.SetTemperatureReplyOrBuilder>(
- getSetTemperatureReply(),
- getParentForChildren(),
- isClean());
- setTemperatureReply_ = null;
- }
- return setTemperatureReplyBuilder_;
- }
- @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.CabinPreConditionReponse)
- }
-
- // @@protoc_insertion_point(class_scope:messages.CabinPreConditionReponse)
- private static final messages.VehicleRemoteHvac.CabinPreConditionReponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new messages.VehicleRemoteHvac.CabinPreConditionReponse();
- }
-
- public static messages.VehicleRemoteHvac.CabinPreConditionReponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<CabinPreConditionReponse>
- PARSER = new com.google.protobuf.AbstractParser<CabinPreConditionReponse>() {
- @java.lang.Override
- public CabinPreConditionReponse 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<CabinPreConditionReponse> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<CabinPreConditionReponse> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.CabinPreConditionReponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SetAcStatusRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.SetAcStatusRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @return The enum numeric value on the wire for desiredStatus.
- */
- int getDesiredStatusValue();
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @return The desiredStatus.
- */
- messages.VehicleRemoteHvac.AcStatusEnum getDesiredStatus();
- }
- /**
- * Protobuf type {@code messages.SetAcStatusRequest}
- */
- public static final class SetAcStatusRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.SetAcStatusRequest)
- SetAcStatusRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SetAcStatusRequest.newBuilder() to construct.
- private SetAcStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private SetAcStatusRequest() {
- desiredStatus_ = 0;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new SetAcStatusRequest();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetAcStatusRequest.class, messages.VehicleRemoteHvac.SetAcStatusRequest.Builder.class);
- }
-
- public static final int DESIREDSTATUS_FIELD_NUMBER = 1;
- private int desiredStatus_ = 0;
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @return The enum numeric value on the wire for desiredStatus.
- */
- @java.lang.Override public int getDesiredStatusValue() {
- return desiredStatus_;
- }
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @return The desiredStatus.
- */
- @java.lang.Override public messages.VehicleRemoteHvac.AcStatusEnum getDesiredStatus() {
- messages.VehicleRemoteHvac.AcStatusEnum result = messages.VehicleRemoteHvac.AcStatusEnum.forNumber(desiredStatus_);
- return result == null ? messages.VehicleRemoteHvac.AcStatusEnum.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (desiredStatus_ != messages.VehicleRemoteHvac.AcStatusEnum.ON.getNumber()) {
- output.writeEnum(1, desiredStatus_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (desiredStatus_ != messages.VehicleRemoteHvac.AcStatusEnum.ON.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, desiredStatus_);
- }
- 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 messages.VehicleRemoteHvac.SetAcStatusRequest)) {
- return super.equals(obj);
- }
- messages.VehicleRemoteHvac.SetAcStatusRequest other = (messages.VehicleRemoteHvac.SetAcStatusRequest) obj;
-
- if (desiredStatus_ != other.desiredStatus_) 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) + DESIREDSTATUS_FIELD_NUMBER;
- hash = (53 * hash) + desiredStatus_;
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest 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 messages.VehicleRemoteHvac.SetAcStatusRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest 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 messages.VehicleRemoteHvac.SetAcStatusRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusRequest 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(messages.VehicleRemoteHvac.SetAcStatusRequest 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.SetAcStatusRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.SetAcStatusRequest)
- messages.VehicleRemoteHvac.SetAcStatusRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetAcStatusRequest.class, messages.VehicleRemoteHvac.SetAcStatusRequest.Builder.class);
- }
-
- // Construct using messages.VehicleRemoteHvac.SetAcStatusRequest.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- desiredStatus_ = 0;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusRequest_descriptor;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusRequest getDefaultInstanceForType() {
- return messages.VehicleRemoteHvac.SetAcStatusRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusRequest build() {
- messages.VehicleRemoteHvac.SetAcStatusRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusRequest buildPartial() {
- messages.VehicleRemoteHvac.SetAcStatusRequest result = new messages.VehicleRemoteHvac.SetAcStatusRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(messages.VehicleRemoteHvac.SetAcStatusRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.desiredStatus_ = desiredStatus_;
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof messages.VehicleRemoteHvac.SetAcStatusRequest) {
- return mergeFrom((messages.VehicleRemoteHvac.SetAcStatusRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(messages.VehicleRemoteHvac.SetAcStatusRequest other) {
- if (other == messages.VehicleRemoteHvac.SetAcStatusRequest.getDefaultInstance()) return this;
- if (other.desiredStatus_ != 0) {
- setDesiredStatusValue(other.getDesiredStatusValue());
- }
- 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: {
- desiredStatus_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- 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 desiredStatus_ = 0;
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @return The enum numeric value on the wire for desiredStatus.
- */
- @java.lang.Override public int getDesiredStatusValue() {
- return desiredStatus_;
- }
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @param value The enum numeric value on the wire for desiredStatus to set.
- * @return This builder for chaining.
- */
- public Builder setDesiredStatusValue(int value) {
- desiredStatus_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @return The desiredStatus.
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.AcStatusEnum getDesiredStatus() {
- messages.VehicleRemoteHvac.AcStatusEnum result = messages.VehicleRemoteHvac.AcStatusEnum.forNumber(desiredStatus_);
- return result == null ? messages.VehicleRemoteHvac.AcStatusEnum.UNRECOGNIZED : result;
- }
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @param value The desiredStatus to set.
- * @return This builder for chaining.
- */
- public Builder setDesiredStatus(messages.VehicleRemoteHvac.AcStatusEnum value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- desiredStatus_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * <pre>
- * The desired status of A/C
- * </pre>
- *
- * <code>.messages.AcStatusEnum desiredStatus = 1;</code>
- * @return This builder for chaining.
- */
- public Builder clearDesiredStatus() {
- bitField0_ = (bitField0_ & ~0x00000001);
- desiredStatus_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:messages.SetAcStatusRequest)
- }
-
- // @@protoc_insertion_point(class_scope:messages.SetAcStatusRequest)
- private static final messages.VehicleRemoteHvac.SetAcStatusRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new messages.VehicleRemoteHvac.SetAcStatusRequest();
- }
-
- public static messages.VehicleRemoteHvac.SetAcStatusRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<SetAcStatusRequest>
- PARSER = new com.google.protobuf.AbstractParser<SetAcStatusRequest>() {
- @java.lang.Override
- public SetAcStatusRequest 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<SetAcStatusRequest> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<SetAcStatusRequest> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SetAcStatusReplyOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.SetAcStatusReply)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @return The enum numeric value on the wire for status.
- */
- int getStatusValue();
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @return The status.
- */
- messages.VehicleRemoteHvac.AcStatusEnum getStatus();
- }
- /**
- * <pre>
- **
- * &#64;brief
- * </pre>
- *
- * Protobuf type {@code messages.SetAcStatusReply}
- */
- public static final class SetAcStatusReply extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.SetAcStatusReply)
- SetAcStatusReplyOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SetAcStatusReply.newBuilder() to construct.
- private SetAcStatusReply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private SetAcStatusReply() {
- status_ = 0;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new SetAcStatusReply();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusReply_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusReply_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetAcStatusReply.class, messages.VehicleRemoteHvac.SetAcStatusReply.Builder.class);
- }
-
- public static final int STATUS_FIELD_NUMBER = 1;
- private int status_ = 0;
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @return The enum numeric value on the wire for status.
- */
- @java.lang.Override public int getStatusValue() {
- return status_;
- }
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @return The status.
- */
- @java.lang.Override public messages.VehicleRemoteHvac.AcStatusEnum getStatus() {
- messages.VehicleRemoteHvac.AcStatusEnum result = messages.VehicleRemoteHvac.AcStatusEnum.forNumber(status_);
- return result == null ? messages.VehicleRemoteHvac.AcStatusEnum.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (status_ != messages.VehicleRemoteHvac.AcStatusEnum.ON.getNumber()) {
- output.writeEnum(1, status_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (status_ != messages.VehicleRemoteHvac.AcStatusEnum.ON.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_);
- }
- 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 messages.VehicleRemoteHvac.SetAcStatusReply)) {
- return super.equals(obj);
- }
- messages.VehicleRemoteHvac.SetAcStatusReply other = (messages.VehicleRemoteHvac.SetAcStatusReply) obj;
-
- if (status_ != other.status_) 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) + STATUS_FIELD_NUMBER;
- hash = (53 * hash) + status_;
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply 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 messages.VehicleRemoteHvac.SetAcStatusReply parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply 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 messages.VehicleRemoteHvac.SetAcStatusReply parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetAcStatusReply 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(messages.VehicleRemoteHvac.SetAcStatusReply 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>
- **
- * &#64;brief
- * </pre>
- *
- * Protobuf type {@code messages.SetAcStatusReply}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.SetAcStatusReply)
- messages.VehicleRemoteHvac.SetAcStatusReplyOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusReply_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusReply_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetAcStatusReply.class, messages.VehicleRemoteHvac.SetAcStatusReply.Builder.class);
- }
-
- // Construct using messages.VehicleRemoteHvac.SetAcStatusReply.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- status_ = 0;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetAcStatusReply_descriptor;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusReply getDefaultInstanceForType() {
- return messages.VehicleRemoteHvac.SetAcStatusReply.getDefaultInstance();
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusReply build() {
- messages.VehicleRemoteHvac.SetAcStatusReply result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusReply buildPartial() {
- messages.VehicleRemoteHvac.SetAcStatusReply result = new messages.VehicleRemoteHvac.SetAcStatusReply(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(messages.VehicleRemoteHvac.SetAcStatusReply result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.status_ = status_;
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof messages.VehicleRemoteHvac.SetAcStatusReply) {
- return mergeFrom((messages.VehicleRemoteHvac.SetAcStatusReply)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(messages.VehicleRemoteHvac.SetAcStatusReply other) {
- if (other == messages.VehicleRemoteHvac.SetAcStatusReply.getDefaultInstance()) return this;
- if (other.status_ != 0) {
- setStatusValue(other.getStatusValue());
- }
- 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: {
- status_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- 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 status_ = 0;
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @return The enum numeric value on the wire for status.
- */
- @java.lang.Override public int getStatusValue() {
- return status_;
- }
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @param value The enum numeric value on the wire for status to set.
- * @return This builder for chaining.
- */
- public Builder setStatusValue(int value) {
- status_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @return The status.
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.AcStatusEnum getStatus() {
- messages.VehicleRemoteHvac.AcStatusEnum result = messages.VehicleRemoteHvac.AcStatusEnum.forNumber(status_);
- return result == null ? messages.VehicleRemoteHvac.AcStatusEnum.UNRECOGNIZED : result;
- }
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @param value The status to set.
- * @return This builder for chaining.
- */
- public Builder setStatus(messages.VehicleRemoteHvac.AcStatusEnum value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- status_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * <code>.messages.AcStatusEnum status = 1;</code>
- * @return This builder for chaining.
- */
- public Builder clearStatus() {
- bitField0_ = (bitField0_ & ~0x00000001);
- status_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:messages.SetAcStatusReply)
- }
-
- // @@protoc_insertion_point(class_scope:messages.SetAcStatusReply)
- private static final messages.VehicleRemoteHvac.SetAcStatusReply DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new messages.VehicleRemoteHvac.SetAcStatusReply();
- }
-
- public static messages.VehicleRemoteHvac.SetAcStatusReply getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<SetAcStatusReply>
- PARSER = new com.google.protobuf.AbstractParser<SetAcStatusReply>() {
- @java.lang.Override
- public SetAcStatusReply 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<SetAcStatusReply> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<SetAcStatusReply> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetAcStatusReply getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SetTemperatureRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.SetTemperatureRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <pre>
- * The desired cabin temperature in degree Celsius
- * </pre>
- *
- * <code>float temperature = 1;</code>
- * @return The temperature.
- */
- float getTemperature();
- }
- /**
- * <pre>
- **
- * &#64;brief
- * </pre>
- *
- * Protobuf type {@code messages.SetTemperatureRequest}
- */
- public static final class SetTemperatureRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.SetTemperatureRequest)
- SetTemperatureRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SetTemperatureRequest.newBuilder() to construct.
- private SetTemperatureRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private SetTemperatureRequest() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new SetTemperatureRequest();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetTemperatureRequest.class, messages.VehicleRemoteHvac.SetTemperatureRequest.Builder.class);
- }
-
- public static final int TEMPERATURE_FIELD_NUMBER = 1;
- private float temperature_ = 0F;
- /**
- * <pre>
- * The desired cabin temperature in degree Celsius
- * </pre>
- *
- * <code>float temperature = 1;</code>
- * @return The temperature.
- */
- @java.lang.Override
- public float getTemperature() {
- return temperature_;
- }
-
- 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.Float.floatToRawIntBits(temperature_) != 0) {
- output.writeFloat(1, temperature_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (java.lang.Float.floatToRawIntBits(temperature_) != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(1, temperature_);
- }
- 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 messages.VehicleRemoteHvac.SetTemperatureRequest)) {
- return super.equals(obj);
- }
- messages.VehicleRemoteHvac.SetTemperatureRequest other = (messages.VehicleRemoteHvac.SetTemperatureRequest) obj;
-
- if (java.lang.Float.floatToIntBits(getTemperature())
- != java.lang.Float.floatToIntBits(
- other.getTemperature())) 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) + TEMPERATURE_FIELD_NUMBER;
- hash = (53 * hash) + java.lang.Float.floatToIntBits(
- getTemperature());
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest 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 messages.VehicleRemoteHvac.SetTemperatureRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest 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 messages.VehicleRemoteHvac.SetTemperatureRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureRequest 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(messages.VehicleRemoteHvac.SetTemperatureRequest 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>
- **
- * &#64;brief
- * </pre>
- *
- * Protobuf type {@code messages.SetTemperatureRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.SetTemperatureRequest)
- messages.VehicleRemoteHvac.SetTemperatureRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetTemperatureRequest.class, messages.VehicleRemoteHvac.SetTemperatureRequest.Builder.class);
- }
-
- // Construct using messages.VehicleRemoteHvac.SetTemperatureRequest.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- temperature_ = 0F;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureRequest_descriptor;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureRequest getDefaultInstanceForType() {
- return messages.VehicleRemoteHvac.SetTemperatureRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureRequest build() {
- messages.VehicleRemoteHvac.SetTemperatureRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureRequest buildPartial() {
- messages.VehicleRemoteHvac.SetTemperatureRequest result = new messages.VehicleRemoteHvac.SetTemperatureRequest(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(messages.VehicleRemoteHvac.SetTemperatureRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.temperature_ = temperature_;
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof messages.VehicleRemoteHvac.SetTemperatureRequest) {
- return mergeFrom((messages.VehicleRemoteHvac.SetTemperatureRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(messages.VehicleRemoteHvac.SetTemperatureRequest other) {
- if (other == messages.VehicleRemoteHvac.SetTemperatureRequest.getDefaultInstance()) return this;
- if (other.getTemperature() != 0F) {
- setTemperature(other.getTemperature());
- }
- 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 13: {
- temperature_ = input.readFloat();
- bitField0_ |= 0x00000001;
- break;
- } // case 13
- 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 float temperature_ ;
- /**
- * <pre>
- * The desired cabin temperature in degree Celsius
- * </pre>
- *
- * <code>float temperature = 1;</code>
- * @return The temperature.
- */
- @java.lang.Override
- public float getTemperature() {
- return temperature_;
- }
- /**
- * <pre>
- * The desired cabin temperature in degree Celsius
- * </pre>
- *
- * <code>float temperature = 1;</code>
- * @param value The temperature to set.
- * @return This builder for chaining.
- */
- public Builder setTemperature(float value) {
-
- temperature_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * The desired cabin temperature in degree Celsius
- * </pre>
- *
- * <code>float temperature = 1;</code>
- * @return This builder for chaining.
- */
- public Builder clearTemperature() {
- bitField0_ = (bitField0_ & ~0x00000001);
- temperature_ = 0F;
- 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.SetTemperatureRequest)
- }
-
- // @@protoc_insertion_point(class_scope:messages.SetTemperatureRequest)
- private static final messages.VehicleRemoteHvac.SetTemperatureRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new messages.VehicleRemoteHvac.SetTemperatureRequest();
- }
-
- public static messages.VehicleRemoteHvac.SetTemperatureRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<SetTemperatureRequest>
- PARSER = new com.google.protobuf.AbstractParser<SetTemperatureRequest>() {
- @java.lang.Override
- public SetTemperatureRequest 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<SetTemperatureRequest> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<SetTemperatureRequest> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SetTemperatureReplyOrBuilder extends
- // @@protoc_insertion_point(interface_extends:messages.SetTemperatureReply)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @return The enum numeric value on the wire for tempStatus.
- */
- int getTempStatusValue();
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @return The tempStatus.
- */
- messages.VehicleRemoteHvac.SetTempStatusEnum getTempStatus();
- }
- /**
- * <pre>
- **
- * &#64;brief
- * </pre>
- *
- * Protobuf type {@code messages.SetTemperatureReply}
- */
- public static final class SetTemperatureReply extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:messages.SetTemperatureReply)
- SetTemperatureReplyOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SetTemperatureReply.newBuilder() to construct.
- private SetTemperatureReply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private SetTemperatureReply() {
- tempStatus_ = 0;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new SetTemperatureReply();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureReply_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureReply_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetTemperatureReply.class, messages.VehicleRemoteHvac.SetTemperatureReply.Builder.class);
- }
-
- public static final int TEMPSTATUS_FIELD_NUMBER = 1;
- private int tempStatus_ = 0;
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @return The enum numeric value on the wire for tempStatus.
- */
- @java.lang.Override public int getTempStatusValue() {
- return tempStatus_;
- }
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @return The tempStatus.
- */
- @java.lang.Override public messages.VehicleRemoteHvac.SetTempStatusEnum getTempStatus() {
- messages.VehicleRemoteHvac.SetTempStatusEnum result = messages.VehicleRemoteHvac.SetTempStatusEnum.forNumber(tempStatus_);
- return result == null ? messages.VehicleRemoteHvac.SetTempStatusEnum.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (tempStatus_ != messages.VehicleRemoteHvac.SetTempStatusEnum.TEMP_SUCCESS.getNumber()) {
- output.writeEnum(1, tempStatus_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (tempStatus_ != messages.VehicleRemoteHvac.SetTempStatusEnum.TEMP_SUCCESS.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, tempStatus_);
- }
- 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 messages.VehicleRemoteHvac.SetTemperatureReply)) {
- return super.equals(obj);
- }
- messages.VehicleRemoteHvac.SetTemperatureReply other = (messages.VehicleRemoteHvac.SetTemperatureReply) obj;
-
- if (tempStatus_ != other.tempStatus_) 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) + TEMPSTATUS_FIELD_NUMBER;
- hash = (53 * hash) + tempStatus_;
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply 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 messages.VehicleRemoteHvac.SetTemperatureReply parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply 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 messages.VehicleRemoteHvac.SetTemperatureReply parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static messages.VehicleRemoteHvac.SetTemperatureReply 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(messages.VehicleRemoteHvac.SetTemperatureReply 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>
- **
- * &#64;brief
- * </pre>
- *
- * Protobuf type {@code messages.SetTemperatureReply}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:messages.SetTemperatureReply)
- messages.VehicleRemoteHvac.SetTemperatureReplyOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureReply_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureReply_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- messages.VehicleRemoteHvac.SetTemperatureReply.class, messages.VehicleRemoteHvac.SetTemperatureReply.Builder.class);
- }
-
- // Construct using messages.VehicleRemoteHvac.SetTemperatureReply.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- tempStatus_ = 0;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return messages.VehicleRemoteHvac.internal_static_messages_SetTemperatureReply_descriptor;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureReply getDefaultInstanceForType() {
- return messages.VehicleRemoteHvac.SetTemperatureReply.getDefaultInstance();
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureReply build() {
- messages.VehicleRemoteHvac.SetTemperatureReply result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureReply buildPartial() {
- messages.VehicleRemoteHvac.SetTemperatureReply result = new messages.VehicleRemoteHvac.SetTemperatureReply(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(messages.VehicleRemoteHvac.SetTemperatureReply result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.tempStatus_ = tempStatus_;
- }
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof messages.VehicleRemoteHvac.SetTemperatureReply) {
- return mergeFrom((messages.VehicleRemoteHvac.SetTemperatureReply)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(messages.VehicleRemoteHvac.SetTemperatureReply other) {
- if (other == messages.VehicleRemoteHvac.SetTemperatureReply.getDefaultInstance()) return this;
- if (other.tempStatus_ != 0) {
- setTempStatusValue(other.getTempStatusValue());
- }
- 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: {
- tempStatus_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- 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 tempStatus_ = 0;
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @return The enum numeric value on the wire for tempStatus.
- */
- @java.lang.Override public int getTempStatusValue() {
- return tempStatus_;
- }
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @param value The enum numeric value on the wire for tempStatus to set.
- * @return This builder for chaining.
- */
- public Builder setTempStatusValue(int value) {
- tempStatus_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @return The tempStatus.
- */
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTempStatusEnum getTempStatus() {
- messages.VehicleRemoteHvac.SetTempStatusEnum result = messages.VehicleRemoteHvac.SetTempStatusEnum.forNumber(tempStatus_);
- return result == null ? messages.VehicleRemoteHvac.SetTempStatusEnum.UNRECOGNIZED : result;
- }
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @param value The tempStatus to set.
- * @return This builder for chaining.
- */
- public Builder setTempStatus(messages.VehicleRemoteHvac.SetTempStatusEnum value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- tempStatus_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * <code>.messages.SetTempStatusEnum tempStatus = 1;</code>
- * @return This builder for chaining.
- */
- public Builder clearTempStatus() {
- bitField0_ = (bitField0_ & ~0x00000001);
- tempStatus_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:messages.SetTemperatureReply)
- }
-
- // @@protoc_insertion_point(class_scope:messages.SetTemperatureReply)
- private static final messages.VehicleRemoteHvac.SetTemperatureReply DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new messages.VehicleRemoteHvac.SetTemperatureReply();
- }
-
- public static messages.VehicleRemoteHvac.SetTemperatureReply getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<SetTemperatureReply>
- PARSER = new com.google.protobuf.AbstractParser<SetTemperatureReply>() {
- @java.lang.Override
- public SetTemperatureReply 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<SetTemperatureReply> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<SetTemperatureReply> getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public messages.VehicleRemoteHvac.SetTemperatureReply getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_CabinPreconditionRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_CabinPreconditionRequest_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_CabinPreConditionReponse_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_CabinPreConditionReponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_SetAcStatusRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_SetAcStatusRequest_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_SetAcStatusReply_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_SetAcStatusReply_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_SetTemperatureRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_SetTemperatureRequest_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_messages_SetTemperatureReply_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_messages_SetTemperatureReply_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/VehicleRemoteHvac.proto\022\010mess" +
- "ages\032\017vss/vspec.proto\032#messages/VehicleM" +
- "essageHeader.proto\"\267\001\n\030CabinPrecondition" +
- "Request\0226\n\rmessageHeader\030\001 \001(\0132\037.message" +
- "s.VehicleMessageHeading\0221\n\013setAcStatus\030\002" +
- " \001(\0132\034.messages.SetAcStatusRequest\0220\n\007se" +
- "tTemp\030\003 \001(\0132\037.messages.SetTemperatureReq" +
- "uest\"\304\001\n\030CabinPreConditionReponse\0226\n\rmes" +
- "sageHeader\030\001 \001(\0132\037.messages.VehicleMessa" +
- "geHeading\0224\n\020setAcStatusReply\030\002 \001(\0132\032.me" +
- "ssages.SetAcStatusReply\022:\n\023setTemperatur" +
- "eReply\030\003 \001(\0132\035.messages.SetTemperatureRe" +
- "ply\"C\n\022SetAcStatusRequest\022-\n\rdesiredStat" +
- "us\030\001 \001(\0162\026.messages.AcStatusEnum\":\n\020SetA" +
- "cStatusReply\022&\n\006status\030\001 \001(\0162\026.messages." +
- "AcStatusEnum\",\n\025SetTemperatureRequest\022\023\n" +
- "\013temperature\030\001 \001(\002\"F\n\023SetTemperatureRepl" +
- "y\022/\n\ntempStatus\030\001 \001(\0162\033.messages.SetTemp" +
- "StatusEnum*2\n\014AcStatusEnum\022\006\n\002ON\020\000\022\007\n\003OF" +
- "F\020\001\022\021\n\rUKNONWN_ERROR\020\002*5\n\021SetTempStatusE" +
- "num\022\020\n\014TEMP_SUCCESS\020\000\022\016\n\nTEMP_ERROR\020\001b\006p" +
- "roto3"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- vss.Vspec.getDescriptor(),
- messages.VehicleMessageHeader.getDescriptor(),
- });
- internal_static_messages_CabinPreconditionRequest_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_messages_CabinPreconditionRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_CabinPreconditionRequest_descriptor,
- new java.lang.String[] { "MessageHeader", "SetAcStatus", "SetTemp", });
- internal_static_messages_CabinPreConditionReponse_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_messages_CabinPreConditionReponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_CabinPreConditionReponse_descriptor,
- new java.lang.String[] { "MessageHeader", "SetAcStatusReply", "SetTemperatureReply", });
- internal_static_messages_SetAcStatusRequest_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_messages_SetAcStatusRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_SetAcStatusRequest_descriptor,
- new java.lang.String[] { "DesiredStatus", });
- internal_static_messages_SetAcStatusReply_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_messages_SetAcStatusReply_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_SetAcStatusReply_descriptor,
- new java.lang.String[] { "Status", });
- internal_static_messages_SetTemperatureRequest_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_messages_SetTemperatureRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_SetTemperatureRequest_descriptor,
- new java.lang.String[] { "Temperature", });
- internal_static_messages_SetTemperatureReply_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_messages_SetTemperatureReply_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_messages_SetTemperatureReply_descriptor,
- new java.lang.String[] { "TempStatus", });
- vss.Vspec.getDescriptor();
- messages.VehicleMessageHeader.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/build/generated/source/proto/main/java/messages/hvac/VehicleRemoteHvac.java b/build/generated/source/proto/main/java/messages/hvac/VehicleRemoteHvac.java
new file mode 100644
index 0000000..1571e29
--- /dev/null
+++ b/build/generated/source/proto/main/java/messages/hvac/VehicleRemoteHvac.java
@@ -0,0 +1,6536 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: messages/VehicleRemoteHvac.proto
+
+package messages.hvac;
+
+public final class VehicleRemoteHvac {
+ private VehicleRemoteHvac() {}
+ 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 TemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.Temperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ float getValue();
+
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ java.lang.String getUnit();
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ com.google.protobuf.ByteString
+ getUnitBytes();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.Temperature}
+ */
+ public static final class Temperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.Temperature)
+ TemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Temperature.newBuilder() to construct.
+ private Temperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Temperature() {
+ unit_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Temperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.Temperature.class, messages.hvac.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ private float value_ = 0F;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+
+ public static final int UNIT_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ @java.lang.Override
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ 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();
+ unit_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ output.writeFloat(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_);
+ }
+ 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 messages.hvac.VehicleRemoteHvac.Temperature)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.Temperature other = (messages.hvac.VehicleRemoteHvac.Temperature) obj;
+
+ if (java.lang.Float.floatToIntBits(getValue())
+ != java.lang.Float.floatToIntBits(
+ other.getValue())) return false;
+ if (!getUnit()
+ .equals(other.getUnit())) 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) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getValue());
+ hash = (37 * hash) + UNIT_FIELD_NUMBER;
+ hash = (53 * hash) + getUnit().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature 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 messages.hvac.VehicleRemoteHvac.Temperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature 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 messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature 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(messages.hvac.VehicleRemoteHvac.Temperature 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.hvac.Temperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.Temperature)
+ messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.Temperature.class, messages.hvac.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.Temperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ value_ = 0F;
+ unit_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature build() {
+ messages.hvac.VehicleRemoteHvac.Temperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature buildPartial() {
+ messages.hvac.VehicleRemoteHvac.Temperature result = new messages.hvac.VehicleRemoteHvac.Temperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.Temperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.unit_ = unit_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.Temperature) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.Temperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.Temperature other) {
+ if (other == messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) return this;
+ if (other.getValue() != 0F) {
+ setValue(other.getValue());
+ }
+ if (!other.getUnit().isEmpty()) {
+ unit_ = other.unit_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 13: {
+ value_ = input.readFloat();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 13
+ case 18: {
+ unit_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private float value_ ;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(float value) {
+
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ unit_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnit(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearUnit() {
+ unit_ = getDefaultInstance().getUnit();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The bytes for unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnitBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ 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.hvac.Temperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.Temperature)
+ private static final messages.hvac.VehicleRemoteHvac.Temperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.Temperature();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.Temperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Temperature>
+ PARSER = new com.google.protobuf.AbstractParser<Temperature>() {
+ @java.lang.Override
+ public Temperature 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<Temperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Temperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACZoneOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.HVACZone)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ int getZoneValue();
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone.Zone getZone();
+
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ boolean hasTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ messages.hvac.VehicleRemoteHvac.Temperature getTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.HVACZone}
+ */
+ public static final class HVACZone extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.HVACZone)
+ HVACZoneOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACZone.newBuilder() to construct.
+ private HVACZone(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACZone() {
+ zone_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACZone();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACZone.class, messages.hvac.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code messages.hvac.HVACZone.Zone}
+ */
+ public enum Zone
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ DRIVER(0),
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ PASSENGER(1),
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ REAR_LEFT(2),
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ REAR_RIGHT(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ public static final int DRIVER_VALUE = 0;
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ public static final int PASSENGER_VALUE = 1;
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ public static final int REAR_LEFT_VALUE = 2;
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ public static final int REAR_RIGHT_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Zone valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Zone forNumber(int value) {
+ switch (value) {
+ case 0: return DRIVER;
+ case 1: return PASSENGER;
+ case 2: return REAR_LEFT;
+ case 3: return REAR_RIGHT;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Zone>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Zone> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Zone>() {
+ public Zone findValueByNumber(int number) {
+ return Zone.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.HVACZone.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Zone[] VALUES = values();
+
+ public static Zone valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Zone(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:messages.hvac.HVACZone.Zone)
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 1;
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override public messages.hvac.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ messages.hvac.VehicleRemoteHvac.HVACZone.Zone result = messages.hvac.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+
+ public static final int TARGET_TEMPERATURE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.Temperature targetTemperature_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTargetTemperature() {
+ return targetTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ return targetTemperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ return targetTemperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+
+ 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 (zone_ != messages.hvac.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ output.writeEnum(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ output.writeMessage(2, getTargetTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (zone_ != messages.hvac.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getTargetTemperature());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.HVACZone)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.HVACZone other = (messages.hvac.VehicleRemoteHvac.HVACZone) obj;
+
+ if (zone_ != other.zone_) return false;
+ if (hasTargetTemperature() != other.hasTargetTemperature()) return false;
+ if (hasTargetTemperature()) {
+ if (!getTargetTemperature()
+ .equals(other.getTargetTemperature())) 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) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + zone_;
+ if (hasTargetTemperature()) {
+ hash = (37 * hash) + TARGET_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone 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 messages.hvac.VehicleRemoteHvac.HVACZone parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone 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 messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone 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(messages.hvac.VehicleRemoteHvac.HVACZone 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.hvac.HVACZone}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.HVACZone)
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACZone.class, messages.hvac.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.HVACZone.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ zone_ = 0;
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone build() {
+ messages.hvac.VehicleRemoteHvac.HVACZone result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone buildPartial() {
+ messages.hvac.VehicleRemoteHvac.HVACZone result = new messages.hvac.VehicleRemoteHvac.HVACZone(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.HVACZone result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.zone_ = zone_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.targetTemperature_ = targetTemperatureBuilder_ == null
+ ? targetTemperature_
+ : targetTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.HVACZone) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.HVACZone)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.HVACZone other) {
+ if (other == messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) return this;
+ if (other.zone_ != 0) {
+ setZoneValue(other.getZoneValue());
+ }
+ if (other.hasTargetTemperature()) {
+ mergeTargetTemperature(other.getTargetTemperature());
+ }
+ 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: {
+ zone_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getTargetTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @param value The enum numeric value on the wire for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneValue(int value) {
+ zone_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ messages.hvac.VehicleRemoteHvac.HVACZone.Zone result = messages.hvac.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(messages.hvac.VehicleRemoteHvac.HVACZone.Zone value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ zone_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ zone_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.Temperature targetTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder> targetTemperatureBuilder_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ public boolean hasTargetTemperature() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ if (targetTemperatureBuilder_ == null) {
+ return targetTemperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ } else {
+ return targetTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ targetTemperature_ = value;
+ } else {
+ targetTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(
+ messages.hvac.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperature_ = builderForValue.build();
+ } else {
+ targetTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder mergeTargetTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ targetTemperature_ != null &&
+ targetTemperature_ != messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTargetTemperatureBuilder().mergeFrom(value);
+ } else {
+ targetTemperature_ = value;
+ }
+ } else {
+ targetTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder clearTargetTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature.Builder getTargetTemperatureBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getTargetTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ if (targetTemperatureBuilder_ != null) {
+ return targetTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return targetTemperature_ == null ?
+ messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTargetTemperatureFieldBuilder() {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTargetTemperature(),
+ getParentForChildren(),
+ isClean());
+ targetTemperature_ = null;
+ }
+ return targetTemperatureBuilder_;
+ }
+ @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.hvac.HVACZone)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACZone)
+ private static final messages.hvac.VehicleRemoteHvac.HVACZone DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.HVACZone();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACZone getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACZone>
+ PARSER = new com.google.protobuf.AbstractParser<HVACZone>() {
+ @java.lang.Override
+ public HVACZone 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<HVACZone> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACZone> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.PreconditionRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone>
+ getHvacZonesList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index);
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ int getHvacZonesCount();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<? extends messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index);
+
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ boolean hasStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.PreconditionRequest}
+ */
+ public static final class PreconditionRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.PreconditionRequest)
+ PreconditionRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionRequest.newBuilder() to construct.
+ private PreconditionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionRequest() {
+ hvacZones_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest.class, messages.hvac.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ public static final int HVAC_ZONES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> hvacZones_;
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<? extends messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public int getHvacZonesCount() {
+ return hvacZones_.size();
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ return hvacZones_.get(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ return hvacZones_.get(index);
+ }
+
+ public static final int START_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp startTime_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ output.writeMessage(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ output.writeMessage(2, getStartTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getStartTime());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.PreconditionRequest)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest other = (messages.hvac.VehicleRemoteHvac.PreconditionRequest) obj;
+
+ if (!getHvacZonesList()
+ .equals(other.getHvacZonesList())) return false;
+ if (hasStartTime() != other.hasStartTime()) return false;
+ if (hasStartTime()) {
+ if (!getStartTime()
+ .equals(other.getStartTime())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getHvacZonesCount() > 0) {
+ hash = (37 * hash) + HVAC_ZONES_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacZonesList().hashCode();
+ }
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest 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 messages.hvac.VehicleRemoteHvac.PreconditionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest 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 messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest 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(messages.hvac.VehicleRemoteHvac.PreconditionRequest 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.hvac.PreconditionRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.PreconditionRequest)
+ messages.hvac.VehicleRemoteHvac.PreconditionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest.class, messages.hvac.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.PreconditionRequest.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ } else {
+ hvacZones_ = null;
+ hvacZonesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest build() {
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest buildPartial() {
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest result = new messages.hvac.VehicleRemoteHvac.PreconditionRequest(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(messages.hvac.VehicleRemoteHvac.PreconditionRequest result) {
+ if (hvacZonesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = java.util.Collections.unmodifiableList(hvacZones_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.hvacZones_ = hvacZones_;
+ } else {
+ result.hvacZones_ = hvacZonesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.PreconditionRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.startTime_ = startTimeBuilder_ == null
+ ? startTime_
+ : startTimeBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.PreconditionRequest) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.PreconditionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.PreconditionRequest other) {
+ if (other == messages.hvac.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance()) return this;
+ if (hvacZonesBuilder_ == null) {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZones_.isEmpty()) {
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureHvacZonesIsMutable();
+ hvacZones_.addAll(other.hvacZones_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZonesBuilder_.isEmpty()) {
+ hvacZonesBuilder_.dispose();
+ hvacZonesBuilder_ = null;
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ hvacZonesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getHvacZonesFieldBuilder() : null;
+ } else {
+ hvacZonesBuilder_.addAllMessages(other.hvacZones_);
+ }
+ }
+ }
+ if (other.hasStartTime()) {
+ mergeStartTime(other.getStartTime());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ messages.hvac.VehicleRemoteHvac.HVACZone m =
+ input.readMessage(
+ messages.hvac.VehicleRemoteHvac.HVACZone.parser(),
+ extensionRegistry);
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(m);
+ } else {
+ hvacZonesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getStartTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> hvacZones_ =
+ java.util.Collections.emptyList();
+ private void ensureHvacZonesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = new java.util.ArrayList<messages.hvac.VehicleRemoteHvac.HVACZone>(hvacZones_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> hvacZonesBuilder_;
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ if (hvacZonesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ } else {
+ return hvacZonesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public int getHvacZonesCount() {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.size();
+ } else {
+ return hvacZonesBuilder_.getCount();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index);
+ } else {
+ return hvacZonesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addAllHvacZones(
+ java.lang.Iterable<? extends messages.hvac.VehicleRemoteHvac.HVACZone> values) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, hvacZones_);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder clearHvacZones() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder removeHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.remove(index);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder getHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index); } else {
+ return hvacZonesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<? extends messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ if (hvacZonesBuilder_ != null) {
+ return hvacZonesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder() {
+ return getHvacZonesFieldBuilder().addBuilder(
+ messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().addBuilder(
+ index, messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone.Builder>
+ getHvacZonesBuilderList() {
+ return getHvacZonesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesFieldBuilder() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ hvacZones_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ hvacZones_ = null;
+ }
+ return hvacZonesBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp startTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ startTime_ != null &&
+ startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getStartTimeBuilder().mergeFrom(value);
+ } else {
+ startTime_ = value;
+ }
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder clearStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(),
+ getParentForChildren(),
+ isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+ @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.hvac.PreconditionRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionRequest)
+ private static final messages.hvac.VehicleRemoteHvac.PreconditionRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.PreconditionRequest();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionRequest>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionRequest>() {
+ @java.lang.Override
+ public PreconditionRequest 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<PreconditionRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionRequest> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.PreconditionResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ int getStatusValue();
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus();
+
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.PreconditionResponse}
+ */
+ public static final class PreconditionResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.PreconditionResponse)
+ PreconditionResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionResponse.newBuilder() to construct.
+ private PreconditionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionResponse() {
+ status_ = 0;
+ message_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.class, messages.hvac.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code messages.hvac.PreconditionResponse.Status}
+ */
+ public enum Status
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ SUCCESS(0),
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ FAILURE(1),
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ PENDING(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ public static final int SUCCESS_VALUE = 0;
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ public static final int FAILURE_VALUE = 1;
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ public static final int PENDING_VALUE = 2;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Status valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Status forNumber(int value) {
+ switch (value) {
+ case 0: return SUCCESS;
+ case 1: return FAILURE;
+ case 2: return PENDING;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Status>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Status> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Status>() {
+ public Status findValueByNumber(int number) {
+ return Status.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.PreconditionResponse.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Status[] VALUES = values();
+
+ public static Status valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Status(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:messages.hvac.PreconditionResponse.Status)
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 1;
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override public messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status result = messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (status_ != messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ output.writeEnum(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
+ }
+ 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 messages.hvac.VehicleRemoteHvac.PreconditionResponse)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse other = (messages.hvac.VehicleRemoteHvac.PreconditionResponse) obj;
+
+ if (status_ != other.status_) return false;
+ if (!getMessage()
+ .equals(other.getMessage())) 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) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse 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 messages.hvac.VehicleRemoteHvac.PreconditionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse 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 messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse 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(messages.hvac.VehicleRemoteHvac.PreconditionResponse 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.hvac.PreconditionResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.PreconditionResponse)
+ messages.hvac.VehicleRemoteHvac.PreconditionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.class, messages.hvac.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.PreconditionResponse.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ status_ = 0;
+ message_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse build() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse buildPartial() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse result = new messages.hvac.VehicleRemoteHvac.PreconditionResponse(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.PreconditionResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.status_ = status_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.message_ = message_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.PreconditionResponse) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.PreconditionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.PreconditionResponse other) {
+ if (other == messages.hvac.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance()) return this;
+ if (other.status_ != 0) {
+ setStatusValue(other.getStatusValue());
+ }
+ if (!other.getMessage().isEmpty()) {
+ message_ = other.message_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ status_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ message_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @param value The enum numeric value on the wire for status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatusValue(int value) {
+ status_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status result = messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @param value The status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatus(messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ status_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ 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.hvac.PreconditionResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionResponse)
+ private static final messages.hvac.VehicleRemoteHvac.PreconditionResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.PreconditionResponse();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionResponse>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionResponse>() {
+ @java.lang.Override
+ public PreconditionResponse 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<PreconditionResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionResponse> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACStateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.HVACState)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACState.State getState();
+
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ boolean hasCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone getCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.HVACState}
+ */
+ public static final class HVACState extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.HVACState)
+ HVACStateOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACState.newBuilder() to construct.
+ private HVACState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACState() {
+ state_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACState();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACState.class, messages.hvac.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code messages.hvac.HVACState.State}
+ */
+ public enum State
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OFF = 0;</code>
+ */
+ OFF(0),
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ HEATING(1),
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ COOLING(2),
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ IDLE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>OFF = 0;</code>
+ */
+ public static final int OFF_VALUE = 0;
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ public static final int HEATING_VALUE = 1;
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ public static final int COOLING_VALUE = 2;
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ public static final int IDLE_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0: return OFF;
+ case 1: return HEATING;
+ case 2: return COOLING;
+ case 3: return IDLE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<State>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ State> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<State>() {
+ public State findValueByNumber(int number) {
+ return State.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.HVACState.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final State[] VALUES = values();
+
+ public static State valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private State(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:messages.hvac.HVACState.State)
+ }
+
+ public static final int STATE_FIELD_NUMBER = 1;
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override public messages.hvac.VehicleRemoteHvac.HVACState.State getState() {
+ messages.hvac.VehicleRemoteHvac.HVACState.State result = messages.hvac.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+
+ public static final int CURRENT_ZONE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.HVACZone currentZone_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ @java.lang.Override
+ public boolean hasCurrentZone() {
+ return currentZone_ != null;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ return currentZone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ return currentZone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+
+ 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 (state_ != messages.hvac.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (currentZone_ != null) {
+ output.writeMessage(2, getCurrentZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_ != messages.hvac.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, state_);
+ }
+ if (currentZone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getCurrentZone());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.HVACState)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.HVACState other = (messages.hvac.VehicleRemoteHvac.HVACState) obj;
+
+ if (state_ != other.state_) return false;
+ if (hasCurrentZone() != other.hasCurrentZone()) return false;
+ if (hasCurrentZone()) {
+ if (!getCurrentZone()
+ .equals(other.getCurrentZone())) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasCurrentZone()) {
+ hash = (37 * hash) + CURRENT_ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getCurrentZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState 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 messages.hvac.VehicleRemoteHvac.HVACState parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState 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 messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState 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(messages.hvac.VehicleRemoteHvac.HVACState 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.hvac.HVACState}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.HVACState)
+ messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACState.class, messages.hvac.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.HVACState.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ state_ = 0;
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState build() {
+ messages.hvac.VehicleRemoteHvac.HVACState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState buildPartial() {
+ messages.hvac.VehicleRemoteHvac.HVACState result = new messages.hvac.VehicleRemoteHvac.HVACState(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.HVACState result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.currentZone_ = currentZoneBuilder_ == null
+ ? currentZone_
+ : currentZoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.HVACState) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.HVACState)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.HVACState other) {
+ if (other == messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance()) return this;
+ if (other.state_ != 0) {
+ setStateValue(other.getStateValue());
+ }
+ if (other.hasCurrentZone()) {
+ mergeCurrentZone(other.getCurrentZone());
+ }
+ 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: {
+ state_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getCurrentZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState.State getState() {
+ messages.hvac.VehicleRemoteHvac.HVACState.State result = messages.hvac.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(messages.hvac.VehicleRemoteHvac.HVACState.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.HVACZone currentZone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> currentZoneBuilder_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ public boolean hasCurrentZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ if (currentZoneBuilder_ == null) {
+ return currentZone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ } else {
+ return currentZoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ currentZone_ = value;
+ } else {
+ currentZoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(
+ messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (currentZoneBuilder_ == null) {
+ currentZone_ = builderForValue.build();
+ } else {
+ currentZoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder mergeCurrentZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ currentZone_ != null &&
+ currentZone_ != messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getCurrentZoneBuilder().mergeFrom(value);
+ } else {
+ currentZone_ = value;
+ }
+ } else {
+ currentZoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder clearCurrentZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder getCurrentZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getCurrentZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ if (currentZoneBuilder_ != null) {
+ return currentZoneBuilder_.getMessageOrBuilder();
+ } else {
+ return currentZone_ == null ?
+ messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getCurrentZoneFieldBuilder() {
+ if (currentZoneBuilder_ == null) {
+ currentZoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getCurrentZone(),
+ getParentForChildren(),
+ isClean());
+ currentZone_ = null;
+ }
+ return currentZoneBuilder_;
+ }
+ @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.hvac.HVACState)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACState)
+ private static final messages.hvac.VehicleRemoteHvac.HVACState DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.HVACState();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACState>
+ PARSER = new com.google.protobuf.AbstractParser<HVACState>() {
+ @java.lang.Override
+ public HVACState 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<HVACState> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACState> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinTemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.CabinTemperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ messages.hvac.VehicleRemoteHvac.Temperature getTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder();
+
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ boolean hasZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone getZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.CabinTemperature}
+ */
+ public static final class CabinTemperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.CabinTemperature)
+ CabinTemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinTemperature.newBuilder() to construct.
+ private CabinTemperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinTemperature() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinTemperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.class, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 1;
+ private messages.hvac.VehicleRemoteHvac.Temperature temperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return temperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getTemperature() {
+ return temperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ return temperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.HVACZone zone_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ @java.lang.Override
+ public boolean hasZone() {
+ return zone_ != null;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getZone() {
+ return zone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ return zone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+
+ 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 (temperature_ != null) {
+ output.writeMessage(1, getTemperature());
+ }
+ if (zone_ != null) {
+ output.writeMessage(2, getZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (temperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getTemperature());
+ }
+ if (zone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getZone());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.CabinTemperature)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.CabinTemperature other = (messages.hvac.VehicleRemoteHvac.CabinTemperature) obj;
+
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (!getTemperature()
+ .equals(other.getTemperature())) return false;
+ }
+ if (hasZone() != other.hasZone()) return false;
+ if (hasZone()) {
+ if (!getZone()
+ .equals(other.getZone())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTemperature().hashCode();
+ }
+ if (hasZone()) {
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature 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 messages.hvac.VehicleRemoteHvac.CabinTemperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature 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 messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature 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(messages.hvac.VehicleRemoteHvac.CabinTemperature 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.hvac.CabinTemperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.CabinTemperature)
+ messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.class, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.CabinTemperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature build() {
+ messages.hvac.VehicleRemoteHvac.CabinTemperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature buildPartial() {
+ messages.hvac.VehicleRemoteHvac.CabinTemperature result = new messages.hvac.VehicleRemoteHvac.CabinTemperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.CabinTemperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.temperature_ = temperatureBuilder_ == null
+ ? temperature_
+ : temperatureBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.zone_ = zoneBuilder_ == null
+ ? zone_
+ : zoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.CabinTemperature) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.CabinTemperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.CabinTemperature other) {
+ if (other == messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) return this;
+ if (other.hasTemperature()) {
+ mergeTemperature(other.getTemperature());
+ }
+ if (other.hasZone()) {
+ mergeZone(other.getZone());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private messages.hvac.VehicleRemoteHvac.Temperature temperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder> temperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature getTemperature() {
+ if (temperatureBuilder_ == null) {
+ return temperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ } else {
+ return temperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ temperature_ = value;
+ } else {
+ temperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(
+ messages.hvac.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (temperatureBuilder_ == null) {
+ temperature_ = builderForValue.build();
+ } else {
+ temperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder mergeTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ temperature_ != null &&
+ temperature_ != messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTemperatureBuilder().mergeFrom(value);
+ } else {
+ temperature_ = value;
+ }
+ } else {
+ temperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature.Builder getTemperatureBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ if (temperatureBuilder_ != null) {
+ return temperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return temperature_ == null ?
+ messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTemperatureFieldBuilder() {
+ if (temperatureBuilder_ == null) {
+ temperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTemperature(),
+ getParentForChildren(),
+ isClean());
+ temperature_ = null;
+ }
+ return temperatureBuilder_;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.HVACZone zone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> zoneBuilder_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ public boolean hasZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone getZone() {
+ if (zoneBuilder_ == null) {
+ return zone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ } else {
+ return zoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ zone_ = value;
+ } else {
+ zoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(
+ messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (zoneBuilder_ == null) {
+ zone_ = builderForValue.build();
+ } else {
+ zoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder mergeZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ zone_ != null &&
+ zone_ != messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getZoneBuilder().mergeFrom(value);
+ } else {
+ zone_ = value;
+ }
+ } else {
+ zoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder getZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ if (zoneBuilder_ != null) {
+ return zoneBuilder_.getMessageOrBuilder();
+ } else {
+ return zone_ == null ?
+ messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getZoneFieldBuilder() {
+ if (zoneBuilder_ == null) {
+ zoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getZone(),
+ getParentForChildren(),
+ isClean());
+ zone_ = null;
+ }
+ return zoneBuilder_;
+ }
+ @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.hvac.CabinTemperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinTemperature)
+ private static final messages.hvac.VehicleRemoteHvac.CabinTemperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.CabinTemperature();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinTemperature>
+ PARSER = new com.google.protobuf.AbstractParser<CabinTemperature>() {
+ @java.lang.Override
+ public CabinTemperature 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<CabinTemperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinTemperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinConditionStatusPublishOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.CabinConditionStatusPublish)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ boolean hasEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ com.google.protobuf.Timestamp getEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ boolean hasHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACState getHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder();
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ boolean hasCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ messages.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.CabinConditionStatusPublish}
+ */
+ public static final class CabinConditionStatusPublish extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.CabinConditionStatusPublish)
+ CabinConditionStatusPublishOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinConditionStatusPublish.newBuilder() to construct.
+ private CabinConditionStatusPublish(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinConditionStatusPublish() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinConditionStatusPublish();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.class, messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ public static final int EVENT_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp eventTime_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventTime() {
+ return eventTime_ != null;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEventTime() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+
+ public static final int HVAC_STATE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.HVACState hvacState_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ @java.lang.Override
+ public boolean hasHvacState() {
+ return hvacState_ != null;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState getHvacState() {
+ return hvacState_ == null ? messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ return hvacState_ == null ? messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+
+ public static final int CABIN_TEMPERATURE_FIELD_NUMBER = 3;
+ private messages.hvac.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasCabinTemperature() {
+ return cabinTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ return cabinTemperature_ == null ? messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ return cabinTemperature_ == null ? messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+
+ 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 (eventTime_ != null) {
+ output.writeMessage(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ output.writeMessage(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ output.writeMessage(3, getCabinTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (eventTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getCabinTemperature());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish other = (messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish) obj;
+
+ if (hasEventTime() != other.hasEventTime()) return false;
+ if (hasEventTime()) {
+ if (!getEventTime()
+ .equals(other.getEventTime())) return false;
+ }
+ if (hasHvacState() != other.hasHvacState()) return false;
+ if (hasHvacState()) {
+ if (!getHvacState()
+ .equals(other.getHvacState())) return false;
+ }
+ if (hasCabinTemperature() != other.hasCabinTemperature()) return false;
+ if (hasCabinTemperature()) {
+ if (!getCabinTemperature()
+ .equals(other.getCabinTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEventTime()) {
+ hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventTime().hashCode();
+ }
+ if (hasHvacState()) {
+ hash = (37 * hash) + HVAC_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacState().hashCode();
+ }
+ if (hasCabinTemperature()) {
+ hash = (37 * hash) + CABIN_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getCabinTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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 messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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 messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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(messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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.hvac.CabinConditionStatusPublish}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.CabinConditionStatusPublish)
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublishOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.class, messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish build() {
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish buildPartial() {
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result = new messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.eventTime_ = eventTimeBuilder_ == null
+ ? eventTime_
+ : eventTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.hvacState_ = hvacStateBuilder_ == null
+ ? hvacState_
+ : hvacStateBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.cabinTemperature_ = cabinTemperatureBuilder_ == null
+ ? cabinTemperature_
+ : cabinTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish other) {
+ if (other == messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance()) return this;
+ if (other.hasEventTime()) {
+ mergeEventTime(other.getEventTime());
+ }
+ if (other.hasHvacState()) {
+ mergeHvacState(other.getHvacState());
+ }
+ if (other.hasCabinTemperature()) {
+ mergeCabinTemperature(other.getCabinTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getEventTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getHvacStateFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getCabinTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Timestamp eventTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ public boolean hasEventTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ public com.google.protobuf.Timestamp getEventTime() {
+ if (eventTimeBuilder_ == null) {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ } else {
+ return eventTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventTime_ = value;
+ } else {
+ eventTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (eventTimeBuilder_ == null) {
+ eventTime_ = builderForValue.build();
+ } else {
+ eventTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ eventTime_ != null &&
+ eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEventTimeBuilder().mergeFrom(value);
+ } else {
+ eventTime_ = value;
+ }
+ } else {
+ eventTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder clearEventTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getEventTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ if (eventTimeBuilder_ != null) {
+ return eventTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return eventTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getEventTimeFieldBuilder() {
+ if (eventTimeBuilder_ == null) {
+ eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getEventTime(),
+ getParentForChildren(),
+ isClean());
+ eventTime_ = null;
+ }
+ return eventTimeBuilder_;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.HVACState hvacState_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACState, messages.hvac.VehicleRemoteHvac.HVACState.Builder, messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder> hvacStateBuilder_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ public boolean hasHvacState() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACState getHvacState() {
+ if (hvacStateBuilder_ == null) {
+ return hvacState_ == null ? messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ } else {
+ return hvacStateBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(messages.hvac.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ hvacState_ = value;
+ } else {
+ hvacStateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(
+ messages.hvac.VehicleRemoteHvac.HVACState.Builder builderForValue) {
+ if (hvacStateBuilder_ == null) {
+ hvacState_ = builderForValue.build();
+ } else {
+ hvacStateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder mergeHvacState(messages.hvac.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ hvacState_ != null &&
+ hvacState_ != messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance()) {
+ getHvacStateBuilder().mergeFrom(value);
+ } else {
+ hvacState_ = value;
+ }
+ } else {
+ hvacStateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder clearHvacState() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACState.Builder getHvacStateBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getHvacStateFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ if (hvacStateBuilder_ != null) {
+ return hvacStateBuilder_.getMessageOrBuilder();
+ } else {
+ return hvacState_ == null ?
+ messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACState, messages.hvac.VehicleRemoteHvac.HVACState.Builder, messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder>
+ getHvacStateFieldBuilder() {
+ if (hvacStateBuilder_ == null) {
+ hvacStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACState, messages.hvac.VehicleRemoteHvac.HVACState.Builder, messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder>(
+ getHvacState(),
+ getParentForChildren(),
+ isClean());
+ hvacState_ = null;
+ }
+ return hvacStateBuilder_;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.CabinTemperature, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder, messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder> cabinTemperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ public boolean hasCabinTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ if (cabinTemperatureBuilder_ == null) {
+ return cabinTemperature_ == null ? messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ } else {
+ return cabinTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(messages.hvac.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cabinTemperature_ = value;
+ } else {
+ cabinTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder builderForValue) {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperature_ = builderForValue.build();
+ } else {
+ cabinTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder mergeCabinTemperature(messages.hvac.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ cabinTemperature_ != null &&
+ cabinTemperature_ != messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) {
+ getCabinTemperatureBuilder().mergeFrom(value);
+ } else {
+ cabinTemperature_ = value;
+ }
+ } else {
+ cabinTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder clearCabinTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder getCabinTemperatureBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getCabinTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ if (cabinTemperatureBuilder_ != null) {
+ return cabinTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return cabinTemperature_ == null ?
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.CabinTemperature, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder, messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder>
+ getCabinTemperatureFieldBuilder() {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.CabinTemperature, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder, messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder>(
+ getCabinTemperature(),
+ getParentForChildren(),
+ isClean());
+ cabinTemperature_ = null;
+ }
+ return cabinTemperatureBuilder_;
+ }
+ @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.hvac.CabinConditionStatusPublish)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinConditionStatusPublish)
+ private static final messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinConditionStatusPublish>
+ PARSER = new com.google.protobuf.AbstractParser<CabinConditionStatusPublish>() {
+ @java.lang.Override
+ public CabinConditionStatusPublish 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<CabinConditionStatusPublish> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinConditionStatusPublish> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_Temperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_Temperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_HVACZone_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_HVACZone_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_PreconditionRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_PreconditionResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_HVACState_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_HVACState_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_CabinTemperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_CabinTemperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_CabinConditionStatusPublish_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/VehicleRemoteHvac.proto\022\rmess" +
+ "ages.hvac\032\037google/protobuf/timestamp.pro" +
+ "to\"*\n\013Temperature\022\r\n\005value\030\001 \001(\002\022\014\n\004unit" +
+ "\030\002 \001(\t\"\260\001\n\010HVACZone\022*\n\004zone\030\001 \001(\0162\034.mess" +
+ "ages.hvac.HVACZone.Zone\0226\n\022target_temper" +
+ "ature\030\002 \001(\0132\032.messages.hvac.Temperature\"" +
+ "@\n\004Zone\022\n\n\006DRIVER\020\000\022\r\n\tPASSENGER\020\001\022\r\n\tRE" +
+ "AR_LEFT\020\002\022\016\n\nREAR_RIGHT\020\003\"r\n\023Preconditio" +
+ "nRequest\022+\n\nhvac_zones\030\001 \003(\0132\027.messages." +
+ "hvac.HVACZone\022.\n\nstart_time\030\002 \001(\0132\032.goog" +
+ "le.protobuf.Timestamp\"\224\001\n\024PreconditionRe" +
+ "sponse\022:\n\006status\030\001 \001(\0162*.messages.hvac.P" +
+ "reconditionResponse.Status\022\017\n\007message\030\002 " +
+ "\001(\t\"/\n\006Status\022\013\n\007SUCCESS\020\000\022\013\n\007FAILURE\020\001\022" +
+ "\013\n\007PENDING\020\002\"\237\001\n\tHVACState\022-\n\005state\030\001 \001(" +
+ "\0162\036.messages.hvac.HVACState.State\022-\n\014cur" +
+ "rent_zone\030\002 \001(\0132\027.messages.hvac.HVACZone" +
+ "\"4\n\005State\022\007\n\003OFF\020\000\022\013\n\007HEATING\020\001\022\013\n\007COOLI" +
+ "NG\020\002\022\010\n\004IDLE\020\003\"j\n\020CabinTemperature\022/\n\013te" +
+ "mperature\030\001 \001(\0132\032.messages.hvac.Temperat" +
+ "ure\022%\n\004zone\030\002 \001(\0132\027.messages.hvac.HVACZo" +
+ "ne\"\267\001\n\033CabinConditionStatusPublish\022.\n\nev" +
+ "ent_time\030\001 \001(\0132\032.google.protobuf.Timesta" +
+ "mp\022,\n\nhvac_state\030\002 \001(\0132\030.messages.hvac.H" +
+ "VACState\022:\n\021cabin_temperature\030\003 \001(\0132\037.me" +
+ "ssages.hvac.CabinTemperatureb\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_messages_hvac_Temperature_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_messages_hvac_Temperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_Temperature_descriptor,
+ new java.lang.String[] { "Value", "Unit", });
+ internal_static_messages_hvac_HVACZone_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_messages_hvac_HVACZone_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_HVACZone_descriptor,
+ new java.lang.String[] { "Zone", "TargetTemperature", });
+ internal_static_messages_hvac_PreconditionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_PreconditionRequest_descriptor,
+ new java.lang.String[] { "HvacZones", "StartTime", });
+ internal_static_messages_hvac_PreconditionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_PreconditionResponse_descriptor,
+ new java.lang.String[] { "Status", "Message", });
+ internal_static_messages_hvac_HVACState_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_messages_hvac_HVACState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_HVACState_descriptor,
+ new java.lang.String[] { "State", "CurrentZone", });
+ internal_static_messages_hvac_CabinTemperature_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_messages_hvac_CabinTemperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_CabinTemperature_descriptor,
+ new java.lang.String[] { "Temperature", "Zone", });
+ internal_static_messages_hvac_CabinConditionStatusPublish_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_messages_hvac_CabinConditionStatusPublish_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_CabinConditionStatusPublish_descriptor,
+ new java.lang.String[] { "EventTime", "HvacState", "CabinTemperature", });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/build/tmp/.cache/expanded.lock b/build/tmp/.cache/expanded.lock
new file mode 100644
index 0000000..ec266a1
--- /dev/null
+++ b/build/tmp/.cache/expanded.lock
Binary files differ
diff --git a/src/main/cpp/messages/VehicleRemoteHvac.pb.cc b/src/main/cpp/messages/VehicleRemoteHvac.pb.cc
index 894932e..f4e7efe 100644
--- a/src/main/cpp/messages/VehicleRemoteHvac.pb.cc
+++ b/src/main/cpp/messages/VehicleRemoteHvac.pb.cc
@@ -19,223 +19,267 @@ PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace messages {
-PROTOBUF_CONSTEXPR CabinPreconditionRequest::CabinPreconditionRequest(
+namespace hvac {
+PROTOBUF_CONSTEXPR Temperature::Temperature(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.messageheader_)*/nullptr
- , /*decltype(_impl_.setacstatus_)*/nullptr
- , /*decltype(_impl_.settemp_)*/nullptr
+ /*decltype(_impl_.unit_)*/ {
+ &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
+ }
+
+ , /*decltype(_impl_.value_)*/ 0
+
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct CabinPreconditionRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR CabinPreconditionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~CabinPreconditionRequestDefaultTypeInternal() {}
+struct TemperatureDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR TemperatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~TemperatureDefaultTypeInternal() {}
union {
- CabinPreconditionRequest _instance;
+ Temperature _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinPreconditionRequestDefaultTypeInternal _CabinPreconditionRequest_default_instance_;
-PROTOBUF_CONSTEXPR CabinPreConditionReponse::CabinPreConditionReponse(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemperatureDefaultTypeInternal _Temperature_default_instance_;
+PROTOBUF_CONSTEXPR HVACZone::HVACZone(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.messageheader_)*/nullptr
- , /*decltype(_impl_.setacstatusreply_)*/nullptr
- , /*decltype(_impl_.settemperaturereply_)*/nullptr
+ /*decltype(_impl_.target_temperature_)*/nullptr
+ , /*decltype(_impl_.zone_)*/ 0
+
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct CabinPreConditionReponseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR CabinPreConditionReponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~CabinPreConditionReponseDefaultTypeInternal() {}
+struct HVACZoneDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR HVACZoneDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~HVACZoneDefaultTypeInternal() {}
union {
- CabinPreConditionReponse _instance;
+ HVACZone _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinPreConditionReponseDefaultTypeInternal _CabinPreConditionReponse_default_instance_;
-PROTOBUF_CONSTEXPR SetAcStatusRequest::SetAcStatusRequest(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HVACZoneDefaultTypeInternal _HVACZone_default_instance_;
+PROTOBUF_CONSTEXPR PreconditionRequest::PreconditionRequest(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.desiredstatus_)*/ 0
-
+ /*decltype(_impl_.hvac_zones_)*/{}
+ , /*decltype(_impl_.start_time_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetAcStatusRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetAcStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetAcStatusRequestDefaultTypeInternal() {}
+struct PreconditionRequestDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR PreconditionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~PreconditionRequestDefaultTypeInternal() {}
union {
- SetAcStatusRequest _instance;
+ PreconditionRequest _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAcStatusRequestDefaultTypeInternal _SetAcStatusRequest_default_instance_;
-PROTOBUF_CONSTEXPR SetAcStatusReply::SetAcStatusReply(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionRequestDefaultTypeInternal _PreconditionRequest_default_instance_;
+PROTOBUF_CONSTEXPR PreconditionResponse::PreconditionResponse(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.status_)*/ 0
+ /*decltype(_impl_.message_)*/ {
+ &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
+ }
+
+ , /*decltype(_impl_.status_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetAcStatusReplyDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetAcStatusReplyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetAcStatusReplyDefaultTypeInternal() {}
+struct PreconditionResponseDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR PreconditionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~PreconditionResponseDefaultTypeInternal() {}
union {
- SetAcStatusReply _instance;
+ PreconditionResponse _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAcStatusReplyDefaultTypeInternal _SetAcStatusReply_default_instance_;
-PROTOBUF_CONSTEXPR SetTemperatureRequest::SetTemperatureRequest(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionResponseDefaultTypeInternal _PreconditionResponse_default_instance_;
+PROTOBUF_CONSTEXPR HVACState::HVACState(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.temperature_)*/ 0
+ /*decltype(_impl_.current_zone_)*/nullptr
+ , /*decltype(_impl_.state_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetTemperatureRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetTemperatureRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetTemperatureRequestDefaultTypeInternal() {}
+struct HVACStateDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR HVACStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~HVACStateDefaultTypeInternal() {}
union {
- SetTemperatureRequest _instance;
+ HVACState _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTemperatureRequestDefaultTypeInternal _SetTemperatureRequest_default_instance_;
-PROTOBUF_CONSTEXPR SetTemperatureReply::SetTemperatureReply(
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HVACStateDefaultTypeInternal _HVACState_default_instance_;
+PROTOBUF_CONSTEXPR CabinTemperature::CabinTemperature(
::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.tempstatus_)*/ 0
+ /*decltype(_impl_.temperature_)*/nullptr
+ , /*decltype(_impl_.zone_)*/nullptr
+ , /*decltype(_impl_._cached_size_)*/{}} {}
+struct CabinTemperatureDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR CabinTemperatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~CabinTemperatureDefaultTypeInternal() {}
+ union {
+ CabinTemperature _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinTemperatureDefaultTypeInternal _CabinTemperature_default_instance_;
+PROTOBUF_CONSTEXPR CabinConditionStatusPublish::CabinConditionStatusPublish(
+ ::_pbi::ConstantInitialized): _impl_{
+ /*decltype(_impl_.event_time_)*/nullptr
+ , /*decltype(_impl_.hvac_state_)*/nullptr
+ , /*decltype(_impl_.cabin_temperature_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
-struct SetTemperatureReplyDefaultTypeInternal {
- PROTOBUF_CONSTEXPR SetTemperatureReplyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~SetTemperatureReplyDefaultTypeInternal() {}
+struct CabinConditionStatusPublishDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR CabinConditionStatusPublishDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~CabinConditionStatusPublishDefaultTypeInternal() {}
union {
- SetTemperatureReply _instance;
+ CabinConditionStatusPublish _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTemperatureReplyDefaultTypeInternal _SetTemperatureReply_default_instance_;
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CabinConditionStatusPublishDefaultTypeInternal _CabinConditionStatusPublish_default_instance_;
+} // namespace hvac
} // namespace messages
-static ::_pb::Metadata file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[6];
-static const ::_pb::EnumDescriptor* file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[2];
+static ::_pb::Metadata file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[7];
+static const ::_pb::EnumDescriptor* file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[3];
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_messages_2fVehicleRemoteHvac_2eproto = nullptr;
const ::uint32_t TableStruct_messages_2fVehicleRemoteHvac_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::Temperature, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _impl_.messageheader_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _impl_.setacstatus_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreconditionRequest, _impl_.settemp_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::Temperature, _impl_.value_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::Temperature, _impl_.unit_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACZone, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _impl_.messageheader_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _impl_.setacstatusreply_),
- PROTOBUF_FIELD_OFFSET(::messages::CabinPreConditionReponse, _impl_.settemperaturereply_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACZone, _impl_.zone_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACZone, _impl_.target_temperature_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusRequest, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionRequest, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusRequest, _impl_.desiredstatus_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionRequest, _impl_.hvac_zones_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionRequest, _impl_.start_time_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusReply, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionResponse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetAcStatusReply, _impl_.status_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionResponse, _impl_.status_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::PreconditionResponse, _impl_.message_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureRequest, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACState, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureRequest, _impl_.temperature_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACState, _impl_.state_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::HVACState, _impl_.current_zone_),
~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureReply, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinTemperature, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::messages::SetTemperatureReply, _impl_.tempstatus_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinTemperature, _impl_.temperature_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinTemperature, _impl_.zone_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ ~0u, // no _split_
+ ~0u, // no sizeof(Split)
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _impl_.event_time_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _impl_.hvac_state_),
+ PROTOBUF_FIELD_OFFSET(::messages::hvac::CabinConditionStatusPublish, _impl_.cabin_temperature_),
};
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, -1, sizeof(::messages::CabinPreconditionRequest)},
- { 11, -1, -1, sizeof(::messages::CabinPreConditionReponse)},
- { 22, -1, -1, sizeof(::messages::SetAcStatusRequest)},
- { 31, -1, -1, sizeof(::messages::SetAcStatusReply)},
- { 40, -1, -1, sizeof(::messages::SetTemperatureRequest)},
- { 49, -1, -1, sizeof(::messages::SetTemperatureReply)},
+ { 0, -1, -1, sizeof(::messages::hvac::Temperature)},
+ { 10, -1, -1, sizeof(::messages::hvac::HVACZone)},
+ { 20, -1, -1, sizeof(::messages::hvac::PreconditionRequest)},
+ { 30, -1, -1, sizeof(::messages::hvac::PreconditionResponse)},
+ { 40, -1, -1, sizeof(::messages::hvac::HVACState)},
+ { 50, -1, -1, sizeof(::messages::hvac::CabinTemperature)},
+ { 60, -1, -1, sizeof(::messages::hvac::CabinConditionStatusPublish)},
};
static const ::_pb::Message* const file_default_instances[] = {
- &::messages::_CabinPreconditionRequest_default_instance_._instance,
- &::messages::_CabinPreConditionReponse_default_instance_._instance,
- &::messages::_SetAcStatusRequest_default_instance_._instance,
- &::messages::_SetAcStatusReply_default_instance_._instance,
- &::messages::_SetTemperatureRequest_default_instance_._instance,
- &::messages::_SetTemperatureReply_default_instance_._instance,
+ &::messages::hvac::_Temperature_default_instance_._instance,
+ &::messages::hvac::_HVACZone_default_instance_._instance,
+ &::messages::hvac::_PreconditionRequest_default_instance_._instance,
+ &::messages::hvac::_PreconditionResponse_default_instance_._instance,
+ &::messages::hvac::_HVACState_default_instance_._instance,
+ &::messages::hvac::_CabinTemperature_default_instance_._instance,
+ &::messages::hvac::_CabinConditionStatusPublish_default_instance_._instance,
};
const char descriptor_table_protodef_messages_2fVehicleRemoteHvac_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n messages/VehicleRemoteHvac.proto\022\010mess"
- "ages\032\017vss/vspec.proto\032#messages/VehicleM"
- "essageHeader.proto\"\267\001\n\030CabinPrecondition"
- "Request\0226\n\rmessageHeader\030\001 \001(\0132\037.message"
- "s.VehicleMessageHeading\0221\n\013setAcStatus\030\002"
- " \001(\0132\034.messages.SetAcStatusRequest\0220\n\007se"
- "tTemp\030\003 \001(\0132\037.messages.SetTemperatureReq"
- "uest\"\304\001\n\030CabinPreConditionReponse\0226\n\rmes"
- "sageHeader\030\001 \001(\0132\037.messages.VehicleMessa"
- "geHeading\0224\n\020setAcStatusReply\030\002 \001(\0132\032.me"
- "ssages.SetAcStatusReply\022:\n\023setTemperatur"
- "eReply\030\003 \001(\0132\035.messages.SetTemperatureRe"
- "ply\"C\n\022SetAcStatusRequest\022-\n\rdesiredStat"
- "us\030\001 \001(\0162\026.messages.AcStatusEnum\":\n\020SetA"
- "cStatusReply\022&\n\006status\030\001 \001(\0162\026.messages."
- "AcStatusEnum\",\n\025SetTemperatureRequest\022\023\n"
- "\013temperature\030\001 \001(\002\"F\n\023SetTemperatureRepl"
- "y\022/\n\ntempStatus\030\001 \001(\0162\033.messages.SetTemp"
- "StatusEnum*2\n\014AcStatusEnum\022\006\n\002ON\020\000\022\007\n\003OF"
- "F\020\001\022\021\n\rUKNONWN_ERROR\020\002*5\n\021SetTempStatusE"
- "num\022\020\n\014TEMP_SUCCESS\020\000\022\016\n\nTEMP_ERROR\020\001b\006p"
- "roto3"
+ "\n messages/VehicleRemoteHvac.proto\022\rmess"
+ "ages.hvac\032\037google/protobuf/timestamp.pro"
+ "to\"*\n\013Temperature\022\r\n\005value\030\001 \001(\002\022\014\n\004unit"
+ "\030\002 \001(\t\"\260\001\n\010HVACZone\022*\n\004zone\030\001 \001(\0162\034.mess"
+ "ages.hvac.HVACZone.Zone\0226\n\022target_temper"
+ "ature\030\002 \001(\0132\032.messages.hvac.Temperature\""
+ "@\n\004Zone\022\n\n\006DRIVER\020\000\022\r\n\tPASSENGER\020\001\022\r\n\tRE"
+ "AR_LEFT\020\002\022\016\n\nREAR_RIGHT\020\003\"r\n\023Preconditio"
+ "nRequest\022+\n\nhvac_zones\030\001 \003(\0132\027.messages."
+ "hvac.HVACZone\022.\n\nstart_time\030\002 \001(\0132\032.goog"
+ "le.protobuf.Timestamp\"\224\001\n\024PreconditionRe"
+ "sponse\022:\n\006status\030\001 \001(\0162*.messages.hvac.P"
+ "reconditionResponse.Status\022\017\n\007message\030\002 "
+ "\001(\t\"/\n\006Status\022\013\n\007SUCCESS\020\000\022\013\n\007FAILURE\020\001\022"
+ "\013\n\007PENDING\020\002\"\237\001\n\tHVACState\022-\n\005state\030\001 \001("
+ "\0162\036.messages.hvac.HVACState.State\022-\n\014cur"
+ "rent_zone\030\002 \001(\0132\027.messages.hvac.HVACZone"
+ "\"4\n\005State\022\007\n\003OFF\020\000\022\013\n\007HEATING\020\001\022\013\n\007COOLI"
+ "NG\020\002\022\010\n\004IDLE\020\003\"j\n\020CabinTemperature\022/\n\013te"
+ "mperature\030\001 \001(\0132\032.messages.hvac.Temperat"
+ "ure\022%\n\004zone\030\002 \001(\0132\027.messages.hvac.HVACZo"
+ "ne\"\267\001\n\033CabinConditionStatusPublish\022.\n\nev"
+ "ent_time\030\001 \001(\0132\032.google.protobuf.Timesta"
+ "mp\022,\n\nhvac_state\030\002 \001(\0132\030.messages.hvac.H"
+ "VACState\022:\n\021cabin_temperature\030\003 \001(\0132\037.me"
+ "ssages.hvac.CabinTemperatureb\006proto3"
};
-static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehicleRemoteHvac_2eproto_deps[2] =
+static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehicleRemoteHvac_2eproto_deps[1] =
{
- &::descriptor_table_messages_2fVehicleMessageHeader_2eproto,
- &::descriptor_table_vss_2fvspec_2eproto,
+ &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
};
static ::absl::once_flag descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_messages_2fVehicleRemoteHvac_2eproto = {
false,
false,
- 845,
+ 1036,
descriptor_table_protodef_messages_2fVehicleRemoteHvac_2eproto,
"messages/VehicleRemoteHvac.proto",
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
descriptor_table_messages_2fVehicleRemoteHvac_2eproto_deps,
- 2,
- 6,
+ 1,
+ 7,
schemas,
file_default_instances,
TableStruct_messages_2fVehicleRemoteHvac_2eproto::offsets,
@@ -262,99 +306,374 @@ PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_messages
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_messages_2fVehicleRemoteHvac_2eproto(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
namespace messages {
-const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AcStatusEnum_descriptor() {
+namespace hvac {
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HVACZone_Zone_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
return file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[0];
}
-bool AcStatusEnum_IsValid(int value) {
+bool HVACZone_Zone_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
+ case 3:
return true;
default:
return false;
}
}
-const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SetTempStatusEnum_descriptor() {
+#if (__cplusplus < 201703) && \
+ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+
+constexpr HVACZone_Zone HVACZone::DRIVER;
+constexpr HVACZone_Zone HVACZone::PASSENGER;
+constexpr HVACZone_Zone HVACZone::REAR_LEFT;
+constexpr HVACZone_Zone HVACZone::REAR_RIGHT;
+constexpr HVACZone_Zone HVACZone::Zone_MIN;
+constexpr HVACZone_Zone HVACZone::Zone_MAX;
+constexpr int HVACZone::Zone_ARRAYSIZE;
+
+#endif // (__cplusplus < 201703) &&
+ // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PreconditionResponse_Status_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
return file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[1];
}
-bool SetTempStatusEnum_IsValid(int value) {
+bool PreconditionResponse_Status_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+#if (__cplusplus < 201703) && \
+ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+
+constexpr PreconditionResponse_Status PreconditionResponse::SUCCESS;
+constexpr PreconditionResponse_Status PreconditionResponse::FAILURE;
+constexpr PreconditionResponse_Status PreconditionResponse::PENDING;
+constexpr PreconditionResponse_Status PreconditionResponse::Status_MIN;
+constexpr PreconditionResponse_Status PreconditionResponse::Status_MAX;
+constexpr int PreconditionResponse::Status_ARRAYSIZE;
+
+#endif // (__cplusplus < 201703) &&
+ // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HVACState_State_descriptor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehicleRemoteHvac_2eproto);
+ return file_level_enum_descriptors_messages_2fVehicleRemoteHvac_2eproto[2];
+}
+bool HVACState_State_IsValid(int value) {
switch (value) {
case 0:
case 1:
+ case 2:
+ case 3:
return true;
default:
return false;
}
}
+#if (__cplusplus < 201703) && \
+ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+
+constexpr HVACState_State HVACState::OFF;
+constexpr HVACState_State HVACState::HEATING;
+constexpr HVACState_State HVACState::COOLING;
+constexpr HVACState_State HVACState::IDLE;
+constexpr HVACState_State HVACState::State_MIN;
+constexpr HVACState_State HVACState::State_MAX;
+constexpr int HVACState::State_ARRAYSIZE;
+
+#endif // (__cplusplus < 201703) &&
+ // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
// ===================================================================
-class CabinPreconditionRequest::_Internal {
+class Temperature::_Internal {
public:
- static const ::messages::VehicleMessageHeading& messageheader(const CabinPreconditionRequest* msg);
- static const ::messages::SetAcStatusRequest& setacstatus(const CabinPreconditionRequest* msg);
- static const ::messages::SetTemperatureRequest& settemp(const CabinPreconditionRequest* msg);
};
-const ::messages::VehicleMessageHeading&
-CabinPreconditionRequest::_Internal::messageheader(const CabinPreconditionRequest* msg) {
- return *msg->_impl_.messageheader_;
+Temperature::Temperature(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.Temperature)
+}
+Temperature::Temperature(const Temperature& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ Temperature* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.unit_) {}
+
+ , decltype(_impl_.value_) {}
+
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ _impl_.unit_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.unit_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_unit().empty()) {
+ _this->_impl_.unit_.Set(from._internal_unit(), _this->GetArenaForAllocation());
+ }
+ _this->_impl_.value_ = from._impl_.value_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.Temperature)
+}
+
+inline void Temperature::SharedCtor(::_pb::Arena* arena) {
+ (void)arena;
+ new (&_impl_) Impl_{
+ decltype(_impl_.unit_) {}
+
+ , decltype(_impl_.value_) { 0 }
+
+ , /*decltype(_impl_._cached_size_)*/{}
+ };
+ _impl_.unit_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.unit_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+Temperature::~Temperature() {
+ // @@protoc_insertion_point(destructor:messages.hvac.Temperature)
+ if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
+ (void)arena;
+ return;
+ }
+ SharedDtor();
+}
+
+inline void Temperature::SharedDtor() {
+ ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ _impl_.unit_.Destroy();
+}
+
+void Temperature::SetCachedSize(int size) const {
+ _impl_._cached_size_.Set(size);
+}
+
+void Temperature::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.Temperature)
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ _impl_.unit_.ClearToEmpty();
+ _impl_.value_ = 0;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* Temperature::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ ::uint32_t tag;
+ ptr = ::_pbi::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // float value = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
+ _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // string unit = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ auto str = _internal_mutable_unit();
+ ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ CHK_(::_pbi::VerifyUTF8(str, "messages.hvac.Temperature.unit"));
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
}
-const ::messages::SetAcStatusRequest&
-CabinPreconditionRequest::_Internal::setacstatus(const CabinPreconditionRequest* msg) {
- return *msg->_impl_.setacstatus_;
+
+::uint8_t* Temperature::_InternalSerialize(
+ ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.Temperature)
+ ::uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // float value = 1;
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
+ float tmp_value = this->_internal_value();
+ ::uint32_t raw_value;
+ memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
+ if (raw_value != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
+ 1, this->_internal_value(), target);
+ }
+
+ // string unit = 2;
+ if (!this->_internal_unit().empty()) {
+ const std::string& _s = this->_internal_unit();
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.hvac.Temperature.unit");
+ target = stream->WriteStringMaybeAliased(2, _s, target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.Temperature)
+ return target;
}
-const ::messages::SetTemperatureRequest&
-CabinPreconditionRequest::_Internal::settemp(const CabinPreconditionRequest* msg) {
- return *msg->_impl_.settemp_;
+
+::size_t Temperature::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.Temperature)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string unit = 2;
+ if (!this->_internal_unit().empty()) {
+ total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_unit());
+ }
+
+ // float value = 1;
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
+ float tmp_value = this->_internal_value();
+ ::uint32_t raw_value;
+ memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
+ if (raw_value != 0) {
+ total_size += 5;
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-void CabinPreconditionRequest::clear_messageheader() {
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Temperature::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
+ Temperature::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Temperature::GetClassData() const { return &_class_data_; }
+
+
+void Temperature::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<Temperature*>(&to_msg);
+ auto& from = static_cast<const Temperature&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.Temperature)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_unit().empty()) {
+ _this->_internal_set_unit(from._internal_unit());
}
- _impl_.messageheader_ = nullptr;
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
+ float tmp_value = from._internal_value();
+ ::uint32_t raw_value;
+ memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
+ if (raw_value != 0) {
+ _this->_internal_set_value(from._internal_value());
+ }
+ _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void Temperature::CopyFrom(const Temperature& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.Temperature)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Temperature::IsInitialized() const {
+ return true;
+}
+
+void Temperature::InternalSwap(Temperature* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.unit_, lhs_arena,
+ &other->_impl_.unit_, rhs_arena);
+
+ swap(_impl_.value_, other->_impl_.value_);
}
-CabinPreconditionRequest::CabinPreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+
+::PROTOBUF_NAMESPACE_ID::Metadata Temperature::GetMetadata() const {
+ return ::_pbi::AssignDescriptors(
+ &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[0]);
+}
+// ===================================================================
+
+class HVACZone::_Internal {
+ public:
+ static const ::messages::hvac::Temperature& target_temperature(const HVACZone* msg);
+};
+
+const ::messages::hvac::Temperature&
+HVACZone::_Internal::target_temperature(const HVACZone* msg) {
+ return *msg->_impl_.target_temperature_;
+}
+HVACZone::HVACZone(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.CabinPreconditionRequest)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.HVACZone)
}
-CabinPreconditionRequest::CabinPreconditionRequest(const CabinPreconditionRequest& from)
+HVACZone::HVACZone(const HVACZone& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
- CabinPreconditionRequest* const _this = this; (void)_this;
+ HVACZone* const _this = this; (void)_this;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatus_){nullptr}
- , decltype(_impl_.settemp_){nullptr}
+ decltype(_impl_.target_temperature_){nullptr}
+ , decltype(_impl_.zone_) {}
+
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_messageheader()) {
- _this->_impl_.messageheader_ = new ::messages::VehicleMessageHeading(*from._impl_.messageheader_);
- }
- if (from._internal_has_setacstatus()) {
- _this->_impl_.setacstatus_ = new ::messages::SetAcStatusRequest(*from._impl_.setacstatus_);
+ if (from._internal_has_target_temperature()) {
+ _this->_impl_.target_temperature_ = new ::messages::hvac::Temperature(*from._impl_.target_temperature_);
}
- if (from._internal_has_settemp()) {
- _this->_impl_.settemp_ = new ::messages::SetTemperatureRequest(*from._impl_.settemp_);
- }
- // @@protoc_insertion_point(copy_constructor:messages.CabinPreconditionRequest)
+ _this->_impl_.zone_ = from._impl_.zone_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.HVACZone)
}
-inline void CabinPreconditionRequest::SharedCtor(::_pb::Arena* arena) {
+inline void HVACZone::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatus_){nullptr}
- , decltype(_impl_.settemp_){nullptr}
+ decltype(_impl_.target_temperature_){nullptr}
+ , decltype(_impl_.zone_) { 0 }
+
, /*decltype(_impl_._cached_size_)*/{}
};
}
-CabinPreconditionRequest::~CabinPreconditionRequest() {
- // @@protoc_insertion_point(destructor:messages.CabinPreconditionRequest)
+HVACZone::~HVACZone() {
+ // @@protoc_insertion_point(destructor:messages.hvac.HVACZone)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -362,66 +681,49 @@ CabinPreconditionRequest::~CabinPreconditionRequest() {
SharedDtor();
}
-inline void CabinPreconditionRequest::SharedDtor() {
+inline void HVACZone::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance()) delete _impl_.messageheader_;
- if (this != internal_default_instance()) delete _impl_.setacstatus_;
- if (this != internal_default_instance()) delete _impl_.settemp_;
+ if (this != internal_default_instance()) delete _impl_.target_temperature_;
}
-void CabinPreconditionRequest::SetCachedSize(int size) const {
+void HVACZone::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void CabinPreconditionRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.CabinPreconditionRequest)
+void HVACZone::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.HVACZone)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
- }
- _impl_.messageheader_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatus_ != nullptr) {
- delete _impl_.setacstatus_;
+ if (GetArenaForAllocation() == nullptr && _impl_.target_temperature_ != nullptr) {
+ delete _impl_.target_temperature_;
}
- _impl_.setacstatus_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.settemp_ != nullptr) {
- delete _impl_.settemp_;
- }
- _impl_.settemp_ = nullptr;
+ _impl_.target_temperature_ = nullptr;
+ _impl_.zone_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* CabinPreconditionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* HVACZone::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.VehicleMessageHeading messageHeader = 1;
+ // .messages.hvac.HVACZone.Zone zone = 1;
case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_messageheader(), ptr);
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
+ ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
+ _internal_set_zone(static_cast<::messages::hvac::HVACZone_Zone>(val));
} else {
goto handle_unusual;
}
continue;
- // .messages.SetAcStatusRequest setAcStatus = 2;
+ // .messages.hvac.Temperature target_temperature = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_setacstatus(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .messages.SetTemperatureRequest setTemp = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_settemp(), ptr);
+ ptr = ctx->ParseMessage(_internal_mutable_target_temperature(), ptr);
CHK_(ptr);
} else {
goto handle_unusual;
@@ -450,196 +752,158 @@ failure:
#undef CHK_
}
-::uint8_t* CabinPreconditionRequest::_InternalSerialize(
+::uint8_t* HVACZone::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.CabinPreconditionRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.HVACZone)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, _Internal::messageheader(this),
- _Internal::messageheader(this).GetCachedSize(), target, stream);
- }
-
- // .messages.SetAcStatusRequest setAcStatus = 2;
- if (this->_internal_has_setacstatus()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, _Internal::setacstatus(this),
- _Internal::setacstatus(this).GetCachedSize(), target, stream);
+ // .messages.hvac.HVACZone.Zone zone = 1;
+ if (this->_internal_zone() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 1, this->_internal_zone(), target);
}
- // .messages.SetTemperatureRequest setTemp = 3;
- if (this->_internal_has_settemp()) {
+ // .messages.hvac.Temperature target_temperature = 2;
+ if (this->_internal_has_target_temperature()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::settemp(this),
- _Internal::settemp(this).GetCachedSize(), target, stream);
+ InternalWriteMessage(2, _Internal::target_temperature(this),
+ _Internal::target_temperature(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.CabinPreconditionRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.HVACZone)
return target;
}
-::size_t CabinPreconditionRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.CabinPreconditionRequest)
+::size_t HVACZone::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.HVACZone)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
+ // .messages.hvac.Temperature target_temperature = 2;
+ if (this->_internal_has_target_temperature()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.messageheader_);
+ *_impl_.target_temperature_);
}
- // .messages.SetAcStatusRequest setAcStatus = 2;
- if (this->_internal_has_setacstatus()) {
+ // .messages.hvac.HVACZone.Zone zone = 1;
+ if (this->_internal_zone() != 0) {
total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.setacstatus_);
- }
-
- // .messages.SetTemperatureRequest setTemp = 3;
- if (this->_internal_has_settemp()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.settemp_);
+ ::_pbi::WireFormatLite::EnumSize(this->_internal_zone());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinPreconditionRequest::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HVACZone::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- CabinPreconditionRequest::MergeImpl
+ HVACZone::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinPreconditionRequest::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HVACZone::GetClassData() const { return &_class_data_; }
-void CabinPreconditionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<CabinPreconditionRequest*>(&to_msg);
- auto& from = static_cast<const CabinPreconditionRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.CabinPreconditionRequest)
+void HVACZone::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<HVACZone*>(&to_msg);
+ auto& from = static_cast<const HVACZone&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.HVACZone)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_has_messageheader()) {
- _this->_internal_mutable_messageheader()->::messages::VehicleMessageHeading::MergeFrom(
- from._internal_messageheader());
+ if (from._internal_has_target_temperature()) {
+ _this->_internal_mutable_target_temperature()->::messages::hvac::Temperature::MergeFrom(
+ from._internal_target_temperature());
}
- if (from._internal_has_setacstatus()) {
- _this->_internal_mutable_setacstatus()->::messages::SetAcStatusRequest::MergeFrom(
- from._internal_setacstatus());
- }
- if (from._internal_has_settemp()) {
- _this->_internal_mutable_settemp()->::messages::SetTemperatureRequest::MergeFrom(
- from._internal_settemp());
+ if (from._internal_zone() != 0) {
+ _this->_internal_set_zone(from._internal_zone());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void CabinPreconditionRequest::CopyFrom(const CabinPreconditionRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.CabinPreconditionRequest)
+void HVACZone::CopyFrom(const HVACZone& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.HVACZone)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool CabinPreconditionRequest::IsInitialized() const {
+bool HVACZone::IsInitialized() const {
return true;
}
-void CabinPreconditionRequest::InternalSwap(CabinPreconditionRequest* other) {
+void HVACZone::InternalSwap(HVACZone* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(CabinPreconditionRequest, _impl_.settemp_)
- + sizeof(CabinPreconditionRequest::_impl_.settemp_)
- - PROTOBUF_FIELD_OFFSET(CabinPreconditionRequest, _impl_.messageheader_)>(
- reinterpret_cast<char*>(&_impl_.messageheader_),
- reinterpret_cast<char*>(&other->_impl_.messageheader_));
+ PROTOBUF_FIELD_OFFSET(HVACZone, _impl_.zone_)
+ + sizeof(HVACZone::_impl_.zone_)
+ - PROTOBUF_FIELD_OFFSET(HVACZone, _impl_.target_temperature_)>(
+ reinterpret_cast<char*>(&_impl_.target_temperature_),
+ reinterpret_cast<char*>(&other->_impl_.target_temperature_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata CabinPreconditionRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata HVACZone::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[0]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[1]);
}
// ===================================================================
-class CabinPreConditionReponse::_Internal {
+class PreconditionRequest::_Internal {
public:
- static const ::messages::VehicleMessageHeading& messageheader(const CabinPreConditionReponse* msg);
- static const ::messages::SetAcStatusReply& setacstatusreply(const CabinPreConditionReponse* msg);
- static const ::messages::SetTemperatureReply& settemperaturereply(const CabinPreConditionReponse* msg);
+ static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_time(const PreconditionRequest* msg);
};
-const ::messages::VehicleMessageHeading&
-CabinPreConditionReponse::_Internal::messageheader(const CabinPreConditionReponse* msg) {
- return *msg->_impl_.messageheader_;
+const ::PROTOBUF_NAMESPACE_ID::Timestamp&
+PreconditionRequest::_Internal::start_time(const PreconditionRequest* msg) {
+ return *msg->_impl_.start_time_;
}
-const ::messages::SetAcStatusReply&
-CabinPreConditionReponse::_Internal::setacstatusreply(const CabinPreConditionReponse* msg) {
- return *msg->_impl_.setacstatusreply_;
-}
-const ::messages::SetTemperatureReply&
-CabinPreConditionReponse::_Internal::settemperaturereply(const CabinPreConditionReponse* msg) {
- return *msg->_impl_.settemperaturereply_;
-}
-void CabinPreConditionReponse::clear_messageheader() {
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
+void PreconditionRequest::clear_start_time() {
+ if (GetArenaForAllocation() == nullptr && _impl_.start_time_ != nullptr) {
+ delete _impl_.start_time_;
}
- _impl_.messageheader_ = nullptr;
+ _impl_.start_time_ = nullptr;
}
-CabinPreConditionReponse::CabinPreConditionReponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+PreconditionRequest::PreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.PreconditionRequest)
}
-CabinPreConditionReponse::CabinPreConditionReponse(const CabinPreConditionReponse& from)
+PreconditionRequest::PreconditionRequest(const PreconditionRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
- CabinPreConditionReponse* const _this = this; (void)_this;
+ PreconditionRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatusreply_){nullptr}
- , decltype(_impl_.settemperaturereply_){nullptr}
+ decltype(_impl_.hvac_zones_){from._impl_.hvac_zones_}
+ , decltype(_impl_.start_time_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_messageheader()) {
- _this->_impl_.messageheader_ = new ::messages::VehicleMessageHeading(*from._impl_.messageheader_);
- }
- if (from._internal_has_setacstatusreply()) {
- _this->_impl_.setacstatusreply_ = new ::messages::SetAcStatusReply(*from._impl_.setacstatusreply_);
+ if (from._internal_has_start_time()) {
+ _this->_impl_.start_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.start_time_);
}
- if (from._internal_has_settemperaturereply()) {
- _this->_impl_.settemperaturereply_ = new ::messages::SetTemperatureReply(*from._impl_.settemperaturereply_);
- }
- // @@protoc_insertion_point(copy_constructor:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.PreconditionRequest)
}
-inline void CabinPreConditionReponse::SharedCtor(::_pb::Arena* arena) {
+inline void PreconditionRequest::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.messageheader_){nullptr}
- , decltype(_impl_.setacstatusreply_){nullptr}
- , decltype(_impl_.settemperaturereply_){nullptr}
+ decltype(_impl_.hvac_zones_){arena}
+ , decltype(_impl_.start_time_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
-CabinPreConditionReponse::~CabinPreConditionReponse() {
- // @@protoc_insertion_point(destructor:messages.CabinPreConditionReponse)
+PreconditionRequest::~PreconditionRequest() {
+ // @@protoc_insertion_point(destructor:messages.hvac.PreconditionRequest)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -647,66 +911,54 @@ CabinPreConditionReponse::~CabinPreConditionReponse() {
SharedDtor();
}
-inline void CabinPreConditionReponse::SharedDtor() {
+inline void PreconditionRequest::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance()) delete _impl_.messageheader_;
- if (this != internal_default_instance()) delete _impl_.setacstatusreply_;
- if (this != internal_default_instance()) delete _impl_.settemperaturereply_;
+ _impl_.hvac_zones_.~RepeatedPtrField();
+ if (this != internal_default_instance()) delete _impl_.start_time_;
}
-void CabinPreConditionReponse::SetCachedSize(int size) const {
+void PreconditionRequest::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void CabinPreConditionReponse::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.CabinPreConditionReponse)
+void PreconditionRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.PreconditionRequest)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- if (GetArenaForAllocation() == nullptr && _impl_.messageheader_ != nullptr) {
- delete _impl_.messageheader_;
- }
- _impl_.messageheader_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatusreply_ != nullptr) {
- delete _impl_.setacstatusreply_;
+ _impl_.hvac_zones_.Clear();
+ if (GetArenaForAllocation() == nullptr && _impl_.start_time_ != nullptr) {
+ delete _impl_.start_time_;
}
- _impl_.setacstatusreply_ = nullptr;
- if (GetArenaForAllocation() == nullptr && _impl_.settemperaturereply_ != nullptr) {
- delete _impl_.settemperaturereply_;
- }
- _impl_.settemperaturereply_ = nullptr;
+ _impl_.start_time_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* CabinPreConditionReponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* PreconditionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.VehicleMessageHeading messageHeader = 1;
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_messageheader(), ptr);
- CHK_(ptr);
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_hvac_zones(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else {
goto handle_unusual;
}
continue;
- // .messages.SetAcStatusReply setAcStatusReply = 2;
+ // .google.protobuf.Timestamp start_time = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_setacstatusreply(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_settemperaturereply(), ptr);
+ ptr = ctx->ParseMessage(_internal_mutable_start_time(), ptr);
CHK_(ptr);
} else {
goto handle_unusual;
@@ -735,159 +987,156 @@ failure:
#undef CHK_
}
-::uint8_t* CabinPreConditionReponse::_InternalSerialize(
+::uint8_t* PreconditionRequest::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.PreconditionRequest)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, _Internal::messageheader(this),
- _Internal::messageheader(this).GetCachedSize(), target, stream);
- }
-
- // .messages.SetAcStatusReply setAcStatusReply = 2;
- if (this->_internal_has_setacstatusreply()) {
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
+ for (unsigned i = 0,
+ n = static_cast<unsigned>(this->_internal_hvac_zones_size()); i < n; i++) {
+ const auto& repfield = this->_internal_hvac_zones(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, _Internal::setacstatusreply(this),
- _Internal::setacstatusreply(this).GetCachedSize(), target, stream);
+ InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- if (this->_internal_has_settemperaturereply()) {
+ // .google.protobuf.Timestamp start_time = 2;
+ if (this->_internal_has_start_time()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::settemperaturereply(this),
- _Internal::settemperaturereply(this).GetCachedSize(), target, stream);
+ InternalWriteMessage(2, _Internal::start_time(this),
+ _Internal::start_time(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.CabinPreConditionReponse)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.PreconditionRequest)
return target;
}
-::size_t CabinPreConditionReponse::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.CabinPreConditionReponse)
+::size_t PreconditionRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.PreconditionRequest)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.VehicleMessageHeading messageHeader = 1;
- if (this->_internal_has_messageheader()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.messageheader_);
- }
-
- // .messages.SetAcStatusReply setAcStatusReply = 2;
- if (this->_internal_has_setacstatusreply()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.setacstatusreply_);
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
+ total_size += 1UL * this->_internal_hvac_zones_size();
+ for (const auto& msg : this->_impl_.hvac_zones_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- if (this->_internal_has_settemperaturereply()) {
+ // .google.protobuf.Timestamp start_time = 2;
+ if (this->_internal_has_start_time()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.settemperaturereply_);
+ *_impl_.start_time_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinPreConditionReponse::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionRequest::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- CabinPreConditionReponse::MergeImpl
+ PreconditionRequest::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinPreConditionReponse::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionRequest::GetClassData() const { return &_class_data_; }
-void CabinPreConditionReponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<CabinPreConditionReponse*>(&to_msg);
- auto& from = static_cast<const CabinPreConditionReponse&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.CabinPreConditionReponse)
+void PreconditionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<PreconditionRequest*>(&to_msg);
+ auto& from = static_cast<const PreconditionRequest&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.PreconditionRequest)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_has_messageheader()) {
- _this->_internal_mutable_messageheader()->::messages::VehicleMessageHeading::MergeFrom(
- from._internal_messageheader());
- }
- if (from._internal_has_setacstatusreply()) {
- _this->_internal_mutable_setacstatusreply()->::messages::SetAcStatusReply::MergeFrom(
- from._internal_setacstatusreply());
- }
- if (from._internal_has_settemperaturereply()) {
- _this->_internal_mutable_settemperaturereply()->::messages::SetTemperatureReply::MergeFrom(
- from._internal_settemperaturereply());
+ _this->_impl_.hvac_zones_.MergeFrom(from._impl_.hvac_zones_);
+ if (from._internal_has_start_time()) {
+ _this->_internal_mutable_start_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
+ from._internal_start_time());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void CabinPreConditionReponse::CopyFrom(const CabinPreConditionReponse& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.CabinPreConditionReponse)
+void PreconditionRequest::CopyFrom(const PreconditionRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.PreconditionRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool CabinPreConditionReponse::IsInitialized() const {
+bool PreconditionRequest::IsInitialized() const {
return true;
}
-void CabinPreConditionReponse::InternalSwap(CabinPreConditionReponse* other) {
+void PreconditionRequest::InternalSwap(PreconditionRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(CabinPreConditionReponse, _impl_.settemperaturereply_)
- + sizeof(CabinPreConditionReponse::_impl_.settemperaturereply_)
- - PROTOBUF_FIELD_OFFSET(CabinPreConditionReponse, _impl_.messageheader_)>(
- reinterpret_cast<char*>(&_impl_.messageheader_),
- reinterpret_cast<char*>(&other->_impl_.messageheader_));
+ _impl_.hvac_zones_.InternalSwap(&other->_impl_.hvac_zones_);
+ swap(_impl_.start_time_, other->_impl_.start_time_);
}
-::PROTOBUF_NAMESPACE_ID::Metadata CabinPreConditionReponse::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata PreconditionRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[1]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[2]);
}
// ===================================================================
-class SetAcStatusRequest::_Internal {
+class PreconditionResponse::_Internal {
public:
};
-SetAcStatusRequest::SetAcStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+PreconditionResponse::PreconditionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.PreconditionResponse)
}
-SetAcStatusRequest::SetAcStatusRequest(const SetAcStatusRequest& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetAcStatusRequest)
+PreconditionResponse::PreconditionResponse(const PreconditionResponse& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ PreconditionResponse* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.message_) {}
+
+ , decltype(_impl_.status_) {}
+
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ _impl_.message_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.message_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_message().empty()) {
+ _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
+ }
+ _this->_impl_.status_ = from._impl_.status_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.PreconditionResponse)
}
-inline void SetAcStatusRequest::SharedCtor(::_pb::Arena* arena) {
+inline void PreconditionResponse::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.desiredstatus_) { 0 }
+ decltype(_impl_.message_) {}
+
+ , decltype(_impl_.status_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
+ _impl_.message_.InitDefault();
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ _impl_.message_.Set("", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
-SetAcStatusRequest::~SetAcStatusRequest() {
- // @@protoc_insertion_point(destructor:messages.SetAcStatusRequest)
+PreconditionResponse::~PreconditionResponse() {
+ // @@protoc_insertion_point(destructor:messages.hvac.PreconditionResponse)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -895,36 +1144,49 @@ SetAcStatusRequest::~SetAcStatusRequest() {
SharedDtor();
}
-inline void SetAcStatusRequest::SharedDtor() {
+inline void PreconditionResponse::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ _impl_.message_.Destroy();
}
-void SetAcStatusRequest::SetCachedSize(int size) const {
+void PreconditionResponse::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetAcStatusRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetAcStatusRequest)
+void PreconditionResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.PreconditionResponse)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.desiredstatus_ = 0;
+ _impl_.message_.ClearToEmpty();
+ _impl_.status_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetAcStatusRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* PreconditionResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.AcStatusEnum desiredStatus = 1;
+ // .messages.hvac.PreconditionResponse.Status status = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
- _internal_set_desiredstatus(static_cast<::messages::AcStatusEnum>(val));
+ _internal_set_status(static_cast<::messages::hvac::PreconditionResponse_Status>(val));
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // string message = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ auto str = _internal_mutable_message();
+ ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ CHK_(::_pbi::VerifyUTF8(str, "messages.hvac.PreconditionResponse.message"));
} else {
goto handle_unusual;
}
@@ -952,116 +1214,153 @@ failure:
#undef CHK_
}
-::uint8_t* SetAcStatusRequest::_InternalSerialize(
+::uint8_t* PreconditionResponse::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.PreconditionResponse)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.AcStatusEnum desiredStatus = 1;
- if (this->_internal_desiredstatus() != 0) {
+ // .messages.hvac.PreconditionResponse.Status status = 1;
+ if (this->_internal_status() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_desiredstatus(), target);
+ 1, this->_internal_status(), target);
+ }
+
+ // string message = 2;
+ if (!this->_internal_message().empty()) {
+ const std::string& _s = this->_internal_message();
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.hvac.PreconditionResponse.message");
+ target = stream->WriteStringMaybeAliased(2, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.PreconditionResponse)
return target;
}
-::size_t SetAcStatusRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetAcStatusRequest)
+::size_t PreconditionResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.PreconditionResponse)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.AcStatusEnum desiredStatus = 1;
- if (this->_internal_desiredstatus() != 0) {
+ // string message = 2;
+ if (!this->_internal_message().empty()) {
+ total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_message());
+ }
+
+ // .messages.hvac.PreconditionResponse.Status status = 1;
+ if (this->_internal_status() != 0) {
total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_desiredstatus());
+ ::_pbi::WireFormatLite::EnumSize(this->_internal_status());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAcStatusRequest::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionResponse::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetAcStatusRequest::MergeImpl
+ PreconditionResponse::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAcStatusRequest::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionResponse::GetClassData() const { return &_class_data_; }
-void SetAcStatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetAcStatusRequest*>(&to_msg);
- auto& from = static_cast<const SetAcStatusRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetAcStatusRequest)
+void PreconditionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<PreconditionResponse*>(&to_msg);
+ auto& from = static_cast<const PreconditionResponse&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.PreconditionResponse)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_desiredstatus() != 0) {
- _this->_internal_set_desiredstatus(from._internal_desiredstatus());
+ if (!from._internal_message().empty()) {
+ _this->_internal_set_message(from._internal_message());
+ }
+ if (from._internal_status() != 0) {
+ _this->_internal_set_status(from._internal_status());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetAcStatusRequest::CopyFrom(const SetAcStatusRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetAcStatusRequest)
+void PreconditionResponse::CopyFrom(const PreconditionResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.PreconditionResponse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetAcStatusRequest::IsInitialized() const {
+bool PreconditionResponse::IsInitialized() const {
return true;
}
-void SetAcStatusRequest::InternalSwap(SetAcStatusRequest* other) {
+void PreconditionResponse::InternalSwap(PreconditionResponse* other) {
using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.desiredstatus_, other->_impl_.desiredstatus_);
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, lhs_arena,
+ &other->_impl_.message_, rhs_arena);
+ swap(_impl_.status_, other->_impl_.status_);
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetAcStatusRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata PreconditionResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[2]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[3]);
}
// ===================================================================
-class SetAcStatusReply::_Internal {
+class HVACState::_Internal {
public:
+ static const ::messages::hvac::HVACZone& current_zone(const HVACState* msg);
};
-SetAcStatusReply::SetAcStatusReply(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+const ::messages::hvac::HVACZone&
+HVACState::_Internal::current_zone(const HVACState* msg) {
+ return *msg->_impl_.current_zone_;
+}
+HVACState::HVACState(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.HVACState)
}
-SetAcStatusReply::SetAcStatusReply(const SetAcStatusReply& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetAcStatusReply)
+HVACState::HVACState(const HVACState& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ HVACState* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.current_zone_){nullptr}
+ , decltype(_impl_.state_) {}
+
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_current_zone()) {
+ _this->_impl_.current_zone_ = new ::messages::hvac::HVACZone(*from._impl_.current_zone_);
+ }
+ _this->_impl_.state_ = from._impl_.state_;
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.HVACState)
}
-inline void SetAcStatusReply::SharedCtor(::_pb::Arena* arena) {
+inline void HVACState::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.status_) { 0 }
+ decltype(_impl_.current_zone_){nullptr}
+ , decltype(_impl_.state_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
}
-SetAcStatusReply::~SetAcStatusReply() {
- // @@protoc_insertion_point(destructor:messages.SetAcStatusReply)
+HVACState::~HVACState() {
+ // @@protoc_insertion_point(destructor:messages.hvac.HVACState)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -1069,36 +1368,50 @@ SetAcStatusReply::~SetAcStatusReply() {
SharedDtor();
}
-inline void SetAcStatusReply::SharedDtor() {
+inline void HVACState::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.current_zone_;
}
-void SetAcStatusReply::SetCachedSize(int size) const {
+void HVACState::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetAcStatusReply::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetAcStatusReply)
+void HVACState::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.HVACState)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.status_ = 0;
+ if (GetArenaForAllocation() == nullptr && _impl_.current_zone_ != nullptr) {
+ delete _impl_.current_zone_;
+ }
+ _impl_.current_zone_ = nullptr;
+ _impl_.state_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetAcStatusReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* HVACState::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.AcStatusEnum status = 1;
+ // .messages.hvac.HVACState.State state = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
- _internal_set_status(static_cast<::messages::AcStatusEnum>(val));
+ _internal_set_state(static_cast<::messages::hvac::HVACState_State>(val));
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.HVACZone current_zone = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_current_zone(), ptr);
+ CHK_(ptr);
} else {
goto handle_unusual;
}
@@ -1126,116 +1439,160 @@ failure:
#undef CHK_
}
-::uint8_t* SetAcStatusReply::_InternalSerialize(
+::uint8_t* HVACState::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.HVACState)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.AcStatusEnum status = 1;
- if (this->_internal_status() != 0) {
+ // .messages.hvac.HVACState.State state = 1;
+ if (this->_internal_state() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_status(), target);
+ 1, this->_internal_state(), target);
+ }
+
+ // .messages.hvac.HVACZone current_zone = 2;
+ if (this->_internal_has_current_zone()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(2, _Internal::current_zone(this),
+ _Internal::current_zone(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.HVACState)
return target;
}
-::size_t SetAcStatusReply::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetAcStatusReply)
+::size_t HVACState::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.HVACState)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.AcStatusEnum status = 1;
- if (this->_internal_status() != 0) {
+ // .messages.hvac.HVACZone current_zone = 2;
+ if (this->_internal_has_current_zone()) {
total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_status());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.current_zone_);
+ }
+
+ // .messages.hvac.HVACState.State state = 1;
+ if (this->_internal_state() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAcStatusReply::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HVACState::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetAcStatusReply::MergeImpl
+ HVACState::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAcStatusReply::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HVACState::GetClassData() const { return &_class_data_; }
-void SetAcStatusReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetAcStatusReply*>(&to_msg);
- auto& from = static_cast<const SetAcStatusReply&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetAcStatusReply)
+void HVACState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<HVACState*>(&to_msg);
+ auto& from = static_cast<const HVACState&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.HVACState)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_status() != 0) {
- _this->_internal_set_status(from._internal_status());
+ if (from._internal_has_current_zone()) {
+ _this->_internal_mutable_current_zone()->::messages::hvac::HVACZone::MergeFrom(
+ from._internal_current_zone());
+ }
+ if (from._internal_state() != 0) {
+ _this->_internal_set_state(from._internal_state());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetAcStatusReply::CopyFrom(const SetAcStatusReply& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetAcStatusReply)
+void HVACState::CopyFrom(const HVACState& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.HVACState)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetAcStatusReply::IsInitialized() const {
+bool HVACState::IsInitialized() const {
return true;
}
-void SetAcStatusReply::InternalSwap(SetAcStatusReply* other) {
+void HVACState::InternalSwap(HVACState* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.status_, other->_impl_.status_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(HVACState, _impl_.state_)
+ + sizeof(HVACState::_impl_.state_)
+ - PROTOBUF_FIELD_OFFSET(HVACState, _impl_.current_zone_)>(
+ reinterpret_cast<char*>(&_impl_.current_zone_),
+ reinterpret_cast<char*>(&other->_impl_.current_zone_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetAcStatusReply::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata HVACState::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[3]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[4]);
}
// ===================================================================
-class SetTemperatureRequest::_Internal {
+class CabinTemperature::_Internal {
public:
+ static const ::messages::hvac::Temperature& temperature(const CabinTemperature* msg);
+ static const ::messages::hvac::HVACZone& zone(const CabinTemperature* msg);
};
-SetTemperatureRequest::SetTemperatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+const ::messages::hvac::Temperature&
+CabinTemperature::_Internal::temperature(const CabinTemperature* msg) {
+ return *msg->_impl_.temperature_;
+}
+const ::messages::hvac::HVACZone&
+CabinTemperature::_Internal::zone(const CabinTemperature* msg) {
+ return *msg->_impl_.zone_;
+}
+CabinTemperature::CabinTemperature(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetTemperatureRequest)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.CabinTemperature)
}
-SetTemperatureRequest::SetTemperatureRequest(const SetTemperatureRequest& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetTemperatureRequest)
+CabinTemperature::CabinTemperature(const CabinTemperature& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ CabinTemperature* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.temperature_){nullptr}
+ , decltype(_impl_.zone_){nullptr}
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_temperature()) {
+ _this->_impl_.temperature_ = new ::messages::hvac::Temperature(*from._impl_.temperature_);
+ }
+ if (from._internal_has_zone()) {
+ _this->_impl_.zone_ = new ::messages::hvac::HVACZone(*from._impl_.zone_);
+ }
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.CabinTemperature)
}
-inline void SetTemperatureRequest::SharedCtor(::_pb::Arena* arena) {
+inline void CabinTemperature::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.temperature_) { 0 }
-
+ decltype(_impl_.temperature_){nullptr}
+ , decltype(_impl_.zone_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
-SetTemperatureRequest::~SetTemperatureRequest() {
- // @@protoc_insertion_point(destructor:messages.SetTemperatureRequest)
+CabinTemperature::~CabinTemperature() {
+ // @@protoc_insertion_point(destructor:messages.hvac.CabinTemperature)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -1243,35 +1600,53 @@ SetTemperatureRequest::~SetTemperatureRequest() {
SharedDtor();
}
-inline void SetTemperatureRequest::SharedDtor() {
+inline void CabinTemperature::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.temperature_;
+ if (this != internal_default_instance()) delete _impl_.zone_;
}
-void SetTemperatureRequest::SetCachedSize(int size) const {
+void CabinTemperature::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetTemperatureRequest::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetTemperatureRequest)
+void CabinTemperature::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.CabinTemperature)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.temperature_ = 0;
+ if (GetArenaForAllocation() == nullptr && _impl_.temperature_ != nullptr) {
+ delete _impl_.temperature_;
+ }
+ _impl_.temperature_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && _impl_.zone_ != nullptr) {
+ delete _impl_.zone_;
+ }
+ _impl_.zone_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetTemperatureRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* CabinTemperature::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // float temperature = 1;
+ // .messages.hvac.Temperature temperature = 1;
case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_temperature(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.HVACZone zone = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_zone(), ptr);
+ CHK_(ptr);
} else {
goto handle_unusual;
}
@@ -1299,128 +1674,178 @@ failure:
#undef CHK_
}
-::uint8_t* SetTemperatureRequest::_InternalSerialize(
+::uint8_t* CabinTemperature::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetTemperatureRequest)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.CabinTemperature)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // float temperature = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_temperature = this->_internal_temperature();
- ::uint32_t raw_temperature;
- memcpy(&raw_temperature, &tmp_temperature, sizeof(tmp_temperature));
- if (raw_temperature != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_temperature(), target);
+ // .messages.hvac.Temperature temperature = 1;
+ if (this->_internal_has_temperature()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, _Internal::temperature(this),
+ _Internal::temperature(this).GetCachedSize(), target, stream);
+ }
+
+ // .messages.hvac.HVACZone zone = 2;
+ if (this->_internal_has_zone()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(2, _Internal::zone(this),
+ _Internal::zone(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetTemperatureRequest)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.CabinTemperature)
return target;
}
-::size_t SetTemperatureRequest::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetTemperatureRequest)
+::size_t CabinTemperature::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.CabinTemperature)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // float temperature = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_temperature = this->_internal_temperature();
- ::uint32_t raw_temperature;
- memcpy(&raw_temperature, &tmp_temperature, sizeof(tmp_temperature));
- if (raw_temperature != 0) {
- total_size += 5;
+ // .messages.hvac.Temperature temperature = 1;
+ if (this->_internal_has_temperature()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.temperature_);
+ }
+
+ // .messages.hvac.HVACZone zone = 2;
+ if (this->_internal_has_zone()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.zone_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTemperatureRequest::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinTemperature::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetTemperatureRequest::MergeImpl
+ CabinTemperature::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTemperatureRequest::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinTemperature::GetClassData() const { return &_class_data_; }
-void SetTemperatureRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetTemperatureRequest*>(&to_msg);
- auto& from = static_cast<const SetTemperatureRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetTemperatureRequest)
+void CabinTemperature::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<CabinTemperature*>(&to_msg);
+ auto& from = static_cast<const CabinTemperature&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.CabinTemperature)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_temperature = from._internal_temperature();
- ::uint32_t raw_temperature;
- memcpy(&raw_temperature, &tmp_temperature, sizeof(tmp_temperature));
- if (raw_temperature != 0) {
- _this->_internal_set_temperature(from._internal_temperature());
+ if (from._internal_has_temperature()) {
+ _this->_internal_mutable_temperature()->::messages::hvac::Temperature::MergeFrom(
+ from._internal_temperature());
+ }
+ if (from._internal_has_zone()) {
+ _this->_internal_mutable_zone()->::messages::hvac::HVACZone::MergeFrom(
+ from._internal_zone());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetTemperatureRequest::CopyFrom(const SetTemperatureRequest& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetTemperatureRequest)
+void CabinTemperature::CopyFrom(const CabinTemperature& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.CabinTemperature)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetTemperatureRequest::IsInitialized() const {
+bool CabinTemperature::IsInitialized() const {
return true;
}
-void SetTemperatureRequest::InternalSwap(SetTemperatureRequest* other) {
+void CabinTemperature::InternalSwap(CabinTemperature* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
-
- swap(_impl_.temperature_, other->_impl_.temperature_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CabinTemperature, _impl_.zone_)
+ + sizeof(CabinTemperature::_impl_.zone_)
+ - PROTOBUF_FIELD_OFFSET(CabinTemperature, _impl_.temperature_)>(
+ reinterpret_cast<char*>(&_impl_.temperature_),
+ reinterpret_cast<char*>(&other->_impl_.temperature_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetTemperatureRequest::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata CabinTemperature::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[4]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[5]);
}
// ===================================================================
-class SetTemperatureReply::_Internal {
+class CabinConditionStatusPublish::_Internal {
public:
+ static const ::PROTOBUF_NAMESPACE_ID::Timestamp& event_time(const CabinConditionStatusPublish* msg);
+ static const ::messages::hvac::HVACState& hvac_state(const CabinConditionStatusPublish* msg);
+ static const ::messages::hvac::CabinTemperature& cabin_temperature(const CabinConditionStatusPublish* msg);
};
-SetTemperatureReply::SetTemperatureReply(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+const ::PROTOBUF_NAMESPACE_ID::Timestamp&
+CabinConditionStatusPublish::_Internal::event_time(const CabinConditionStatusPublish* msg) {
+ return *msg->_impl_.event_time_;
+}
+const ::messages::hvac::HVACState&
+CabinConditionStatusPublish::_Internal::hvac_state(const CabinConditionStatusPublish* msg) {
+ return *msg->_impl_.hvac_state_;
+}
+const ::messages::hvac::CabinTemperature&
+CabinConditionStatusPublish::_Internal::cabin_temperature(const CabinConditionStatusPublish* msg) {
+ return *msg->_impl_.cabin_temperature_;
+}
+void CabinConditionStatusPublish::clear_event_time() {
+ if (GetArenaForAllocation() == nullptr && _impl_.event_time_ != nullptr) {
+ delete _impl_.event_time_;
+ }
+ _impl_.event_time_ = nullptr;
+}
+CabinConditionStatusPublish::CabinConditionStatusPublish(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:messages.SetTemperatureReply)
+ // @@protoc_insertion_point(arena_constructor:messages.hvac.CabinConditionStatusPublish)
}
-SetTemperatureReply::SetTemperatureReply(const SetTemperatureReply& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:messages.SetTemperatureReply)
+CabinConditionStatusPublish::CabinConditionStatusPublish(const CabinConditionStatusPublish& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ CabinConditionStatusPublish* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.event_time_){nullptr}
+ , decltype(_impl_.hvac_state_){nullptr}
+ , decltype(_impl_.cabin_temperature_){nullptr}
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_event_time()) {
+ _this->_impl_.event_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.event_time_);
+ }
+ if (from._internal_has_hvac_state()) {
+ _this->_impl_.hvac_state_ = new ::messages::hvac::HVACState(*from._impl_.hvac_state_);
+ }
+ if (from._internal_has_cabin_temperature()) {
+ _this->_impl_.cabin_temperature_ = new ::messages::hvac::CabinTemperature(*from._impl_.cabin_temperature_);
+ }
+ // @@protoc_insertion_point(copy_constructor:messages.hvac.CabinConditionStatusPublish)
}
-inline void SetTemperatureReply::SharedCtor(::_pb::Arena* arena) {
+inline void CabinConditionStatusPublish::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.tempstatus_) { 0 }
-
+ decltype(_impl_.event_time_){nullptr}
+ , decltype(_impl_.hvac_state_){nullptr}
+ , decltype(_impl_.cabin_temperature_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
-SetTemperatureReply::~SetTemperatureReply() {
- // @@protoc_insertion_point(destructor:messages.SetTemperatureReply)
+CabinConditionStatusPublish::~CabinConditionStatusPublish() {
+ // @@protoc_insertion_point(destructor:messages.hvac.CabinConditionStatusPublish)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -1428,36 +1853,67 @@ SetTemperatureReply::~SetTemperatureReply() {
SharedDtor();
}
-inline void SetTemperatureReply::SharedDtor() {
+inline void CabinConditionStatusPublish::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.event_time_;
+ if (this != internal_default_instance()) delete _impl_.hvac_state_;
+ if (this != internal_default_instance()) delete _impl_.cabin_temperature_;
}
-void SetTemperatureReply::SetCachedSize(int size) const {
+void CabinConditionStatusPublish::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
-void SetTemperatureReply::Clear() {
-// @@protoc_insertion_point(message_clear_start:messages.SetTemperatureReply)
+void CabinConditionStatusPublish::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.hvac.CabinConditionStatusPublish)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- _impl_.tempstatus_ = 0;
+ if (GetArenaForAllocation() == nullptr && _impl_.event_time_ != nullptr) {
+ delete _impl_.event_time_;
+ }
+ _impl_.event_time_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && _impl_.hvac_state_ != nullptr) {
+ delete _impl_.hvac_state_;
+ }
+ _impl_.hvac_state_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && _impl_.cabin_temperature_ != nullptr) {
+ delete _impl_.cabin_temperature_;
+ }
+ _impl_.cabin_temperature_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
-const char* SetTemperatureReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+const char* CabinConditionStatusPublish::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .messages.SetTempStatusEnum tempStatus = 1;
+ // .google.protobuf.Timestamp event_time = 1;
case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_event_time(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.HVACState hvac_state = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_hvac_state(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_cabin_temperature(), ptr);
CHK_(ptr);
- _internal_set_tempstatus(static_cast<::messages::SetTempStatusEnum>(val));
} else {
goto handle_unusual;
}
@@ -1485,113 +1941,161 @@ failure:
#undef CHK_
}
-::uint8_t* SetTemperatureReply::_InternalSerialize(
+::uint8_t* CabinConditionStatusPublish::_InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:messages.SetTemperatureReply)
+ // @@protoc_insertion_point(serialize_to_array_start:messages.hvac.CabinConditionStatusPublish)
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .messages.SetTempStatusEnum tempStatus = 1;
- if (this->_internal_tempstatus() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_tempstatus(), target);
+ // .google.protobuf.Timestamp event_time = 1;
+ if (this->_internal_has_event_time()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, _Internal::event_time(this),
+ _Internal::event_time(this).GetCachedSize(), target, stream);
+ }
+
+ // .messages.hvac.HVACState hvac_state = 2;
+ if (this->_internal_has_hvac_state()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(2, _Internal::hvac_state(this),
+ _Internal::hvac_state(this).GetCachedSize(), target, stream);
+ }
+
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ if (this->_internal_has_cabin_temperature()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(3, _Internal::cabin_temperature(this),
+ _Internal::cabin_temperature(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
- // @@protoc_insertion_point(serialize_to_array_end:messages.SetTemperatureReply)
+ // @@protoc_insertion_point(serialize_to_array_end:messages.hvac.CabinConditionStatusPublish)
return target;
}
-::size_t SetTemperatureReply::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:messages.SetTemperatureReply)
+::size_t CabinConditionStatusPublish::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.hvac.CabinConditionStatusPublish)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .messages.SetTempStatusEnum tempStatus = 1;
- if (this->_internal_tempstatus() != 0) {
+ // .google.protobuf.Timestamp event_time = 1;
+ if (this->_internal_has_event_time()) {
total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_tempstatus());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.event_time_);
+ }
+
+ // .messages.hvac.HVACState hvac_state = 2;
+ if (this->_internal_has_hvac_state()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.hvac_state_);
+ }
+
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ if (this->_internal_has_cabin_temperature()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.cabin_temperature_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTemperatureReply::_class_data_ = {
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CabinConditionStatusPublish::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SetTemperatureReply::MergeImpl
+ CabinConditionStatusPublish::MergeImpl
};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTemperatureReply::GetClassData() const { return &_class_data_; }
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CabinConditionStatusPublish::GetClassData() const { return &_class_data_; }
-void SetTemperatureReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<SetTemperatureReply*>(&to_msg);
- auto& from = static_cast<const SetTemperatureReply&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:messages.SetTemperatureReply)
+void CabinConditionStatusPublish::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<CabinConditionStatusPublish*>(&to_msg);
+ auto& from = static_cast<const CabinConditionStatusPublish&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.hvac.CabinConditionStatusPublish)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- if (from._internal_tempstatus() != 0) {
- _this->_internal_set_tempstatus(from._internal_tempstatus());
+ if (from._internal_has_event_time()) {
+ _this->_internal_mutable_event_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
+ from._internal_event_time());
+ }
+ if (from._internal_has_hvac_state()) {
+ _this->_internal_mutable_hvac_state()->::messages::hvac::HVACState::MergeFrom(
+ from._internal_hvac_state());
+ }
+ if (from._internal_has_cabin_temperature()) {
+ _this->_internal_mutable_cabin_temperature()->::messages::hvac::CabinTemperature::MergeFrom(
+ from._internal_cabin_temperature());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
-void SetTemperatureReply::CopyFrom(const SetTemperatureReply& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:messages.SetTemperatureReply)
+void CabinConditionStatusPublish::CopyFrom(const CabinConditionStatusPublish& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.hvac.CabinConditionStatusPublish)
if (&from == this) return;
Clear();
MergeFrom(from);
}
-bool SetTemperatureReply::IsInitialized() const {
+bool CabinConditionStatusPublish::IsInitialized() const {
return true;
}
-void SetTemperatureReply::InternalSwap(SetTemperatureReply* other) {
+void CabinConditionStatusPublish::InternalSwap(CabinConditionStatusPublish* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.tempstatus_, other->_impl_.tempstatus_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(CabinConditionStatusPublish, _impl_.cabin_temperature_)
+ + sizeof(CabinConditionStatusPublish::_impl_.cabin_temperature_)
+ - PROTOBUF_FIELD_OFFSET(CabinConditionStatusPublish, _impl_.event_time_)>(
+ reinterpret_cast<char*>(&_impl_.event_time_),
+ reinterpret_cast<char*>(&other->_impl_.event_time_));
}
-::PROTOBUF_NAMESPACE_ID::Metadata SetTemperatureReply::GetMetadata() const {
+::PROTOBUF_NAMESPACE_ID::Metadata CabinConditionStatusPublish::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_messages_2fVehicleRemoteHvac_2eproto_getter, &descriptor_table_messages_2fVehicleRemoteHvac_2eproto_once,
- file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[5]);
+ file_level_metadata_messages_2fVehicleRemoteHvac_2eproto[6]);
}
// @@protoc_insertion_point(namespace_scope)
+} // namespace hvac
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
-template<> PROTOBUF_NOINLINE ::messages::CabinPreconditionRequest*
-Arena::CreateMaybeMessage< ::messages::CabinPreconditionRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::CabinPreconditionRequest >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::Temperature*
+Arena::CreateMaybeMessage< ::messages::hvac::Temperature >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::Temperature >(arena);
+}
+template<> PROTOBUF_NOINLINE ::messages::hvac::HVACZone*
+Arena::CreateMaybeMessage< ::messages::hvac::HVACZone >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::HVACZone >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::CabinPreConditionReponse*
-Arena::CreateMaybeMessage< ::messages::CabinPreConditionReponse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::CabinPreConditionReponse >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::PreconditionRequest*
+Arena::CreateMaybeMessage< ::messages::hvac::PreconditionRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::PreconditionRequest >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetAcStatusRequest*
-Arena::CreateMaybeMessage< ::messages::SetAcStatusRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetAcStatusRequest >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::PreconditionResponse*
+Arena::CreateMaybeMessage< ::messages::hvac::PreconditionResponse >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::PreconditionResponse >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetAcStatusReply*
-Arena::CreateMaybeMessage< ::messages::SetAcStatusReply >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetAcStatusReply >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::HVACState*
+Arena::CreateMaybeMessage< ::messages::hvac::HVACState >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::HVACState >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetTemperatureRequest*
-Arena::CreateMaybeMessage< ::messages::SetTemperatureRequest >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetTemperatureRequest >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::CabinTemperature*
+Arena::CreateMaybeMessage< ::messages::hvac::CabinTemperature >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::CabinTemperature >(arena);
}
-template<> PROTOBUF_NOINLINE ::messages::SetTemperatureReply*
-Arena::CreateMaybeMessage< ::messages::SetTemperatureReply >(Arena* arena) {
- return Arena::CreateMessageInternal< ::messages::SetTemperatureReply >(arena);
+template<> PROTOBUF_NOINLINE ::messages::hvac::CabinConditionStatusPublish*
+Arena::CreateMaybeMessage< ::messages::hvac::CabinConditionStatusPublish >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::hvac::CabinConditionStatusPublish >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
diff --git a/src/main/cpp/messages/VehicleRemoteHvac.pb.h b/src/main/cpp/messages/VehicleRemoteHvac.pb.h
index af50b78..c65ed7a 100644
--- a/src/main/cpp/messages/VehicleRemoteHvac.pb.h
+++ b/src/main/cpp/messages/VehicleRemoteHvac.pb.h
@@ -32,8 +32,7 @@
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
-#include "vss/vspec.pb.h"
-#include "messages/VehicleMessageHeader.pb.h"
+#include "google/protobuf/timestamp.pb.h"
// @@protoc_insertion_point(includes)
// Must be included last.
@@ -54,105 +53,149 @@ struct TableStruct_messages_2fVehicleRemoteHvac_2eproto {
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
descriptor_table_messages_2fVehicleRemoteHvac_2eproto;
namespace messages {
-class CabinPreConditionReponse;
-struct CabinPreConditionReponseDefaultTypeInternal;
-extern CabinPreConditionReponseDefaultTypeInternal _CabinPreConditionReponse_default_instance_;
-class CabinPreconditionRequest;
-struct CabinPreconditionRequestDefaultTypeInternal;
-extern CabinPreconditionRequestDefaultTypeInternal _CabinPreconditionRequest_default_instance_;
-class SetAcStatusReply;
-struct SetAcStatusReplyDefaultTypeInternal;
-extern SetAcStatusReplyDefaultTypeInternal _SetAcStatusReply_default_instance_;
-class SetAcStatusRequest;
-struct SetAcStatusRequestDefaultTypeInternal;
-extern SetAcStatusRequestDefaultTypeInternal _SetAcStatusRequest_default_instance_;
-class SetTemperatureReply;
-struct SetTemperatureReplyDefaultTypeInternal;
-extern SetTemperatureReplyDefaultTypeInternal _SetTemperatureReply_default_instance_;
-class SetTemperatureRequest;
-struct SetTemperatureRequestDefaultTypeInternal;
-extern SetTemperatureRequestDefaultTypeInternal _SetTemperatureRequest_default_instance_;
+namespace hvac {
+class CabinConditionStatusPublish;
+struct CabinConditionStatusPublishDefaultTypeInternal;
+extern CabinConditionStatusPublishDefaultTypeInternal _CabinConditionStatusPublish_default_instance_;
+class CabinTemperature;
+struct CabinTemperatureDefaultTypeInternal;
+extern CabinTemperatureDefaultTypeInternal _CabinTemperature_default_instance_;
+class HVACState;
+struct HVACStateDefaultTypeInternal;
+extern HVACStateDefaultTypeInternal _HVACState_default_instance_;
+class HVACZone;
+struct HVACZoneDefaultTypeInternal;
+extern HVACZoneDefaultTypeInternal _HVACZone_default_instance_;
+class PreconditionRequest;
+struct PreconditionRequestDefaultTypeInternal;
+extern PreconditionRequestDefaultTypeInternal _PreconditionRequest_default_instance_;
+class PreconditionResponse;
+struct PreconditionResponseDefaultTypeInternal;
+extern PreconditionResponseDefaultTypeInternal _PreconditionResponse_default_instance_;
+class Temperature;
+struct TemperatureDefaultTypeInternal;
+extern TemperatureDefaultTypeInternal _Temperature_default_instance_;
+} // namespace hvac
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
-::messages::CabinPreConditionReponse* Arena::CreateMaybeMessage<::messages::CabinPreConditionReponse>(Arena*);
+::messages::hvac::CabinConditionStatusPublish* Arena::CreateMaybeMessage<::messages::hvac::CabinConditionStatusPublish>(Arena*);
template <>
-::messages::CabinPreconditionRequest* Arena::CreateMaybeMessage<::messages::CabinPreconditionRequest>(Arena*);
+::messages::hvac::CabinTemperature* Arena::CreateMaybeMessage<::messages::hvac::CabinTemperature>(Arena*);
template <>
-::messages::SetAcStatusReply* Arena::CreateMaybeMessage<::messages::SetAcStatusReply>(Arena*);
+::messages::hvac::HVACState* Arena::CreateMaybeMessage<::messages::hvac::HVACState>(Arena*);
template <>
-::messages::SetAcStatusRequest* Arena::CreateMaybeMessage<::messages::SetAcStatusRequest>(Arena*);
+::messages::hvac::HVACZone* Arena::CreateMaybeMessage<::messages::hvac::HVACZone>(Arena*);
template <>
-::messages::SetTemperatureReply* Arena::CreateMaybeMessage<::messages::SetTemperatureReply>(Arena*);
+::messages::hvac::PreconditionRequest* Arena::CreateMaybeMessage<::messages::hvac::PreconditionRequest>(Arena*);
template <>
-::messages::SetTemperatureRequest* Arena::CreateMaybeMessage<::messages::SetTemperatureRequest>(Arena*);
+::messages::hvac::PreconditionResponse* Arena::CreateMaybeMessage<::messages::hvac::PreconditionResponse>(Arena*);
+template <>
+::messages::hvac::Temperature* Arena::CreateMaybeMessage<::messages::hvac::Temperature>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
-enum AcStatusEnum : int {
- ON = 0,
- OFF = 1,
- UKNONWN_ERROR = 2,
- AcStatusEnum_INT_MIN_SENTINEL_DO_NOT_USE_ =
+namespace hvac {
+enum HVACZone_Zone : int {
+ HVACZone_Zone_DRIVER = 0,
+ HVACZone_Zone_PASSENGER = 1,
+ HVACZone_Zone_REAR_LEFT = 2,
+ HVACZone_Zone_REAR_RIGHT = 3,
+ HVACZone_Zone_HVACZone_Zone_INT_MIN_SENTINEL_DO_NOT_USE_ =
+ std::numeric_limits<::int32_t>::min(),
+ HVACZone_Zone_HVACZone_Zone_INT_MAX_SENTINEL_DO_NOT_USE_ =
+ std::numeric_limits<::int32_t>::max(),
+};
+
+bool HVACZone_Zone_IsValid(int value);
+constexpr HVACZone_Zone HVACZone_Zone_Zone_MIN = static_cast<HVACZone_Zone>(0);
+constexpr HVACZone_Zone HVACZone_Zone_Zone_MAX = static_cast<HVACZone_Zone>(3);
+constexpr int HVACZone_Zone_Zone_ARRAYSIZE = 3 + 1;
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
+HVACZone_Zone_descriptor();
+template <typename T>
+const std::string& HVACZone_Zone_Name(T value) {
+ static_assert(std::is_same<T, HVACZone_Zone>::value ||
+ std::is_integral<T>::value,
+ "Incorrect type passed to Zone_Name().");
+ return HVACZone_Zone_Name(static_cast<HVACZone_Zone>(value));
+}
+template <>
+inline const std::string& HVACZone_Zone_Name(HVACZone_Zone value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<HVACZone_Zone_descriptor,
+ 0, 3>(
+ static_cast<int>(value));
+}
+inline bool HVACZone_Zone_Parse(absl::string_view name, HVACZone_Zone* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HVACZone_Zone>(
+ HVACZone_Zone_descriptor(), name, value);
+}
+enum PreconditionResponse_Status : int {
+ PreconditionResponse_Status_SUCCESS = 0,
+ PreconditionResponse_Status_FAILURE = 1,
+ PreconditionResponse_Status_PENDING = 2,
+ PreconditionResponse_Status_PreconditionResponse_Status_INT_MIN_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::min(),
- AcStatusEnum_INT_MAX_SENTINEL_DO_NOT_USE_ =
+ PreconditionResponse_Status_PreconditionResponse_Status_INT_MAX_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::max(),
};
-bool AcStatusEnum_IsValid(int value);
-constexpr AcStatusEnum AcStatusEnum_MIN = static_cast<AcStatusEnum>(0);
-constexpr AcStatusEnum AcStatusEnum_MAX = static_cast<AcStatusEnum>(2);
-constexpr int AcStatusEnum_ARRAYSIZE = 2 + 1;
+bool PreconditionResponse_Status_IsValid(int value);
+constexpr PreconditionResponse_Status PreconditionResponse_Status_Status_MIN = static_cast<PreconditionResponse_Status>(0);
+constexpr PreconditionResponse_Status PreconditionResponse_Status_Status_MAX = static_cast<PreconditionResponse_Status>(2);
+constexpr int PreconditionResponse_Status_Status_ARRAYSIZE = 2 + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
-AcStatusEnum_descriptor();
+PreconditionResponse_Status_descriptor();
template <typename T>
-const std::string& AcStatusEnum_Name(T value) {
- static_assert(std::is_same<T, AcStatusEnum>::value ||
+const std::string& PreconditionResponse_Status_Name(T value) {
+ static_assert(std::is_same<T, PreconditionResponse_Status>::value ||
std::is_integral<T>::value,
- "Incorrect type passed to AcStatusEnum_Name().");
- return AcStatusEnum_Name(static_cast<AcStatusEnum>(value));
+ "Incorrect type passed to Status_Name().");
+ return PreconditionResponse_Status_Name(static_cast<PreconditionResponse_Status>(value));
}
template <>
-inline const std::string& AcStatusEnum_Name(AcStatusEnum value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<AcStatusEnum_descriptor,
+inline const std::string& PreconditionResponse_Status_Name(PreconditionResponse_Status value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<PreconditionResponse_Status_descriptor,
0, 2>(
static_cast<int>(value));
}
-inline bool AcStatusEnum_Parse(absl::string_view name, AcStatusEnum* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AcStatusEnum>(
- AcStatusEnum_descriptor(), name, value);
+inline bool PreconditionResponse_Status_Parse(absl::string_view name, PreconditionResponse_Status* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PreconditionResponse_Status>(
+ PreconditionResponse_Status_descriptor(), name, value);
}
-enum SetTempStatusEnum : int {
- TEMP_SUCCESS = 0,
- TEMP_ERROR = 1,
- SetTempStatusEnum_INT_MIN_SENTINEL_DO_NOT_USE_ =
+enum HVACState_State : int {
+ HVACState_State_OFF = 0,
+ HVACState_State_HEATING = 1,
+ HVACState_State_COOLING = 2,
+ HVACState_State_IDLE = 3,
+ HVACState_State_HVACState_State_INT_MIN_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::min(),
- SetTempStatusEnum_INT_MAX_SENTINEL_DO_NOT_USE_ =
+ HVACState_State_HVACState_State_INT_MAX_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::max(),
};
-bool SetTempStatusEnum_IsValid(int value);
-constexpr SetTempStatusEnum SetTempStatusEnum_MIN = static_cast<SetTempStatusEnum>(0);
-constexpr SetTempStatusEnum SetTempStatusEnum_MAX = static_cast<SetTempStatusEnum>(1);
-constexpr int SetTempStatusEnum_ARRAYSIZE = 1 + 1;
+bool HVACState_State_IsValid(int value);
+constexpr HVACState_State HVACState_State_State_MIN = static_cast<HVACState_State>(0);
+constexpr HVACState_State HVACState_State_State_MAX = static_cast<HVACState_State>(3);
+constexpr int HVACState_State_State_ARRAYSIZE = 3 + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
-SetTempStatusEnum_descriptor();
+HVACState_State_descriptor();
template <typename T>
-const std::string& SetTempStatusEnum_Name(T value) {
- static_assert(std::is_same<T, SetTempStatusEnum>::value ||
+const std::string& HVACState_State_Name(T value) {
+ static_assert(std::is_same<T, HVACState_State>::value ||
std::is_integral<T>::value,
- "Incorrect type passed to SetTempStatusEnum_Name().");
- return SetTempStatusEnum_Name(static_cast<SetTempStatusEnum>(value));
+ "Incorrect type passed to State_Name().");
+ return HVACState_State_Name(static_cast<HVACState_State>(value));
}
template <>
-inline const std::string& SetTempStatusEnum_Name(SetTempStatusEnum value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<SetTempStatusEnum_descriptor,
- 0, 1>(
+inline const std::string& HVACState_State_Name(HVACState_State value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum<HVACState_State_descriptor,
+ 0, 3>(
static_cast<int>(value));
}
-inline bool SetTempStatusEnum_Parse(absl::string_view name, SetTempStatusEnum* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SetTempStatusEnum>(
- SetTempStatusEnum_descriptor(), name, value);
+inline bool HVACState_State_Parse(absl::string_view name, HVACState_State* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HVACState_State>(
+ HVACState_State_descriptor(), name, value);
}
// ===================================================================
@@ -160,24 +203,24 @@ inline bool SetTempStatusEnum_Parse(absl::string_view name, SetTempStatusEnum* v
// -------------------------------------------------------------------
-class CabinPreconditionRequest final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.CabinPreconditionRequest) */ {
+class Temperature final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.Temperature) */ {
public:
- inline CabinPreconditionRequest() : CabinPreconditionRequest(nullptr) {}
- ~CabinPreconditionRequest() override;
- explicit PROTOBUF_CONSTEXPR CabinPreconditionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline Temperature() : Temperature(nullptr) {}
+ ~Temperature() override;
+ explicit PROTOBUF_CONSTEXPR Temperature(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- CabinPreconditionRequest(const CabinPreconditionRequest& from);
- CabinPreconditionRequest(CabinPreconditionRequest&& from) noexcept
- : CabinPreconditionRequest() {
+ Temperature(const Temperature& from);
+ Temperature(Temperature&& from) noexcept
+ : Temperature() {
*this = ::std::move(from);
}
- inline CabinPreconditionRequest& operator=(const CabinPreconditionRequest& from) {
+ inline Temperature& operator=(const Temperature& from) {
CopyFrom(from);
return *this;
}
- inline CabinPreconditionRequest& operator=(CabinPreconditionRequest&& from) noexcept {
+ inline Temperature& operator=(Temperature&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -200,20 +243,20 @@ class CabinPreconditionRequest final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const CabinPreconditionRequest& default_instance() {
+ static const Temperature& default_instance() {
return *internal_default_instance();
}
- static inline const CabinPreconditionRequest* internal_default_instance() {
- return reinterpret_cast<const CabinPreconditionRequest*>(
- &_CabinPreconditionRequest_default_instance_);
+ static inline const Temperature* internal_default_instance() {
+ return reinterpret_cast<const Temperature*>(
+ &_Temperature_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
- friend void swap(CabinPreconditionRequest& a, CabinPreconditionRequest& b) {
+ friend void swap(Temperature& a, Temperature& b) {
a.Swap(&b);
}
- inline void Swap(CabinPreconditionRequest* other) {
+ inline void Swap(Temperature* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -226,7 +269,7 @@ class CabinPreconditionRequest final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(CabinPreconditionRequest* other) {
+ void UnsafeArenaSwap(Temperature* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -234,14 +277,14 @@ class CabinPreconditionRequest final :
// implements Message ----------------------------------------------
- CabinPreconditionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<CabinPreconditionRequest>(arena);
+ Temperature* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<Temperature>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const CabinPreconditionRequest& from);
+ void CopyFrom(const Temperature& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const CabinPreconditionRequest& from) {
- CabinPreconditionRequest::MergeImpl(*this, from);
+ void MergeFrom( const Temperature& from) {
+ Temperature::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -259,15 +302,15 @@ class CabinPreconditionRequest final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(CabinPreconditionRequest* other);
+ void InternalSwap(Temperature* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.CabinPreconditionRequest";
+ return "messages.hvac.Temperature";
}
protected:
- explicit CabinPreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit Temperature(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -280,65 +323,229 @@ class CabinPreconditionRequest final :
// accessors -------------------------------------------------------
enum : int {
- kMessageHeaderFieldNumber = 1,
- kSetAcStatusFieldNumber = 2,
- kSetTempFieldNumber = 3,
+ kUnitFieldNumber = 2,
+ kValueFieldNumber = 1,
};
- // .messages.VehicleMessageHeading messageHeader = 1;
- bool has_messageheader() const;
+ // string unit = 2;
+ void clear_unit() ;
+ const std::string& unit() const;
+
+
+
+
+ template <typename Arg_ = const std::string&, typename... Args_>
+ void set_unit(Arg_&& arg, Args_... args);
+ std::string* mutable_unit();
+ PROTOBUF_NODISCARD std::string* release_unit();
+ void set_allocated_unit(std::string* ptr);
+
private:
- bool _internal_has_messageheader() const;
+ const std::string& _internal_unit() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_unit(
+ const std::string& value);
+ std::string* _internal_mutable_unit();
public:
- void clear_messageheader() ;
- const ::messages::VehicleMessageHeading& messageheader() const;
- PROTOBUF_NODISCARD ::messages::VehicleMessageHeading* release_messageheader();
- ::messages::VehicleMessageHeading* mutable_messageheader();
- void set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader);
+ // float value = 1;
+ void clear_value() ;
+ float value() const;
+ void set_value(float value);
+
private:
- const ::messages::VehicleMessageHeading& _internal_messageheader() const;
- ::messages::VehicleMessageHeading* _internal_mutable_messageheader();
+ float _internal_value() const;
+ void _internal_set_value(float value);
+
public:
- void unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader);
- ::messages::VehicleMessageHeading* unsafe_arena_release_messageheader();
- // .messages.SetAcStatusRequest setAcStatus = 2;
- bool has_setacstatus() const;
- private:
- bool _internal_has_setacstatus() const;
+ // @@protoc_insertion_point(class_scope:messages.hvac.Temperature)
+ private:
+ class _Internal;
+
+ template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ struct Impl_ {
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr unit_;
+ float value_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ };
+ union { Impl_ _impl_; };
+ friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
+};// -------------------------------------------------------------------
+
+class HVACZone final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.HVACZone) */ {
+ public:
+ inline HVACZone() : HVACZone(nullptr) {}
+ ~HVACZone() override;
+ explicit PROTOBUF_CONSTEXPR HVACZone(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+
+ HVACZone(const HVACZone& from);
+ HVACZone(HVACZone&& from) noexcept
+ : HVACZone() {
+ *this = ::std::move(from);
+ }
+ inline HVACZone& operator=(const HVACZone& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline HVACZone& operator=(HVACZone&& from) noexcept {
+ if (this == &from) return *this;
+ if (GetOwningArena() == from.GetOwningArena()
+ #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
+ && GetOwningArena() != nullptr
+ #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
+ ) {
+ InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return default_instance().GetMetadata().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return default_instance().GetMetadata().reflection;
+ }
+ static const HVACZone& default_instance() {
+ return *internal_default_instance();
+ }
+ static inline const HVACZone* internal_default_instance() {
+ return reinterpret_cast<const HVACZone*>(
+ &_HVACZone_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
+ friend void swap(HVACZone& a, HVACZone& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(HVACZone* other) {
+ if (other == this) return;
+ #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
+ if (GetOwningArena() != nullptr &&
+ GetOwningArena() == other->GetOwningArena()) {
+ #else // PROTOBUF_FORCE_COPY_IN_SWAP
+ if (GetOwningArena() == other->GetOwningArena()) {
+ #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
+ InternalSwap(other);
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
+ }
+ }
+ void UnsafeArenaSwap(HVACZone* other) {
+ if (other == this) return;
+ ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ HVACZone* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<HVACZone>(arena);
+ }
+ using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
+ void CopyFrom(const HVACZone& from);
+ using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
+ void MergeFrom( const HVACZone& from) {
+ HVACZone::MergeImpl(*this, from);
+ }
+ private:
+ static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
- void clear_setacstatus() ;
- const ::messages::SetAcStatusRequest& setacstatus() const;
- PROTOBUF_NODISCARD ::messages::SetAcStatusRequest* release_setacstatus();
- ::messages::SetAcStatusRequest* mutable_setacstatus();
- void set_allocated_setacstatus(::messages::SetAcStatusRequest* setacstatus);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ ::size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::uint8_t* _InternalSerialize(
+ ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
+
+ private:
+ void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ void SharedDtor();
+ void SetCachedSize(int size) const final;
+ void InternalSwap(HVACZone* other);
+
private:
- const ::messages::SetAcStatusRequest& _internal_setacstatus() const;
- ::messages::SetAcStatusRequest* _internal_mutable_setacstatus();
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::absl::string_view FullMessageName() {
+ return "messages.hvac.HVACZone";
+ }
+ protected:
+ explicit HVACZone(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
- void unsafe_arena_set_allocated_setacstatus(
- ::messages::SetAcStatusRequest* setacstatus);
- ::messages::SetAcStatusRequest* unsafe_arena_release_setacstatus();
- // .messages.SetTemperatureRequest setTemp = 3;
- bool has_settemp() const;
+
+ static const ClassData _class_data_;
+ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
+
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+
+ // nested types ----------------------------------------------------
+
+ using Zone = HVACZone_Zone;
+ static constexpr Zone DRIVER = HVACZone_Zone_DRIVER;
+ static constexpr Zone PASSENGER = HVACZone_Zone_PASSENGER;
+ static constexpr Zone REAR_LEFT = HVACZone_Zone_REAR_LEFT;
+ static constexpr Zone REAR_RIGHT = HVACZone_Zone_REAR_RIGHT;
+ static inline bool Zone_IsValid(int value) {
+ return HVACZone_Zone_IsValid(value);
+ }
+ static constexpr Zone Zone_MIN = HVACZone_Zone_Zone_MIN;
+ static constexpr Zone Zone_MAX = HVACZone_Zone_Zone_MAX;
+ static constexpr int Zone_ARRAYSIZE = HVACZone_Zone_Zone_ARRAYSIZE;
+ static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Zone_descriptor() {
+ return HVACZone_Zone_descriptor();
+ }
+ template <typename T>
+ static inline const std::string& Zone_Name(T value) {
+ return HVACZone_Zone_Name(value);
+ }
+ static inline bool Zone_Parse(absl::string_view name, Zone* value) {
+ return HVACZone_Zone_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kTargetTemperatureFieldNumber = 2,
+ kZoneFieldNumber = 1,
+ };
+ // .messages.hvac.Temperature target_temperature = 2;
+ bool has_target_temperature() const;
private:
- bool _internal_has_settemp() const;
+ bool _internal_has_target_temperature() const;
public:
- void clear_settemp() ;
- const ::messages::SetTemperatureRequest& settemp() const;
- PROTOBUF_NODISCARD ::messages::SetTemperatureRequest* release_settemp();
- ::messages::SetTemperatureRequest* mutable_settemp();
- void set_allocated_settemp(::messages::SetTemperatureRequest* settemp);
+ void clear_target_temperature() ;
+ const ::messages::hvac::Temperature& target_temperature() const;
+ PROTOBUF_NODISCARD ::messages::hvac::Temperature* release_target_temperature();
+ ::messages::hvac::Temperature* mutable_target_temperature();
+ void set_allocated_target_temperature(::messages::hvac::Temperature* target_temperature);
private:
- const ::messages::SetTemperatureRequest& _internal_settemp() const;
- ::messages::SetTemperatureRequest* _internal_mutable_settemp();
+ const ::messages::hvac::Temperature& _internal_target_temperature() const;
+ ::messages::hvac::Temperature* _internal_mutable_target_temperature();
public:
- void unsafe_arena_set_allocated_settemp(
- ::messages::SetTemperatureRequest* settemp);
- ::messages::SetTemperatureRequest* unsafe_arena_release_settemp();
- // @@protoc_insertion_point(class_scope:messages.CabinPreconditionRequest)
+ void unsafe_arena_set_allocated_target_temperature(
+ ::messages::hvac::Temperature* target_temperature);
+ ::messages::hvac::Temperature* unsafe_arena_release_target_temperature();
+ // .messages.hvac.HVACZone.Zone zone = 1;
+ void clear_zone() ;
+ ::messages::hvac::HVACZone_Zone zone() const;
+ void set_zone(::messages::hvac::HVACZone_Zone value);
+
+ private:
+ ::messages::hvac::HVACZone_Zone _internal_zone() const;
+ void _internal_set_zone(::messages::hvac::HVACZone_Zone value);
+
+ public:
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACZone)
private:
class _Internal;
@@ -346,33 +553,32 @@ class CabinPreconditionRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- ::messages::VehicleMessageHeading* messageheader_;
- ::messages::SetAcStatusRequest* setacstatus_;
- ::messages::SetTemperatureRequest* settemp_;
+ ::messages::hvac::Temperature* target_temperature_;
+ int zone_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class CabinPreConditionReponse final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.CabinPreConditionReponse) */ {
+class PreconditionRequest final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.PreconditionRequest) */ {
public:
- inline CabinPreConditionReponse() : CabinPreConditionReponse(nullptr) {}
- ~CabinPreConditionReponse() override;
- explicit PROTOBUF_CONSTEXPR CabinPreConditionReponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline PreconditionRequest() : PreconditionRequest(nullptr) {}
+ ~PreconditionRequest() override;
+ explicit PROTOBUF_CONSTEXPR PreconditionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- CabinPreConditionReponse(const CabinPreConditionReponse& from);
- CabinPreConditionReponse(CabinPreConditionReponse&& from) noexcept
- : CabinPreConditionReponse() {
+ PreconditionRequest(const PreconditionRequest& from);
+ PreconditionRequest(PreconditionRequest&& from) noexcept
+ : PreconditionRequest() {
*this = ::std::move(from);
}
- inline CabinPreConditionReponse& operator=(const CabinPreConditionReponse& from) {
+ inline PreconditionRequest& operator=(const PreconditionRequest& from) {
CopyFrom(from);
return *this;
}
- inline CabinPreConditionReponse& operator=(CabinPreConditionReponse&& from) noexcept {
+ inline PreconditionRequest& operator=(PreconditionRequest&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -395,20 +601,20 @@ class CabinPreConditionReponse final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const CabinPreConditionReponse& default_instance() {
+ static const PreconditionRequest& default_instance() {
return *internal_default_instance();
}
- static inline const CabinPreConditionReponse* internal_default_instance() {
- return reinterpret_cast<const CabinPreConditionReponse*>(
- &_CabinPreConditionReponse_default_instance_);
+ static inline const PreconditionRequest* internal_default_instance() {
+ return reinterpret_cast<const PreconditionRequest*>(
+ &_PreconditionRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 1;
+ 2;
- friend void swap(CabinPreConditionReponse& a, CabinPreConditionReponse& b) {
+ friend void swap(PreconditionRequest& a, PreconditionRequest& b) {
a.Swap(&b);
}
- inline void Swap(CabinPreConditionReponse* other) {
+ inline void Swap(PreconditionRequest* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -421,7 +627,7 @@ class CabinPreConditionReponse final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(CabinPreConditionReponse* other) {
+ void UnsafeArenaSwap(PreconditionRequest* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -429,14 +635,14 @@ class CabinPreConditionReponse final :
// implements Message ----------------------------------------------
- CabinPreConditionReponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<CabinPreConditionReponse>(arena);
+ PreconditionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<PreconditionRequest>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const CabinPreConditionReponse& from);
+ void CopyFrom(const PreconditionRequest& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const CabinPreConditionReponse& from) {
- CabinPreConditionReponse::MergeImpl(*this, from);
+ void MergeFrom( const PreconditionRequest& from) {
+ PreconditionRequest::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -454,15 +660,15 @@ class CabinPreConditionReponse final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(CabinPreConditionReponse* other);
+ void InternalSwap(PreconditionRequest* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.CabinPreConditionReponse";
+ return "messages.hvac.PreconditionRequest";
}
protected:
- explicit CabinPreConditionReponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit PreconditionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -475,65 +681,46 @@ class CabinPreConditionReponse final :
// accessors -------------------------------------------------------
enum : int {
- kMessageHeaderFieldNumber = 1,
- kSetAcStatusReplyFieldNumber = 2,
- kSetTemperatureReplyFieldNumber = 3,
+ kHvacZonesFieldNumber = 1,
+ kStartTimeFieldNumber = 2,
};
- // .messages.VehicleMessageHeading messageHeader = 1;
- bool has_messageheader() const;
+ // repeated .messages.hvac.HVACZone hvac_zones = 1;
+ int hvac_zones_size() const;
private:
- bool _internal_has_messageheader() const;
+ int _internal_hvac_zones_size() const;
public:
- void clear_messageheader() ;
- const ::messages::VehicleMessageHeading& messageheader() const;
- PROTOBUF_NODISCARD ::messages::VehicleMessageHeading* release_messageheader();
- ::messages::VehicleMessageHeading* mutable_messageheader();
- void set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader);
+ void clear_hvac_zones() ;
+ ::messages::hvac::HVACZone* mutable_hvac_zones(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >*
+ mutable_hvac_zones();
private:
- const ::messages::VehicleMessageHeading& _internal_messageheader() const;
- ::messages::VehicleMessageHeading* _internal_mutable_messageheader();
+ const ::messages::hvac::HVACZone& _internal_hvac_zones(int index) const;
+ ::messages::hvac::HVACZone* _internal_add_hvac_zones();
public:
- void unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader);
- ::messages::VehicleMessageHeading* unsafe_arena_release_messageheader();
- // .messages.SetAcStatusReply setAcStatusReply = 2;
- bool has_setacstatusreply() const;
+ const ::messages::hvac::HVACZone& hvac_zones(int index) const;
+ ::messages::hvac::HVACZone* add_hvac_zones();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >&
+ hvac_zones() const;
+ // .google.protobuf.Timestamp start_time = 2;
+ bool has_start_time() const;
private:
- bool _internal_has_setacstatusreply() const;
+ bool _internal_has_start_time() const;
public:
- void clear_setacstatusreply() ;
- const ::messages::SetAcStatusReply& setacstatusreply() const;
- PROTOBUF_NODISCARD ::messages::SetAcStatusReply* release_setacstatusreply();
- ::messages::SetAcStatusReply* mutable_setacstatusreply();
- void set_allocated_setacstatusreply(::messages::SetAcStatusReply* setacstatusreply);
+ void clear_start_time() ;
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_time() const;
+ PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_start_time();
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_start_time();
+ void set_allocated_start_time(::PROTOBUF_NAMESPACE_ID::Timestamp* start_time);
private:
- const ::messages::SetAcStatusReply& _internal_setacstatusreply() const;
- ::messages::SetAcStatusReply* _internal_mutable_setacstatusreply();
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_start_time() const;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_start_time();
public:
- void unsafe_arena_set_allocated_setacstatusreply(
- ::messages::SetAcStatusReply* setacstatusreply);
- ::messages::SetAcStatusReply* unsafe_arena_release_setacstatusreply();
- // .messages.SetTemperatureReply setTemperatureReply = 3;
- bool has_settemperaturereply() const;
- private:
- bool _internal_has_settemperaturereply() const;
-
- public:
- void clear_settemperaturereply() ;
- const ::messages::SetTemperatureReply& settemperaturereply() const;
- PROTOBUF_NODISCARD ::messages::SetTemperatureReply* release_settemperaturereply();
- ::messages::SetTemperatureReply* mutable_settemperaturereply();
- void set_allocated_settemperaturereply(::messages::SetTemperatureReply* settemperaturereply);
- private:
- const ::messages::SetTemperatureReply& _internal_settemperaturereply() const;
- ::messages::SetTemperatureReply* _internal_mutable_settemperaturereply();
- public:
- void unsafe_arena_set_allocated_settemperaturereply(
- ::messages::SetTemperatureReply* settemperaturereply);
- ::messages::SetTemperatureReply* unsafe_arena_release_settemperaturereply();
- // @@protoc_insertion_point(class_scope:messages.CabinPreConditionReponse)
+ void unsafe_arena_set_allocated_start_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* start_time);
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_start_time();
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionRequest)
private:
class _Internal;
@@ -541,33 +728,32 @@ class CabinPreConditionReponse final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- ::messages::VehicleMessageHeading* messageheader_;
- ::messages::SetAcStatusReply* setacstatusreply_;
- ::messages::SetTemperatureReply* settemperaturereply_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone > hvac_zones_;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* start_time_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetAcStatusRequest final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetAcStatusRequest) */ {
+class PreconditionResponse final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.PreconditionResponse) */ {
public:
- inline SetAcStatusRequest() : SetAcStatusRequest(nullptr) {}
- ~SetAcStatusRequest() override;
- explicit PROTOBUF_CONSTEXPR SetAcStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline PreconditionResponse() : PreconditionResponse(nullptr) {}
+ ~PreconditionResponse() override;
+ explicit PROTOBUF_CONSTEXPR PreconditionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetAcStatusRequest(const SetAcStatusRequest& from);
- SetAcStatusRequest(SetAcStatusRequest&& from) noexcept
- : SetAcStatusRequest() {
+ PreconditionResponse(const PreconditionResponse& from);
+ PreconditionResponse(PreconditionResponse&& from) noexcept
+ : PreconditionResponse() {
*this = ::std::move(from);
}
- inline SetAcStatusRequest& operator=(const SetAcStatusRequest& from) {
+ inline PreconditionResponse& operator=(const PreconditionResponse& from) {
CopyFrom(from);
return *this;
}
- inline SetAcStatusRequest& operator=(SetAcStatusRequest&& from) noexcept {
+ inline PreconditionResponse& operator=(PreconditionResponse&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -590,20 +776,20 @@ class SetAcStatusRequest final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetAcStatusRequest& default_instance() {
+ static const PreconditionResponse& default_instance() {
return *internal_default_instance();
}
- static inline const SetAcStatusRequest* internal_default_instance() {
- return reinterpret_cast<const SetAcStatusRequest*>(
- &_SetAcStatusRequest_default_instance_);
+ static inline const PreconditionResponse* internal_default_instance() {
+ return reinterpret_cast<const PreconditionResponse*>(
+ &_PreconditionResponse_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 2;
+ 3;
- friend void swap(SetAcStatusRequest& a, SetAcStatusRequest& b) {
+ friend void swap(PreconditionResponse& a, PreconditionResponse& b) {
a.Swap(&b);
}
- inline void Swap(SetAcStatusRequest* other) {
+ inline void Swap(PreconditionResponse* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -616,7 +802,7 @@ class SetAcStatusRequest final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetAcStatusRequest* other) {
+ void UnsafeArenaSwap(PreconditionResponse* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -624,14 +810,14 @@ class SetAcStatusRequest final :
// implements Message ----------------------------------------------
- SetAcStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetAcStatusRequest>(arena);
+ PreconditionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<PreconditionResponse>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetAcStatusRequest& from);
+ void CopyFrom(const PreconditionResponse& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetAcStatusRequest& from) {
- SetAcStatusRequest::MergeImpl(*this, from);
+ void MergeFrom( const PreconditionResponse& from) {
+ PreconditionResponse::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -649,15 +835,15 @@ class SetAcStatusRequest final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetAcStatusRequest* other);
+ void InternalSwap(PreconditionResponse* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetAcStatusRequest";
+ return "messages.hvac.PreconditionResponse";
}
protected:
- explicit SetAcStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit PreconditionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -667,22 +853,64 @@ class SetAcStatusRequest final :
// nested types ----------------------------------------------------
+ using Status = PreconditionResponse_Status;
+ static constexpr Status SUCCESS = PreconditionResponse_Status_SUCCESS;
+ static constexpr Status FAILURE = PreconditionResponse_Status_FAILURE;
+ static constexpr Status PENDING = PreconditionResponse_Status_PENDING;
+ static inline bool Status_IsValid(int value) {
+ return PreconditionResponse_Status_IsValid(value);
+ }
+ static constexpr Status Status_MIN = PreconditionResponse_Status_Status_MIN;
+ static constexpr Status Status_MAX = PreconditionResponse_Status_Status_MAX;
+ static constexpr int Status_ARRAYSIZE = PreconditionResponse_Status_Status_ARRAYSIZE;
+ static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_descriptor() {
+ return PreconditionResponse_Status_descriptor();
+ }
+ template <typename T>
+ static inline const std::string& Status_Name(T value) {
+ return PreconditionResponse_Status_Name(value);
+ }
+ static inline bool Status_Parse(absl::string_view name, Status* value) {
+ return PreconditionResponse_Status_Parse(name, value);
+ }
+
// accessors -------------------------------------------------------
enum : int {
- kDesiredStatusFieldNumber = 1,
+ kMessageFieldNumber = 2,
+ kStatusFieldNumber = 1,
};
- // .messages.AcStatusEnum desiredStatus = 1;
- void clear_desiredstatus() ;
- ::messages::AcStatusEnum desiredstatus() const;
- void set_desiredstatus(::messages::AcStatusEnum value);
+ // string message = 2;
+ void clear_message() ;
+ const std::string& message() const;
+
+
+
+
+ template <typename Arg_ = const std::string&, typename... Args_>
+ void set_message(Arg_&& arg, Args_... args);
+ std::string* mutable_message();
+ PROTOBUF_NODISCARD std::string* release_message();
+ void set_allocated_message(std::string* ptr);
+
+ private:
+ const std::string& _internal_message() const;
+ inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(
+ const std::string& value);
+ std::string* _internal_mutable_message();
+
+ public:
+ // .messages.hvac.PreconditionResponse.Status status = 1;
+ void clear_status() ;
+ ::messages::hvac::PreconditionResponse_Status status() const;
+ void set_status(::messages::hvac::PreconditionResponse_Status value);
private:
- ::messages::AcStatusEnum _internal_desiredstatus() const;
- void _internal_set_desiredstatus(::messages::AcStatusEnum value);
+ ::messages::hvac::PreconditionResponse_Status _internal_status() const;
+ void _internal_set_status(::messages::hvac::PreconditionResponse_Status value);
public:
- // @@protoc_insertion_point(class_scope:messages.SetAcStatusRequest)
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionResponse)
private:
class _Internal;
@@ -690,31 +918,32 @@ class SetAcStatusRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- int desiredstatus_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
+ int status_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetAcStatusReply final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetAcStatusReply) */ {
+class HVACState final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.HVACState) */ {
public:
- inline SetAcStatusReply() : SetAcStatusReply(nullptr) {}
- ~SetAcStatusReply() override;
- explicit PROTOBUF_CONSTEXPR SetAcStatusReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline HVACState() : HVACState(nullptr) {}
+ ~HVACState() override;
+ explicit PROTOBUF_CONSTEXPR HVACState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetAcStatusReply(const SetAcStatusReply& from);
- SetAcStatusReply(SetAcStatusReply&& from) noexcept
- : SetAcStatusReply() {
+ HVACState(const HVACState& from);
+ HVACState(HVACState&& from) noexcept
+ : HVACState() {
*this = ::std::move(from);
}
- inline SetAcStatusReply& operator=(const SetAcStatusReply& from) {
+ inline HVACState& operator=(const HVACState& from) {
CopyFrom(from);
return *this;
}
- inline SetAcStatusReply& operator=(SetAcStatusReply&& from) noexcept {
+ inline HVACState& operator=(HVACState&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -737,20 +966,20 @@ class SetAcStatusReply final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetAcStatusReply& default_instance() {
+ static const HVACState& default_instance() {
return *internal_default_instance();
}
- static inline const SetAcStatusReply* internal_default_instance() {
- return reinterpret_cast<const SetAcStatusReply*>(
- &_SetAcStatusReply_default_instance_);
+ static inline const HVACState* internal_default_instance() {
+ return reinterpret_cast<const HVACState*>(
+ &_HVACState_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 3;
+ 4;
- friend void swap(SetAcStatusReply& a, SetAcStatusReply& b) {
+ friend void swap(HVACState& a, HVACState& b) {
a.Swap(&b);
}
- inline void Swap(SetAcStatusReply* other) {
+ inline void Swap(HVACState* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -763,7 +992,7 @@ class SetAcStatusReply final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetAcStatusReply* other) {
+ void UnsafeArenaSwap(HVACState* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -771,14 +1000,14 @@ class SetAcStatusReply final :
// implements Message ----------------------------------------------
- SetAcStatusReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetAcStatusReply>(arena);
+ HVACState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<HVACState>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetAcStatusReply& from);
+ void CopyFrom(const HVACState& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetAcStatusReply& from) {
- SetAcStatusReply::MergeImpl(*this, from);
+ void MergeFrom( const HVACState& from) {
+ HVACState::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -796,15 +1025,15 @@ class SetAcStatusReply final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetAcStatusReply* other);
+ void InternalSwap(HVACState* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetAcStatusReply";
+ return "messages.hvac.HVACState";
}
protected:
- explicit SetAcStatusReply(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit HVACState(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -814,22 +1043,63 @@ class SetAcStatusReply final :
// nested types ----------------------------------------------------
+ using State = HVACState_State;
+ static constexpr State OFF = HVACState_State_OFF;
+ static constexpr State HEATING = HVACState_State_HEATING;
+ static constexpr State COOLING = HVACState_State_COOLING;
+ static constexpr State IDLE = HVACState_State_IDLE;
+ static inline bool State_IsValid(int value) {
+ return HVACState_State_IsValid(value);
+ }
+ static constexpr State State_MIN = HVACState_State_State_MIN;
+ static constexpr State State_MAX = HVACState_State_State_MAX;
+ static constexpr int State_ARRAYSIZE = HVACState_State_State_ARRAYSIZE;
+ static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State_descriptor() {
+ return HVACState_State_descriptor();
+ }
+ template <typename T>
+ static inline const std::string& State_Name(T value) {
+ return HVACState_State_Name(value);
+ }
+ static inline bool State_Parse(absl::string_view name, State* value) {
+ return HVACState_State_Parse(name, value);
+ }
+
// accessors -------------------------------------------------------
enum : int {
- kStatusFieldNumber = 1,
+ kCurrentZoneFieldNumber = 2,
+ kStateFieldNumber = 1,
};
- // .messages.AcStatusEnum status = 1;
- void clear_status() ;
- ::messages::AcStatusEnum status() const;
- void set_status(::messages::AcStatusEnum value);
+ // .messages.hvac.HVACZone current_zone = 2;
+ bool has_current_zone() const;
+ private:
+ bool _internal_has_current_zone() const;
+
+ public:
+ void clear_current_zone() ;
+ const ::messages::hvac::HVACZone& current_zone() const;
+ PROTOBUF_NODISCARD ::messages::hvac::HVACZone* release_current_zone();
+ ::messages::hvac::HVACZone* mutable_current_zone();
+ void set_allocated_current_zone(::messages::hvac::HVACZone* current_zone);
+ private:
+ const ::messages::hvac::HVACZone& _internal_current_zone() const;
+ ::messages::hvac::HVACZone* _internal_mutable_current_zone();
+ public:
+ void unsafe_arena_set_allocated_current_zone(
+ ::messages::hvac::HVACZone* current_zone);
+ ::messages::hvac::HVACZone* unsafe_arena_release_current_zone();
+ // .messages.hvac.HVACState.State state = 1;
+ void clear_state() ;
+ ::messages::hvac::HVACState_State state() const;
+ void set_state(::messages::hvac::HVACState_State value);
private:
- ::messages::AcStatusEnum _internal_status() const;
- void _internal_set_status(::messages::AcStatusEnum value);
+ ::messages::hvac::HVACState_State _internal_state() const;
+ void _internal_set_state(::messages::hvac::HVACState_State value);
public:
- // @@protoc_insertion_point(class_scope:messages.SetAcStatusReply)
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACState)
private:
class _Internal;
@@ -837,31 +1107,32 @@ class SetAcStatusReply final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- int status_;
+ ::messages::hvac::HVACZone* current_zone_;
+ int state_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetTemperatureRequest final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetTemperatureRequest) */ {
+class CabinTemperature final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.CabinTemperature) */ {
public:
- inline SetTemperatureRequest() : SetTemperatureRequest(nullptr) {}
- ~SetTemperatureRequest() override;
- explicit PROTOBUF_CONSTEXPR SetTemperatureRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline CabinTemperature() : CabinTemperature(nullptr) {}
+ ~CabinTemperature() override;
+ explicit PROTOBUF_CONSTEXPR CabinTemperature(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetTemperatureRequest(const SetTemperatureRequest& from);
- SetTemperatureRequest(SetTemperatureRequest&& from) noexcept
- : SetTemperatureRequest() {
+ CabinTemperature(const CabinTemperature& from);
+ CabinTemperature(CabinTemperature&& from) noexcept
+ : CabinTemperature() {
*this = ::std::move(from);
}
- inline SetTemperatureRequest& operator=(const SetTemperatureRequest& from) {
+ inline CabinTemperature& operator=(const CabinTemperature& from) {
CopyFrom(from);
return *this;
}
- inline SetTemperatureRequest& operator=(SetTemperatureRequest&& from) noexcept {
+ inline CabinTemperature& operator=(CabinTemperature&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -884,20 +1155,20 @@ class SetTemperatureRequest final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetTemperatureRequest& default_instance() {
+ static const CabinTemperature& default_instance() {
return *internal_default_instance();
}
- static inline const SetTemperatureRequest* internal_default_instance() {
- return reinterpret_cast<const SetTemperatureRequest*>(
- &_SetTemperatureRequest_default_instance_);
+ static inline const CabinTemperature* internal_default_instance() {
+ return reinterpret_cast<const CabinTemperature*>(
+ &_CabinTemperature_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 4;
+ 5;
- friend void swap(SetTemperatureRequest& a, SetTemperatureRequest& b) {
+ friend void swap(CabinTemperature& a, CabinTemperature& b) {
a.Swap(&b);
}
- inline void Swap(SetTemperatureRequest* other) {
+ inline void Swap(CabinTemperature* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -910,7 +1181,7 @@ class SetTemperatureRequest final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetTemperatureRequest* other) {
+ void UnsafeArenaSwap(CabinTemperature* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -918,14 +1189,14 @@ class SetTemperatureRequest final :
// implements Message ----------------------------------------------
- SetTemperatureRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetTemperatureRequest>(arena);
+ CabinTemperature* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<CabinTemperature>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetTemperatureRequest& from);
+ void CopyFrom(const CabinTemperature& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetTemperatureRequest& from) {
- SetTemperatureRequest::MergeImpl(*this, from);
+ void MergeFrom( const CabinTemperature& from) {
+ CabinTemperature::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -943,15 +1214,15 @@ class SetTemperatureRequest final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetTemperatureRequest* other);
+ void InternalSwap(CabinTemperature* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetTemperatureRequest";
+ return "messages.hvac.CabinTemperature";
}
protected:
- explicit SetTemperatureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit CabinTemperature(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -965,18 +1236,45 @@ class SetTemperatureRequest final :
enum : int {
kTemperatureFieldNumber = 1,
+ kZoneFieldNumber = 2,
};
- // float temperature = 1;
- void clear_temperature() ;
- float temperature() const;
- void set_temperature(float value);
+ // .messages.hvac.Temperature temperature = 1;
+ bool has_temperature() const;
+ private:
+ bool _internal_has_temperature() const;
+ public:
+ void clear_temperature() ;
+ const ::messages::hvac::Temperature& temperature() const;
+ PROTOBUF_NODISCARD ::messages::hvac::Temperature* release_temperature();
+ ::messages::hvac::Temperature* mutable_temperature();
+ void set_allocated_temperature(::messages::hvac::Temperature* temperature);
+ private:
+ const ::messages::hvac::Temperature& _internal_temperature() const;
+ ::messages::hvac::Temperature* _internal_mutable_temperature();
+ public:
+ void unsafe_arena_set_allocated_temperature(
+ ::messages::hvac::Temperature* temperature);
+ ::messages::hvac::Temperature* unsafe_arena_release_temperature();
+ // .messages.hvac.HVACZone zone = 2;
+ bool has_zone() const;
private:
- float _internal_temperature() const;
- void _internal_set_temperature(float value);
+ bool _internal_has_zone() const;
public:
- // @@protoc_insertion_point(class_scope:messages.SetTemperatureRequest)
+ void clear_zone() ;
+ const ::messages::hvac::HVACZone& zone() const;
+ PROTOBUF_NODISCARD ::messages::hvac::HVACZone* release_zone();
+ ::messages::hvac::HVACZone* mutable_zone();
+ void set_allocated_zone(::messages::hvac::HVACZone* zone);
+ private:
+ const ::messages::hvac::HVACZone& _internal_zone() const;
+ ::messages::hvac::HVACZone* _internal_mutable_zone();
+ public:
+ void unsafe_arena_set_allocated_zone(
+ ::messages::hvac::HVACZone* zone);
+ ::messages::hvac::HVACZone* unsafe_arena_release_zone();
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinTemperature)
private:
class _Internal;
@@ -984,31 +1282,32 @@ class SetTemperatureRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- float temperature_;
+ ::messages::hvac::Temperature* temperature_;
+ ::messages::hvac::HVACZone* zone_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_messages_2fVehicleRemoteHvac_2eproto;
};// -------------------------------------------------------------------
-class SetTemperatureReply final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SetTemperatureReply) */ {
+class CabinConditionStatusPublish final :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.hvac.CabinConditionStatusPublish) */ {
public:
- inline SetTemperatureReply() : SetTemperatureReply(nullptr) {}
- ~SetTemperatureReply() override;
- explicit PROTOBUF_CONSTEXPR SetTemperatureReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+ inline CabinConditionStatusPublish() : CabinConditionStatusPublish(nullptr) {}
+ ~CabinConditionStatusPublish() override;
+ explicit PROTOBUF_CONSTEXPR CabinConditionStatusPublish(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- SetTemperatureReply(const SetTemperatureReply& from);
- SetTemperatureReply(SetTemperatureReply&& from) noexcept
- : SetTemperatureReply() {
+ CabinConditionStatusPublish(const CabinConditionStatusPublish& from);
+ CabinConditionStatusPublish(CabinConditionStatusPublish&& from) noexcept
+ : CabinConditionStatusPublish() {
*this = ::std::move(from);
}
- inline SetTemperatureReply& operator=(const SetTemperatureReply& from) {
+ inline CabinConditionStatusPublish& operator=(const CabinConditionStatusPublish& from) {
CopyFrom(from);
return *this;
}
- inline SetTemperatureReply& operator=(SetTemperatureReply&& from) noexcept {
+ inline CabinConditionStatusPublish& operator=(CabinConditionStatusPublish&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -1031,20 +1330,20 @@ class SetTemperatureReply final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
- static const SetTemperatureReply& default_instance() {
+ static const CabinConditionStatusPublish& default_instance() {
return *internal_default_instance();
}
- static inline const SetTemperatureReply* internal_default_instance() {
- return reinterpret_cast<const SetTemperatureReply*>(
- &_SetTemperatureReply_default_instance_);
+ static inline const CabinConditionStatusPublish* internal_default_instance() {
+ return reinterpret_cast<const CabinConditionStatusPublish*>(
+ &_CabinConditionStatusPublish_default_instance_);
}
static constexpr int kIndexInFileMessages =
- 5;
+ 6;
- friend void swap(SetTemperatureReply& a, SetTemperatureReply& b) {
+ friend void swap(CabinConditionStatusPublish& a, CabinConditionStatusPublish& b) {
a.Swap(&b);
}
- inline void Swap(SetTemperatureReply* other) {
+ inline void Swap(CabinConditionStatusPublish* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -1057,7 +1356,7 @@ class SetTemperatureReply final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
- void UnsafeArenaSwap(SetTemperatureReply* other) {
+ void UnsafeArenaSwap(CabinConditionStatusPublish* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -1065,14 +1364,14 @@ class SetTemperatureReply final :
// implements Message ----------------------------------------------
- SetTemperatureReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<SetTemperatureReply>(arena);
+ CabinConditionStatusPublish* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+ return CreateMaybeMessage<CabinConditionStatusPublish>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const SetTemperatureReply& from);
+ void CopyFrom(const CabinConditionStatusPublish& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom( const SetTemperatureReply& from) {
- SetTemperatureReply::MergeImpl(*this, from);
+ void MergeFrom( const CabinConditionStatusPublish& from) {
+ CabinConditionStatusPublish::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -1090,15 +1389,15 @@ class SetTemperatureReply final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const final;
- void InternalSwap(SetTemperatureReply* other);
+ void InternalSwap(CabinConditionStatusPublish* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
- return "messages.SetTemperatureReply";
+ return "messages.hvac.CabinConditionStatusPublish";
}
protected:
- explicit SetTemperatureReply(::PROTOBUF_NAMESPACE_ID::Arena* arena);
+ explicit CabinConditionStatusPublish(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
@@ -1111,19 +1410,65 @@ class SetTemperatureReply final :
// accessors -------------------------------------------------------
enum : int {
- kTempStatusFieldNumber = 1,
+ kEventTimeFieldNumber = 1,
+ kHvacStateFieldNumber = 2,
+ kCabinTemperatureFieldNumber = 3,
};
- // .messages.SetTempStatusEnum tempStatus = 1;
- void clear_tempstatus() ;
- ::messages::SetTempStatusEnum tempstatus() const;
- void set_tempstatus(::messages::SetTempStatusEnum value);
+ // .google.protobuf.Timestamp event_time = 1;
+ bool has_event_time() const;
+ private:
+ bool _internal_has_event_time() const;
+
+ public:
+ void clear_event_time() ;
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& event_time() const;
+ PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_event_time();
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_event_time();
+ void set_allocated_event_time(::PROTOBUF_NAMESPACE_ID::Timestamp* event_time);
+ private:
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_event_time() const;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_event_time();
+ public:
+ void unsafe_arena_set_allocated_event_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* event_time);
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_event_time();
+ // .messages.hvac.HVACState hvac_state = 2;
+ bool has_hvac_state() const;
+ private:
+ bool _internal_has_hvac_state() const;
+ public:
+ void clear_hvac_state() ;
+ const ::messages::hvac::HVACState& hvac_state() const;
+ PROTOBUF_NODISCARD ::messages::hvac::HVACState* release_hvac_state();
+ ::messages::hvac::HVACState* mutable_hvac_state();
+ void set_allocated_hvac_state(::messages::hvac::HVACState* hvac_state);
private:
- ::messages::SetTempStatusEnum _internal_tempstatus() const;
- void _internal_set_tempstatus(::messages::SetTempStatusEnum value);
+ const ::messages::hvac::HVACState& _internal_hvac_state() const;
+ ::messages::hvac::HVACState* _internal_mutable_hvac_state();
+ public:
+ void unsafe_arena_set_allocated_hvac_state(
+ ::messages::hvac::HVACState* hvac_state);
+ ::messages::hvac::HVACState* unsafe_arena_release_hvac_state();
+ // .messages.hvac.CabinTemperature cabin_temperature = 3;
+ bool has_cabin_temperature() const;
+ private:
+ bool _internal_has_cabin_temperature() const;
public:
- // @@protoc_insertion_point(class_scope:messages.SetTemperatureReply)
+ void clear_cabin_temperature() ;
+ const ::messages::hvac::CabinTemperature& cabin_temperature() const;
+ PROTOBUF_NODISCARD ::messages::hvac::CabinTemperature* release_cabin_temperature();
+ ::messages::hvac::CabinTemperature* mutable_cabin_temperature();
+ void set_allocated_cabin_temperature(::messages::hvac::CabinTemperature* cabin_temperature);
+ private:
+ const ::messages::hvac::CabinTemperature& _internal_cabin_temperature() const;
+ ::messages::hvac::CabinTemperature* _internal_mutable_cabin_temperature();
+ public:
+ void unsafe_arena_set_allocated_cabin_temperature(
+ ::messages::hvac::CabinTemperature* cabin_temperature);
+ ::messages::hvac::CabinTemperature* unsafe_arena_release_cabin_temperature();
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinConditionStatusPublish)
private:
class _Internal;
@@ -1131,7 +1476,9 @@ class SetTemperatureReply final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
- int tempstatus_;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* event_time_;
+ ::messages::hvac::HVACState* hvac_state_;
+ ::messages::hvac::CabinTemperature* cabin_temperature_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -1152,36 +1499,133 @@ class SetTemperatureReply final :
#endif // __GNUC__
// -------------------------------------------------------------------
-// CabinPreconditionRequest
+// Temperature
+
+// float value = 1;
+inline void Temperature::clear_value() {
+ _impl_.value_ = 0;
+}
+inline float Temperature::value() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.Temperature.value)
+ return _internal_value();
+}
+inline void Temperature::set_value(float value) {
+ _internal_set_value(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.Temperature.value)
+}
+inline float Temperature::_internal_value() const {
+ return _impl_.value_;
+}
+inline void Temperature::_internal_set_value(float value) {
+ ;
+ _impl_.value_ = value;
+}
+
+// string unit = 2;
+inline void Temperature::clear_unit() {
+ _impl_.unit_.ClearToEmpty();
+}
+inline const std::string& Temperature::unit() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.Temperature.unit)
+ return _internal_unit();
+}
+template <typename Arg_, typename... Args_>
+inline PROTOBUF_ALWAYS_INLINE void Temperature::set_unit(Arg_&& arg,
+ Args_... args) {
+ ;
+ _impl_.unit_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:messages.hvac.Temperature.unit)
+}
+inline std::string* Temperature::mutable_unit() {
+ std::string* _s = _internal_mutable_unit();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.Temperature.unit)
+ return _s;
+}
+inline const std::string& Temperature::_internal_unit() const {
+ return _impl_.unit_.Get();
+}
+inline void Temperature::_internal_set_unit(const std::string& value) {
+ ;
+
+
+ _impl_.unit_.Set(value, GetArenaForAllocation());
+}
+inline std::string* Temperature::_internal_mutable_unit() {
+ ;
+ return _impl_.unit_.Mutable( GetArenaForAllocation());
+}
+inline std::string* Temperature::release_unit() {
+ // @@protoc_insertion_point(field_release:messages.hvac.Temperature.unit)
+ return _impl_.unit_.Release();
+}
+inline void Temperature::set_allocated_unit(std::string* value) {
+ _impl_.unit_.SetAllocated(value, GetArenaForAllocation());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (_impl_.unit_.IsDefault()) {
+ _impl_.unit_.Set("", GetArenaForAllocation());
+ }
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.Temperature.unit)
+}
+
+// -------------------------------------------------------------------
+
+// HVACZone
+
+// .messages.hvac.HVACZone.Zone zone = 1;
+inline void HVACZone::clear_zone() {
+ _impl_.zone_ = 0;
+}
+inline ::messages::hvac::HVACZone_Zone HVACZone::zone() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACZone.zone)
+ return _internal_zone();
+}
+inline void HVACZone::set_zone(::messages::hvac::HVACZone_Zone value) {
+ _internal_set_zone(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.HVACZone.zone)
+}
+inline ::messages::hvac::HVACZone_Zone HVACZone::_internal_zone() const {
+ return static_cast<::messages::hvac::HVACZone_Zone>(_impl_.zone_);
+}
+inline void HVACZone::_internal_set_zone(::messages::hvac::HVACZone_Zone value) {
+ ;
+ _impl_.zone_ = value;
+}
-// .messages.VehicleMessageHeading messageHeader = 1;
-inline bool CabinPreconditionRequest::_internal_has_messageheader() const {
- return this != internal_default_instance() && _impl_.messageheader_ != nullptr;
+// .messages.hvac.Temperature target_temperature = 2;
+inline bool HVACZone::_internal_has_target_temperature() const {
+ return this != internal_default_instance() && _impl_.target_temperature_ != nullptr;
}
-inline bool CabinPreconditionRequest::has_messageheader() const {
- return _internal_has_messageheader();
+inline bool HVACZone::has_target_temperature() const {
+ return _internal_has_target_temperature();
}
-inline const ::messages::VehicleMessageHeading& CabinPreconditionRequest::_internal_messageheader() const {
- const ::messages::VehicleMessageHeading* p = _impl_.messageheader_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::VehicleMessageHeading&>(
- ::messages::_VehicleMessageHeading_default_instance_);
+inline void HVACZone::clear_target_temperature() {
+ if (GetArenaForAllocation() == nullptr && _impl_.target_temperature_ != nullptr) {
+ delete _impl_.target_temperature_;
+ }
+ _impl_.target_temperature_ = nullptr;
+}
+inline const ::messages::hvac::Temperature& HVACZone::_internal_target_temperature() const {
+ const ::messages::hvac::Temperature* p = _impl_.target_temperature_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::Temperature&>(
+ ::messages::hvac::_Temperature_default_instance_);
}
-inline const ::messages::VehicleMessageHeading& CabinPreconditionRequest::messageheader() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreconditionRequest.messageHeader)
- return _internal_messageheader();
+inline const ::messages::hvac::Temperature& HVACZone::target_temperature() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACZone.target_temperature)
+ return _internal_target_temperature();
}
-inline void CabinPreconditionRequest::unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader) {
+inline void HVACZone::unsafe_arena_set_allocated_target_temperature(
+ ::messages::hvac::Temperature* target_temperature) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_temperature_);
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreconditionRequest.messageHeader)
+ _impl_.target_temperature_ = target_temperature;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.HVACZone.target_temperature)
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::release_messageheader() {
+inline ::messages::hvac::Temperature* HVACZone::release_target_temperature() {
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.target_temperature_;
+ _impl_.target_temperature_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1193,81 +1637,118 @@ inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::release_mess
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::unsafe_arena_release_messageheader() {
- // @@protoc_insertion_point(field_release:messages.CabinPreconditionRequest.messageHeader)
+inline ::messages::hvac::Temperature* HVACZone::unsafe_arena_release_target_temperature() {
+ // @@protoc_insertion_point(field_release:messages.hvac.HVACZone.target_temperature)
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.target_temperature_;
+ _impl_.target_temperature_ = nullptr;
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::_internal_mutable_messageheader() {
+inline ::messages::hvac::Temperature* HVACZone::_internal_mutable_target_temperature() {
- if (_impl_.messageheader_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::VehicleMessageHeading>(GetArenaForAllocation());
- _impl_.messageheader_ = p;
+ if (_impl_.target_temperature_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::Temperature>(GetArenaForAllocation());
+ _impl_.target_temperature_ = p;
}
- return _impl_.messageheader_;
+ return _impl_.target_temperature_;
}
-inline ::messages::VehicleMessageHeading* CabinPreconditionRequest::mutable_messageheader() {
- ::messages::VehicleMessageHeading* _msg = _internal_mutable_messageheader();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreconditionRequest.messageHeader)
+inline ::messages::hvac::Temperature* HVACZone::mutable_target_temperature() {
+ ::messages::hvac::Temperature* _msg = _internal_mutable_target_temperature();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.HVACZone.target_temperature)
return _msg;
}
-inline void CabinPreconditionRequest::set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader) {
+inline void HVACZone::set_allocated_target_temperature(::messages::hvac::Temperature* target_temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete _impl_.target_temperature_;
}
- if (messageheader) {
+ if (target_temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(messageheader));
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(target_temperature);
if (message_arena != submessage_arena) {
- messageheader = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, messageheader, submessage_arena);
+ target_temperature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, target_temperature, submessage_arena);
}
} else {
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreconditionRequest.messageHeader)
+ _impl_.target_temperature_ = target_temperature;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.HVACZone.target_temperature)
}
-// .messages.SetAcStatusRequest setAcStatus = 2;
-inline bool CabinPreconditionRequest::_internal_has_setacstatus() const {
- return this != internal_default_instance() && _impl_.setacstatus_ != nullptr;
+// -------------------------------------------------------------------
+
+// PreconditionRequest
+
+// repeated .messages.hvac.HVACZone hvac_zones = 1;
+inline int PreconditionRequest::_internal_hvac_zones_size() const {
+ return _impl_.hvac_zones_.size();
}
-inline bool CabinPreconditionRequest::has_setacstatus() const {
- return _internal_has_setacstatus();
+inline int PreconditionRequest::hvac_zones_size() const {
+ return _internal_hvac_zones_size();
}
-inline void CabinPreconditionRequest::clear_setacstatus() {
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatus_ != nullptr) {
- delete _impl_.setacstatus_;
- }
- _impl_.setacstatus_ = nullptr;
+inline void PreconditionRequest::clear_hvac_zones() {
+ _impl_.hvac_zones_.Clear();
+}
+inline ::messages::hvac::HVACZone* PreconditionRequest::mutable_hvac_zones(int index) {
+ // @@protoc_insertion_point(field_mutable:messages.hvac.PreconditionRequest.hvac_zones)
+ return _impl_.hvac_zones_.Mutable(index);
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >*
+PreconditionRequest::mutable_hvac_zones() {
+ // @@protoc_insertion_point(field_mutable_list:messages.hvac.PreconditionRequest.hvac_zones)
+ return &_impl_.hvac_zones_;
}
-inline const ::messages::SetAcStatusRequest& CabinPreconditionRequest::_internal_setacstatus() const {
- const ::messages::SetAcStatusRequest* p = _impl_.setacstatus_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetAcStatusRequest&>(
- ::messages::_SetAcStatusRequest_default_instance_);
+inline const ::messages::hvac::HVACZone& PreconditionRequest::_internal_hvac_zones(int index) const {
+ return _impl_.hvac_zones_.Get(index);
}
-inline const ::messages::SetAcStatusRequest& CabinPreconditionRequest::setacstatus() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreconditionRequest.setAcStatus)
- return _internal_setacstatus();
+inline const ::messages::hvac::HVACZone& PreconditionRequest::hvac_zones(int index) const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionRequest.hvac_zones)
+ return _internal_hvac_zones(index);
}
-inline void CabinPreconditionRequest::unsafe_arena_set_allocated_setacstatus(
- ::messages::SetAcStatusRequest* setacstatus) {
+inline ::messages::hvac::HVACZone* PreconditionRequest::_internal_add_hvac_zones() {
+ return _impl_.hvac_zones_.Add();
+}
+inline ::messages::hvac::HVACZone* PreconditionRequest::add_hvac_zones() {
+ ::messages::hvac::HVACZone* _add = _internal_add_hvac_zones();
+ // @@protoc_insertion_point(field_add:messages.hvac.PreconditionRequest.hvac_zones)
+ return _add;
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::hvac::HVACZone >&
+PreconditionRequest::hvac_zones() const {
+ // @@protoc_insertion_point(field_list:messages.hvac.PreconditionRequest.hvac_zones)
+ return _impl_.hvac_zones_;
+}
+
+// .google.protobuf.Timestamp start_time = 2;
+inline bool PreconditionRequest::_internal_has_start_time() const {
+ return this != internal_default_instance() && _impl_.start_time_ != nullptr;
+}
+inline bool PreconditionRequest::has_start_time() const {
+ return _internal_has_start_time();
+}
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PreconditionRequest::_internal_start_time() const {
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.start_time_;
+ return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Timestamp&>(
+ ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
+}
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PreconditionRequest::start_time() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionRequest.start_time)
+ return _internal_start_time();
+}
+inline void PreconditionRequest::unsafe_arena_set_allocated_start_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* start_time) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.setacstatus_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_time_);
}
- _impl_.setacstatus_ = setacstatus;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreconditionRequest.setAcStatus)
+ _impl_.start_time_ = start_time;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.PreconditionRequest.start_time)
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::release_setacstatus() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::release_start_time() {
- ::messages::SetAcStatusRequest* temp = _impl_.setacstatus_;
- _impl_.setacstatus_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_time_;
+ _impl_.start_time_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1279,80 +1760,176 @@ inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::release_setacst
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::unsafe_arena_release_setacstatus() {
- // @@protoc_insertion_point(field_release:messages.CabinPreconditionRequest.setAcStatus)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::unsafe_arena_release_start_time() {
+ // @@protoc_insertion_point(field_release:messages.hvac.PreconditionRequest.start_time)
- ::messages::SetAcStatusRequest* temp = _impl_.setacstatus_;
- _impl_.setacstatus_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.start_time_;
+ _impl_.start_time_ = nullptr;
return temp;
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::_internal_mutable_setacstatus() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::_internal_mutable_start_time() {
- if (_impl_.setacstatus_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetAcStatusRequest>(GetArenaForAllocation());
- _impl_.setacstatus_ = p;
+ if (_impl_.start_time_ == nullptr) {
+ auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
+ _impl_.start_time_ = p;
}
- return _impl_.setacstatus_;
+ return _impl_.start_time_;
}
-inline ::messages::SetAcStatusRequest* CabinPreconditionRequest::mutable_setacstatus() {
- ::messages::SetAcStatusRequest* _msg = _internal_mutable_setacstatus();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreconditionRequest.setAcStatus)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PreconditionRequest::mutable_start_time() {
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_start_time();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.PreconditionRequest.start_time)
return _msg;
}
-inline void CabinPreconditionRequest::set_allocated_setacstatus(::messages::SetAcStatusRequest* setacstatus) {
+inline void PreconditionRequest::set_allocated_start_time(::PROTOBUF_NAMESPACE_ID::Timestamp* start_time) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.setacstatus_;
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_time_);
}
- if (setacstatus) {
+ if (start_time) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setacstatus);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_time));
if (message_arena != submessage_arena) {
- setacstatus = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, setacstatus, submessage_arena);
+ start_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, start_time, submessage_arena);
}
} else {
}
- _impl_.setacstatus_ = setacstatus;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreconditionRequest.setAcStatus)
+ _impl_.start_time_ = start_time;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.PreconditionRequest.start_time)
+}
+
+// -------------------------------------------------------------------
+
+// PreconditionResponse
+
+// .messages.hvac.PreconditionResponse.Status status = 1;
+inline void PreconditionResponse::clear_status() {
+ _impl_.status_ = 0;
+}
+inline ::messages::hvac::PreconditionResponse_Status PreconditionResponse::status() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionResponse.status)
+ return _internal_status();
+}
+inline void PreconditionResponse::set_status(::messages::hvac::PreconditionResponse_Status value) {
+ _internal_set_status(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.PreconditionResponse.status)
+}
+inline ::messages::hvac::PreconditionResponse_Status PreconditionResponse::_internal_status() const {
+ return static_cast<::messages::hvac::PreconditionResponse_Status>(_impl_.status_);
+}
+inline void PreconditionResponse::_internal_set_status(::messages::hvac::PreconditionResponse_Status value) {
+ ;
+ _impl_.status_ = value;
+}
+
+// string message = 2;
+inline void PreconditionResponse::clear_message() {
+ _impl_.message_.ClearToEmpty();
+}
+inline const std::string& PreconditionResponse::message() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.PreconditionResponse.message)
+ return _internal_message();
+}
+template <typename Arg_, typename... Args_>
+inline PROTOBUF_ALWAYS_INLINE void PreconditionResponse::set_message(Arg_&& arg,
+ Args_... args) {
+ ;
+ _impl_.message_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
+ // @@protoc_insertion_point(field_set:messages.hvac.PreconditionResponse.message)
+}
+inline std::string* PreconditionResponse::mutable_message() {
+ std::string* _s = _internal_mutable_message();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.PreconditionResponse.message)
+ return _s;
+}
+inline const std::string& PreconditionResponse::_internal_message() const {
+ return _impl_.message_.Get();
+}
+inline void PreconditionResponse::_internal_set_message(const std::string& value) {
+ ;
+
+
+ _impl_.message_.Set(value, GetArenaForAllocation());
+}
+inline std::string* PreconditionResponse::_internal_mutable_message() {
+ ;
+ return _impl_.message_.Mutable( GetArenaForAllocation());
+}
+inline std::string* PreconditionResponse::release_message() {
+ // @@protoc_insertion_point(field_release:messages.hvac.PreconditionResponse.message)
+ return _impl_.message_.Release();
+}
+inline void PreconditionResponse::set_allocated_message(std::string* value) {
+ _impl_.message_.SetAllocated(value, GetArenaForAllocation());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (_impl_.message_.IsDefault()) {
+ _impl_.message_.Set("", GetArenaForAllocation());
+ }
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.PreconditionResponse.message)
+}
+
+// -------------------------------------------------------------------
+
+// HVACState
+
+// .messages.hvac.HVACState.State state = 1;
+inline void HVACState::clear_state() {
+ _impl_.state_ = 0;
+}
+inline ::messages::hvac::HVACState_State HVACState::state() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACState.state)
+ return _internal_state();
+}
+inline void HVACState::set_state(::messages::hvac::HVACState_State value) {
+ _internal_set_state(value);
+ // @@protoc_insertion_point(field_set:messages.hvac.HVACState.state)
+}
+inline ::messages::hvac::HVACState_State HVACState::_internal_state() const {
+ return static_cast<::messages::hvac::HVACState_State>(_impl_.state_);
+}
+inline void HVACState::_internal_set_state(::messages::hvac::HVACState_State value) {
+ ;
+ _impl_.state_ = value;
}
-// .messages.SetTemperatureRequest setTemp = 3;
-inline bool CabinPreconditionRequest::_internal_has_settemp() const {
- return this != internal_default_instance() && _impl_.settemp_ != nullptr;
+// .messages.hvac.HVACZone current_zone = 2;
+inline bool HVACState::_internal_has_current_zone() const {
+ return this != internal_default_instance() && _impl_.current_zone_ != nullptr;
}
-inline bool CabinPreconditionRequest::has_settemp() const {
- return _internal_has_settemp();
+inline bool HVACState::has_current_zone() const {
+ return _internal_has_current_zone();
}
-inline void CabinPreconditionRequest::clear_settemp() {
- if (GetArenaForAllocation() == nullptr && _impl_.settemp_ != nullptr) {
- delete _impl_.settemp_;
+inline void HVACState::clear_current_zone() {
+ if (GetArenaForAllocation() == nullptr && _impl_.current_zone_ != nullptr) {
+ delete _impl_.current_zone_;
}
- _impl_.settemp_ = nullptr;
+ _impl_.current_zone_ = nullptr;
}
-inline const ::messages::SetTemperatureRequest& CabinPreconditionRequest::_internal_settemp() const {
- const ::messages::SetTemperatureRequest* p = _impl_.settemp_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetTemperatureRequest&>(
- ::messages::_SetTemperatureRequest_default_instance_);
+inline const ::messages::hvac::HVACZone& HVACState::_internal_current_zone() const {
+ const ::messages::hvac::HVACZone* p = _impl_.current_zone_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::HVACZone&>(
+ ::messages::hvac::_HVACZone_default_instance_);
}
-inline const ::messages::SetTemperatureRequest& CabinPreconditionRequest::settemp() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreconditionRequest.setTemp)
- return _internal_settemp();
+inline const ::messages::hvac::HVACZone& HVACState::current_zone() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.HVACState.current_zone)
+ return _internal_current_zone();
}
-inline void CabinPreconditionRequest::unsafe_arena_set_allocated_settemp(
- ::messages::SetTemperatureRequest* settemp) {
+inline void HVACState::unsafe_arena_set_allocated_current_zone(
+ ::messages::hvac::HVACZone* current_zone) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.settemp_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.current_zone_);
}
- _impl_.settemp_ = settemp;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreconditionRequest.setTemp)
+ _impl_.current_zone_ = current_zone;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.HVACState.current_zone)
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::release_settemp() {
+inline ::messages::hvac::HVACZone* HVACState::release_current_zone() {
- ::messages::SetTemperatureRequest* temp = _impl_.settemp_;
- _impl_.settemp_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.current_zone_;
+ _impl_.current_zone_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1364,78 +1941,84 @@ inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::release_sett
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::unsafe_arena_release_settemp() {
- // @@protoc_insertion_point(field_release:messages.CabinPreconditionRequest.setTemp)
+inline ::messages::hvac::HVACZone* HVACState::unsafe_arena_release_current_zone() {
+ // @@protoc_insertion_point(field_release:messages.hvac.HVACState.current_zone)
- ::messages::SetTemperatureRequest* temp = _impl_.settemp_;
- _impl_.settemp_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.current_zone_;
+ _impl_.current_zone_ = nullptr;
return temp;
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::_internal_mutable_settemp() {
+inline ::messages::hvac::HVACZone* HVACState::_internal_mutable_current_zone() {
- if (_impl_.settemp_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetTemperatureRequest>(GetArenaForAllocation());
- _impl_.settemp_ = p;
+ if (_impl_.current_zone_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::HVACZone>(GetArenaForAllocation());
+ _impl_.current_zone_ = p;
}
- return _impl_.settemp_;
+ return _impl_.current_zone_;
}
-inline ::messages::SetTemperatureRequest* CabinPreconditionRequest::mutable_settemp() {
- ::messages::SetTemperatureRequest* _msg = _internal_mutable_settemp();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreconditionRequest.setTemp)
+inline ::messages::hvac::HVACZone* HVACState::mutable_current_zone() {
+ ::messages::hvac::HVACZone* _msg = _internal_mutable_current_zone();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.HVACState.current_zone)
return _msg;
}
-inline void CabinPreconditionRequest::set_allocated_settemp(::messages::SetTemperatureRequest* settemp) {
+inline void HVACState::set_allocated_current_zone(::messages::hvac::HVACZone* current_zone) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.settemp_;
+ delete _impl_.current_zone_;
}
- if (settemp) {
+ if (current_zone) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(settemp);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(current_zone);
if (message_arena != submessage_arena) {
- settemp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, settemp, submessage_arena);
+ current_zone = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, current_zone, submessage_arena);
}
} else {
}
- _impl_.settemp_ = settemp;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreconditionRequest.setTemp)
+ _impl_.current_zone_ = current_zone;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.HVACState.current_zone)
}
// -------------------------------------------------------------------
-// CabinPreConditionReponse
+// CabinTemperature
-// .messages.VehicleMessageHeading messageHeader = 1;
-inline bool CabinPreConditionReponse::_internal_has_messageheader() const {
- return this != internal_default_instance() && _impl_.messageheader_ != nullptr;
+// .messages.hvac.Temperature temperature = 1;
+inline bool CabinTemperature::_internal_has_temperature() const {
+ return this != internal_default_instance() && _impl_.temperature_ != nullptr;
+}
+inline bool CabinTemperature::has_temperature() const {
+ return _internal_has_temperature();
}
-inline bool CabinPreConditionReponse::has_messageheader() const {
- return _internal_has_messageheader();
+inline void CabinTemperature::clear_temperature() {
+ if (GetArenaForAllocation() == nullptr && _impl_.temperature_ != nullptr) {
+ delete _impl_.temperature_;
+ }
+ _impl_.temperature_ = nullptr;
}
-inline const ::messages::VehicleMessageHeading& CabinPreConditionReponse::_internal_messageheader() const {
- const ::messages::VehicleMessageHeading* p = _impl_.messageheader_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::VehicleMessageHeading&>(
- ::messages::_VehicleMessageHeading_default_instance_);
+inline const ::messages::hvac::Temperature& CabinTemperature::_internal_temperature() const {
+ const ::messages::hvac::Temperature* p = _impl_.temperature_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::Temperature&>(
+ ::messages::hvac::_Temperature_default_instance_);
}
-inline const ::messages::VehicleMessageHeading& CabinPreConditionReponse::messageheader() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreConditionReponse.messageHeader)
- return _internal_messageheader();
+inline const ::messages::hvac::Temperature& CabinTemperature::temperature() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinTemperature.temperature)
+ return _internal_temperature();
}
-inline void CabinPreConditionReponse::unsafe_arena_set_allocated_messageheader(
- ::messages::VehicleMessageHeading* messageheader) {
+inline void CabinTemperature::unsafe_arena_set_allocated_temperature(
+ ::messages::hvac::Temperature* temperature) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.temperature_);
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreConditionReponse.messageHeader)
+ _impl_.temperature_ = temperature;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinTemperature.temperature)
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::release_messageheader() {
+inline ::messages::hvac::Temperature* CabinTemperature::release_temperature() {
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.temperature_;
+ _impl_.temperature_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1447,81 +2030,80 @@ inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::release_mess
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::unsafe_arena_release_messageheader() {
- // @@protoc_insertion_point(field_release:messages.CabinPreConditionReponse.messageHeader)
+inline ::messages::hvac::Temperature* CabinTemperature::unsafe_arena_release_temperature() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinTemperature.temperature)
- ::messages::VehicleMessageHeading* temp = _impl_.messageheader_;
- _impl_.messageheader_ = nullptr;
+ ::messages::hvac::Temperature* temp = _impl_.temperature_;
+ _impl_.temperature_ = nullptr;
return temp;
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::_internal_mutable_messageheader() {
+inline ::messages::hvac::Temperature* CabinTemperature::_internal_mutable_temperature() {
- if (_impl_.messageheader_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::VehicleMessageHeading>(GetArenaForAllocation());
- _impl_.messageheader_ = p;
+ if (_impl_.temperature_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::Temperature>(GetArenaForAllocation());
+ _impl_.temperature_ = p;
}
- return _impl_.messageheader_;
+ return _impl_.temperature_;
}
-inline ::messages::VehicleMessageHeading* CabinPreConditionReponse::mutable_messageheader() {
- ::messages::VehicleMessageHeading* _msg = _internal_mutable_messageheader();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreConditionReponse.messageHeader)
+inline ::messages::hvac::Temperature* CabinTemperature::mutable_temperature() {
+ ::messages::hvac::Temperature* _msg = _internal_mutable_temperature();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinTemperature.temperature)
return _msg;
}
-inline void CabinPreConditionReponse::set_allocated_messageheader(::messages::VehicleMessageHeading* messageheader) {
+inline void CabinTemperature::set_allocated_temperature(::messages::hvac::Temperature* temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.messageheader_);
+ delete _impl_.temperature_;
}
- if (messageheader) {
+ if (temperature) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(messageheader));
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(temperature);
if (message_arena != submessage_arena) {
- messageheader = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, messageheader, submessage_arena);
+ temperature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, temperature, submessage_arena);
}
} else {
}
- _impl_.messageheader_ = messageheader;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreConditionReponse.messageHeader)
+ _impl_.temperature_ = temperature;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinTemperature.temperature)
}
-// .messages.SetAcStatusReply setAcStatusReply = 2;
-inline bool CabinPreConditionReponse::_internal_has_setacstatusreply() const {
- return this != internal_default_instance() && _impl_.setacstatusreply_ != nullptr;
+// .messages.hvac.HVACZone zone = 2;
+inline bool CabinTemperature::_internal_has_zone() const {
+ return this != internal_default_instance() && _impl_.zone_ != nullptr;
}
-inline bool CabinPreConditionReponse::has_setacstatusreply() const {
- return _internal_has_setacstatusreply();
+inline bool CabinTemperature::has_zone() const {
+ return _internal_has_zone();
}
-inline void CabinPreConditionReponse::clear_setacstatusreply() {
- if (GetArenaForAllocation() == nullptr && _impl_.setacstatusreply_ != nullptr) {
- delete _impl_.setacstatusreply_;
+inline void CabinTemperature::clear_zone() {
+ if (GetArenaForAllocation() == nullptr && _impl_.zone_ != nullptr) {
+ delete _impl_.zone_;
}
- _impl_.setacstatusreply_ = nullptr;
+ _impl_.zone_ = nullptr;
}
-inline const ::messages::SetAcStatusReply& CabinPreConditionReponse::_internal_setacstatusreply() const {
- const ::messages::SetAcStatusReply* p = _impl_.setacstatusreply_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetAcStatusReply&>(
- ::messages::_SetAcStatusReply_default_instance_);
+inline const ::messages::hvac::HVACZone& CabinTemperature::_internal_zone() const {
+ const ::messages::hvac::HVACZone* p = _impl_.zone_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::HVACZone&>(
+ ::messages::hvac::_HVACZone_default_instance_);
}
-inline const ::messages::SetAcStatusReply& CabinPreConditionReponse::setacstatusreply() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreConditionReponse.setAcStatusReply)
- return _internal_setacstatusreply();
+inline const ::messages::hvac::HVACZone& CabinTemperature::zone() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinTemperature.zone)
+ return _internal_zone();
}
-inline void CabinPreConditionReponse::unsafe_arena_set_allocated_setacstatusreply(
- ::messages::SetAcStatusReply* setacstatusreply) {
+inline void CabinTemperature::unsafe_arena_set_allocated_zone(
+ ::messages::hvac::HVACZone* zone) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.setacstatusreply_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.zone_);
}
- _impl_.setacstatusreply_ = setacstatusreply;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreConditionReponse.setAcStatusReply)
+ _impl_.zone_ = zone;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinTemperature.zone)
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::release_setacstatusreply() {
+inline ::messages::hvac::HVACZone* CabinTemperature::release_zone() {
- ::messages::SetAcStatusReply* temp = _impl_.setacstatusreply_;
- _impl_.setacstatusreply_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.zone_;
+ _impl_.zone_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1533,80 +2115,78 @@ inline ::messages::SetAcStatusReply* CabinPreConditionReponse::release_setacstat
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::unsafe_arena_release_setacstatusreply() {
- // @@protoc_insertion_point(field_release:messages.CabinPreConditionReponse.setAcStatusReply)
+inline ::messages::hvac::HVACZone* CabinTemperature::unsafe_arena_release_zone() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinTemperature.zone)
- ::messages::SetAcStatusReply* temp = _impl_.setacstatusreply_;
- _impl_.setacstatusreply_ = nullptr;
+ ::messages::hvac::HVACZone* temp = _impl_.zone_;
+ _impl_.zone_ = nullptr;
return temp;
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::_internal_mutable_setacstatusreply() {
+inline ::messages::hvac::HVACZone* CabinTemperature::_internal_mutable_zone() {
- if (_impl_.setacstatusreply_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetAcStatusReply>(GetArenaForAllocation());
- _impl_.setacstatusreply_ = p;
+ if (_impl_.zone_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::HVACZone>(GetArenaForAllocation());
+ _impl_.zone_ = p;
}
- return _impl_.setacstatusreply_;
+ return _impl_.zone_;
}
-inline ::messages::SetAcStatusReply* CabinPreConditionReponse::mutable_setacstatusreply() {
- ::messages::SetAcStatusReply* _msg = _internal_mutable_setacstatusreply();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreConditionReponse.setAcStatusReply)
+inline ::messages::hvac::HVACZone* CabinTemperature::mutable_zone() {
+ ::messages::hvac::HVACZone* _msg = _internal_mutable_zone();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinTemperature.zone)
return _msg;
}
-inline void CabinPreConditionReponse::set_allocated_setacstatusreply(::messages::SetAcStatusReply* setacstatusreply) {
+inline void CabinTemperature::set_allocated_zone(::messages::hvac::HVACZone* zone) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.setacstatusreply_;
+ delete _impl_.zone_;
}
- if (setacstatusreply) {
+ if (zone) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setacstatusreply);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(zone);
if (message_arena != submessage_arena) {
- setacstatusreply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, setacstatusreply, submessage_arena);
+ zone = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, zone, submessage_arena);
}
} else {
}
- _impl_.setacstatusreply_ = setacstatusreply;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreConditionReponse.setAcStatusReply)
+ _impl_.zone_ = zone;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinTemperature.zone)
}
-// .messages.SetTemperatureReply setTemperatureReply = 3;
-inline bool CabinPreConditionReponse::_internal_has_settemperaturereply() const {
- return this != internal_default_instance() && _impl_.settemperaturereply_ != nullptr;
-}
-inline bool CabinPreConditionReponse::has_settemperaturereply() const {
- return _internal_has_settemperaturereply();
+// -------------------------------------------------------------------
+
+// CabinConditionStatusPublish
+
+// .google.protobuf.Timestamp event_time = 1;
+inline bool CabinConditionStatusPublish::_internal_has_event_time() const {
+ return this != internal_default_instance() && _impl_.event_time_ != nullptr;
}
-inline void CabinPreConditionReponse::clear_settemperaturereply() {
- if (GetArenaForAllocation() == nullptr && _impl_.settemperaturereply_ != nullptr) {
- delete _impl_.settemperaturereply_;
- }
- _impl_.settemperaturereply_ = nullptr;
+inline bool CabinConditionStatusPublish::has_event_time() const {
+ return _internal_has_event_time();
}
-inline const ::messages::SetTemperatureReply& CabinPreConditionReponse::_internal_settemperaturereply() const {
- const ::messages::SetTemperatureReply* p = _impl_.settemperaturereply_;
- return p != nullptr ? *p : reinterpret_cast<const ::messages::SetTemperatureReply&>(
- ::messages::_SetTemperatureReply_default_instance_);
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CabinConditionStatusPublish::_internal_event_time() const {
+ const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.event_time_;
+ return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Timestamp&>(
+ ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
}
-inline const ::messages::SetTemperatureReply& CabinPreConditionReponse::settemperaturereply() const {
- // @@protoc_insertion_point(field_get:messages.CabinPreConditionReponse.setTemperatureReply)
- return _internal_settemperaturereply();
+inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CabinConditionStatusPublish::event_time() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinConditionStatusPublish.event_time)
+ return _internal_event_time();
}
-inline void CabinPreConditionReponse::unsafe_arena_set_allocated_settemperaturereply(
- ::messages::SetTemperatureReply* settemperaturereply) {
+inline void CabinConditionStatusPublish::unsafe_arena_set_allocated_event_time(
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* event_time) {
if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.settemperaturereply_);
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.event_time_);
}
- _impl_.settemperaturereply_ = settemperaturereply;
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.CabinPreConditionReponse.setTemperatureReply)
+ _impl_.event_time_ = event_time;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinConditionStatusPublish.event_time)
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::release_settemperaturereply() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::release_event_time() {
- ::messages::SetTemperatureReply* temp = _impl_.settemperaturereply_;
- _impl_.settemperaturereply_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.event_time_;
+ _impl_.event_time_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -1618,140 +2198,215 @@ inline ::messages::SetTemperatureReply* CabinPreConditionReponse::release_settem
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::unsafe_arena_release_settemperaturereply() {
- // @@protoc_insertion_point(field_release:messages.CabinPreConditionReponse.setTemperatureReply)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::unsafe_arena_release_event_time() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinConditionStatusPublish.event_time)
- ::messages::SetTemperatureReply* temp = _impl_.settemperaturereply_;
- _impl_.settemperaturereply_ = nullptr;
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.event_time_;
+ _impl_.event_time_ = nullptr;
return temp;
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::_internal_mutable_settemperaturereply() {
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::_internal_mutable_event_time() {
- if (_impl_.settemperaturereply_ == nullptr) {
- auto* p = CreateMaybeMessage<::messages::SetTemperatureReply>(GetArenaForAllocation());
- _impl_.settemperaturereply_ = p;
+ if (_impl_.event_time_ == nullptr) {
+ auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
+ _impl_.event_time_ = p;
}
- return _impl_.settemperaturereply_;
+ return _impl_.event_time_;
}
-inline ::messages::SetTemperatureReply* CabinPreConditionReponse::mutable_settemperaturereply() {
- ::messages::SetTemperatureReply* _msg = _internal_mutable_settemperaturereply();
- // @@protoc_insertion_point(field_mutable:messages.CabinPreConditionReponse.setTemperatureReply)
+inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CabinConditionStatusPublish::mutable_event_time() {
+ ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_event_time();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinConditionStatusPublish.event_time)
return _msg;
}
-inline void CabinPreConditionReponse::set_allocated_settemperaturereply(::messages::SetTemperatureReply* settemperaturereply) {
+inline void CabinConditionStatusPublish::set_allocated_event_time(::PROTOBUF_NAMESPACE_ID::Timestamp* event_time) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
- delete _impl_.settemperaturereply_;
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.event_time_);
}
- if (settemperaturereply) {
+ if (event_time) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(settemperaturereply);
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
+ reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(event_time));
if (message_arena != submessage_arena) {
- settemperaturereply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, settemperaturereply, submessage_arena);
+ event_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, event_time, submessage_arena);
}
} else {
}
- _impl_.settemperaturereply_ = settemperaturereply;
- // @@protoc_insertion_point(field_set_allocated:messages.CabinPreConditionReponse.setTemperatureReply)
+ _impl_.event_time_ = event_time;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinConditionStatusPublish.event_time)
}
-// -------------------------------------------------------------------
-
-// SetAcStatusRequest
-
-// .messages.AcStatusEnum desiredStatus = 1;
-inline void SetAcStatusRequest::clear_desiredstatus() {
- _impl_.desiredstatus_ = 0;
+// .messages.hvac.HVACState hvac_state = 2;
+inline bool CabinConditionStatusPublish::_internal_has_hvac_state() const {
+ return this != internal_default_instance() && _impl_.hvac_state_ != nullptr;
}
-inline ::messages::AcStatusEnum SetAcStatusRequest::desiredstatus() const {
- // @@protoc_insertion_point(field_get:messages.SetAcStatusRequest.desiredStatus)
- return _internal_desiredstatus();
+inline bool CabinConditionStatusPublish::has_hvac_state() const {
+ return _internal_has_hvac_state();
}
-inline void SetAcStatusRequest::set_desiredstatus(::messages::AcStatusEnum value) {
- _internal_set_desiredstatus(value);
- // @@protoc_insertion_point(field_set:messages.SetAcStatusRequest.desiredStatus)
+inline void CabinConditionStatusPublish::clear_hvac_state() {
+ if (GetArenaForAllocation() == nullptr && _impl_.hvac_state_ != nullptr) {
+ delete _impl_.hvac_state_;
+ }
+ _impl_.hvac_state_ = nullptr;
}
-inline ::messages::AcStatusEnum SetAcStatusRequest::_internal_desiredstatus() const {
- return static_cast<::messages::AcStatusEnum>(_impl_.desiredstatus_);
+inline const ::messages::hvac::HVACState& CabinConditionStatusPublish::_internal_hvac_state() const {
+ const ::messages::hvac::HVACState* p = _impl_.hvac_state_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::HVACState&>(
+ ::messages::hvac::_HVACState_default_instance_);
}
-inline void SetAcStatusRequest::_internal_set_desiredstatus(::messages::AcStatusEnum value) {
- ;
- _impl_.desiredstatus_ = value;
+inline const ::messages::hvac::HVACState& CabinConditionStatusPublish::hvac_state() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinConditionStatusPublish.hvac_state)
+ return _internal_hvac_state();
}
-
-// -------------------------------------------------------------------
-
-// SetAcStatusReply
-
-// .messages.AcStatusEnum status = 1;
-inline void SetAcStatusReply::clear_status() {
- _impl_.status_ = 0;
+inline void CabinConditionStatusPublish::unsafe_arena_set_allocated_hvac_state(
+ ::messages::hvac::HVACState* hvac_state) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.hvac_state_);
+ }
+ _impl_.hvac_state_ = hvac_state;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinConditionStatusPublish.hvac_state)
}
-inline ::messages::AcStatusEnum SetAcStatusReply::status() const {
- // @@protoc_insertion_point(field_get:messages.SetAcStatusReply.status)
- return _internal_status();
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::release_hvac_state() {
+
+ ::messages::hvac::HVACState* temp = _impl_.hvac_state_;
+ _impl_.hvac_state_ = nullptr;
+#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
+ auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ if (GetArenaForAllocation() == nullptr) { delete old; }
+#else // PROTOBUF_FORCE_COPY_IN_RELEASE
+ if (GetArenaForAllocation() != nullptr) {
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ }
+#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
+ return temp;
}
-inline void SetAcStatusReply::set_status(::messages::AcStatusEnum value) {
- _internal_set_status(value);
- // @@protoc_insertion_point(field_set:messages.SetAcStatusReply.status)
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::unsafe_arena_release_hvac_state() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinConditionStatusPublish.hvac_state)
+
+ ::messages::hvac::HVACState* temp = _impl_.hvac_state_;
+ _impl_.hvac_state_ = nullptr;
+ return temp;
}
-inline ::messages::AcStatusEnum SetAcStatusReply::_internal_status() const {
- return static_cast<::messages::AcStatusEnum>(_impl_.status_);
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::_internal_mutable_hvac_state() {
+
+ if (_impl_.hvac_state_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::HVACState>(GetArenaForAllocation());
+ _impl_.hvac_state_ = p;
+ }
+ return _impl_.hvac_state_;
}
-inline void SetAcStatusReply::_internal_set_status(::messages::AcStatusEnum value) {
- ;
- _impl_.status_ = value;
+inline ::messages::hvac::HVACState* CabinConditionStatusPublish::mutable_hvac_state() {
+ ::messages::hvac::HVACState* _msg = _internal_mutable_hvac_state();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinConditionStatusPublish.hvac_state)
+ return _msg;
}
+inline void CabinConditionStatusPublish::set_allocated_hvac_state(::messages::hvac::HVACState* hvac_state) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete _impl_.hvac_state_;
+ }
+ if (hvac_state) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(hvac_state);
+ if (message_arena != submessage_arena) {
+ hvac_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, hvac_state, submessage_arena);
+ }
-// -------------------------------------------------------------------
+ } else {
-// SetTemperatureRequest
+ }
+ _impl_.hvac_state_ = hvac_state;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinConditionStatusPublish.hvac_state)
+}
-// float temperature = 1;
-inline void SetTemperatureRequest::clear_temperature() {
- _impl_.temperature_ = 0;
+// .messages.hvac.CabinTemperature cabin_temperature = 3;
+inline bool CabinConditionStatusPublish::_internal_has_cabin_temperature() const {
+ return this != internal_default_instance() && _impl_.cabin_temperature_ != nullptr;
}
-inline float SetTemperatureRequest::temperature() const {
- // @@protoc_insertion_point(field_get:messages.SetTemperatureRequest.temperature)
- return _internal_temperature();
+inline bool CabinConditionStatusPublish::has_cabin_temperature() const {
+ return _internal_has_cabin_temperature();
}
-inline void SetTemperatureRequest::set_temperature(float value) {
- _internal_set_temperature(value);
- // @@protoc_insertion_point(field_set:messages.SetTemperatureRequest.temperature)
+inline void CabinConditionStatusPublish::clear_cabin_temperature() {
+ if (GetArenaForAllocation() == nullptr && _impl_.cabin_temperature_ != nullptr) {
+ delete _impl_.cabin_temperature_;
+ }
+ _impl_.cabin_temperature_ = nullptr;
}
-inline float SetTemperatureRequest::_internal_temperature() const {
- return _impl_.temperature_;
+inline const ::messages::hvac::CabinTemperature& CabinConditionStatusPublish::_internal_cabin_temperature() const {
+ const ::messages::hvac::CabinTemperature* p = _impl_.cabin_temperature_;
+ return p != nullptr ? *p : reinterpret_cast<const ::messages::hvac::CabinTemperature&>(
+ ::messages::hvac::_CabinTemperature_default_instance_);
}
-inline void SetTemperatureRequest::_internal_set_temperature(float value) {
- ;
- _impl_.temperature_ = value;
+inline const ::messages::hvac::CabinTemperature& CabinConditionStatusPublish::cabin_temperature() const {
+ // @@protoc_insertion_point(field_get:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
+ return _internal_cabin_temperature();
}
-
-// -------------------------------------------------------------------
-
-// SetTemperatureReply
-
-// .messages.SetTempStatusEnum tempStatus = 1;
-inline void SetTemperatureReply::clear_tempstatus() {
- _impl_.tempstatus_ = 0;
+inline void CabinConditionStatusPublish::unsafe_arena_set_allocated_cabin_temperature(
+ ::messages::hvac::CabinTemperature* cabin_temperature) {
+ if (GetArenaForAllocation() == nullptr) {
+ delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cabin_temperature_);
+ }
+ _impl_.cabin_temperature_ = cabin_temperature;
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
}
-inline ::messages::SetTempStatusEnum SetTemperatureReply::tempstatus() const {
- // @@protoc_insertion_point(field_get:messages.SetTemperatureReply.tempStatus)
- return _internal_tempstatus();
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::release_cabin_temperature() {
+
+ ::messages::hvac::CabinTemperature* temp = _impl_.cabin_temperature_;
+ _impl_.cabin_temperature_ = nullptr;
+#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
+ auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ if (GetArenaForAllocation() == nullptr) { delete old; }
+#else // PROTOBUF_FORCE_COPY_IN_RELEASE
+ if (GetArenaForAllocation() != nullptr) {
+ temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+ }
+#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
+ return temp;
}
-inline void SetTemperatureReply::set_tempstatus(::messages::SetTempStatusEnum value) {
- _internal_set_tempstatus(value);
- // @@protoc_insertion_point(field_set:messages.SetTemperatureReply.tempStatus)
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::unsafe_arena_release_cabin_temperature() {
+ // @@protoc_insertion_point(field_release:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
+
+ ::messages::hvac::CabinTemperature* temp = _impl_.cabin_temperature_;
+ _impl_.cabin_temperature_ = nullptr;
+ return temp;
}
-inline ::messages::SetTempStatusEnum SetTemperatureReply::_internal_tempstatus() const {
- return static_cast<::messages::SetTempStatusEnum>(_impl_.tempstatus_);
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::_internal_mutable_cabin_temperature() {
+
+ if (_impl_.cabin_temperature_ == nullptr) {
+ auto* p = CreateMaybeMessage<::messages::hvac::CabinTemperature>(GetArenaForAllocation());
+ _impl_.cabin_temperature_ = p;
+ }
+ return _impl_.cabin_temperature_;
}
-inline void SetTemperatureReply::_internal_set_tempstatus(::messages::SetTempStatusEnum value) {
- ;
- _impl_.tempstatus_ = value;
+inline ::messages::hvac::CabinTemperature* CabinConditionStatusPublish::mutable_cabin_temperature() {
+ ::messages::hvac::CabinTemperature* _msg = _internal_mutable_cabin_temperature();
+ // @@protoc_insertion_point(field_mutable:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
+ return _msg;
+}
+inline void CabinConditionStatusPublish::set_allocated_cabin_temperature(::messages::hvac::CabinTemperature* cabin_temperature) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+ if (message_arena == nullptr) {
+ delete _impl_.cabin_temperature_;
+ }
+ if (cabin_temperature) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+ ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cabin_temperature);
+ if (message_arena != submessage_arena) {
+ cabin_temperature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, cabin_temperature, submessage_arena);
+ }
+
+ } else {
+
+ }
+ _impl_.cabin_temperature_ = cabin_temperature;
+ // @@protoc_insertion_point(field_set_allocated:messages.hvac.CabinConditionStatusPublish.cabin_temperature)
}
#ifdef __GNUC__
@@ -1759,22 +2414,29 @@ inline void SetTemperatureReply::_internal_set_tempstatus(::messages::SetTempSta
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
+} // namespace hvac
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template <>
-struct is_proto_enum<::messages::AcStatusEnum> : std::true_type {};
+struct is_proto_enum<::messages::hvac::HVACZone_Zone> : std::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor<::messages::hvac::HVACZone_Zone>() {
+ return ::messages::hvac::HVACZone_Zone_descriptor();
+}
+template <>
+struct is_proto_enum<::messages::hvac::PreconditionResponse_Status> : std::true_type {};
template <>
-inline const EnumDescriptor* GetEnumDescriptor<::messages::AcStatusEnum>() {
- return ::messages::AcStatusEnum_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor<::messages::hvac::PreconditionResponse_Status>() {
+ return ::messages::hvac::PreconditionResponse_Status_descriptor();
}
template <>
-struct is_proto_enum<::messages::SetTempStatusEnum> : std::true_type {};
+struct is_proto_enum<::messages::hvac::HVACState_State> : std::true_type {};
template <>
-inline const EnumDescriptor* GetEnumDescriptor<::messages::SetTempStatusEnum>() {
- return ::messages::SetTempStatusEnum_descriptor();
+inline const EnumDescriptor* GetEnumDescriptor<::messages::hvac::HVACState_State>() {
+ return ::messages::hvac::HVACState_State_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE
diff --git a/src/main/doc/ v2c.md b/src/main/doc/ v2c.md
index 0d16428..44187a6 100644
--- a/src/main/doc/ v2c.md
+++ b/src/main/doc/ v2c.md
@@ -15,15 +15,17 @@
- [ResponseStatusEnum](#messages-ResponseStatusEnum)
- [messages/VehicleRemoteHvac.proto](#messages_VehicleRemoteHvac-proto)
- - [CabinPreConditionReponse](#messages-CabinPreConditionReponse)
- - [CabinPreconditionRequest](#messages-CabinPreconditionRequest)
- - [SetAcStatusReply](#messages-SetAcStatusReply)
- - [SetAcStatusRequest](#messages-SetAcStatusRequest)
- - [SetTemperatureReply](#messages-SetTemperatureReply)
- - [SetTemperatureRequest](#messages-SetTemperatureRequest)
+ - [CabinConditionStatusPublish](#messages-hvac-CabinConditionStatusPublish)
+ - [CabinTemperature](#messages-hvac-CabinTemperature)
+ - [HVACState](#messages-hvac-HVACState)
+ - [HVACZone](#messages-hvac-HVACZone)
+ - [PreconditionRequest](#messages-hvac-PreconditionRequest)
+ - [PreconditionResponse](#messages-hvac-PreconditionResponse)
+ - [Temperature](#messages-hvac-Temperature)
- - [AcStatusEnum](#messages-AcStatusEnum)
- - [SetTempStatusEnum](#messages-SetTempStatusEnum)
+ - [HVACState.State](#messages-hvac-HVACState-State)
+ - [HVACZone.Zone](#messages-hvac-HVACZone-Zone)
+ - [PreconditionResponse.Status](#messages-hvac-PreconditionResponse-Status)
- [vss/vspec.proto](#vss_vspec-proto)
- [Vehicle](#vss-Vehicle)
@@ -451,94 +453,113 @@ services deeper in the vehicle or the cloud services.
-<a name="messages-CabinPreConditionReponse"></a>
+<a name="messages-hvac-CabinConditionStatusPublish"></a>
-### CabinPreConditionReponse
+### CabinConditionStatusPublish
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| messageHeader | [VehicleMessageHeading](#messages-VehicleMessageHeading) | | |
-| setAcStatusReply | [SetAcStatusReply](#messages-SetAcStatusReply) | | |
-| setTemperatureReply | [SetTemperatureReply](#messages-SetTemperatureReply) | | |
+| event_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Time of the event |
+| hvac_state | [HVACState](#messages-hvac-HVACState) | | Current state of the HVAC |
+| cabin_temperature | [CabinTemperature](#messages-hvac-CabinTemperature) | | Current cabin temperature |
-<a name="messages-CabinPreconditionRequest"></a>
+<a name="messages-hvac-CabinTemperature"></a>
-### CabinPreconditionRequest
+### CabinTemperature
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| messageHeader | [VehicleMessageHeading](#messages-VehicleMessageHeading) | | |
-| setAcStatus | [SetAcStatusRequest](#messages-SetAcStatusRequest) | | |
-| setTemp | [SetTemperatureRequest](#messages-SetTemperatureRequest) | | |
+| temperature | [Temperature](#messages-hvac-Temperature) | | Current cabin temperature |
+| zone | [HVACZone](#messages-hvac-HVACZone) | | Zone of the reported temperature |
-<a name="messages-SetAcStatusReply"></a>
+<a name="messages-hvac-HVACState"></a>
+
+### HVACState
-### SetAcStatusReply
-@brief
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| status | [AcStatusEnum](#messages-AcStatusEnum) | | |
+| state | [HVACState.State](#messages-hvac-HVACState-State) | | Current state of the HVAC |
+| current_zone | [HVACZone](#messages-hvac-HVACZone) | | Current active zone |
-<a name="messages-SetAcStatusRequest"></a>
+<a name="messages-hvac-HVACZone"></a>
-### SetAcStatusRequest
+### HVACZone
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| desiredStatus | [AcStatusEnum](#messages-AcStatusEnum) | | The desired status of A/C |
+| zone | [HVACZone.Zone](#messages-hvac-HVACZone-Zone) | | HVAC Zone |
+| target_temperature | [Temperature](#messages-hvac-Temperature) | | Target temperature |
+
+<a name="messages-hvac-PreconditionRequest"></a>
-<a name="messages-SetTemperatureReply"></a>
+### PreconditionRequest
-### SetTemperatureReply
-@brief
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| tempStatus | [SetTempStatusEnum](#messages-SetTempStatusEnum) | | |
+| hvac_zones | [HVACZone](#messages-hvac-HVACZone) | repeated | List of HVAC zones to precondition |
+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | For scheduled preconditioning, set the start_time to the desired future time. For on-demand preconditioning, leave the start_time unset. |
+
+<a name="messages-hvac-PreconditionResponse"></a>
-<a name="messages-SetTemperatureRequest"></a>
+### PreconditionResponse
-### SetTemperatureRequest
-@brief
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| temperature | [float](#float) | | The desired cabin temperature in degree Celsius |
+| status | [PreconditionResponse.Status](#messages-hvac-PreconditionResponse-Status) | | Status of the precondition request |
+| message | [string](#string) | | Optional message |
+
+
+
+
+
+
+<a name="messages-hvac-Temperature"></a>
+
+### Temperature
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| value | [float](#float) | | Temperature value |
+| unit | [string](#string) | | Temperature unit (e.g., &#34;Celsius&#34;, &#34;Fahrenheit&#34;) |
@@ -547,28 +568,44 @@ services deeper in the vehicle or the cloud services.
-<a name="messages-AcStatusEnum"></a>
+<a name="messages-hvac-HVACState-State"></a>
+
+### HVACState.State
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| OFF | 0 | |
+| HEATING | 1 | |
+| COOLING | 2 | |
+| IDLE | 3 | |
+
+
+
+<a name="messages-hvac-HVACZone-Zone"></a>
-### AcStatusEnum
+### HVACZone.Zone
| Name | Number | Description |
| ---- | ------ | ----------- |
-| ON | 0 | |
-| OFF | 1 | |
-| UKNONWN_ERROR | 2 | |
+| DRIVER | 0 | |
+| PASSENGER | 1 | |
+| REAR_LEFT | 2 | |
+| REAR_RIGHT | 3 | |
-<a name="messages-SetTempStatusEnum"></a>
+<a name="messages-hvac-PreconditionResponse-Status"></a>
-### SetTempStatusEnum
+### PreconditionResponse.Status
| Name | Number | Description |
| ---- | ------ | ----------- |
-| TEMP_SUCCESS | 0 | |
-| TEMP_ERROR | 1 | |
+| SUCCESS | 0 | |
+| FAILURE | 1 | |
+| PENDING | 2 | |
diff --git a/src/main/doc/images/C4_Project_Architecture.png b/src/main/doc/images/C4_Project_Architecture.png
index 6343c4c..9a8955f 100644
--- a/src/main/doc/images/C4_Project_Architecture.png
+++ b/src/main/doc/images/C4_Project_Architecture.png
Binary files differ
diff --git a/src/main/doc/puml/C4_Project_Architecture.puml b/src/main/doc/puml/C4_Project_Architecture.puml
index 053cc0e..63133b6 100644
--- a/src/main/doc/puml/C4_Project_Architecture.puml
+++ b/src/main/doc/puml/C4_Project_Architecture.puml
@@ -6,7 +6,7 @@
LAYOUT_TOP_DOWN()
-title Component diagram for Internet Banking System - API Application
+title Component diagram for Vehicle to Cloud Communications
Container(Cloud, "Cloud System Broker", "MQTT and Protobuf", "Communicates with Vehicle, providing value add services")
Container_Boundary(vehicle, "Vehicle") {
diff --git a/src/main/java/com/hvac/VehicleRemoteHvac.java b/src/main/java/com/hvac/VehicleRemoteHvac.java
new file mode 100644
index 0000000..b35afa9
--- /dev/null
+++ b/src/main/java/com/hvac/VehicleRemoteHvac.java
@@ -0,0 +1,6535 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: messages/VehicleRemoteHvac.proto
+
+package com.hvac;
+
+public final class VehicleRemoteHvac {
+ private VehicleRemoteHvac() {}
+ 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 TemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.hvac.Temperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ float getValue();
+
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ java.lang.String getUnit();
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ com.google.protobuf.ByteString
+ getUnitBytes();
+ }
+ /**
+ * Protobuf type {@code com.hvac.Temperature}
+ */
+ public static final class Temperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.hvac.Temperature)
+ TemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Temperature.newBuilder() to construct.
+ private Temperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Temperature() {
+ unit_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Temperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.Temperature.class, com.hvac.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ private float value_ = 0F;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+
+ public static final int UNIT_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ @java.lang.Override
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ 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();
+ unit_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ output.writeFloat(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_);
+ }
+ 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.hvac.VehicleRemoteHvac.Temperature)) {
+ return super.equals(obj);
+ }
+ com.hvac.VehicleRemoteHvac.Temperature other = (com.hvac.VehicleRemoteHvac.Temperature) obj;
+
+ if (java.lang.Float.floatToIntBits(getValue())
+ != java.lang.Float.floatToIntBits(
+ other.getValue())) return false;
+ if (!getUnit()
+ .equals(other.getUnit())) 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) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getValue());
+ hash = (37 * hash) + UNIT_FIELD_NUMBER;
+ hash = (53 * hash) + getUnit().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature 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.hvac.VehicleRemoteHvac.Temperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature 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.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.Temperature 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.hvac.VehicleRemoteHvac.Temperature 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 com.hvac.Temperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.hvac.Temperature)
+ com.hvac.VehicleRemoteHvac.TemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.Temperature.class, com.hvac.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ // Construct using com.hvac.VehicleRemoteHvac.Temperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ value_ = 0F;
+ unit_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.Temperature build() {
+ com.hvac.VehicleRemoteHvac.Temperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.Temperature buildPartial() {
+ com.hvac.VehicleRemoteHvac.Temperature result = new com.hvac.VehicleRemoteHvac.Temperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.hvac.VehicleRemoteHvac.Temperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.unit_ = unit_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.hvac.VehicleRemoteHvac.Temperature) {
+ return mergeFrom((com.hvac.VehicleRemoteHvac.Temperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.hvac.VehicleRemoteHvac.Temperature other) {
+ if (other == com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) return this;
+ if (other.getValue() != 0F) {
+ setValue(other.getValue());
+ }
+ if (!other.getUnit().isEmpty()) {
+ unit_ = other.unit_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 13: {
+ value_ = input.readFloat();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 13
+ case 18: {
+ unit_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private float value_ ;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(float value) {
+
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ unit_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnit(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearUnit() {
+ unit_ = getDefaultInstance().getUnit();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The bytes for unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnitBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ 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:com.hvac.Temperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.hvac.Temperature)
+ private static final com.hvac.VehicleRemoteHvac.Temperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.hvac.VehicleRemoteHvac.Temperature();
+ }
+
+ public static com.hvac.VehicleRemoteHvac.Temperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Temperature>
+ PARSER = new com.google.protobuf.AbstractParser<Temperature>() {
+ @java.lang.Override
+ public Temperature 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<Temperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Temperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACZoneOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.hvac.HVACZone)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ int getZoneValue();
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ com.hvac.VehicleRemoteHvac.HVACZone.Zone getZone();
+
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ boolean hasTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ com.hvac.VehicleRemoteHvac.Temperature getTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ com.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.hvac.HVACZone}
+ */
+ public static final class HVACZone extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.hvac.HVACZone)
+ HVACZoneOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACZone.newBuilder() to construct.
+ private HVACZone(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACZone() {
+ zone_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACZone();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.HVACZone.class, com.hvac.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code com.hvac.HVACZone.Zone}
+ */
+ public enum Zone
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ DRIVER(0),
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ PASSENGER(1),
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ REAR_LEFT(2),
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ REAR_RIGHT(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ public static final int DRIVER_VALUE = 0;
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ public static final int PASSENGER_VALUE = 1;
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ public static final int REAR_LEFT_VALUE = 2;
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ public static final int REAR_RIGHT_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Zone valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Zone forNumber(int value) {
+ switch (value) {
+ case 0: return DRIVER;
+ case 1: return PASSENGER;
+ case 2: return REAR_LEFT;
+ case 3: return REAR_RIGHT;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Zone>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Zone> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Zone>() {
+ public Zone findValueByNumber(int number) {
+ return Zone.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.HVACZone.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Zone[] VALUES = values();
+
+ public static Zone valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Zone(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:com.hvac.HVACZone.Zone)
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 1;
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override public com.hvac.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ com.hvac.VehicleRemoteHvac.HVACZone.Zone result = com.hvac.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? com.hvac.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+
+ public static final int TARGET_TEMPERATURE_FIELD_NUMBER = 2;
+ private com.hvac.VehicleRemoteHvac.Temperature targetTemperature_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTargetTemperature() {
+ return targetTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ return targetTemperature_ == null ? com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ return targetTemperature_ == null ? com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+
+ 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 (zone_ != com.hvac.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ output.writeEnum(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ output.writeMessage(2, getTargetTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (zone_ != com.hvac.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getTargetTemperature());
+ }
+ 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.hvac.VehicleRemoteHvac.HVACZone)) {
+ return super.equals(obj);
+ }
+ com.hvac.VehicleRemoteHvac.HVACZone other = (com.hvac.VehicleRemoteHvac.HVACZone) obj;
+
+ if (zone_ != other.zone_) return false;
+ if (hasTargetTemperature() != other.hasTargetTemperature()) return false;
+ if (hasTargetTemperature()) {
+ if (!getTargetTemperature()
+ .equals(other.getTargetTemperature())) 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) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + zone_;
+ if (hasTargetTemperature()) {
+ hash = (37 * hash) + TARGET_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone 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.hvac.VehicleRemoteHvac.HVACZone parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone 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.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACZone 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.hvac.VehicleRemoteHvac.HVACZone 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 com.hvac.HVACZone}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.hvac.HVACZone)
+ com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.HVACZone.class, com.hvac.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ // Construct using com.hvac.VehicleRemoteHvac.HVACZone.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ zone_ = 0;
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone build() {
+ com.hvac.VehicleRemoteHvac.HVACZone result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone buildPartial() {
+ com.hvac.VehicleRemoteHvac.HVACZone result = new com.hvac.VehicleRemoteHvac.HVACZone(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.hvac.VehicleRemoteHvac.HVACZone result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.zone_ = zone_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.targetTemperature_ = targetTemperatureBuilder_ == null
+ ? targetTemperature_
+ : targetTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.hvac.VehicleRemoteHvac.HVACZone) {
+ return mergeFrom((com.hvac.VehicleRemoteHvac.HVACZone)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.hvac.VehicleRemoteHvac.HVACZone other) {
+ if (other == com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) return this;
+ if (other.zone_ != 0) {
+ setZoneValue(other.getZoneValue());
+ }
+ if (other.hasTargetTemperature()) {
+ mergeTargetTemperature(other.getTargetTemperature());
+ }
+ 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: {
+ zone_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getTargetTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @param value The enum numeric value on the wire for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneValue(int value) {
+ zone_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ com.hvac.VehicleRemoteHvac.HVACZone.Zone result = com.hvac.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? com.hvac.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(com.hvac.VehicleRemoteHvac.HVACZone.Zone value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ zone_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone.Zone zone = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ zone_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.hvac.VehicleRemoteHvac.Temperature targetTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.Temperature, com.hvac.VehicleRemoteHvac.Temperature.Builder, com.hvac.VehicleRemoteHvac.TemperatureOrBuilder> targetTemperatureBuilder_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ public boolean hasTargetTemperature() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ public com.hvac.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ if (targetTemperatureBuilder_ == null) {
+ return targetTemperature_ == null ? com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ } else {
+ return targetTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(com.hvac.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ targetTemperature_ = value;
+ } else {
+ targetTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(
+ com.hvac.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperature_ = builderForValue.build();
+ } else {
+ targetTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder mergeTargetTemperature(com.hvac.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ targetTemperature_ != null &&
+ targetTemperature_ != com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTargetTemperatureBuilder().mergeFrom(value);
+ } else {
+ targetTemperature_ = value;
+ }
+ } else {
+ targetTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder clearTargetTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.Temperature.Builder getTargetTemperatureBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getTargetTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ if (targetTemperatureBuilder_ != null) {
+ return targetTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return targetTemperature_ == null ?
+ com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature target_temperature = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.Temperature, com.hvac.VehicleRemoteHvac.Temperature.Builder, com.hvac.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTargetTemperatureFieldBuilder() {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.Temperature, com.hvac.VehicleRemoteHvac.Temperature.Builder, com.hvac.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTargetTemperature(),
+ getParentForChildren(),
+ isClean());
+ targetTemperature_ = null;
+ }
+ return targetTemperatureBuilder_;
+ }
+ @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:com.hvac.HVACZone)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.hvac.HVACZone)
+ private static final com.hvac.VehicleRemoteHvac.HVACZone DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.hvac.VehicleRemoteHvac.HVACZone();
+ }
+
+ public static com.hvac.VehicleRemoteHvac.HVACZone getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACZone>
+ PARSER = new com.google.protobuf.AbstractParser<HVACZone>() {
+ @java.lang.Override
+ public HVACZone 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<HVACZone> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACZone> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.hvac.PreconditionRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<com.hvac.VehicleRemoteHvac.HVACZone>
+ getHvacZonesList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ com.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index);
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ int getHvacZonesCount();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<? extends com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index);
+
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ boolean hasStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.hvac.PreconditionRequest}
+ */
+ public static final class PreconditionRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.hvac.PreconditionRequest)
+ PreconditionRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionRequest.newBuilder() to construct.
+ private PreconditionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionRequest() {
+ hvacZones_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.PreconditionRequest.class, com.hvac.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ public static final int HVAC_ZONES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List<com.hvac.VehicleRemoteHvac.HVACZone> hvacZones_;
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<com.hvac.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<? extends com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public int getHvacZonesCount() {
+ return hvacZones_.size();
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ return hvacZones_.get(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ return hvacZones_.get(index);
+ }
+
+ public static final int START_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp startTime_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ output.writeMessage(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ output.writeMessage(2, getStartTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getStartTime());
+ }
+ 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.hvac.VehicleRemoteHvac.PreconditionRequest)) {
+ return super.equals(obj);
+ }
+ com.hvac.VehicleRemoteHvac.PreconditionRequest other = (com.hvac.VehicleRemoteHvac.PreconditionRequest) obj;
+
+ if (!getHvacZonesList()
+ .equals(other.getHvacZonesList())) return false;
+ if (hasStartTime() != other.hasStartTime()) return false;
+ if (hasStartTime()) {
+ if (!getStartTime()
+ .equals(other.getStartTime())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getHvacZonesCount() > 0) {
+ hash = (37 * hash) + HVAC_ZONES_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacZonesList().hashCode();
+ }
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest 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.hvac.VehicleRemoteHvac.PreconditionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest 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.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest 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.hvac.VehicleRemoteHvac.PreconditionRequest 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 com.hvac.PreconditionRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.hvac.PreconditionRequest)
+ com.hvac.VehicleRemoteHvac.PreconditionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.PreconditionRequest.class, com.hvac.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ // Construct using com.hvac.VehicleRemoteHvac.PreconditionRequest.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ } else {
+ hvacZones_ = null;
+ hvacZonesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return com.hvac.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionRequest build() {
+ com.hvac.VehicleRemoteHvac.PreconditionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionRequest buildPartial() {
+ com.hvac.VehicleRemoteHvac.PreconditionRequest result = new com.hvac.VehicleRemoteHvac.PreconditionRequest(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.hvac.VehicleRemoteHvac.PreconditionRequest result) {
+ if (hvacZonesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = java.util.Collections.unmodifiableList(hvacZones_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.hvacZones_ = hvacZones_;
+ } else {
+ result.hvacZones_ = hvacZonesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.hvac.VehicleRemoteHvac.PreconditionRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.startTime_ = startTimeBuilder_ == null
+ ? startTime_
+ : startTimeBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.hvac.VehicleRemoteHvac.PreconditionRequest) {
+ return mergeFrom((com.hvac.VehicleRemoteHvac.PreconditionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.hvac.VehicleRemoteHvac.PreconditionRequest other) {
+ if (other == com.hvac.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance()) return this;
+ if (hvacZonesBuilder_ == null) {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZones_.isEmpty()) {
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureHvacZonesIsMutable();
+ hvacZones_.addAll(other.hvacZones_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZonesBuilder_.isEmpty()) {
+ hvacZonesBuilder_.dispose();
+ hvacZonesBuilder_ = null;
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ hvacZonesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getHvacZonesFieldBuilder() : null;
+ } else {
+ hvacZonesBuilder_.addAllMessages(other.hvacZones_);
+ }
+ }
+ }
+ if (other.hasStartTime()) {
+ mergeStartTime(other.getStartTime());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.hvac.VehicleRemoteHvac.HVACZone m =
+ input.readMessage(
+ com.hvac.VehicleRemoteHvac.HVACZone.parser(),
+ extensionRegistry);
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(m);
+ } else {
+ hvacZonesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getStartTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<com.hvac.VehicleRemoteHvac.HVACZone> hvacZones_ =
+ java.util.Collections.emptyList();
+ private void ensureHvacZonesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = new java.util.ArrayList<com.hvac.VehicleRemoteHvac.HVACZone>(hvacZones_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> hvacZonesBuilder_;
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<com.hvac.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ if (hvacZonesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ } else {
+ return hvacZonesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public int getHvacZonesCount() {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.size();
+ } else {
+ return hvacZonesBuilder_.getCount();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index);
+ } else {
+ return hvacZonesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, com.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, com.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(com.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, com.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ com.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, com.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addAllHvacZones(
+ java.lang.Iterable<? extends com.hvac.VehicleRemoteHvac.HVACZone> values) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, hvacZones_);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder clearHvacZones() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder removeHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.remove(index);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone.Builder getHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index); } else {
+ return hvacZonesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<? extends com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ if (hvacZonesBuilder_ != null) {
+ return hvacZonesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder() {
+ return getHvacZonesFieldBuilder().addBuilder(
+ com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().addBuilder(
+ index, com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<com.hvac.VehicleRemoteHvac.HVACZone.Builder>
+ getHvacZonesBuilderList() {
+ return getHvacZonesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesFieldBuilder() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ hvacZones_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ hvacZones_ = null;
+ }
+ return hvacZonesBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp startTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ startTime_ != null &&
+ startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getStartTimeBuilder().mergeFrom(value);
+ } else {
+ startTime_ = value;
+ }
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder clearStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(),
+ getParentForChildren(),
+ isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+ @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:com.hvac.PreconditionRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.hvac.PreconditionRequest)
+ private static final com.hvac.VehicleRemoteHvac.PreconditionRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.hvac.VehicleRemoteHvac.PreconditionRequest();
+ }
+
+ public static com.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionRequest>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionRequest>() {
+ @java.lang.Override
+ public PreconditionRequest 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<PreconditionRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionRequest> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.hvac.PreconditionResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ int getStatusValue();
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ com.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus();
+
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+ }
+ /**
+ * Protobuf type {@code com.hvac.PreconditionResponse}
+ */
+ public static final class PreconditionResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.hvac.PreconditionResponse)
+ PreconditionResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionResponse.newBuilder() to construct.
+ private PreconditionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionResponse() {
+ status_ = 0;
+ message_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.PreconditionResponse.class, com.hvac.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code com.hvac.PreconditionResponse.Status}
+ */
+ public enum Status
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ SUCCESS(0),
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ FAILURE(1),
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ PENDING(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ public static final int SUCCESS_VALUE = 0;
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ public static final int FAILURE_VALUE = 1;
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ public static final int PENDING_VALUE = 2;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Status valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Status forNumber(int value) {
+ switch (value) {
+ case 0: return SUCCESS;
+ case 1: return FAILURE;
+ case 2: return PENDING;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Status>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Status> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Status>() {
+ public Status findValueByNumber(int number) {
+ return Status.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.PreconditionResponse.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Status[] VALUES = values();
+
+ public static Status valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Status(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:com.hvac.PreconditionResponse.Status)
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 1;
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override public com.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ com.hvac.VehicleRemoteHvac.PreconditionResponse.Status result = com.hvac.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? com.hvac.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (status_ != com.hvac.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ output.writeEnum(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != com.hvac.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
+ }
+ 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.hvac.VehicleRemoteHvac.PreconditionResponse)) {
+ return super.equals(obj);
+ }
+ com.hvac.VehicleRemoteHvac.PreconditionResponse other = (com.hvac.VehicleRemoteHvac.PreconditionResponse) obj;
+
+ if (status_ != other.status_) return false;
+ if (!getMessage()
+ .equals(other.getMessage())) 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) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse 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.hvac.VehicleRemoteHvac.PreconditionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse 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.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse 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.hvac.VehicleRemoteHvac.PreconditionResponse 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 com.hvac.PreconditionResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.hvac.PreconditionResponse)
+ com.hvac.VehicleRemoteHvac.PreconditionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.PreconditionResponse.class, com.hvac.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ // Construct using com.hvac.VehicleRemoteHvac.PreconditionResponse.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ status_ = 0;
+ message_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return com.hvac.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionResponse build() {
+ com.hvac.VehicleRemoteHvac.PreconditionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionResponse buildPartial() {
+ com.hvac.VehicleRemoteHvac.PreconditionResponse result = new com.hvac.VehicleRemoteHvac.PreconditionResponse(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.hvac.VehicleRemoteHvac.PreconditionResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.status_ = status_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.message_ = message_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.hvac.VehicleRemoteHvac.PreconditionResponse) {
+ return mergeFrom((com.hvac.VehicleRemoteHvac.PreconditionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.hvac.VehicleRemoteHvac.PreconditionResponse other) {
+ if (other == com.hvac.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance()) return this;
+ if (other.status_ != 0) {
+ setStatusValue(other.getStatusValue());
+ }
+ if (!other.getMessage().isEmpty()) {
+ message_ = other.message_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ status_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ message_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @param value The enum numeric value on the wire for status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatusValue(int value) {
+ status_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ com.hvac.VehicleRemoteHvac.PreconditionResponse.Status result = com.hvac.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? com.hvac.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @param value The status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatus(com.hvac.VehicleRemoteHvac.PreconditionResponse.Status value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ status_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ 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:com.hvac.PreconditionResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.hvac.PreconditionResponse)
+ private static final com.hvac.VehicleRemoteHvac.PreconditionResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.hvac.VehicleRemoteHvac.PreconditionResponse();
+ }
+
+ public static com.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionResponse>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionResponse>() {
+ @java.lang.Override
+ public PreconditionResponse 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<PreconditionResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionResponse> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACStateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.hvac.HVACState)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ com.hvac.VehicleRemoteHvac.HVACState.State getState();
+
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ boolean hasCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ com.hvac.VehicleRemoteHvac.HVACZone getCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.hvac.HVACState}
+ */
+ public static final class HVACState extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.hvac.HVACState)
+ HVACStateOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACState.newBuilder() to construct.
+ private HVACState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACState() {
+ state_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACState();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.HVACState.class, com.hvac.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code com.hvac.HVACState.State}
+ */
+ public enum State
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OFF = 0;</code>
+ */
+ OFF(0),
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ HEATING(1),
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ COOLING(2),
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ IDLE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>OFF = 0;</code>
+ */
+ public static final int OFF_VALUE = 0;
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ public static final int HEATING_VALUE = 1;
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ public static final int COOLING_VALUE = 2;
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ public static final int IDLE_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0: return OFF;
+ case 1: return HEATING;
+ case 2: return COOLING;
+ case 3: return IDLE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<State>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ State> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<State>() {
+ public State findValueByNumber(int number) {
+ return State.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.HVACState.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final State[] VALUES = values();
+
+ public static State valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private State(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:com.hvac.HVACState.State)
+ }
+
+ public static final int STATE_FIELD_NUMBER = 1;
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override public com.hvac.VehicleRemoteHvac.HVACState.State getState() {
+ com.hvac.VehicleRemoteHvac.HVACState.State result = com.hvac.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? com.hvac.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+
+ public static final int CURRENT_ZONE_FIELD_NUMBER = 2;
+ private com.hvac.VehicleRemoteHvac.HVACZone currentZone_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ @java.lang.Override
+ public boolean hasCurrentZone() {
+ return currentZone_ != null;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ return currentZone_ == null ? com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ return currentZone_ == null ? com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+
+ 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 (state_ != com.hvac.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (currentZone_ != null) {
+ output.writeMessage(2, getCurrentZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_ != com.hvac.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, state_);
+ }
+ if (currentZone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getCurrentZone());
+ }
+ 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.hvac.VehicleRemoteHvac.HVACState)) {
+ return super.equals(obj);
+ }
+ com.hvac.VehicleRemoteHvac.HVACState other = (com.hvac.VehicleRemoteHvac.HVACState) obj;
+
+ if (state_ != other.state_) return false;
+ if (hasCurrentZone() != other.hasCurrentZone()) return false;
+ if (hasCurrentZone()) {
+ if (!getCurrentZone()
+ .equals(other.getCurrentZone())) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasCurrentZone()) {
+ hash = (37 * hash) + CURRENT_ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getCurrentZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState 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.hvac.VehicleRemoteHvac.HVACState parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState 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.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.HVACState 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.hvac.VehicleRemoteHvac.HVACState 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 com.hvac.HVACState}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.hvac.HVACState)
+ com.hvac.VehicleRemoteHvac.HVACStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.HVACState.class, com.hvac.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ // Construct using com.hvac.VehicleRemoteHvac.HVACState.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ state_ = 0;
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return com.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACState build() {
+ com.hvac.VehicleRemoteHvac.HVACState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACState buildPartial() {
+ com.hvac.VehicleRemoteHvac.HVACState result = new com.hvac.VehicleRemoteHvac.HVACState(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.hvac.VehicleRemoteHvac.HVACState result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.currentZone_ = currentZoneBuilder_ == null
+ ? currentZone_
+ : currentZoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.hvac.VehicleRemoteHvac.HVACState) {
+ return mergeFrom((com.hvac.VehicleRemoteHvac.HVACState)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.hvac.VehicleRemoteHvac.HVACState other) {
+ if (other == com.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance()) return this;
+ if (other.state_ != 0) {
+ setStateValue(other.getStateValue());
+ }
+ if (other.hasCurrentZone()) {
+ mergeCurrentZone(other.getCurrentZone());
+ }
+ 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: {
+ state_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getCurrentZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACState.State getState() {
+ com.hvac.VehicleRemoteHvac.HVACState.State result = com.hvac.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? com.hvac.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.hvac.VehicleRemoteHvac.HVACState.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState.State state = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.hvac.VehicleRemoteHvac.HVACZone currentZone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> currentZoneBuilder_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ public boolean hasCurrentZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ if (currentZoneBuilder_ == null) {
+ return currentZone_ == null ? com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ } else {
+ return currentZoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(com.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ currentZone_ = value;
+ } else {
+ currentZoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(
+ com.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (currentZoneBuilder_ == null) {
+ currentZone_ = builderForValue.build();
+ } else {
+ currentZoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder mergeCurrentZone(com.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ currentZone_ != null &&
+ currentZone_ != com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getCurrentZoneBuilder().mergeFrom(value);
+ } else {
+ currentZone_ = value;
+ }
+ } else {
+ currentZoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder clearCurrentZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone.Builder getCurrentZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getCurrentZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ if (currentZoneBuilder_ != null) {
+ return currentZoneBuilder_.getMessageOrBuilder();
+ } else {
+ return currentZone_ == null ?
+ com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone current_zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getCurrentZoneFieldBuilder() {
+ if (currentZoneBuilder_ == null) {
+ currentZoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getCurrentZone(),
+ getParentForChildren(),
+ isClean());
+ currentZone_ = null;
+ }
+ return currentZoneBuilder_;
+ }
+ @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:com.hvac.HVACState)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.hvac.HVACState)
+ private static final com.hvac.VehicleRemoteHvac.HVACState DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.hvac.VehicleRemoteHvac.HVACState();
+ }
+
+ public static com.hvac.VehicleRemoteHvac.HVACState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACState>
+ PARSER = new com.google.protobuf.AbstractParser<HVACState>() {
+ @java.lang.Override
+ public HVACState 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<HVACState> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACState> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinTemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.hvac.CabinTemperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ com.hvac.VehicleRemoteHvac.Temperature getTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ com.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder();
+
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ boolean hasZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ com.hvac.VehicleRemoteHvac.HVACZone getZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.hvac.CabinTemperature}
+ */
+ public static final class CabinTemperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.hvac.CabinTemperature)
+ CabinTemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinTemperature.newBuilder() to construct.
+ private CabinTemperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinTemperature() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinTemperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.CabinTemperature.class, com.hvac.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 1;
+ private com.hvac.VehicleRemoteHvac.Temperature temperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return temperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.Temperature getTemperature() {
+ return temperature_ == null ? com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ return temperature_ == null ? com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private com.hvac.VehicleRemoteHvac.HVACZone zone_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ @java.lang.Override
+ public boolean hasZone() {
+ return zone_ != null;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZone getZone() {
+ return zone_ == null ? com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ return zone_ == null ? com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+
+ 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 (temperature_ != null) {
+ output.writeMessage(1, getTemperature());
+ }
+ if (zone_ != null) {
+ output.writeMessage(2, getZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (temperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getTemperature());
+ }
+ if (zone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getZone());
+ }
+ 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.hvac.VehicleRemoteHvac.CabinTemperature)) {
+ return super.equals(obj);
+ }
+ com.hvac.VehicleRemoteHvac.CabinTemperature other = (com.hvac.VehicleRemoteHvac.CabinTemperature) obj;
+
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (!getTemperature()
+ .equals(other.getTemperature())) return false;
+ }
+ if (hasZone() != other.hasZone()) return false;
+ if (hasZone()) {
+ if (!getZone()
+ .equals(other.getZone())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTemperature().hashCode();
+ }
+ if (hasZone()) {
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature 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.hvac.VehicleRemoteHvac.CabinTemperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature 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.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature 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.hvac.VehicleRemoteHvac.CabinTemperature 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 com.hvac.CabinTemperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.hvac.CabinTemperature)
+ com.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.CabinTemperature.class, com.hvac.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ // Construct using com.hvac.VehicleRemoteHvac.CabinTemperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return com.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinTemperature build() {
+ com.hvac.VehicleRemoteHvac.CabinTemperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinTemperature buildPartial() {
+ com.hvac.VehicleRemoteHvac.CabinTemperature result = new com.hvac.VehicleRemoteHvac.CabinTemperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.hvac.VehicleRemoteHvac.CabinTemperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.temperature_ = temperatureBuilder_ == null
+ ? temperature_
+ : temperatureBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.zone_ = zoneBuilder_ == null
+ ? zone_
+ : zoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.hvac.VehicleRemoteHvac.CabinTemperature) {
+ return mergeFrom((com.hvac.VehicleRemoteHvac.CabinTemperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.hvac.VehicleRemoteHvac.CabinTemperature other) {
+ if (other == com.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) return this;
+ if (other.hasTemperature()) {
+ mergeTemperature(other.getTemperature());
+ }
+ if (other.hasZone()) {
+ mergeZone(other.getZone());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.hvac.VehicleRemoteHvac.Temperature temperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.Temperature, com.hvac.VehicleRemoteHvac.Temperature.Builder, com.hvac.VehicleRemoteHvac.TemperatureOrBuilder> temperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ public com.hvac.VehicleRemoteHvac.Temperature getTemperature() {
+ if (temperatureBuilder_ == null) {
+ return temperature_ == null ? com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ } else {
+ return temperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(com.hvac.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ temperature_ = value;
+ } else {
+ temperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(
+ com.hvac.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (temperatureBuilder_ == null) {
+ temperature_ = builderForValue.build();
+ } else {
+ temperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder mergeTemperature(com.hvac.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ temperature_ != null &&
+ temperature_ != com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTemperatureBuilder().mergeFrom(value);
+ } else {
+ temperature_ = value;
+ }
+ } else {
+ temperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.Temperature.Builder getTemperatureBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ if (temperatureBuilder_ != null) {
+ return temperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return temperature_ == null ?
+ com.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.Temperature temperature = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.Temperature, com.hvac.VehicleRemoteHvac.Temperature.Builder, com.hvac.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTemperatureFieldBuilder() {
+ if (temperatureBuilder_ == null) {
+ temperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.Temperature, com.hvac.VehicleRemoteHvac.Temperature.Builder, com.hvac.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTemperature(),
+ getParentForChildren(),
+ isClean());
+ temperature_ = null;
+ }
+ return temperatureBuilder_;
+ }
+
+ private com.hvac.VehicleRemoteHvac.HVACZone zone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> zoneBuilder_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ public boolean hasZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone getZone() {
+ if (zoneBuilder_ == null) {
+ return zone_ == null ? com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ } else {
+ return zoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(com.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ zone_ = value;
+ } else {
+ zoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(
+ com.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (zoneBuilder_ == null) {
+ zone_ = builderForValue.build();
+ } else {
+ zoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder mergeZone(com.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ zone_ != null &&
+ zone_ != com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getZoneBuilder().mergeFrom(value);
+ } else {
+ zone_ = value;
+ }
+ } else {
+ zoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZone.Builder getZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ if (zoneBuilder_ != null) {
+ return zoneBuilder_.getMessageOrBuilder();
+ } else {
+ return zone_ == null ?
+ com.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.hvac.HVACZone zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getZoneFieldBuilder() {
+ if (zoneBuilder_ == null) {
+ zoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACZone, com.hvac.VehicleRemoteHvac.HVACZone.Builder, com.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getZone(),
+ getParentForChildren(),
+ isClean());
+ zone_ = null;
+ }
+ return zoneBuilder_;
+ }
+ @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:com.hvac.CabinTemperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.hvac.CabinTemperature)
+ private static final com.hvac.VehicleRemoteHvac.CabinTemperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.hvac.VehicleRemoteHvac.CabinTemperature();
+ }
+
+ public static com.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinTemperature>
+ PARSER = new com.google.protobuf.AbstractParser<CabinTemperature>() {
+ @java.lang.Override
+ public CabinTemperature 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<CabinTemperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinTemperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinConditionStatusPublishOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.hvac.CabinConditionStatusPublish)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ boolean hasEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ com.google.protobuf.Timestamp getEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ boolean hasHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ com.hvac.VehicleRemoteHvac.HVACState getHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ com.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder();
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ boolean hasCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ com.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ com.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.hvac.CabinConditionStatusPublish}
+ */
+ public static final class CabinConditionStatusPublish extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.hvac.CabinConditionStatusPublish)
+ CabinConditionStatusPublishOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinConditionStatusPublish.newBuilder() to construct.
+ private CabinConditionStatusPublish(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinConditionStatusPublish() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinConditionStatusPublish();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.class, com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ public static final int EVENT_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp eventTime_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventTime() {
+ return eventTime_ != null;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEventTime() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+
+ public static final int HVAC_STATE_FIELD_NUMBER = 2;
+ private com.hvac.VehicleRemoteHvac.HVACState hvacState_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ @java.lang.Override
+ public boolean hasHvacState() {
+ return hvacState_ != null;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACState getHvacState() {
+ return hvacState_ == null ? com.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ return hvacState_ == null ? com.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+
+ public static final int CABIN_TEMPERATURE_FIELD_NUMBER = 3;
+ private com.hvac.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasCabinTemperature() {
+ return cabinTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ return cabinTemperature_ == null ? com.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ return cabinTemperature_ == null ? com.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+
+ 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 (eventTime_ != null) {
+ output.writeMessage(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ output.writeMessage(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ output.writeMessage(3, getCabinTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (eventTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getCabinTemperature());
+ }
+ 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.hvac.VehicleRemoteHvac.CabinConditionStatusPublish)) {
+ return super.equals(obj);
+ }
+ com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish other = (com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish) obj;
+
+ if (hasEventTime() != other.hasEventTime()) return false;
+ if (hasEventTime()) {
+ if (!getEventTime()
+ .equals(other.getEventTime())) return false;
+ }
+ if (hasHvacState() != other.hasHvacState()) return false;
+ if (hasHvacState()) {
+ if (!getHvacState()
+ .equals(other.getHvacState())) return false;
+ }
+ if (hasCabinTemperature() != other.hasCabinTemperature()) return false;
+ if (hasCabinTemperature()) {
+ if (!getCabinTemperature()
+ .equals(other.getCabinTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEventTime()) {
+ hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventTime().hashCode();
+ }
+ if (hasHvacState()) {
+ hash = (37 * hash) + HVAC_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacState().hashCode();
+ }
+ if (hasCabinTemperature()) {
+ hash = (37 * hash) + CABIN_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getCabinTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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 com.hvac.CabinConditionStatusPublish}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.hvac.CabinConditionStatusPublish)
+ com.hvac.VehicleRemoteHvac.CabinConditionStatusPublishOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.class, com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ // Construct using com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.hvac.VehicleRemoteHvac.internal_static_com_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish build() {
+ com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish buildPartial() {
+ com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result = new com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.eventTime_ = eventTimeBuilder_ == null
+ ? eventTime_
+ : eventTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.hvacState_ = hvacStateBuilder_ == null
+ ? hvacState_
+ : hvacStateBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.cabinTemperature_ = cabinTemperatureBuilder_ == null
+ ? cabinTemperature_
+ : cabinTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish) {
+ return mergeFrom((com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish other) {
+ if (other == com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance()) return this;
+ if (other.hasEventTime()) {
+ mergeEventTime(other.getEventTime());
+ }
+ if (other.hasHvacState()) {
+ mergeHvacState(other.getHvacState());
+ }
+ if (other.hasCabinTemperature()) {
+ mergeCabinTemperature(other.getCabinTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getEventTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getHvacStateFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getCabinTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Timestamp eventTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ public boolean hasEventTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ public com.google.protobuf.Timestamp getEventTime() {
+ if (eventTimeBuilder_ == null) {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ } else {
+ return eventTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventTime_ = value;
+ } else {
+ eventTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (eventTimeBuilder_ == null) {
+ eventTime_ = builderForValue.build();
+ } else {
+ eventTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ eventTime_ != null &&
+ eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEventTimeBuilder().mergeFrom(value);
+ } else {
+ eventTime_ = value;
+ }
+ } else {
+ eventTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder clearEventTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getEventTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ if (eventTimeBuilder_ != null) {
+ return eventTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return eventTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getEventTimeFieldBuilder() {
+ if (eventTimeBuilder_ == null) {
+ eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getEventTime(),
+ getParentForChildren(),
+ isClean());
+ eventTime_ = null;
+ }
+ return eventTimeBuilder_;
+ }
+
+ private com.hvac.VehicleRemoteHvac.HVACState hvacState_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACState, com.hvac.VehicleRemoteHvac.HVACState.Builder, com.hvac.VehicleRemoteHvac.HVACStateOrBuilder> hvacStateBuilder_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ public boolean hasHvacState() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ public com.hvac.VehicleRemoteHvac.HVACState getHvacState() {
+ if (hvacStateBuilder_ == null) {
+ return hvacState_ == null ? com.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ } else {
+ return hvacStateBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(com.hvac.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ hvacState_ = value;
+ } else {
+ hvacStateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(
+ com.hvac.VehicleRemoteHvac.HVACState.Builder builderForValue) {
+ if (hvacStateBuilder_ == null) {
+ hvacState_ = builderForValue.build();
+ } else {
+ hvacStateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder mergeHvacState(com.hvac.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ hvacState_ != null &&
+ hvacState_ != com.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance()) {
+ getHvacStateBuilder().mergeFrom(value);
+ } else {
+ hvacState_ = value;
+ }
+ } else {
+ hvacStateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder clearHvacState() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACState.Builder getHvacStateBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getHvacStateFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ if (hvacStateBuilder_ != null) {
+ return hvacStateBuilder_.getMessageOrBuilder();
+ } else {
+ return hvacState_ == null ?
+ com.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.hvac.HVACState hvac_state = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACState, com.hvac.VehicleRemoteHvac.HVACState.Builder, com.hvac.VehicleRemoteHvac.HVACStateOrBuilder>
+ getHvacStateFieldBuilder() {
+ if (hvacStateBuilder_ == null) {
+ hvacStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.HVACState, com.hvac.VehicleRemoteHvac.HVACState.Builder, com.hvac.VehicleRemoteHvac.HVACStateOrBuilder>(
+ getHvacState(),
+ getParentForChildren(),
+ isClean());
+ hvacState_ = null;
+ }
+ return hvacStateBuilder_;
+ }
+
+ private com.hvac.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.CabinTemperature, com.hvac.VehicleRemoteHvac.CabinTemperature.Builder, com.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder> cabinTemperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ public boolean hasCabinTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ public com.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ if (cabinTemperatureBuilder_ == null) {
+ return cabinTemperature_ == null ? com.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ } else {
+ return cabinTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(com.hvac.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cabinTemperature_ = value;
+ } else {
+ cabinTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(
+ com.hvac.VehicleRemoteHvac.CabinTemperature.Builder builderForValue) {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperature_ = builderForValue.build();
+ } else {
+ cabinTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder mergeCabinTemperature(com.hvac.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ cabinTemperature_ != null &&
+ cabinTemperature_ != com.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) {
+ getCabinTemperatureBuilder().mergeFrom(value);
+ } else {
+ cabinTemperature_ = value;
+ }
+ } else {
+ cabinTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder clearCabinTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.CabinTemperature.Builder getCabinTemperatureBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getCabinTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public com.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ if (cabinTemperatureBuilder_ != null) {
+ return cabinTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return cabinTemperature_ == null ?
+ com.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.CabinTemperature, com.hvac.VehicleRemoteHvac.CabinTemperature.Builder, com.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder>
+ getCabinTemperatureFieldBuilder() {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.hvac.VehicleRemoteHvac.CabinTemperature, com.hvac.VehicleRemoteHvac.CabinTemperature.Builder, com.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder>(
+ getCabinTemperature(),
+ getParentForChildren(),
+ isClean());
+ cabinTemperature_ = null;
+ }
+ return cabinTemperatureBuilder_;
+ }
+ @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:com.hvac.CabinConditionStatusPublish)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.hvac.CabinConditionStatusPublish)
+ private static final com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish();
+ }
+
+ public static com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinConditionStatusPublish>
+ PARSER = new com.google.protobuf.AbstractParser<CabinConditionStatusPublish>() {
+ @java.lang.Override
+ public CabinConditionStatusPublish 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<CabinConditionStatusPublish> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinConditionStatusPublish> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_hvac_Temperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_hvac_Temperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_hvac_HVACZone_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_hvac_HVACZone_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_hvac_PreconditionRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_hvac_PreconditionRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_hvac_PreconditionResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_hvac_PreconditionResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_hvac_HVACState_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_hvac_HVACState_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_hvac_CabinTemperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_hvac_CabinTemperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_hvac_CabinConditionStatusPublish_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_hvac_CabinConditionStatusPublish_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/VehicleRemoteHvac.proto\022\010com." +
+ "hvac\032\037google/protobuf/timestamp.proto\"*\n" +
+ "\013Temperature\022\r\n\005value\030\001 \001(\002\022\014\n\004unit\030\002 \001(" +
+ "\t\"\246\001\n\010HVACZone\022%\n\004zone\030\001 \001(\0162\027.com.hvac." +
+ "HVACZone.Zone\0221\n\022target_temperature\030\002 \001(" +
+ "\0132\025.com.hvac.Temperature\"@\n\004Zone\022\n\n\006DRIV" +
+ "ER\020\000\022\r\n\tPASSENGER\020\001\022\r\n\tREAR_LEFT\020\002\022\016\n\nRE" +
+ "AR_RIGHT\020\003\"m\n\023PreconditionRequest\022&\n\nhva" +
+ "c_zones\030\001 \003(\0132\022.com.hvac.HVACZone\022.\n\nsta" +
+ "rt_time\030\002 \001(\0132\032.google.protobuf.Timestam" +
+ "p\"\217\001\n\024PreconditionResponse\0225\n\006status\030\001 \001" +
+ "(\0162%.com.hvac.PreconditionResponse.Statu" +
+ "s\022\017\n\007message\030\002 \001(\t\"/\n\006Status\022\013\n\007SUCCESS\020" +
+ "\000\022\013\n\007FAILURE\020\001\022\013\n\007PENDING\020\002\"\225\001\n\tHVACStat" +
+ "e\022(\n\005state\030\001 \001(\0162\031.com.hvac.HVACState.St" +
+ "ate\022(\n\014current_zone\030\002 \001(\0132\022.com.hvac.HVA" +
+ "CZone\"4\n\005State\022\007\n\003OFF\020\000\022\013\n\007HEATING\020\001\022\013\n\007" +
+ "COOLING\020\002\022\010\n\004IDLE\020\003\"`\n\020CabinTemperature\022" +
+ "*\n\013temperature\030\001 \001(\0132\025.com.hvac.Temperat" +
+ "ure\022 \n\004zone\030\002 \001(\0132\022.com.hvac.HVACZone\"\255\001" +
+ "\n\033CabinConditionStatusPublish\022.\n\nevent_t" +
+ "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022\'\n" +
+ "\nhvac_state\030\002 \001(\0132\023.com.hvac.HVACState\0225" +
+ "\n\021cabin_temperature\030\003 \001(\0132\032.com.hvac.Cab" +
+ "inTemperatureb\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_com_hvac_Temperature_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_com_hvac_Temperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_hvac_Temperature_descriptor,
+ new java.lang.String[] { "Value", "Unit", });
+ internal_static_com_hvac_HVACZone_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_com_hvac_HVACZone_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_hvac_HVACZone_descriptor,
+ new java.lang.String[] { "Zone", "TargetTemperature", });
+ internal_static_com_hvac_PreconditionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_com_hvac_PreconditionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_hvac_PreconditionRequest_descriptor,
+ new java.lang.String[] { "HvacZones", "StartTime", });
+ internal_static_com_hvac_PreconditionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_com_hvac_PreconditionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_hvac_PreconditionResponse_descriptor,
+ new java.lang.String[] { "Status", "Message", });
+ internal_static_com_hvac_HVACState_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_com_hvac_HVACState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_hvac_HVACState_descriptor,
+ new java.lang.String[] { "State", "CurrentZone", });
+ internal_static_com_hvac_CabinTemperature_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_com_hvac_CabinTemperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_hvac_CabinTemperature_descriptor,
+ new java.lang.String[] { "Temperature", "Zone", });
+ internal_static_com_hvac_CabinConditionStatusPublish_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_com_hvac_CabinConditionStatusPublish_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_hvac_CabinConditionStatusPublish_descriptor,
+ new java.lang.String[] { "EventTime", "HvacState", "CabinTemperature", });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/com/openai/vehiclesignals/VehicleRemoteHvac.java b/src/main/java/com/openai/vehiclesignals/VehicleRemoteHvac.java
new file mode 100644
index 0000000..515e9d8
--- /dev/null
+++ b/src/main/java/com/openai/vehiclesignals/VehicleRemoteHvac.java
@@ -0,0 +1,6540 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: messages/VehicleRemoteHvac.proto
+
+package com.openai.vehiclesignals;
+
+public final class VehicleRemoteHvac {
+ private VehicleRemoteHvac() {}
+ 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 TemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.openai.vehiclesignals.Temperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ float getValue();
+
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ java.lang.String getUnit();
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ com.google.protobuf.ByteString
+ getUnitBytes();
+ }
+ /**
+ * Protobuf type {@code com.openai.vehiclesignals.Temperature}
+ */
+ public static final class Temperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.openai.vehiclesignals.Temperature)
+ TemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Temperature.newBuilder() to construct.
+ private Temperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Temperature() {
+ unit_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Temperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.class, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ private float value_ = 0F;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+
+ public static final int UNIT_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ @java.lang.Override
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ 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();
+ unit_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ output.writeFloat(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_);
+ }
+ 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.openai.vehiclesignals.VehicleRemoteHvac.Temperature)) {
+ return super.equals(obj);
+ }
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature other = (com.openai.vehiclesignals.VehicleRemoteHvac.Temperature) obj;
+
+ if (java.lang.Float.floatToIntBits(getValue())
+ != java.lang.Float.floatToIntBits(
+ other.getValue())) return false;
+ if (!getUnit()
+ .equals(other.getUnit())) 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) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getValue());
+ hash = (37 * hash) + UNIT_FIELD_NUMBER;
+ hash = (53 * hash) + getUnit().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature 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.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature 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.openai.vehiclesignals.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature 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.openai.vehiclesignals.VehicleRemoteHvac.Temperature 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 com.openai.vehiclesignals.Temperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.openai.vehiclesignals.Temperature)
+ com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.class, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ // Construct using com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ value_ = 0F;
+ unit_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature build() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature buildPartial() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature result = new com.openai.vehiclesignals.VehicleRemoteHvac.Temperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openai.vehiclesignals.VehicleRemoteHvac.Temperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.unit_ = unit_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openai.vehiclesignals.VehicleRemoteHvac.Temperature) {
+ return mergeFrom((com.openai.vehiclesignals.VehicleRemoteHvac.Temperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openai.vehiclesignals.VehicleRemoteHvac.Temperature other) {
+ if (other == com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance()) return this;
+ if (other.getValue() != 0F) {
+ setValue(other.getValue());
+ }
+ if (!other.getUnit().isEmpty()) {
+ unit_ = other.unit_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 13: {
+ value_ = input.readFloat();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 13
+ case 18: {
+ unit_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private float value_ ;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(float value) {
+
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ unit_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnit(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearUnit() {
+ unit_ = getDefaultInstance().getUnit();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The bytes for unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnitBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ 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:com.openai.vehiclesignals.Temperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.openai.vehiclesignals.Temperature)
+ private static final com.openai.vehiclesignals.VehicleRemoteHvac.Temperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openai.vehiclesignals.VehicleRemoteHvac.Temperature();
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Temperature>
+ PARSER = new com.google.protobuf.AbstractParser<Temperature>() {
+ @java.lang.Override
+ public Temperature 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<Temperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Temperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACZoneOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.openai.vehiclesignals.HVACZone)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ int getZoneValue();
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone getZone();
+
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ boolean hasTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.openai.vehiclesignals.HVACZone}
+ */
+ public static final class HVACZone extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.openai.vehiclesignals.HVACZone)
+ HVACZoneOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACZone.newBuilder() to construct.
+ private HVACZone(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACZone() {
+ zone_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACZone();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.class, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code com.openai.vehiclesignals.HVACZone.Zone}
+ */
+ public enum Zone
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ DRIVER(0),
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ PASSENGER(1),
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ REAR_LEFT(2),
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ REAR_RIGHT(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ public static final int DRIVER_VALUE = 0;
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ public static final int PASSENGER_VALUE = 1;
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ public static final int REAR_LEFT_VALUE = 2;
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ public static final int REAR_RIGHT_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Zone valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Zone forNumber(int value) {
+ switch (value) {
+ case 0: return DRIVER;
+ case 1: return PASSENGER;
+ case 2: return REAR_LEFT;
+ case 3: return REAR_RIGHT;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Zone>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Zone> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Zone>() {
+ public Zone findValueByNumber(int number) {
+ return Zone.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Zone[] VALUES = values();
+
+ public static Zone valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Zone(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:com.openai.vehiclesignals.HVACZone.Zone)
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 1;
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone result = com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+
+ public static final int TARGET_TEMPERATURE_FIELD_NUMBER = 2;
+ private com.openai.vehiclesignals.VehicleRemoteHvac.Temperature targetTemperature_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTargetTemperature() {
+ return targetTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ return targetTemperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ return targetTemperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+
+ 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 (zone_ != com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ output.writeEnum(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ output.writeMessage(2, getTargetTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (zone_ != com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getTargetTemperature());
+ }
+ 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.openai.vehiclesignals.VehicleRemoteHvac.HVACZone)) {
+ return super.equals(obj);
+ }
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone other = (com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone) obj;
+
+ if (zone_ != other.zone_) return false;
+ if (hasTargetTemperature() != other.hasTargetTemperature()) return false;
+ if (hasTargetTemperature()) {
+ if (!getTargetTemperature()
+ .equals(other.getTargetTemperature())) 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) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + zone_;
+ if (hasTargetTemperature()) {
+ hash = (37 * hash) + TARGET_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone 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.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone 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.openai.vehiclesignals.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone 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.openai.vehiclesignals.VehicleRemoteHvac.HVACZone 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 com.openai.vehiclesignals.HVACZone}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.openai.vehiclesignals.HVACZone)
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.class, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ // Construct using com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ zone_ = 0;
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone build() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone buildPartial() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone result = new com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.zone_ = zone_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.targetTemperature_ = targetTemperatureBuilder_ == null
+ ? targetTemperature_
+ : targetTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone) {
+ return mergeFrom((com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone other) {
+ if (other == com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance()) return this;
+ if (other.zone_ != 0) {
+ setZoneValue(other.getZoneValue());
+ }
+ if (other.hasTargetTemperature()) {
+ mergeTargetTemperature(other.getTargetTemperature());
+ }
+ 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: {
+ zone_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getTargetTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @param value The enum numeric value on the wire for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneValue(int value) {
+ zone_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone result = com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Zone value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ zone_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone.Zone zone = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ zone_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.openai.vehiclesignals.VehicleRemoteHvac.Temperature targetTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder> targetTemperatureBuilder_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ public boolean hasTargetTemperature() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ if (targetTemperatureBuilder_ == null) {
+ return targetTemperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ } else {
+ return targetTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(com.openai.vehiclesignals.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ targetTemperature_ = value;
+ } else {
+ targetTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperature_ = builderForValue.build();
+ } else {
+ targetTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ public Builder mergeTargetTemperature(com.openai.vehiclesignals.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ targetTemperature_ != null &&
+ targetTemperature_ != com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTargetTemperatureBuilder().mergeFrom(value);
+ } else {
+ targetTemperature_ = value;
+ }
+ } else {
+ targetTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ public Builder clearTargetTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder getTargetTemperatureBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getTargetTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ if (targetTemperatureBuilder_ != null) {
+ return targetTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return targetTemperature_ == null ?
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature target_temperature = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTargetTemperatureFieldBuilder() {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTargetTemperature(),
+ getParentForChildren(),
+ isClean());
+ targetTemperature_ = null;
+ }
+ return targetTemperatureBuilder_;
+ }
+ @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:com.openai.vehiclesignals.HVACZone)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.openai.vehiclesignals.HVACZone)
+ private static final com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone();
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACZone>
+ PARSER = new com.google.protobuf.AbstractParser<HVACZone>() {
+ @java.lang.Override
+ public HVACZone 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<HVACZone> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACZone> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.openai.vehiclesignals.PreconditionRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone>
+ getHvacZonesList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getHvacZones(int index);
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ int getHvacZonesCount();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<? extends com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index);
+
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ boolean hasStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.openai.vehiclesignals.PreconditionRequest}
+ */
+ public static final class PreconditionRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.openai.vehiclesignals.PreconditionRequest)
+ PreconditionRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionRequest.newBuilder() to construct.
+ private PreconditionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionRequest() {
+ hvacZones_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest.class, com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ public static final int HVAC_ZONES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List<com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone> hvacZones_;
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<? extends com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public int getHvacZonesCount() {
+ return hvacZones_.size();
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ return hvacZones_.get(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ return hvacZones_.get(index);
+ }
+
+ public static final int START_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp startTime_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ output.writeMessage(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ output.writeMessage(2, getStartTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getStartTime());
+ }
+ 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest)) {
+ return super.equals(obj);
+ }
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest other = (com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest) obj;
+
+ if (!getHvacZonesList()
+ .equals(other.getHvacZonesList())) return false;
+ if (hasStartTime() != other.hasStartTime()) return false;
+ if (hasStartTime()) {
+ if (!getStartTime()
+ .equals(other.getStartTime())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getHvacZonesCount() > 0) {
+ hash = (37 * hash) + HVAC_ZONES_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacZonesList().hashCode();
+ }
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest 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 com.openai.vehiclesignals.PreconditionRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.openai.vehiclesignals.PreconditionRequest)
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest.class, com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ // Construct using com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ } else {
+ hvacZones_ = null;
+ hvacZonesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest build() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest buildPartial() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest result = new com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest result) {
+ if (hvacZonesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = java.util.Collections.unmodifiableList(hvacZones_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.hvacZones_ = hvacZones_;
+ } else {
+ result.hvacZones_ = hvacZonesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.startTime_ = startTimeBuilder_ == null
+ ? startTime_
+ : startTimeBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest) {
+ return mergeFrom((com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest other) {
+ if (other == com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance()) return this;
+ if (hvacZonesBuilder_ == null) {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZones_.isEmpty()) {
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureHvacZonesIsMutable();
+ hvacZones_.addAll(other.hvacZones_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZonesBuilder_.isEmpty()) {
+ hvacZonesBuilder_.dispose();
+ hvacZonesBuilder_ = null;
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ hvacZonesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getHvacZonesFieldBuilder() : null;
+ } else {
+ hvacZonesBuilder_.addAllMessages(other.hvacZones_);
+ }
+ }
+ }
+ if (other.hasStartTime()) {
+ mergeStartTime(other.getStartTime());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone m =
+ input.readMessage(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.parser(),
+ extensionRegistry);
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(m);
+ } else {
+ hvacZonesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getStartTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone> hvacZones_ =
+ java.util.Collections.emptyList();
+ private void ensureHvacZonesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = new java.util.ArrayList<com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone>(hvacZones_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder> hvacZonesBuilder_;
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ if (hvacZonesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ } else {
+ return hvacZonesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public int getHvacZonesCount() {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.size();
+ } else {
+ return hvacZonesBuilder_.getCount();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index);
+ } else {
+ return hvacZonesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addAllHvacZones(
+ java.lang.Iterable<? extends com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone> values) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, hvacZones_);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder clearHvacZones() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder removeHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.remove(index);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder getHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index); } else {
+ return hvacZonesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<? extends com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ if (hvacZonesBuilder_ != null) {
+ return hvacZonesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder() {
+ return getHvacZonesFieldBuilder().addBuilder(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().addBuilder(
+ index, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .com.openai.vehiclesignals.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder>
+ getHvacZonesBuilderList() {
+ return getHvacZonesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesFieldBuilder() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ hvacZones_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ hvacZones_ = null;
+ }
+ return hvacZonesBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp startTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ startTime_ != null &&
+ startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getStartTimeBuilder().mergeFrom(value);
+ } else {
+ startTime_ = value;
+ }
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder clearStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(),
+ getParentForChildren(),
+ isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+ @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:com.openai.vehiclesignals.PreconditionRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.openai.vehiclesignals.PreconditionRequest)
+ private static final com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest();
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionRequest>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionRequest>() {
+ @java.lang.Override
+ public PreconditionRequest 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<PreconditionRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionRequest> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.openai.vehiclesignals.PreconditionResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ int getStatusValue();
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status getStatus();
+
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+ }
+ /**
+ * Protobuf type {@code com.openai.vehiclesignals.PreconditionResponse}
+ */
+ public static final class PreconditionResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.openai.vehiclesignals.PreconditionResponse)
+ PreconditionResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionResponse.newBuilder() to construct.
+ private PreconditionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionResponse() {
+ status_ = 0;
+ message_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.class, com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code com.openai.vehiclesignals.PreconditionResponse.Status}
+ */
+ public enum Status
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ SUCCESS(0),
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ FAILURE(1),
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ PENDING(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ public static final int SUCCESS_VALUE = 0;
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ public static final int FAILURE_VALUE = 1;
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ public static final int PENDING_VALUE = 2;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Status valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Status forNumber(int value) {
+ switch (value) {
+ case 0: return SUCCESS;
+ case 1: return FAILURE;
+ case 2: return PENDING;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Status>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Status> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Status>() {
+ public Status findValueByNumber(int number) {
+ return Status.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Status[] VALUES = values();
+
+ public static Status valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Status(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:com.openai.vehiclesignals.PreconditionResponse.Status)
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 1;
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status result = com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (status_ != com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ output.writeEnum(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
+ }
+ 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse)) {
+ return super.equals(obj);
+ }
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse other = (com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse) obj;
+
+ if (status_ != other.status_) return false;
+ if (!getMessage()
+ .equals(other.getMessage())) 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) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse 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.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse 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 com.openai.vehiclesignals.PreconditionResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.openai.vehiclesignals.PreconditionResponse)
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.class, com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ // Construct using com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ status_ = 0;
+ message_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse build() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse buildPartial() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse result = new com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.status_ = status_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.message_ = message_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse) {
+ return mergeFrom((com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse other) {
+ if (other == com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance()) return this;
+ if (other.status_ != 0) {
+ setStatusValue(other.getStatusValue());
+ }
+ if (!other.getMessage().isEmpty()) {
+ message_ = other.message_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ status_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ message_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @param value The enum numeric value on the wire for status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatusValue(int value) {
+ status_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status result = com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @param value The status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatus(com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse.Status value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ status_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.PreconditionResponse.Status status = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ 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:com.openai.vehiclesignals.PreconditionResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.openai.vehiclesignals.PreconditionResponse)
+ private static final com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse();
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionResponse>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionResponse>() {
+ @java.lang.Override
+ public PreconditionResponse 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<PreconditionResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionResponse> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACStateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.openai.vehiclesignals.HVACState)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State getState();
+
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ boolean hasCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.openai.vehiclesignals.HVACState}
+ */
+ public static final class HVACState extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.openai.vehiclesignals.HVACState)
+ HVACStateOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACState.newBuilder() to construct.
+ private HVACState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACState() {
+ state_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACState();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.class, com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code com.openai.vehiclesignals.HVACState.State}
+ */
+ public enum State
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OFF = 0;</code>
+ */
+ OFF(0),
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ HEATING(1),
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ COOLING(2),
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ IDLE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>OFF = 0;</code>
+ */
+ public static final int OFF_VALUE = 0;
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ public static final int HEATING_VALUE = 1;
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ public static final int COOLING_VALUE = 2;
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ public static final int IDLE_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0: return OFF;
+ case 1: return HEATING;
+ case 2: return COOLING;
+ case 3: return IDLE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<State>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ State> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<State>() {
+ public State findValueByNumber(int number) {
+ return State.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final State[] VALUES = values();
+
+ public static State valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private State(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:com.openai.vehiclesignals.HVACState.State)
+ }
+
+ public static final int STATE_FIELD_NUMBER = 1;
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State getState() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State result = com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+
+ public static final int CURRENT_ZONE_FIELD_NUMBER = 2;
+ private com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone currentZone_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ @java.lang.Override
+ public boolean hasCurrentZone() {
+ return currentZone_ != null;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ return currentZone_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ return currentZone_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+
+ 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 (state_ != com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (currentZone_ != null) {
+ output.writeMessage(2, getCurrentZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_ != com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, state_);
+ }
+ if (currentZone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getCurrentZone());
+ }
+ 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.openai.vehiclesignals.VehicleRemoteHvac.HVACState)) {
+ return super.equals(obj);
+ }
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState other = (com.openai.vehiclesignals.VehicleRemoteHvac.HVACState) obj;
+
+ if (state_ != other.state_) return false;
+ if (hasCurrentZone() != other.hasCurrentZone()) return false;
+ if (hasCurrentZone()) {
+ if (!getCurrentZone()
+ .equals(other.getCurrentZone())) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasCurrentZone()) {
+ hash = (37 * hash) + CURRENT_ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getCurrentZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState 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.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState 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.openai.vehiclesignals.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState 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.openai.vehiclesignals.VehicleRemoteHvac.HVACState 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 com.openai.vehiclesignals.HVACState}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.openai.vehiclesignals.HVACState)
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.class, com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ // Construct using com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ state_ = 0;
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState build() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState buildPartial() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState result = new com.openai.vehiclesignals.VehicleRemoteHvac.HVACState(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openai.vehiclesignals.VehicleRemoteHvac.HVACState result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.currentZone_ = currentZoneBuilder_ == null
+ ? currentZone_
+ : currentZoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openai.vehiclesignals.VehicleRemoteHvac.HVACState) {
+ return mergeFrom((com.openai.vehiclesignals.VehicleRemoteHvac.HVACState)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openai.vehiclesignals.VehicleRemoteHvac.HVACState other) {
+ if (other == com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDefaultInstance()) return this;
+ if (other.state_ != 0) {
+ setStateValue(other.getStateValue());
+ }
+ if (other.hasCurrentZone()) {
+ mergeCurrentZone(other.getCurrentZone());
+ }
+ 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: {
+ state_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getCurrentZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State getState() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State result = com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState.State state = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone currentZone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder> currentZoneBuilder_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ public boolean hasCurrentZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ if (currentZoneBuilder_ == null) {
+ return currentZone_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ } else {
+ return currentZoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ currentZone_ = value;
+ } else {
+ currentZoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (currentZoneBuilder_ == null) {
+ currentZone_ = builderForValue.build();
+ } else {
+ currentZoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ public Builder mergeCurrentZone(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ currentZone_ != null &&
+ currentZone_ != com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getCurrentZoneBuilder().mergeFrom(value);
+ } else {
+ currentZone_ = value;
+ }
+ } else {
+ currentZoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ public Builder clearCurrentZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder getCurrentZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getCurrentZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ if (currentZoneBuilder_ != null) {
+ return currentZoneBuilder_.getMessageOrBuilder();
+ } else {
+ return currentZone_ == null ?
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone current_zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getCurrentZoneFieldBuilder() {
+ if (currentZoneBuilder_ == null) {
+ currentZoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getCurrentZone(),
+ getParentForChildren(),
+ isClean());
+ currentZone_ = null;
+ }
+ return currentZoneBuilder_;
+ }
+ @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:com.openai.vehiclesignals.HVACState)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.openai.vehiclesignals.HVACState)
+ private static final com.openai.vehiclesignals.VehicleRemoteHvac.HVACState DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openai.vehiclesignals.VehicleRemoteHvac.HVACState();
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.HVACState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACState>
+ PARSER = new com.google.protobuf.AbstractParser<HVACState>() {
+ @java.lang.Override
+ public HVACState 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<HVACState> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACState> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinTemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.openai.vehiclesignals.CabinTemperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder();
+
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ boolean hasZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.openai.vehiclesignals.CabinTemperature}
+ */
+ public static final class CabinTemperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.openai.vehiclesignals.CabinTemperature)
+ CabinTemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinTemperature.newBuilder() to construct.
+ private CabinTemperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinTemperature() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinTemperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.class, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 1;
+ private com.openai.vehiclesignals.VehicleRemoteHvac.Temperature temperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return temperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getTemperature() {
+ return temperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ return temperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone zone_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ @java.lang.Override
+ public boolean hasZone() {
+ return zone_ != null;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getZone() {
+ return zone_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ return zone_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+
+ 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 (temperature_ != null) {
+ output.writeMessage(1, getTemperature());
+ }
+ if (zone_ != null) {
+ output.writeMessage(2, getZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (temperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getTemperature());
+ }
+ if (zone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getZone());
+ }
+ 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.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature)) {
+ return super.equals(obj);
+ }
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature other = (com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature) obj;
+
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (!getTemperature()
+ .equals(other.getTemperature())) return false;
+ }
+ if (hasZone() != other.hasZone()) return false;
+ if (hasZone()) {
+ if (!getZone()
+ .equals(other.getZone())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTemperature().hashCode();
+ }
+ if (hasZone()) {
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature 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.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature 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.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature 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.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature 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 com.openai.vehiclesignals.CabinTemperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.openai.vehiclesignals.CabinTemperature)
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.class, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ // Construct using com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature build() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature buildPartial() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature result = new com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.temperature_ = temperatureBuilder_ == null
+ ? temperature_
+ : temperatureBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.zone_ = zoneBuilder_ == null
+ ? zone_
+ : zoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature) {
+ return mergeFrom((com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature other) {
+ if (other == com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) return this;
+ if (other.hasTemperature()) {
+ mergeTemperature(other.getTemperature());
+ }
+ if (other.hasZone()) {
+ mergeZone(other.getZone());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.openai.vehiclesignals.VehicleRemoteHvac.Temperature temperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder> temperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature getTemperature() {
+ if (temperatureBuilder_ == null) {
+ return temperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ } else {
+ return temperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(com.openai.vehiclesignals.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ temperature_ = value;
+ } else {
+ temperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (temperatureBuilder_ == null) {
+ temperature_ = builderForValue.build();
+ } else {
+ temperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ public Builder mergeTemperature(com.openai.vehiclesignals.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ temperature_ != null &&
+ temperature_ != com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTemperatureBuilder().mergeFrom(value);
+ } else {
+ temperature_ = value;
+ }
+ } else {
+ temperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder getTemperatureBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ if (temperatureBuilder_ != null) {
+ return temperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return temperature_ == null ?
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.Temperature temperature = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTemperatureFieldBuilder() {
+ if (temperatureBuilder_ == null) {
+ temperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.Temperature, com.openai.vehiclesignals.VehicleRemoteHvac.Temperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTemperature(),
+ getParentForChildren(),
+ isClean());
+ temperature_ = null;
+ }
+ return temperatureBuilder_;
+ }
+
+ private com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone zone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder> zoneBuilder_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ public boolean hasZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone getZone() {
+ if (zoneBuilder_ == null) {
+ return zone_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ } else {
+ return zoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ zone_ = value;
+ } else {
+ zoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (zoneBuilder_ == null) {
+ zone_ = builderForValue.build();
+ } else {
+ zoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ public Builder mergeZone(com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ zone_ != null &&
+ zone_ != com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getZoneBuilder().mergeFrom(value);
+ } else {
+ zone_ = value;
+ }
+ } else {
+ zoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder getZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ if (zoneBuilder_ != null) {
+ return zoneBuilder_.getMessageOrBuilder();
+ } else {
+ return zone_ == null ?
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACZone zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getZoneFieldBuilder() {
+ if (zoneBuilder_ == null) {
+ zoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZone.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getZone(),
+ getParentForChildren(),
+ isClean());
+ zone_ = null;
+ }
+ return zoneBuilder_;
+ }
+ @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:com.openai.vehiclesignals.CabinTemperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.openai.vehiclesignals.CabinTemperature)
+ private static final com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature();
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinTemperature>
+ PARSER = new com.google.protobuf.AbstractParser<CabinTemperature>() {
+ @java.lang.Override
+ public CabinTemperature 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<CabinTemperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinTemperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinConditionStatusPublishOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.openai.vehiclesignals.CabinConditionStatusPublish)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ boolean hasEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ com.google.protobuf.Timestamp getEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ boolean hasHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState getHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder();
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ boolean hasCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature getCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.openai.vehiclesignals.CabinConditionStatusPublish}
+ */
+ public static final class CabinConditionStatusPublish extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.openai.vehiclesignals.CabinConditionStatusPublish)
+ CabinConditionStatusPublishOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinConditionStatusPublish.newBuilder() to construct.
+ private CabinConditionStatusPublish(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinConditionStatusPublish() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinConditionStatusPublish();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish.class, com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ public static final int EVENT_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp eventTime_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventTime() {
+ return eventTime_ != null;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEventTime() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+
+ public static final int HVAC_STATE_FIELD_NUMBER = 2;
+ private com.openai.vehiclesignals.VehicleRemoteHvac.HVACState hvacState_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ @java.lang.Override
+ public boolean hasHvacState() {
+ return hvacState_ != null;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState getHvacState() {
+ return hvacState_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ return hvacState_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+
+ public static final int CABIN_TEMPERATURE_FIELD_NUMBER = 3;
+ private com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasCabinTemperature() {
+ return cabinTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ return cabinTemperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ return cabinTemperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+
+ 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 (eventTime_ != null) {
+ output.writeMessage(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ output.writeMessage(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ output.writeMessage(3, getCabinTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (eventTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getCabinTemperature());
+ }
+ 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.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish)) {
+ return super.equals(obj);
+ }
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish other = (com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish) obj;
+
+ if (hasEventTime() != other.hasEventTime()) return false;
+ if (hasEventTime()) {
+ if (!getEventTime()
+ .equals(other.getEventTime())) return false;
+ }
+ if (hasHvacState() != other.hasHvacState()) return false;
+ if (hasHvacState()) {
+ if (!getHvacState()
+ .equals(other.getHvacState())) return false;
+ }
+ if (hasCabinTemperature() != other.hasCabinTemperature()) return false;
+ if (hasCabinTemperature()) {
+ if (!getCabinTemperature()
+ .equals(other.getCabinTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEventTime()) {
+ hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventTime().hashCode();
+ }
+ if (hasHvacState()) {
+ hash = (37 * hash) + HVAC_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacState().hashCode();
+ }
+ if (hasCabinTemperature()) {
+ hash = (37 * hash) + CABIN_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getCabinTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish 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.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish 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.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish 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.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish 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 com.openai.vehiclesignals.CabinConditionStatusPublish}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:com.openai.vehiclesignals.CabinConditionStatusPublish)
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublishOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish.class, com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ // Construct using com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish build() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish buildPartial() {
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish result = new com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.eventTime_ = eventTimeBuilder_ == null
+ ? eventTime_
+ : eventTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.hvacState_ = hvacStateBuilder_ == null
+ ? hvacState_
+ : hvacStateBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.cabinTemperature_ = cabinTemperatureBuilder_ == null
+ ? cabinTemperature_
+ : cabinTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish) {
+ return mergeFrom((com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish other) {
+ if (other == com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance()) return this;
+ if (other.hasEventTime()) {
+ mergeEventTime(other.getEventTime());
+ }
+ if (other.hasHvacState()) {
+ mergeHvacState(other.getHvacState());
+ }
+ if (other.hasCabinTemperature()) {
+ mergeCabinTemperature(other.getCabinTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getEventTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getHvacStateFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getCabinTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Timestamp eventTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ public boolean hasEventTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ public com.google.protobuf.Timestamp getEventTime() {
+ if (eventTimeBuilder_ == null) {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ } else {
+ return eventTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventTime_ = value;
+ } else {
+ eventTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (eventTimeBuilder_ == null) {
+ eventTime_ = builderForValue.build();
+ } else {
+ eventTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ eventTime_ != null &&
+ eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEventTimeBuilder().mergeFrom(value);
+ } else {
+ eventTime_ = value;
+ }
+ } else {
+ eventTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder clearEventTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getEventTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ if (eventTimeBuilder_ != null) {
+ return eventTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return eventTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getEventTimeFieldBuilder() {
+ if (eventTimeBuilder_ == null) {
+ eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getEventTime(),
+ getParentForChildren(),
+ isClean());
+ eventTime_ = null;
+ }
+ return eventTimeBuilder_;
+ }
+
+ private com.openai.vehiclesignals.VehicleRemoteHvac.HVACState hvacState_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState, com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACStateOrBuilder> hvacStateBuilder_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ public boolean hasHvacState() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState getHvacState() {
+ if (hvacStateBuilder_ == null) {
+ return hvacState_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ } else {
+ return hvacStateBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(com.openai.vehiclesignals.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ hvacState_ = value;
+ } else {
+ hvacStateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.Builder builderForValue) {
+ if (hvacStateBuilder_ == null) {
+ hvacState_ = builderForValue.build();
+ } else {
+ hvacStateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ public Builder mergeHvacState(com.openai.vehiclesignals.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ hvacState_ != null &&
+ hvacState_ != com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDefaultInstance()) {
+ getHvacStateBuilder().mergeFrom(value);
+ } else {
+ hvacState_ = value;
+ }
+ } else {
+ hvacStateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ public Builder clearHvacState() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.Builder getHvacStateBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getHvacStateFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ if (hvacStateBuilder_ != null) {
+ return hvacStateBuilder_.getMessageOrBuilder();
+ } else {
+ return hvacState_ == null ?
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.HVACState hvac_state = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState, com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACStateOrBuilder>
+ getHvacStateFieldBuilder() {
+ if (hvacStateBuilder_ == null) {
+ hvacStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.HVACState, com.openai.vehiclesignals.VehicleRemoteHvac.HVACState.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.HVACStateOrBuilder>(
+ getHvacState(),
+ getParentForChildren(),
+ isClean());
+ hvacState_ = null;
+ }
+ return hvacStateBuilder_;
+ }
+
+ private com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperatureOrBuilder> cabinTemperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ public boolean hasCabinTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ if (cabinTemperatureBuilder_ == null) {
+ return cabinTemperature_ == null ? com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ } else {
+ return cabinTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cabinTemperature_ = value;
+ } else {
+ cabinTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.Builder builderForValue) {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperature_ = builderForValue.build();
+ } else {
+ cabinTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder mergeCabinTemperature(com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ cabinTemperature_ != null &&
+ cabinTemperature_ != com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) {
+ getCabinTemperatureBuilder().mergeFrom(value);
+ } else {
+ cabinTemperature_ = value;
+ }
+ } else {
+ cabinTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder clearCabinTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.Builder getCabinTemperatureBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getCabinTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ if (cabinTemperatureBuilder_ != null) {
+ return cabinTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return cabinTemperature_ == null ?
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.com.openai.vehiclesignals.CabinTemperature cabin_temperature = 3;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperatureOrBuilder>
+ getCabinTemperatureFieldBuilder() {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperature.Builder, com.openai.vehiclesignals.VehicleRemoteHvac.CabinTemperatureOrBuilder>(
+ getCabinTemperature(),
+ getParentForChildren(),
+ isClean());
+ cabinTemperature_ = null;
+ }
+ return cabinTemperatureBuilder_;
+ }
+ @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:com.openai.vehiclesignals.CabinConditionStatusPublish)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.openai.vehiclesignals.CabinConditionStatusPublish)
+ private static final com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish();
+ }
+
+ public static com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinConditionStatusPublish>
+ PARSER = new com.google.protobuf.AbstractParser<CabinConditionStatusPublish>() {
+ @java.lang.Override
+ public CabinConditionStatusPublish 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<CabinConditionStatusPublish> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinConditionStatusPublish> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.openai.vehiclesignals.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_openai_vehiclesignals_Temperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_openai_vehiclesignals_Temperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_openai_vehiclesignals_HVACZone_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_openai_vehiclesignals_HVACZone_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_openai_vehiclesignals_PreconditionRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_openai_vehiclesignals_PreconditionRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_openai_vehiclesignals_PreconditionResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_openai_vehiclesignals_PreconditionResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_openai_vehiclesignals_HVACState_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_openai_vehiclesignals_HVACState_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_openai_vehiclesignals_CabinTemperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_openai_vehiclesignals_CabinTemperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_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/VehicleRemoteHvac.proto\022\031com." +
+ "openai.vehiclesignals\032\037google/protobuf/t" +
+ "imestamp.proto\"*\n\013Temperature\022\r\n\005value\030\001" +
+ " \001(\002\022\014\n\004unit\030\002 \001(\t\"\310\001\n\010HVACZone\0226\n\004zone\030" +
+ "\001 \001(\0162(.com.openai.vehiclesignals.HVACZo" +
+ "ne.Zone\022B\n\022target_temperature\030\002 \001(\0132&.co" +
+ "m.openai.vehiclesignals.Temperature\"@\n\004Z" +
+ "one\022\n\n\006DRIVER\020\000\022\r\n\tPASSENGER\020\001\022\r\n\tREAR_L" +
+ "EFT\020\002\022\016\n\nREAR_RIGHT\020\003\"~\n\023PreconditionReq" +
+ "uest\0227\n\nhvac_zones\030\001 \003(\0132#.com.openai.ve" +
+ "hiclesignals.HVACZone\022.\n\nstart_time\030\002 \001(" +
+ "\0132\032.google.protobuf.Timestamp\"\240\001\n\024Precon" +
+ "ditionResponse\022F\n\006status\030\001 \001(\01626.com.ope" +
+ "nai.vehiclesignals.PreconditionResponse." +
+ "Status\022\017\n\007message\030\002 \001(\t\"/\n\006Status\022\013\n\007SUC" +
+ "CESS\020\000\022\013\n\007FAILURE\020\001\022\013\n\007PENDING\020\002\"\267\001\n\tHVA" +
+ "CState\0229\n\005state\030\001 \001(\0162*.com.openai.vehic" +
+ "lesignals.HVACState.State\0229\n\014current_zon" +
+ "e\030\002 \001(\0132#.com.openai.vehiclesignals.HVAC" +
+ "Zone\"4\n\005State\022\007\n\003OFF\020\000\022\013\n\007HEATING\020\001\022\013\n\007C" +
+ "OOLING\020\002\022\010\n\004IDLE\020\003\"\202\001\n\020CabinTemperature\022" +
+ ";\n\013temperature\030\001 \001(\0132&.com.openai.vehicl" +
+ "esignals.Temperature\0221\n\004zone\030\002 \001(\0132#.com" +
+ ".openai.vehiclesignals.HVACZone\"\317\001\n\033Cabi" +
+ "nConditionStatusPublish\022.\n\nevent_time\030\001 " +
+ "\001(\0132\032.google.protobuf.Timestamp\0228\n\nhvac_" +
+ "state\030\002 \001(\0132$.com.openai.vehiclesignals." +
+ "HVACState\022F\n\021cabin_temperature\030\003 \001(\0132+.c" +
+ "om.openai.vehiclesignals.CabinTemperatur" +
+ "eb\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_com_openai_vehiclesignals_Temperature_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_com_openai_vehiclesignals_Temperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_openai_vehiclesignals_Temperature_descriptor,
+ new java.lang.String[] { "Value", "Unit", });
+ internal_static_com_openai_vehiclesignals_HVACZone_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_com_openai_vehiclesignals_HVACZone_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_openai_vehiclesignals_HVACZone_descriptor,
+ new java.lang.String[] { "Zone", "TargetTemperature", });
+ internal_static_com_openai_vehiclesignals_PreconditionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_com_openai_vehiclesignals_PreconditionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_openai_vehiclesignals_PreconditionRequest_descriptor,
+ new java.lang.String[] { "HvacZones", "StartTime", });
+ internal_static_com_openai_vehiclesignals_PreconditionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_com_openai_vehiclesignals_PreconditionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_openai_vehiclesignals_PreconditionResponse_descriptor,
+ new java.lang.String[] { "Status", "Message", });
+ internal_static_com_openai_vehiclesignals_HVACState_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_com_openai_vehiclesignals_HVACState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_openai_vehiclesignals_HVACState_descriptor,
+ new java.lang.String[] { "State", "CurrentZone", });
+ internal_static_com_openai_vehiclesignals_CabinTemperature_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_com_openai_vehiclesignals_CabinTemperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_openai_vehiclesignals_CabinTemperature_descriptor,
+ new java.lang.String[] { "Temperature", "Zone", });
+ internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_com_openai_vehiclesignals_CabinConditionStatusPublish_descriptor,
+ new java.lang.String[] { "EventTime", "HvacState", "CabinTemperature", });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/hvac/VehicleRemoteHvac.java b/src/main/java/hvac/VehicleRemoteHvac.java
new file mode 100644
index 0000000..8381a13
--- /dev/null
+++ b/src/main/java/hvac/VehicleRemoteHvac.java
@@ -0,0 +1,5785 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: messages/VehicleRemoteHvac.proto
+
+package hvac;
+
+public final class VehicleRemoteHvac {
+ private VehicleRemoteHvac() {}
+ 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 ZoneOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:hvac.Zone)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @return The enum numeric value on the wire for zoneType.
+ */
+ int getZoneTypeValue();
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @return The zoneType.
+ */
+ hvac.VehicleRemoteHvac.Zone.ZoneType getZoneType();
+
+ /**
+ * <pre>
+ * Desired temperature in Celsius for this zone
+ * </pre>
+ *
+ * <code>double desired_temperature_celsius = 2;</code>
+ * @return The desiredTemperatureCelsius.
+ */
+ double getDesiredTemperatureCelsius();
+
+ /**
+ * <pre>
+ * Whether the system is in auto mode for this zone
+ * </pre>
+ *
+ * <code>bool auto_mode = 3;</code>
+ * @return The autoMode.
+ */
+ boolean getAutoMode();
+ }
+ /**
+ * <pre>
+ * Message for Zone - used for multi-zone HVAC systems
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Zone}
+ */
+ public static final class Zone extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:hvac.Zone)
+ ZoneOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Zone.newBuilder() to construct.
+ private Zone(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Zone() {
+ zoneType_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Zone();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Zone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Zone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Zone.class, hvac.VehicleRemoteHvac.Zone.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code hvac.Zone.ZoneType}
+ */
+ public enum ZoneType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ DRIVER(0),
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ PASSENGER(1),
+ /**
+ * <code>REAR = 2;</code>
+ */
+ REAR(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ public static final int DRIVER_VALUE = 0;
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ public static final int PASSENGER_VALUE = 1;
+ /**
+ * <code>REAR = 2;</code>
+ */
+ public static final int REAR_VALUE = 2;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ZoneType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ZoneType forNumber(int value) {
+ switch (value) {
+ case 0: return DRIVER;
+ case 1: return PASSENGER;
+ case 2: return REAR;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<ZoneType>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ ZoneType> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<ZoneType>() {
+ public ZoneType findValueByNumber(int number) {
+ return ZoneType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.Zone.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final ZoneType[] VALUES = values();
+
+ public static ZoneType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private ZoneType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hvac.Zone.ZoneType)
+ }
+
+ public static final int ZONE_TYPE_FIELD_NUMBER = 1;
+ private int zoneType_ = 0;
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @return The enum numeric value on the wire for zoneType.
+ */
+ @java.lang.Override public int getZoneTypeValue() {
+ return zoneType_;
+ }
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @return The zoneType.
+ */
+ @java.lang.Override public hvac.VehicleRemoteHvac.Zone.ZoneType getZoneType() {
+ hvac.VehicleRemoteHvac.Zone.ZoneType result = hvac.VehicleRemoteHvac.Zone.ZoneType.forNumber(zoneType_);
+ return result == null ? hvac.VehicleRemoteHvac.Zone.ZoneType.UNRECOGNIZED : result;
+ }
+
+ public static final int DESIRED_TEMPERATURE_CELSIUS_FIELD_NUMBER = 2;
+ private double desiredTemperatureCelsius_ = 0D;
+ /**
+ * <pre>
+ * Desired temperature in Celsius for this zone
+ * </pre>
+ *
+ * <code>double desired_temperature_celsius = 2;</code>
+ * @return The desiredTemperatureCelsius.
+ */
+ @java.lang.Override
+ public double getDesiredTemperatureCelsius() {
+ return desiredTemperatureCelsius_;
+ }
+
+ public static final int AUTO_MODE_FIELD_NUMBER = 3;
+ private boolean autoMode_ = false;
+ /**
+ * <pre>
+ * Whether the system is in auto mode for this zone
+ * </pre>
+ *
+ * <code>bool auto_mode = 3;</code>
+ * @return The autoMode.
+ */
+ @java.lang.Override
+ public boolean getAutoMode() {
+ return autoMode_;
+ }
+
+ 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 (zoneType_ != hvac.VehicleRemoteHvac.Zone.ZoneType.DRIVER.getNumber()) {
+ output.writeEnum(1, zoneType_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(desiredTemperatureCelsius_) != 0) {
+ output.writeDouble(2, desiredTemperatureCelsius_);
+ }
+ if (autoMode_ != false) {
+ output.writeBool(3, autoMode_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (zoneType_ != hvac.VehicleRemoteHvac.Zone.ZoneType.DRIVER.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, zoneType_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(desiredTemperatureCelsius_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, desiredTemperatureCelsius_);
+ }
+ if (autoMode_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, autoMode_);
+ }
+ 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 hvac.VehicleRemoteHvac.Zone)) {
+ return super.equals(obj);
+ }
+ hvac.VehicleRemoteHvac.Zone other = (hvac.VehicleRemoteHvac.Zone) obj;
+
+ if (zoneType_ != other.zoneType_) return false;
+ if (java.lang.Double.doubleToLongBits(getDesiredTemperatureCelsius())
+ != java.lang.Double.doubleToLongBits(
+ other.getDesiredTemperatureCelsius())) return false;
+ if (getAutoMode()
+ != other.getAutoMode()) 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) + ZONE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + zoneType_;
+ hash = (37 * hash) + DESIRED_TEMPERATURE_CELSIUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDesiredTemperatureCelsius()));
+ hash = (37 * hash) + AUTO_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAutoMode());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static hvac.VehicleRemoteHvac.Zone parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Zone parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Zone parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Zone parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Zone parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Zone parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Zone parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Zone 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 hvac.VehicleRemoteHvac.Zone parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Zone 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 hvac.VehicleRemoteHvac.Zone parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Zone 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(hvac.VehicleRemoteHvac.Zone 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>
+ * Message for Zone - used for multi-zone HVAC systems
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Zone}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:hvac.Zone)
+ hvac.VehicleRemoteHvac.ZoneOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Zone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Zone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Zone.class, hvac.VehicleRemoteHvac.Zone.Builder.class);
+ }
+
+ // Construct using hvac.VehicleRemoteHvac.Zone.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ zoneType_ = 0;
+ desiredTemperatureCelsius_ = 0D;
+ autoMode_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Zone_descriptor;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Zone getDefaultInstanceForType() {
+ return hvac.VehicleRemoteHvac.Zone.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Zone build() {
+ hvac.VehicleRemoteHvac.Zone result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Zone buildPartial() {
+ hvac.VehicleRemoteHvac.Zone result = new hvac.VehicleRemoteHvac.Zone(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(hvac.VehicleRemoteHvac.Zone result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.zoneType_ = zoneType_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.desiredTemperatureCelsius_ = desiredTemperatureCelsius_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.autoMode_ = autoMode_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof hvac.VehicleRemoteHvac.Zone) {
+ return mergeFrom((hvac.VehicleRemoteHvac.Zone)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(hvac.VehicleRemoteHvac.Zone other) {
+ if (other == hvac.VehicleRemoteHvac.Zone.getDefaultInstance()) return this;
+ if (other.zoneType_ != 0) {
+ setZoneTypeValue(other.getZoneTypeValue());
+ }
+ if (other.getDesiredTemperatureCelsius() != 0D) {
+ setDesiredTemperatureCelsius(other.getDesiredTemperatureCelsius());
+ }
+ if (other.getAutoMode() != false) {
+ setAutoMode(other.getAutoMode());
+ }
+ 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: {
+ zoneType_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 17: {
+ desiredTemperatureCelsius_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 24: {
+ autoMode_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int zoneType_ = 0;
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @return The enum numeric value on the wire for zoneType.
+ */
+ @java.lang.Override public int getZoneTypeValue() {
+ return zoneType_;
+ }
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @param value The enum numeric value on the wire for zoneType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneTypeValue(int value) {
+ zoneType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @return The zoneType.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Zone.ZoneType getZoneType() {
+ hvac.VehicleRemoteHvac.Zone.ZoneType result = hvac.VehicleRemoteHvac.Zone.ZoneType.forNumber(zoneType_);
+ return result == null ? hvac.VehicleRemoteHvac.Zone.ZoneType.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @param value The zoneType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneType(hvac.VehicleRemoteHvac.Zone.ZoneType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ zoneType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The type of zone this message is for
+ * </pre>
+ *
+ * <code>.hvac.Zone.ZoneType zone_type = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearZoneType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ zoneType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private double desiredTemperatureCelsius_ ;
+ /**
+ * <pre>
+ * Desired temperature in Celsius for this zone
+ * </pre>
+ *
+ * <code>double desired_temperature_celsius = 2;</code>
+ * @return The desiredTemperatureCelsius.
+ */
+ @java.lang.Override
+ public double getDesiredTemperatureCelsius() {
+ return desiredTemperatureCelsius_;
+ }
+ /**
+ * <pre>
+ * Desired temperature in Celsius for this zone
+ * </pre>
+ *
+ * <code>double desired_temperature_celsius = 2;</code>
+ * @param value The desiredTemperatureCelsius to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDesiredTemperatureCelsius(double value) {
+
+ desiredTemperatureCelsius_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Desired temperature in Celsius for this zone
+ * </pre>
+ *
+ * <code>double desired_temperature_celsius = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearDesiredTemperatureCelsius() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ desiredTemperatureCelsius_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private boolean autoMode_ ;
+ /**
+ * <pre>
+ * Whether the system is in auto mode for this zone
+ * </pre>
+ *
+ * <code>bool auto_mode = 3;</code>
+ * @return The autoMode.
+ */
+ @java.lang.Override
+ public boolean getAutoMode() {
+ return autoMode_;
+ }
+ /**
+ * <pre>
+ * Whether the system is in auto mode for this zone
+ * </pre>
+ *
+ * <code>bool auto_mode = 3;</code>
+ * @param value The autoMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutoMode(boolean value) {
+
+ autoMode_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Whether the system is in auto mode for this zone
+ * </pre>
+ *
+ * <code>bool auto_mode = 3;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearAutoMode() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ autoMode_ = false;
+ 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:hvac.Zone)
+ }
+
+ // @@protoc_insertion_point(class_scope:hvac.Zone)
+ private static final hvac.VehicleRemoteHvac.Zone DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new hvac.VehicleRemoteHvac.Zone();
+ }
+
+ public static hvac.VehicleRemoteHvac.Zone getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Zone>
+ PARSER = new com.google.protobuf.AbstractParser<Zone>() {
+ @java.lang.Override
+ public Zone 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<Zone> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Zone> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Zone getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface FanOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:hvac.Fan)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @return The enum numeric value on the wire for fanSpeed.
+ */
+ int getFanSpeedValue();
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @return The fanSpeed.
+ */
+ hvac.VehicleRemoteHvac.Fan.FanSpeed getFanSpeed();
+
+ /**
+ * <pre>
+ * Whether the fan speed is set to automatic
+ * </pre>
+ *
+ * <code>bool auto_mode = 2;</code>
+ * @return The autoMode.
+ */
+ boolean getAutoMode();
+ }
+ /**
+ * <pre>
+ * Message for Fan - used to represent the fan settings
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Fan}
+ */
+ public static final class Fan extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:hvac.Fan)
+ FanOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Fan.newBuilder() to construct.
+ private Fan(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Fan() {
+ fanSpeed_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Fan();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Fan_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Fan_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Fan.class, hvac.VehicleRemoteHvac.Fan.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code hvac.Fan.FanSpeed}
+ */
+ public enum FanSpeed
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OFF = 0;</code>
+ */
+ OFF(0),
+ /**
+ * <code>LOW = 1;</code>
+ */
+ LOW(1),
+ /**
+ * <code>MEDIUM = 2;</code>
+ */
+ MEDIUM(2),
+ /**
+ * <code>HIGH = 3;</code>
+ */
+ HIGH(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>OFF = 0;</code>
+ */
+ public static final int OFF_VALUE = 0;
+ /**
+ * <code>LOW = 1;</code>
+ */
+ public static final int LOW_VALUE = 1;
+ /**
+ * <code>MEDIUM = 2;</code>
+ */
+ public static final int MEDIUM_VALUE = 2;
+ /**
+ * <code>HIGH = 3;</code>
+ */
+ public static final int HIGH_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static FanSpeed valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static FanSpeed forNumber(int value) {
+ switch (value) {
+ case 0: return OFF;
+ case 1: return LOW;
+ case 2: return MEDIUM;
+ case 3: return HIGH;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<FanSpeed>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ FanSpeed> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<FanSpeed>() {
+ public FanSpeed findValueByNumber(int number) {
+ return FanSpeed.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.Fan.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final FanSpeed[] VALUES = values();
+
+ public static FanSpeed valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private FanSpeed(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hvac.Fan.FanSpeed)
+ }
+
+ public static final int FAN_SPEED_FIELD_NUMBER = 1;
+ private int fanSpeed_ = 0;
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @return The enum numeric value on the wire for fanSpeed.
+ */
+ @java.lang.Override public int getFanSpeedValue() {
+ return fanSpeed_;
+ }
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @return The fanSpeed.
+ */
+ @java.lang.Override public hvac.VehicleRemoteHvac.Fan.FanSpeed getFanSpeed() {
+ hvac.VehicleRemoteHvac.Fan.FanSpeed result = hvac.VehicleRemoteHvac.Fan.FanSpeed.forNumber(fanSpeed_);
+ return result == null ? hvac.VehicleRemoteHvac.Fan.FanSpeed.UNRECOGNIZED : result;
+ }
+
+ public static final int AUTO_MODE_FIELD_NUMBER = 2;
+ private boolean autoMode_ = false;
+ /**
+ * <pre>
+ * Whether the fan speed is set to automatic
+ * </pre>
+ *
+ * <code>bool auto_mode = 2;</code>
+ * @return The autoMode.
+ */
+ @java.lang.Override
+ public boolean getAutoMode() {
+ return autoMode_;
+ }
+
+ 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 (fanSpeed_ != hvac.VehicleRemoteHvac.Fan.FanSpeed.OFF.getNumber()) {
+ output.writeEnum(1, fanSpeed_);
+ }
+ if (autoMode_ != false) {
+ output.writeBool(2, autoMode_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (fanSpeed_ != hvac.VehicleRemoteHvac.Fan.FanSpeed.OFF.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, fanSpeed_);
+ }
+ if (autoMode_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, autoMode_);
+ }
+ 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 hvac.VehicleRemoteHvac.Fan)) {
+ return super.equals(obj);
+ }
+ hvac.VehicleRemoteHvac.Fan other = (hvac.VehicleRemoteHvac.Fan) obj;
+
+ if (fanSpeed_ != other.fanSpeed_) return false;
+ if (getAutoMode()
+ != other.getAutoMode()) 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) + FAN_SPEED_FIELD_NUMBER;
+ hash = (53 * hash) + fanSpeed_;
+ hash = (37 * hash) + AUTO_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAutoMode());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static hvac.VehicleRemoteHvac.Fan parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Fan parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Fan parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Fan parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Fan parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Fan parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Fan parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Fan 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 hvac.VehicleRemoteHvac.Fan parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Fan 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 hvac.VehicleRemoteHvac.Fan parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Fan 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(hvac.VehicleRemoteHvac.Fan 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>
+ * Message for Fan - used to represent the fan settings
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Fan}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:hvac.Fan)
+ hvac.VehicleRemoteHvac.FanOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Fan_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Fan_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Fan.class, hvac.VehicleRemoteHvac.Fan.Builder.class);
+ }
+
+ // Construct using hvac.VehicleRemoteHvac.Fan.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ fanSpeed_ = 0;
+ autoMode_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Fan_descriptor;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Fan getDefaultInstanceForType() {
+ return hvac.VehicleRemoteHvac.Fan.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Fan build() {
+ hvac.VehicleRemoteHvac.Fan result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Fan buildPartial() {
+ hvac.VehicleRemoteHvac.Fan result = new hvac.VehicleRemoteHvac.Fan(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(hvac.VehicleRemoteHvac.Fan result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.fanSpeed_ = fanSpeed_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.autoMode_ = autoMode_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof hvac.VehicleRemoteHvac.Fan) {
+ return mergeFrom((hvac.VehicleRemoteHvac.Fan)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(hvac.VehicleRemoteHvac.Fan other) {
+ if (other == hvac.VehicleRemoteHvac.Fan.getDefaultInstance()) return this;
+ if (other.fanSpeed_ != 0) {
+ setFanSpeedValue(other.getFanSpeedValue());
+ }
+ if (other.getAutoMode() != false) {
+ setAutoMode(other.getAutoMode());
+ }
+ 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: {
+ fanSpeed_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ autoMode_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ 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 fanSpeed_ = 0;
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @return The enum numeric value on the wire for fanSpeed.
+ */
+ @java.lang.Override public int getFanSpeedValue() {
+ return fanSpeed_;
+ }
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @param value The enum numeric value on the wire for fanSpeed to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFanSpeedValue(int value) {
+ fanSpeed_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @return The fanSpeed.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Fan.FanSpeed getFanSpeed() {
+ hvac.VehicleRemoteHvac.Fan.FanSpeed result = hvac.VehicleRemoteHvac.Fan.FanSpeed.forNumber(fanSpeed_);
+ return result == null ? hvac.VehicleRemoteHvac.Fan.FanSpeed.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @param value The fanSpeed to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFanSpeed(hvac.VehicleRemoteHvac.Fan.FanSpeed value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ fanSpeed_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The speed of the fan
+ * </pre>
+ *
+ * <code>.hvac.Fan.FanSpeed fan_speed = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearFanSpeed() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ fanSpeed_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean autoMode_ ;
+ /**
+ * <pre>
+ * Whether the fan speed is set to automatic
+ * </pre>
+ *
+ * <code>bool auto_mode = 2;</code>
+ * @return The autoMode.
+ */
+ @java.lang.Override
+ public boolean getAutoMode() {
+ return autoMode_;
+ }
+ /**
+ * <pre>
+ * Whether the fan speed is set to automatic
+ * </pre>
+ *
+ * <code>bool auto_mode = 2;</code>
+ * @param value The autoMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutoMode(boolean value) {
+
+ autoMode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Whether the fan speed is set to automatic
+ * </pre>
+ *
+ * <code>bool auto_mode = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearAutoMode() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ autoMode_ = false;
+ 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:hvac.Fan)
+ }
+
+ // @@protoc_insertion_point(class_scope:hvac.Fan)
+ private static final hvac.VehicleRemoteHvac.Fan DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new hvac.VehicleRemoteHvac.Fan();
+ }
+
+ public static hvac.VehicleRemoteHvac.Fan getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Fan>
+ PARSER = new com.google.protobuf.AbstractParser<Fan>() {
+ @java.lang.Override
+ public Fan 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<Fan> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Fan> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Fan getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface VentilationOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:hvac.Ventilation)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @return The enum numeric value on the wire for ventilationMode.
+ */
+ int getVentilationModeValue();
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @return The ventilationMode.
+ */
+ hvac.VehicleRemoteHvac.Ventilation.VentilationMode getVentilationMode();
+ }
+ /**
+ * <pre>
+ * Message for Ventilation - used to represent the ventilation mode
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Ventilation}
+ */
+ public static final class Ventilation extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:hvac.Ventilation)
+ VentilationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Ventilation.newBuilder() to construct.
+ private Ventilation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Ventilation() {
+ ventilationMode_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Ventilation();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Ventilation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Ventilation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Ventilation.class, hvac.VehicleRemoteHvac.Ventilation.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code hvac.Ventilation.VentilationMode}
+ */
+ public enum VentilationMode
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OFF = 0;</code>
+ */
+ OFF(0),
+ /**
+ * <code>DEFROST = 1;</code>
+ */
+ DEFROST(1),
+ /**
+ * <code>FLOOR = 2;</code>
+ */
+ FLOOR(2),
+ /**
+ * <code>BILEVEL = 3;</code>
+ */
+ BILEVEL(3),
+ /**
+ * <code>CEILING = 4;</code>
+ */
+ CEILING(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>OFF = 0;</code>
+ */
+ public static final int OFF_VALUE = 0;
+ /**
+ * <code>DEFROST = 1;</code>
+ */
+ public static final int DEFROST_VALUE = 1;
+ /**
+ * <code>FLOOR = 2;</code>
+ */
+ public static final int FLOOR_VALUE = 2;
+ /**
+ * <code>BILEVEL = 3;</code>
+ */
+ public static final int BILEVEL_VALUE = 3;
+ /**
+ * <code>CEILING = 4;</code>
+ */
+ public static final int CEILING_VALUE = 4;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static VentilationMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static VentilationMode forNumber(int value) {
+ switch (value) {
+ case 0: return OFF;
+ case 1: return DEFROST;
+ case 2: return FLOOR;
+ case 3: return BILEVEL;
+ case 4: return CEILING;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<VentilationMode>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ VentilationMode> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<VentilationMode>() {
+ public VentilationMode findValueByNumber(int number) {
+ return VentilationMode.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.Ventilation.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final VentilationMode[] VALUES = values();
+
+ public static VentilationMode valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private VentilationMode(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hvac.Ventilation.VentilationMode)
+ }
+
+ public static final int VENTILATION_MODE_FIELD_NUMBER = 1;
+ private int ventilationMode_ = 0;
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @return The enum numeric value on the wire for ventilationMode.
+ */
+ @java.lang.Override public int getVentilationModeValue() {
+ return ventilationMode_;
+ }
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @return The ventilationMode.
+ */
+ @java.lang.Override public hvac.VehicleRemoteHvac.Ventilation.VentilationMode getVentilationMode() {
+ hvac.VehicleRemoteHvac.Ventilation.VentilationMode result = hvac.VehicleRemoteHvac.Ventilation.VentilationMode.forNumber(ventilationMode_);
+ return result == null ? hvac.VehicleRemoteHvac.Ventilation.VentilationMode.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (ventilationMode_ != hvac.VehicleRemoteHvac.Ventilation.VentilationMode.OFF.getNumber()) {
+ output.writeEnum(1, ventilationMode_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (ventilationMode_ != hvac.VehicleRemoteHvac.Ventilation.VentilationMode.OFF.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, ventilationMode_);
+ }
+ 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 hvac.VehicleRemoteHvac.Ventilation)) {
+ return super.equals(obj);
+ }
+ hvac.VehicleRemoteHvac.Ventilation other = (hvac.VehicleRemoteHvac.Ventilation) obj;
+
+ if (ventilationMode_ != other.ventilationMode_) 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) + VENTILATION_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + ventilationMode_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static hvac.VehicleRemoteHvac.Ventilation parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation 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 hvac.VehicleRemoteHvac.Ventilation parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation 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 hvac.VehicleRemoteHvac.Ventilation parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Ventilation 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(hvac.VehicleRemoteHvac.Ventilation 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>
+ * Message for Ventilation - used to represent the ventilation mode
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Ventilation}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:hvac.Ventilation)
+ hvac.VehicleRemoteHvac.VentilationOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Ventilation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Ventilation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Ventilation.class, hvac.VehicleRemoteHvac.Ventilation.Builder.class);
+ }
+
+ // Construct using hvac.VehicleRemoteHvac.Ventilation.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ ventilationMode_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Ventilation_descriptor;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Ventilation getDefaultInstanceForType() {
+ return hvac.VehicleRemoteHvac.Ventilation.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Ventilation build() {
+ hvac.VehicleRemoteHvac.Ventilation result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Ventilation buildPartial() {
+ hvac.VehicleRemoteHvac.Ventilation result = new hvac.VehicleRemoteHvac.Ventilation(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(hvac.VehicleRemoteHvac.Ventilation result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.ventilationMode_ = ventilationMode_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof hvac.VehicleRemoteHvac.Ventilation) {
+ return mergeFrom((hvac.VehicleRemoteHvac.Ventilation)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(hvac.VehicleRemoteHvac.Ventilation other) {
+ if (other == hvac.VehicleRemoteHvac.Ventilation.getDefaultInstance()) return this;
+ if (other.ventilationMode_ != 0) {
+ setVentilationModeValue(other.getVentilationModeValue());
+ }
+ 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: {
+ ventilationMode_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ 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 ventilationMode_ = 0;
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @return The enum numeric value on the wire for ventilationMode.
+ */
+ @java.lang.Override public int getVentilationModeValue() {
+ return ventilationMode_;
+ }
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @param value The enum numeric value on the wire for ventilationMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVentilationModeValue(int value) {
+ ventilationMode_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @return The ventilationMode.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Ventilation.VentilationMode getVentilationMode() {
+ hvac.VehicleRemoteHvac.Ventilation.VentilationMode result = hvac.VehicleRemoteHvac.Ventilation.VentilationMode.forNumber(ventilationMode_);
+ return result == null ? hvac.VehicleRemoteHvac.Ventilation.VentilationMode.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @param value The ventilationMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVentilationMode(hvac.VehicleRemoteHvac.Ventilation.VentilationMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ ventilationMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The mode of ventilation
+ * </pre>
+ *
+ * <code>.hvac.Ventilation.VentilationMode ventilation_mode = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearVentilationMode() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ventilationMode_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:hvac.Ventilation)
+ }
+
+ // @@protoc_insertion_point(class_scope:hvac.Ventilation)
+ private static final hvac.VehicleRemoteHvac.Ventilation DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new hvac.VehicleRemoteHvac.Ventilation();
+ }
+
+ public static hvac.VehicleRemoteHvac.Ventilation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Ventilation>
+ PARSER = new com.google.protobuf.AbstractParser<Ventilation>() {
+ @java.lang.Override
+ public Ventilation 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<Ventilation> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Ventilation> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Ventilation getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditioningOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:hvac.Preconditioning)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @return The enum numeric value on the wire for preconditioningStatus.
+ */
+ int getPreconditioningStatusValue();
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @return The preconditioningStatus.
+ */
+ hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus getPreconditioningStatus();
+ }
+ /**
+ * <pre>
+ * Message for Preconditioning - used to represent the preconditioning status
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Preconditioning}
+ */
+ public static final class Preconditioning extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:hvac.Preconditioning)
+ PreconditioningOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Preconditioning.newBuilder() to construct.
+ private Preconditioning(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Preconditioning() {
+ preconditioningStatus_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Preconditioning();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Preconditioning_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Preconditioning_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Preconditioning.class, hvac.VehicleRemoteHvac.Preconditioning.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code hvac.Preconditioning.PreconditioningStatus}
+ */
+ public enum PreconditioningStatus
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OFF = 0;</code>
+ */
+ OFF(0),
+ /**
+ * <code>ON = 1;</code>
+ */
+ ON(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>OFF = 0;</code>
+ */
+ public static final int OFF_VALUE = 0;
+ /**
+ * <code>ON = 1;</code>
+ */
+ public static final int ON_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static PreconditioningStatus valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static PreconditioningStatus forNumber(int value) {
+ switch (value) {
+ case 0: return OFF;
+ case 1: return ON;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<PreconditioningStatus>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ PreconditioningStatus> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<PreconditioningStatus>() {
+ public PreconditioningStatus findValueByNumber(int number) {
+ return PreconditioningStatus.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.Preconditioning.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final PreconditioningStatus[] VALUES = values();
+
+ public static PreconditioningStatus valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private PreconditioningStatus(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hvac.Preconditioning.PreconditioningStatus)
+ }
+
+ public static final int PRECONDITIONING_STATUS_FIELD_NUMBER = 1;
+ private int preconditioningStatus_ = 0;
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @return The enum numeric value on the wire for preconditioningStatus.
+ */
+ @java.lang.Override public int getPreconditioningStatusValue() {
+ return preconditioningStatus_;
+ }
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @return The preconditioningStatus.
+ */
+ @java.lang.Override public hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus getPreconditioningStatus() {
+ hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus result = hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus.forNumber(preconditioningStatus_);
+ return result == null ? hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (preconditioningStatus_ != hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus.OFF.getNumber()) {
+ output.writeEnum(1, preconditioningStatus_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (preconditioningStatus_ != hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus.OFF.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, preconditioningStatus_);
+ }
+ 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 hvac.VehicleRemoteHvac.Preconditioning)) {
+ return super.equals(obj);
+ }
+ hvac.VehicleRemoteHvac.Preconditioning other = (hvac.VehicleRemoteHvac.Preconditioning) obj;
+
+ if (preconditioningStatus_ != other.preconditioningStatus_) 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) + PRECONDITIONING_STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + preconditioningStatus_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static hvac.VehicleRemoteHvac.Preconditioning parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning 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 hvac.VehicleRemoteHvac.Preconditioning parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning 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 hvac.VehicleRemoteHvac.Preconditioning parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.Preconditioning 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(hvac.VehicleRemoteHvac.Preconditioning 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>
+ * Message for Preconditioning - used to represent the preconditioning status
+ * </pre>
+ *
+ * Protobuf type {@code hvac.Preconditioning}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:hvac.Preconditioning)
+ hvac.VehicleRemoteHvac.PreconditioningOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Preconditioning_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Preconditioning_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.Preconditioning.class, hvac.VehicleRemoteHvac.Preconditioning.Builder.class);
+ }
+
+ // Construct using hvac.VehicleRemoteHvac.Preconditioning.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ preconditioningStatus_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_Preconditioning_descriptor;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Preconditioning getDefaultInstanceForType() {
+ return hvac.VehicleRemoteHvac.Preconditioning.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Preconditioning build() {
+ hvac.VehicleRemoteHvac.Preconditioning result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Preconditioning buildPartial() {
+ hvac.VehicleRemoteHvac.Preconditioning result = new hvac.VehicleRemoteHvac.Preconditioning(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(hvac.VehicleRemoteHvac.Preconditioning result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.preconditioningStatus_ = preconditioningStatus_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof hvac.VehicleRemoteHvac.Preconditioning) {
+ return mergeFrom((hvac.VehicleRemoteHvac.Preconditioning)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(hvac.VehicleRemoteHvac.Preconditioning other) {
+ if (other == hvac.VehicleRemoteHvac.Preconditioning.getDefaultInstance()) return this;
+ if (other.preconditioningStatus_ != 0) {
+ setPreconditioningStatusValue(other.getPreconditioningStatusValue());
+ }
+ 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: {
+ preconditioningStatus_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ 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 preconditioningStatus_ = 0;
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @return The enum numeric value on the wire for preconditioningStatus.
+ */
+ @java.lang.Override public int getPreconditioningStatusValue() {
+ return preconditioningStatus_;
+ }
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @param value The enum numeric value on the wire for preconditioningStatus to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreconditioningStatusValue(int value) {
+ preconditioningStatus_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @return The preconditioningStatus.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus getPreconditioningStatus() {
+ hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus result = hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus.forNumber(preconditioningStatus_);
+ return result == null ? hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @param value The preconditioningStatus to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreconditioningStatus(hvac.VehicleRemoteHvac.Preconditioning.PreconditioningStatus value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ preconditioningStatus_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The status of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning.PreconditioningStatus preconditioning_status = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearPreconditioningStatus() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ preconditioningStatus_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:hvac.Preconditioning)
+ }
+
+ // @@protoc_insertion_point(class_scope:hvac.Preconditioning)
+ private static final hvac.VehicleRemoteHvac.Preconditioning DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new hvac.VehicleRemoteHvac.Preconditioning();
+ }
+
+ public static hvac.VehicleRemoteHvac.Preconditioning getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Preconditioning>
+ PARSER = new com.google.protobuf.AbstractParser<Preconditioning>() {
+ @java.lang.Override
+ public Preconditioning 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<Preconditioning> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Preconditioning> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Preconditioning getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditioningStateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:hvac.PreconditioningState)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @return The enum numeric value on the wire for preconditioningState.
+ */
+ int getPreconditioningStateValue();
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @return The preconditioningState.
+ */
+ hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum getPreconditioningState();
+
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @return The errorMessage.
+ */
+ java.lang.String getErrorMessage();
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @return The bytes for errorMessage.
+ */
+ com.google.protobuf.ByteString
+ getErrorMessageBytes();
+ }
+ /**
+ * <pre>
+ * Message for PreconditioningState - used to report the state of preconditioning
+ * </pre>
+ *
+ * Protobuf type {@code hvac.PreconditioningState}
+ */
+ public static final class PreconditioningState extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:hvac.PreconditioningState)
+ PreconditioningStateOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditioningState.newBuilder() to construct.
+ private PreconditioningState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditioningState() {
+ preconditioningState_ = 0;
+ errorMessage_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditioningState();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_PreconditioningState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_PreconditioningState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.PreconditioningState.class, hvac.VehicleRemoteHvac.PreconditioningState.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code hvac.PreconditioningState.PreconditioningStateEnum}
+ */
+ public enum PreconditioningStateEnum
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>INACTIVE = 0;</code>
+ */
+ INACTIVE(0),
+ /**
+ * <code>ACTIVE = 1;</code>
+ */
+ ACTIVE(1),
+ /**
+ * <code>COMPLETED = 2;</code>
+ */
+ COMPLETED(2),
+ /**
+ * <code>FAILED = 3;</code>
+ */
+ FAILED(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>INACTIVE = 0;</code>
+ */
+ public static final int INACTIVE_VALUE = 0;
+ /**
+ * <code>ACTIVE = 1;</code>
+ */
+ public static final int ACTIVE_VALUE = 1;
+ /**
+ * <code>COMPLETED = 2;</code>
+ */
+ public static final int COMPLETED_VALUE = 2;
+ /**
+ * <code>FAILED = 3;</code>
+ */
+ public static final int FAILED_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static PreconditioningStateEnum valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static PreconditioningStateEnum forNumber(int value) {
+ switch (value) {
+ case 0: return INACTIVE;
+ case 1: return ACTIVE;
+ case 2: return COMPLETED;
+ case 3: return FAILED;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<PreconditioningStateEnum>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ PreconditioningStateEnum> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<PreconditioningStateEnum>() {
+ public PreconditioningStateEnum findValueByNumber(int number) {
+ return PreconditioningStateEnum.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.PreconditioningState.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final PreconditioningStateEnum[] VALUES = values();
+
+ public static PreconditioningStateEnum valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private PreconditioningStateEnum(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hvac.PreconditioningState.PreconditioningStateEnum)
+ }
+
+ public static final int PRECONDITIONING_STATE_FIELD_NUMBER = 1;
+ private int preconditioningState_ = 0;
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @return The enum numeric value on the wire for preconditioningState.
+ */
+ @java.lang.Override public int getPreconditioningStateValue() {
+ return preconditioningState_;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @return The preconditioningState.
+ */
+ @java.lang.Override public hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum getPreconditioningState() {
+ hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum result = hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum.forNumber(preconditioningState_);
+ return result == null ? hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum.UNRECOGNIZED : result;
+ }
+
+ public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object errorMessage_ = "";
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @return The errorMessage.
+ */
+ @java.lang.Override
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ 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();
+ errorMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @return The bytes for errorMessage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ errorMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (preconditioningState_ != hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum.INACTIVE.getNumber()) {
+ output.writeEnum(1, preconditioningState_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (preconditioningState_ != hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum.INACTIVE.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, preconditioningState_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
+ }
+ 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 hvac.VehicleRemoteHvac.PreconditioningState)) {
+ return super.equals(obj);
+ }
+ hvac.VehicleRemoteHvac.PreconditioningState other = (hvac.VehicleRemoteHvac.PreconditioningState) obj;
+
+ if (preconditioningState_ != other.preconditioningState_) return false;
+ if (!getErrorMessage()
+ .equals(other.getErrorMessage())) 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) + PRECONDITIONING_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + preconditioningState_;
+ hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorMessage().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static hvac.VehicleRemoteHvac.PreconditioningState parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState 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 hvac.VehicleRemoteHvac.PreconditioningState parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState 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 hvac.VehicleRemoteHvac.PreconditioningState parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.PreconditioningState 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(hvac.VehicleRemoteHvac.PreconditioningState 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>
+ * Message for PreconditioningState - used to report the state of preconditioning
+ * </pre>
+ *
+ * Protobuf type {@code hvac.PreconditioningState}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:hvac.PreconditioningState)
+ hvac.VehicleRemoteHvac.PreconditioningStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_PreconditioningState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_PreconditioningState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.PreconditioningState.class, hvac.VehicleRemoteHvac.PreconditioningState.Builder.class);
+ }
+
+ // Construct using hvac.VehicleRemoteHvac.PreconditioningState.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ preconditioningState_ = 0;
+ errorMessage_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_PreconditioningState_descriptor;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningState getDefaultInstanceForType() {
+ return hvac.VehicleRemoteHvac.PreconditioningState.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningState build() {
+ hvac.VehicleRemoteHvac.PreconditioningState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningState buildPartial() {
+ hvac.VehicleRemoteHvac.PreconditioningState result = new hvac.VehicleRemoteHvac.PreconditioningState(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(hvac.VehicleRemoteHvac.PreconditioningState result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.preconditioningState_ = preconditioningState_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.errorMessage_ = errorMessage_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof hvac.VehicleRemoteHvac.PreconditioningState) {
+ return mergeFrom((hvac.VehicleRemoteHvac.PreconditioningState)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(hvac.VehicleRemoteHvac.PreconditioningState other) {
+ if (other == hvac.VehicleRemoteHvac.PreconditioningState.getDefaultInstance()) return this;
+ if (other.preconditioningState_ != 0) {
+ setPreconditioningStateValue(other.getPreconditioningStateValue());
+ }
+ if (!other.getErrorMessage().isEmpty()) {
+ errorMessage_ = other.errorMessage_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ preconditioningState_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ errorMessage_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int preconditioningState_ = 0;
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @return The enum numeric value on the wire for preconditioningState.
+ */
+ @java.lang.Override public int getPreconditioningStateValue() {
+ return preconditioningState_;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @param value The enum numeric value on the wire for preconditioningState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreconditioningStateValue(int value) {
+ preconditioningState_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @return The preconditioningState.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum getPreconditioningState() {
+ hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum result = hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum.forNumber(preconditioningState_);
+ return result == null ? hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @param value The preconditioningState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreconditioningState(hvac.VehicleRemoteHvac.PreconditioningState.PreconditioningStateEnum value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ preconditioningState_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState.PreconditioningStateEnum preconditioning_state = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearPreconditioningState() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ preconditioningState_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object errorMessage_ = "";
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @return The errorMessage.
+ */
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ errorMessage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @return The bytes for errorMessage.
+ */
+ public com.google.protobuf.ByteString
+ getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ errorMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @param value The errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ errorMessage_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearErrorMessage() {
+ errorMessage_ = getDefaultInstance().getErrorMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The error message, if any
+ * </pre>
+ *
+ * <code>string error_message = 2;</code>
+ * @param value The bytes for errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ errorMessage_ = value;
+ bitField0_ |= 0x00000002;
+ 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:hvac.PreconditioningState)
+ }
+
+ // @@protoc_insertion_point(class_scope:hvac.PreconditioningState)
+ private static final hvac.VehicleRemoteHvac.PreconditioningState DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new hvac.VehicleRemoteHvac.PreconditioningState();
+ }
+
+ public static hvac.VehicleRemoteHvac.PreconditioningState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditioningState>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditioningState>() {
+ @java.lang.Override
+ public PreconditioningState 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<PreconditioningState> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditioningState> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACStatusOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:hvac.HVACStatus)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ java.util.List<hvac.VehicleRemoteHvac.Zone>
+ getZonesList();
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ hvac.VehicleRemoteHvac.Zone getZones(int index);
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ int getZonesCount();
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ java.util.List<? extends hvac.VehicleRemoteHvac.ZoneOrBuilder>
+ getZonesOrBuilderList();
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ hvac.VehicleRemoteHvac.ZoneOrBuilder getZonesOrBuilder(
+ int index);
+
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ * @return Whether the fan field is set.
+ */
+ boolean hasFan();
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ * @return The fan.
+ */
+ hvac.VehicleRemoteHvac.Fan getFan();
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ hvac.VehicleRemoteHvac.FanOrBuilder getFanOrBuilder();
+
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ * @return Whether the ventilation field is set.
+ */
+ boolean hasVentilation();
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ * @return The ventilation.
+ */
+ hvac.VehicleRemoteHvac.Ventilation getVentilation();
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ hvac.VehicleRemoteHvac.VentilationOrBuilder getVentilationOrBuilder();
+
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ * @return Whether the preconditioning field is set.
+ */
+ boolean hasPreconditioning();
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ * @return The preconditioning.
+ */
+ hvac.VehicleRemoteHvac.Preconditioning getPreconditioning();
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ hvac.VehicleRemoteHvac.PreconditioningOrBuilder getPreconditioningOrBuilder();
+
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ * @return Whether the preconditioningState field is set.
+ */
+ boolean hasPreconditioningState();
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ * @return The preconditioningState.
+ */
+ hvac.VehicleRemoteHvac.PreconditioningState getPreconditioningState();
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ hvac.VehicleRemoteHvac.PreconditioningStateOrBuilder getPreconditioningStateOrBuilder();
+
+ /**
+ * <pre>
+ * Current temperature in Celsius of the cabin
+ * </pre>
+ *
+ * <code>double current_cabin_temperature_celsius = 6;</code>
+ * @return The currentCabinTemperatureCelsius.
+ */
+ double getCurrentCabinTemperatureCelsius();
+ }
+ /**
+ * <pre>
+ * Message for HVAC Status - used to represent the overall status of the HVAC system
+ * </pre>
+ *
+ * Protobuf type {@code hvac.HVACStatus}
+ */
+ public static final class HVACStatus extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:hvac.HVACStatus)
+ HVACStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACStatus.newBuilder() to construct.
+ private HVACStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACStatus() {
+ zones_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACStatus();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_HVACStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_HVACStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.HVACStatus.class, hvac.VehicleRemoteHvac.HVACStatus.Builder.class);
+ }
+
+ public static final int ZONES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List<hvac.VehicleRemoteHvac.Zone> zones_;
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<hvac.VehicleRemoteHvac.Zone> getZonesList() {
+ return zones_;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<? extends hvac.VehicleRemoteHvac.ZoneOrBuilder>
+ getZonesOrBuilderList() {
+ return zones_;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ @java.lang.Override
+ public int getZonesCount() {
+ return zones_.size();
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Zone getZones(int index) {
+ return zones_.get(index);
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.ZoneOrBuilder getZonesOrBuilder(
+ int index) {
+ return zones_.get(index);
+ }
+
+ public static final int FAN_FIELD_NUMBER = 2;
+ private hvac.VehicleRemoteHvac.Fan fan_;
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ * @return Whether the fan field is set.
+ */
+ @java.lang.Override
+ public boolean hasFan() {
+ return fan_ != null;
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ * @return The fan.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Fan getFan() {
+ return fan_ == null ? hvac.VehicleRemoteHvac.Fan.getDefaultInstance() : fan_;
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.FanOrBuilder getFanOrBuilder() {
+ return fan_ == null ? hvac.VehicleRemoteHvac.Fan.getDefaultInstance() : fan_;
+ }
+
+ public static final int VENTILATION_FIELD_NUMBER = 3;
+ private hvac.VehicleRemoteHvac.Ventilation ventilation_;
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ * @return Whether the ventilation field is set.
+ */
+ @java.lang.Override
+ public boolean hasVentilation() {
+ return ventilation_ != null;
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ * @return The ventilation.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Ventilation getVentilation() {
+ return ventilation_ == null ? hvac.VehicleRemoteHvac.Ventilation.getDefaultInstance() : ventilation_;
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.VentilationOrBuilder getVentilationOrBuilder() {
+ return ventilation_ == null ? hvac.VehicleRemoteHvac.Ventilation.getDefaultInstance() : ventilation_;
+ }
+
+ public static final int PRECONDITIONING_FIELD_NUMBER = 4;
+ private hvac.VehicleRemoteHvac.Preconditioning preconditioning_;
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ * @return Whether the preconditioning field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreconditioning() {
+ return preconditioning_ != null;
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ * @return The preconditioning.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.Preconditioning getPreconditioning() {
+ return preconditioning_ == null ? hvac.VehicleRemoteHvac.Preconditioning.getDefaultInstance() : preconditioning_;
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningOrBuilder getPreconditioningOrBuilder() {
+ return preconditioning_ == null ? hvac.VehicleRemoteHvac.Preconditioning.getDefaultInstance() : preconditioning_;
+ }
+
+ public static final int PRECONDITIONING_STATE_FIELD_NUMBER = 5;
+ private hvac.VehicleRemoteHvac.PreconditioningState preconditioningState_;
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ * @return Whether the preconditioningState field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreconditioningState() {
+ return preconditioningState_ != null;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ * @return The preconditioningState.
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningState getPreconditioningState() {
+ return preconditioningState_ == null ? hvac.VehicleRemoteHvac.PreconditioningState.getDefaultInstance() : preconditioningState_;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.PreconditioningStateOrBuilder getPreconditioningStateOrBuilder() {
+ return preconditioningState_ == null ? hvac.VehicleRemoteHvac.PreconditioningState.getDefaultInstance() : preconditioningState_;
+ }
+
+ public static final int CURRENT_CABIN_TEMPERATURE_CELSIUS_FIELD_NUMBER = 6;
+ private double currentCabinTemperatureCelsius_ = 0D;
+ /**
+ * <pre>
+ * Current temperature in Celsius of the cabin
+ * </pre>
+ *
+ * <code>double current_cabin_temperature_celsius = 6;</code>
+ * @return The currentCabinTemperatureCelsius.
+ */
+ @java.lang.Override
+ public double getCurrentCabinTemperatureCelsius() {
+ return currentCabinTemperatureCelsius_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < zones_.size(); i++) {
+ output.writeMessage(1, zones_.get(i));
+ }
+ if (fan_ != null) {
+ output.writeMessage(2, getFan());
+ }
+ if (ventilation_ != null) {
+ output.writeMessage(3, getVentilation());
+ }
+ if (preconditioning_ != null) {
+ output.writeMessage(4, getPreconditioning());
+ }
+ if (preconditioningState_ != null) {
+ output.writeMessage(5, getPreconditioningState());
+ }
+ if (java.lang.Double.doubleToRawLongBits(currentCabinTemperatureCelsius_) != 0) {
+ output.writeDouble(6, currentCabinTemperatureCelsius_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < zones_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, zones_.get(i));
+ }
+ if (fan_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getFan());
+ }
+ if (ventilation_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getVentilation());
+ }
+ if (preconditioning_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getPreconditioning());
+ }
+ if (preconditioningState_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getPreconditioningState());
+ }
+ if (java.lang.Double.doubleToRawLongBits(currentCabinTemperatureCelsius_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(6, currentCabinTemperatureCelsius_);
+ }
+ 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 hvac.VehicleRemoteHvac.HVACStatus)) {
+ return super.equals(obj);
+ }
+ hvac.VehicleRemoteHvac.HVACStatus other = (hvac.VehicleRemoteHvac.HVACStatus) obj;
+
+ if (!getZonesList()
+ .equals(other.getZonesList())) return false;
+ if (hasFan() != other.hasFan()) return false;
+ if (hasFan()) {
+ if (!getFan()
+ .equals(other.getFan())) return false;
+ }
+ if (hasVentilation() != other.hasVentilation()) return false;
+ if (hasVentilation()) {
+ if (!getVentilation()
+ .equals(other.getVentilation())) return false;
+ }
+ if (hasPreconditioning() != other.hasPreconditioning()) return false;
+ if (hasPreconditioning()) {
+ if (!getPreconditioning()
+ .equals(other.getPreconditioning())) return false;
+ }
+ if (hasPreconditioningState() != other.hasPreconditioningState()) return false;
+ if (hasPreconditioningState()) {
+ if (!getPreconditioningState()
+ .equals(other.getPreconditioningState())) return false;
+ }
+ if (java.lang.Double.doubleToLongBits(getCurrentCabinTemperatureCelsius())
+ != java.lang.Double.doubleToLongBits(
+ other.getCurrentCabinTemperatureCelsius())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getZonesCount() > 0) {
+ hash = (37 * hash) + ZONES_FIELD_NUMBER;
+ hash = (53 * hash) + getZonesList().hashCode();
+ }
+ if (hasFan()) {
+ hash = (37 * hash) + FAN_FIELD_NUMBER;
+ hash = (53 * hash) + getFan().hashCode();
+ }
+ if (hasVentilation()) {
+ hash = (37 * hash) + VENTILATION_FIELD_NUMBER;
+ hash = (53 * hash) + getVentilation().hashCode();
+ }
+ if (hasPreconditioning()) {
+ hash = (37 * hash) + PRECONDITIONING_FIELD_NUMBER;
+ hash = (53 * hash) + getPreconditioning().hashCode();
+ }
+ if (hasPreconditioningState()) {
+ hash = (37 * hash) + PRECONDITIONING_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + getPreconditioningState().hashCode();
+ }
+ hash = (37 * hash) + CURRENT_CABIN_TEMPERATURE_CELSIUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getCurrentCabinTemperatureCelsius()));
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static hvac.VehicleRemoteHvac.HVACStatus parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus 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 hvac.VehicleRemoteHvac.HVACStatus parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus 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 hvac.VehicleRemoteHvac.HVACStatus parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static hvac.VehicleRemoteHvac.HVACStatus 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(hvac.VehicleRemoteHvac.HVACStatus 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>
+ * Message for HVAC Status - used to represent the overall status of the HVAC system
+ * </pre>
+ *
+ * Protobuf type {@code hvac.HVACStatus}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:hvac.HVACStatus)
+ hvac.VehicleRemoteHvac.HVACStatusOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_HVACStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_HVACStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ hvac.VehicleRemoteHvac.HVACStatus.class, hvac.VehicleRemoteHvac.HVACStatus.Builder.class);
+ }
+
+ // Construct using hvac.VehicleRemoteHvac.HVACStatus.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (zonesBuilder_ == null) {
+ zones_ = java.util.Collections.emptyList();
+ } else {
+ zones_ = null;
+ zonesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ fan_ = null;
+ if (fanBuilder_ != null) {
+ fanBuilder_.dispose();
+ fanBuilder_ = null;
+ }
+ ventilation_ = null;
+ if (ventilationBuilder_ != null) {
+ ventilationBuilder_.dispose();
+ ventilationBuilder_ = null;
+ }
+ preconditioning_ = null;
+ if (preconditioningBuilder_ != null) {
+ preconditioningBuilder_.dispose();
+ preconditioningBuilder_ = null;
+ }
+ preconditioningState_ = null;
+ if (preconditioningStateBuilder_ != null) {
+ preconditioningStateBuilder_.dispose();
+ preconditioningStateBuilder_ = null;
+ }
+ currentCabinTemperatureCelsius_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return hvac.VehicleRemoteHvac.internal_static_hvac_HVACStatus_descriptor;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.HVACStatus getDefaultInstanceForType() {
+ return hvac.VehicleRemoteHvac.HVACStatus.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.HVACStatus build() {
+ hvac.VehicleRemoteHvac.HVACStatus result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.HVACStatus buildPartial() {
+ hvac.VehicleRemoteHvac.HVACStatus result = new hvac.VehicleRemoteHvac.HVACStatus(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(hvac.VehicleRemoteHvac.HVACStatus result) {
+ if (zonesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ zones_ = java.util.Collections.unmodifiableList(zones_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.zones_ = zones_;
+ } else {
+ result.zones_ = zonesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(hvac.VehicleRemoteHvac.HVACStatus result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.fan_ = fanBuilder_ == null
+ ? fan_
+ : fanBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.ventilation_ = ventilationBuilder_ == null
+ ? ventilation_
+ : ventilationBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.preconditioning_ = preconditioningBuilder_ == null
+ ? preconditioning_
+ : preconditioningBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.preconditioningState_ = preconditioningStateBuilder_ == null
+ ? preconditioningState_
+ : preconditioningStateBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.currentCabinTemperatureCelsius_ = currentCabinTemperatureCelsius_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof hvac.VehicleRemoteHvac.HVACStatus) {
+ return mergeFrom((hvac.VehicleRemoteHvac.HVACStatus)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(hvac.VehicleRemoteHvac.HVACStatus other) {
+ if (other == hvac.VehicleRemoteHvac.HVACStatus.getDefaultInstance()) return this;
+ if (zonesBuilder_ == null) {
+ if (!other.zones_.isEmpty()) {
+ if (zones_.isEmpty()) {
+ zones_ = other.zones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureZonesIsMutable();
+ zones_.addAll(other.zones_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.zones_.isEmpty()) {
+ if (zonesBuilder_.isEmpty()) {
+ zonesBuilder_.dispose();
+ zonesBuilder_ = null;
+ zones_ = other.zones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ zonesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getZonesFieldBuilder() : null;
+ } else {
+ zonesBuilder_.addAllMessages(other.zones_);
+ }
+ }
+ }
+ if (other.hasFan()) {
+ mergeFan(other.getFan());
+ }
+ if (other.hasVentilation()) {
+ mergeVentilation(other.getVentilation());
+ }
+ if (other.hasPreconditioning()) {
+ mergePreconditioning(other.getPreconditioning());
+ }
+ if (other.hasPreconditioningState()) {
+ mergePreconditioningState(other.getPreconditioningState());
+ }
+ if (other.getCurrentCabinTemperatureCelsius() != 0D) {
+ setCurrentCabinTemperatureCelsius(other.getCurrentCabinTemperatureCelsius());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ hvac.VehicleRemoteHvac.Zone m =
+ input.readMessage(
+ hvac.VehicleRemoteHvac.Zone.parser(),
+ extensionRegistry);
+ if (zonesBuilder_ == null) {
+ ensureZonesIsMutable();
+ zones_.add(m);
+ } else {
+ zonesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getFanFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getVentilationFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getPreconditioningFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getPreconditioningStateFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 49: {
+ currentCabinTemperatureCelsius_ = input.readDouble();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 49
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<hvac.VehicleRemoteHvac.Zone> zones_ =
+ java.util.Collections.emptyList();
+ private void ensureZonesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ zones_ = new java.util.ArrayList<hvac.VehicleRemoteHvac.Zone>(zones_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Zone, hvac.VehicleRemoteHvac.Zone.Builder, hvac.VehicleRemoteHvac.ZoneOrBuilder> zonesBuilder_;
+
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public java.util.List<hvac.VehicleRemoteHvac.Zone> getZonesList() {
+ if (zonesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(zones_);
+ } else {
+ return zonesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public int getZonesCount() {
+ if (zonesBuilder_ == null) {
+ return zones_.size();
+ } else {
+ return zonesBuilder_.getCount();
+ }
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public hvac.VehicleRemoteHvac.Zone getZones(int index) {
+ if (zonesBuilder_ == null) {
+ return zones_.get(index);
+ } else {
+ return zonesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder setZones(
+ int index, hvac.VehicleRemoteHvac.Zone value) {
+ if (zonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureZonesIsMutable();
+ zones_.set(index, value);
+ onChanged();
+ } else {
+ zonesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder setZones(
+ int index, hvac.VehicleRemoteHvac.Zone.Builder builderForValue) {
+ if (zonesBuilder_ == null) {
+ ensureZonesIsMutable();
+ zones_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ zonesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder addZones(hvac.VehicleRemoteHvac.Zone value) {
+ if (zonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureZonesIsMutable();
+ zones_.add(value);
+ onChanged();
+ } else {
+ zonesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder addZones(
+ int index, hvac.VehicleRemoteHvac.Zone value) {
+ if (zonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureZonesIsMutable();
+ zones_.add(index, value);
+ onChanged();
+ } else {
+ zonesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder addZones(
+ hvac.VehicleRemoteHvac.Zone.Builder builderForValue) {
+ if (zonesBuilder_ == null) {
+ ensureZonesIsMutable();
+ zones_.add(builderForValue.build());
+ onChanged();
+ } else {
+ zonesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder addZones(
+ int index, hvac.VehicleRemoteHvac.Zone.Builder builderForValue) {
+ if (zonesBuilder_ == null) {
+ ensureZonesIsMutable();
+ zones_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ zonesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder addAllZones(
+ java.lang.Iterable<? extends hvac.VehicleRemoteHvac.Zone> values) {
+ if (zonesBuilder_ == null) {
+ ensureZonesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, zones_);
+ onChanged();
+ } else {
+ zonesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder clearZones() {
+ if (zonesBuilder_ == null) {
+ zones_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ zonesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public Builder removeZones(int index) {
+ if (zonesBuilder_ == null) {
+ ensureZonesIsMutable();
+ zones_.remove(index);
+ onChanged();
+ } else {
+ zonesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public hvac.VehicleRemoteHvac.Zone.Builder getZonesBuilder(
+ int index) {
+ return getZonesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public hvac.VehicleRemoteHvac.ZoneOrBuilder getZonesOrBuilder(
+ int index) {
+ if (zonesBuilder_ == null) {
+ return zones_.get(index); } else {
+ return zonesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public java.util.List<? extends hvac.VehicleRemoteHvac.ZoneOrBuilder>
+ getZonesOrBuilderList() {
+ if (zonesBuilder_ != null) {
+ return zonesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(zones_);
+ }
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public hvac.VehicleRemoteHvac.Zone.Builder addZonesBuilder() {
+ return getZonesFieldBuilder().addBuilder(
+ hvac.VehicleRemoteHvac.Zone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public hvac.VehicleRemoteHvac.Zone.Builder addZonesBuilder(
+ int index) {
+ return getZonesFieldBuilder().addBuilder(
+ index, hvac.VehicleRemoteHvac.Zone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * The zones of the HVAC system
+ * </pre>
+ *
+ * <code>repeated .hvac.Zone zones = 1;</code>
+ */
+ public java.util.List<hvac.VehicleRemoteHvac.Zone.Builder>
+ getZonesBuilderList() {
+ return getZonesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Zone, hvac.VehicleRemoteHvac.Zone.Builder, hvac.VehicleRemoteHvac.ZoneOrBuilder>
+ getZonesFieldBuilder() {
+ if (zonesBuilder_ == null) {
+ zonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Zone, hvac.VehicleRemoteHvac.Zone.Builder, hvac.VehicleRemoteHvac.ZoneOrBuilder>(
+ zones_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ zones_ = null;
+ }
+ return zonesBuilder_;
+ }
+
+ private hvac.VehicleRemoteHvac.Fan fan_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Fan, hvac.VehicleRemoteHvac.Fan.Builder, hvac.VehicleRemoteHvac.FanOrBuilder> fanBuilder_;
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ * @return Whether the fan field is set.
+ */
+ public boolean hasFan() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ * @return The fan.
+ */
+ public hvac.VehicleRemoteHvac.Fan getFan() {
+ if (fanBuilder_ == null) {
+ return fan_ == null ? hvac.VehicleRemoteHvac.Fan.getDefaultInstance() : fan_;
+ } else {
+ return fanBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ public Builder setFan(hvac.VehicleRemoteHvac.Fan value) {
+ if (fanBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ fan_ = value;
+ } else {
+ fanBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ public Builder setFan(
+ hvac.VehicleRemoteHvac.Fan.Builder builderForValue) {
+ if (fanBuilder_ == null) {
+ fan_ = builderForValue.build();
+ } else {
+ fanBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ public Builder mergeFan(hvac.VehicleRemoteHvac.Fan value) {
+ if (fanBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ fan_ != null &&
+ fan_ != hvac.VehicleRemoteHvac.Fan.getDefaultInstance()) {
+ getFanBuilder().mergeFrom(value);
+ } else {
+ fan_ = value;
+ }
+ } else {
+ fanBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ public Builder clearFan() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ fan_ = null;
+ if (fanBuilder_ != null) {
+ fanBuilder_.dispose();
+ fanBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ public hvac.VehicleRemoteHvac.Fan.Builder getFanBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getFanFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ public hvac.VehicleRemoteHvac.FanOrBuilder getFanOrBuilder() {
+ if (fanBuilder_ != null) {
+ return fanBuilder_.getMessageOrBuilder();
+ } else {
+ return fan_ == null ?
+ hvac.VehicleRemoteHvac.Fan.getDefaultInstance() : fan_;
+ }
+ }
+ /**
+ * <pre>
+ * The fan settings
+ * </pre>
+ *
+ * <code>.hvac.Fan fan = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Fan, hvac.VehicleRemoteHvac.Fan.Builder, hvac.VehicleRemoteHvac.FanOrBuilder>
+ getFanFieldBuilder() {
+ if (fanBuilder_ == null) {
+ fanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Fan, hvac.VehicleRemoteHvac.Fan.Builder, hvac.VehicleRemoteHvac.FanOrBuilder>(
+ getFan(),
+ getParentForChildren(),
+ isClean());
+ fan_ = null;
+ }
+ return fanBuilder_;
+ }
+
+ private hvac.VehicleRemoteHvac.Ventilation ventilation_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Ventilation, hvac.VehicleRemoteHvac.Ventilation.Builder, hvac.VehicleRemoteHvac.VentilationOrBuilder> ventilationBuilder_;
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ * @return Whether the ventilation field is set.
+ */
+ public boolean hasVentilation() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ * @return The ventilation.
+ */
+ public hvac.VehicleRemoteHvac.Ventilation getVentilation() {
+ if (ventilationBuilder_ == null) {
+ return ventilation_ == null ? hvac.VehicleRemoteHvac.Ventilation.getDefaultInstance() : ventilation_;
+ } else {
+ return ventilationBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ public Builder setVentilation(hvac.VehicleRemoteHvac.Ventilation value) {
+ if (ventilationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ventilation_ = value;
+ } else {
+ ventilationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ public Builder setVentilation(
+ hvac.VehicleRemoteHvac.Ventilation.Builder builderForValue) {
+ if (ventilationBuilder_ == null) {
+ ventilation_ = builderForValue.build();
+ } else {
+ ventilationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ public Builder mergeVentilation(hvac.VehicleRemoteHvac.Ventilation value) {
+ if (ventilationBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ ventilation_ != null &&
+ ventilation_ != hvac.VehicleRemoteHvac.Ventilation.getDefaultInstance()) {
+ getVentilationBuilder().mergeFrom(value);
+ } else {
+ ventilation_ = value;
+ }
+ } else {
+ ventilationBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ public Builder clearVentilation() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ventilation_ = null;
+ if (ventilationBuilder_ != null) {
+ ventilationBuilder_.dispose();
+ ventilationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ public hvac.VehicleRemoteHvac.Ventilation.Builder getVentilationBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getVentilationFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ public hvac.VehicleRemoteHvac.VentilationOrBuilder getVentilationOrBuilder() {
+ if (ventilationBuilder_ != null) {
+ return ventilationBuilder_.getMessageOrBuilder();
+ } else {
+ return ventilation_ == null ?
+ hvac.VehicleRemoteHvac.Ventilation.getDefaultInstance() : ventilation_;
+ }
+ }
+ /**
+ * <pre>
+ * The ventilation mode
+ * </pre>
+ *
+ * <code>.hvac.Ventilation ventilation = 3;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Ventilation, hvac.VehicleRemoteHvac.Ventilation.Builder, hvac.VehicleRemoteHvac.VentilationOrBuilder>
+ getVentilationFieldBuilder() {
+ if (ventilationBuilder_ == null) {
+ ventilationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Ventilation, hvac.VehicleRemoteHvac.Ventilation.Builder, hvac.VehicleRemoteHvac.VentilationOrBuilder>(
+ getVentilation(),
+ getParentForChildren(),
+ isClean());
+ ventilation_ = null;
+ }
+ return ventilationBuilder_;
+ }
+
+ private hvac.VehicleRemoteHvac.Preconditioning preconditioning_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Preconditioning, hvac.VehicleRemoteHvac.Preconditioning.Builder, hvac.VehicleRemoteHvac.PreconditioningOrBuilder> preconditioningBuilder_;
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ * @return Whether the preconditioning field is set.
+ */
+ public boolean hasPreconditioning() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ * @return The preconditioning.
+ */
+ public hvac.VehicleRemoteHvac.Preconditioning getPreconditioning() {
+ if (preconditioningBuilder_ == null) {
+ return preconditioning_ == null ? hvac.VehicleRemoteHvac.Preconditioning.getDefaultInstance() : preconditioning_;
+ } else {
+ return preconditioningBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ public Builder setPreconditioning(hvac.VehicleRemoteHvac.Preconditioning value) {
+ if (preconditioningBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ preconditioning_ = value;
+ } else {
+ preconditioningBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ public Builder setPreconditioning(
+ hvac.VehicleRemoteHvac.Preconditioning.Builder builderForValue) {
+ if (preconditioningBuilder_ == null) {
+ preconditioning_ = builderForValue.build();
+ } else {
+ preconditioningBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ public Builder mergePreconditioning(hvac.VehicleRemoteHvac.Preconditioning value) {
+ if (preconditioningBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ preconditioning_ != null &&
+ preconditioning_ != hvac.VehicleRemoteHvac.Preconditioning.getDefaultInstance()) {
+ getPreconditioningBuilder().mergeFrom(value);
+ } else {
+ preconditioning_ = value;
+ }
+ } else {
+ preconditioningBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ public Builder clearPreconditioning() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ preconditioning_ = null;
+ if (preconditioningBuilder_ != null) {
+ preconditioningBuilder_.dispose();
+ preconditioningBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ public hvac.VehicleRemoteHvac.Preconditioning.Builder getPreconditioningBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getPreconditioningFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ public hvac.VehicleRemoteHvac.PreconditioningOrBuilder getPreconditioningOrBuilder() {
+ if (preconditioningBuilder_ != null) {
+ return preconditioningBuilder_.getMessageOrBuilder();
+ } else {
+ return preconditioning_ == null ?
+ hvac.VehicleRemoteHvac.Preconditioning.getDefaultInstance() : preconditioning_;
+ }
+ }
+ /**
+ * <pre>
+ * The preconditioning status
+ * </pre>
+ *
+ * <code>.hvac.Preconditioning preconditioning = 4;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Preconditioning, hvac.VehicleRemoteHvac.Preconditioning.Builder, hvac.VehicleRemoteHvac.PreconditioningOrBuilder>
+ getPreconditioningFieldBuilder() {
+ if (preconditioningBuilder_ == null) {
+ preconditioningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.Preconditioning, hvac.VehicleRemoteHvac.Preconditioning.Builder, hvac.VehicleRemoteHvac.PreconditioningOrBuilder>(
+ getPreconditioning(),
+ getParentForChildren(),
+ isClean());
+ preconditioning_ = null;
+ }
+ return preconditioningBuilder_;
+ }
+
+ private hvac.VehicleRemoteHvac.PreconditioningState preconditioningState_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.PreconditioningState, hvac.VehicleRemoteHvac.PreconditioningState.Builder, hvac.VehicleRemoteHvac.PreconditioningStateOrBuilder> preconditioningStateBuilder_;
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ * @return Whether the preconditioningState field is set.
+ */
+ public boolean hasPreconditioningState() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ * @return The preconditioningState.
+ */
+ public hvac.VehicleRemoteHvac.PreconditioningState getPreconditioningState() {
+ if (preconditioningStateBuilder_ == null) {
+ return preconditioningState_ == null ? hvac.VehicleRemoteHvac.PreconditioningState.getDefaultInstance() : preconditioningState_;
+ } else {
+ return preconditioningStateBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ public Builder setPreconditioningState(hvac.VehicleRemoteHvac.PreconditioningState value) {
+ if (preconditioningStateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ preconditioningState_ = value;
+ } else {
+ preconditioningStateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ public Builder setPreconditioningState(
+ hvac.VehicleRemoteHvac.PreconditioningState.Builder builderForValue) {
+ if (preconditioningStateBuilder_ == null) {
+ preconditioningState_ = builderForValue.build();
+ } else {
+ preconditioningStateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ public Builder mergePreconditioningState(hvac.VehicleRemoteHvac.PreconditioningState value) {
+ if (preconditioningStateBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ preconditioningState_ != null &&
+ preconditioningState_ != hvac.VehicleRemoteHvac.PreconditioningState.getDefaultInstance()) {
+ getPreconditioningStateBuilder().mergeFrom(value);
+ } else {
+ preconditioningState_ = value;
+ }
+ } else {
+ preconditioningStateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ public Builder clearPreconditioningState() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ preconditioningState_ = null;
+ if (preconditioningStateBuilder_ != null) {
+ preconditioningStateBuilder_.dispose();
+ preconditioningStateBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ public hvac.VehicleRemoteHvac.PreconditioningState.Builder getPreconditioningStateBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getPreconditioningStateFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ public hvac.VehicleRemoteHvac.PreconditioningStateOrBuilder getPreconditioningStateOrBuilder() {
+ if (preconditioningStateBuilder_ != null) {
+ return preconditioningStateBuilder_.getMessageOrBuilder();
+ } else {
+ return preconditioningState_ == null ?
+ hvac.VehicleRemoteHvac.PreconditioningState.getDefaultInstance() : preconditioningState_;
+ }
+ }
+ /**
+ * <pre>
+ * The state of preconditioning
+ * </pre>
+ *
+ * <code>.hvac.PreconditioningState preconditioning_state = 5;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.PreconditioningState, hvac.VehicleRemoteHvac.PreconditioningState.Builder, hvac.VehicleRemoteHvac.PreconditioningStateOrBuilder>
+ getPreconditioningStateFieldBuilder() {
+ if (preconditioningStateBuilder_ == null) {
+ preconditioningStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ hvac.VehicleRemoteHvac.PreconditioningState, hvac.VehicleRemoteHvac.PreconditioningState.Builder, hvac.VehicleRemoteHvac.PreconditioningStateOrBuilder>(
+ getPreconditioningState(),
+ getParentForChildren(),
+ isClean());
+ preconditioningState_ = null;
+ }
+ return preconditioningStateBuilder_;
+ }
+
+ private double currentCabinTemperatureCelsius_ ;
+ /**
+ * <pre>
+ * Current temperature in Celsius of the cabin
+ * </pre>
+ *
+ * <code>double current_cabin_temperature_celsius = 6;</code>
+ * @return The currentCabinTemperatureCelsius.
+ */
+ @java.lang.Override
+ public double getCurrentCabinTemperatureCelsius() {
+ return currentCabinTemperatureCelsius_;
+ }
+ /**
+ * <pre>
+ * Current temperature in Celsius of the cabin
+ * </pre>
+ *
+ * <code>double current_cabin_temperature_celsius = 6;</code>
+ * @param value The currentCabinTemperatureCelsius to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCurrentCabinTemperatureCelsius(double value) {
+
+ currentCabinTemperatureCelsius_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current temperature in Celsius of the cabin
+ * </pre>
+ *
+ * <code>double current_cabin_temperature_celsius = 6;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearCurrentCabinTemperatureCelsius() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ currentCabinTemperatureCelsius_ = 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:hvac.HVACStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:hvac.HVACStatus)
+ private static final hvac.VehicleRemoteHvac.HVACStatus DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new hvac.VehicleRemoteHvac.HVACStatus();
+ }
+
+ public static hvac.VehicleRemoteHvac.HVACStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACStatus>
+ PARSER = new com.google.protobuf.AbstractParser<HVACStatus>() {
+ @java.lang.Override
+ public HVACStatus 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<HVACStatus> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACStatus> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public hvac.VehicleRemoteHvac.HVACStatus getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_hvac_Zone_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_hvac_Zone_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_hvac_Fan_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_hvac_Fan_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_hvac_Ventilation_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_hvac_Ventilation_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_hvac_Preconditioning_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_hvac_Preconditioning_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_hvac_PreconditioningState_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_hvac_PreconditioningState_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_hvac_HVACStatus_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_hvac_HVACStatus_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/VehicleRemoteHvac.proto\022\004hvac" +
+ "\"\227\001\n\004Zone\022&\n\tzone_type\030\001 \001(\0162\023.hvac.Zone" +
+ ".ZoneType\022#\n\033desired_temperature_celsius" +
+ "\030\002 \001(\001\022\021\n\tauto_mode\030\003 \001(\010\"/\n\010ZoneType\022\n\n" +
+ "\006DRIVER\020\000\022\r\n\tPASSENGER\020\001\022\010\n\004REAR\020\002\"s\n\003Fa" +
+ "n\022%\n\tfan_speed\030\001 \001(\0162\022.hvac.Fan.FanSpeed" +
+ "\022\021\n\tauto_mode\030\002 \001(\010\"2\n\010FanSpeed\022\007\n\003OFF\020\000" +
+ "\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003\"\230\001\n\013Vent" +
+ "ilation\022;\n\020ventilation_mode\030\001 \001(\0162!.hvac" +
+ ".Ventilation.VentilationMode\"L\n\017Ventilat" +
+ "ionMode\022\007\n\003OFF\020\000\022\013\n\007DEFROST\020\001\022\t\n\005FLOOR\020\002" +
+ "\022\013\n\007BILEVEL\020\003\022\013\n\007CEILING\020\004\"\210\001\n\017Precondit" +
+ "ioning\022K\n\026preconditioning_status\030\001 \001(\0162+" +
+ ".hvac.Preconditioning.PreconditioningSta" +
+ "tus\"(\n\025PreconditioningStatus\022\007\n\003OFF\020\000\022\006\n" +
+ "\002ON\020\001\"\322\001\n\024PreconditioningState\022R\n\025precon" +
+ "ditioning_state\030\001 \001(\01623.hvac.Preconditio" +
+ "ningState.PreconditioningStateEnum\022\025\n\rer" +
+ "ror_message\030\002 \001(\t\"O\n\030PreconditioningStat" +
+ "eEnum\022\014\n\010INACTIVE\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tCOMPL" +
+ "ETED\020\002\022\n\n\006FAILED\020\003\"\375\001\n\nHVACStatus\022\031\n\005zon" +
+ "es\030\001 \003(\0132\n.hvac.Zone\022\026\n\003fan\030\002 \001(\0132\t.hvac" +
+ ".Fan\022&\n\013ventilation\030\003 \001(\0132\021.hvac.Ventila" +
+ "tion\022.\n\017preconditioning\030\004 \001(\0132\025.hvac.Pre" +
+ "conditioning\0229\n\025preconditioning_state\030\005 " +
+ "\001(\0132\032.hvac.PreconditioningState\022)\n!curre" +
+ "nt_cabin_temperature_celsius\030\006 \001(\001b\006prot" +
+ "o3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_hvac_Zone_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_hvac_Zone_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_hvac_Zone_descriptor,
+ new java.lang.String[] { "ZoneType", "DesiredTemperatureCelsius", "AutoMode", });
+ internal_static_hvac_Fan_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_hvac_Fan_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_hvac_Fan_descriptor,
+ new java.lang.String[] { "FanSpeed", "AutoMode", });
+ internal_static_hvac_Ventilation_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_hvac_Ventilation_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_hvac_Ventilation_descriptor,
+ new java.lang.String[] { "VentilationMode", });
+ internal_static_hvac_Preconditioning_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_hvac_Preconditioning_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_hvac_Preconditioning_descriptor,
+ new java.lang.String[] { "PreconditioningStatus", });
+ internal_static_hvac_PreconditioningState_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_hvac_PreconditioningState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_hvac_PreconditioningState_descriptor,
+ new java.lang.String[] { "PreconditioningState", "ErrorMessage", });
+ internal_static_hvac_HVACStatus_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_hvac_HVACStatus_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_hvac_HVACStatus_descriptor,
+ new java.lang.String[] { "Zones", "Fan", "Ventilation", "Preconditioning", "PreconditioningState", "CurrentCabinTemperatureCelsius", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/messages/hvac/VehicleRemoteHvac.java b/src/main/java/messages/hvac/VehicleRemoteHvac.java
new file mode 100644
index 0000000..1571e29
--- /dev/null
+++ b/src/main/java/messages/hvac/VehicleRemoteHvac.java
@@ -0,0 +1,6536 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: messages/VehicleRemoteHvac.proto
+
+package messages.hvac;
+
+public final class VehicleRemoteHvac {
+ private VehicleRemoteHvac() {}
+ 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 TemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.Temperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ float getValue();
+
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ java.lang.String getUnit();
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ com.google.protobuf.ByteString
+ getUnitBytes();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.Temperature}
+ */
+ public static final class Temperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.Temperature)
+ TemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Temperature.newBuilder() to construct.
+ private Temperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private Temperature() {
+ unit_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Temperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.Temperature.class, messages.hvac.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ private float value_ = 0F;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+
+ public static final int UNIT_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ @java.lang.Override
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ 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();
+ unit_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ output.writeFloat(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (java.lang.Float.floatToRawIntBits(value_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(1, value_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_);
+ }
+ 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 messages.hvac.VehicleRemoteHvac.Temperature)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.Temperature other = (messages.hvac.VehicleRemoteHvac.Temperature) obj;
+
+ if (java.lang.Float.floatToIntBits(getValue())
+ != java.lang.Float.floatToIntBits(
+ other.getValue())) return false;
+ if (!getUnit()
+ .equals(other.getUnit())) 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) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getValue());
+ hash = (37 * hash) + UNIT_FIELD_NUMBER;
+ hash = (53 * hash) + getUnit().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature 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 messages.hvac.VehicleRemoteHvac.Temperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature 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 messages.hvac.VehicleRemoteHvac.Temperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.Temperature 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(messages.hvac.VehicleRemoteHvac.Temperature 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.hvac.Temperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.Temperature)
+ messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.Temperature.class, messages.hvac.VehicleRemoteHvac.Temperature.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.Temperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ value_ = 0F;
+ unit_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_Temperature_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature build() {
+ messages.hvac.VehicleRemoteHvac.Temperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature buildPartial() {
+ messages.hvac.VehicleRemoteHvac.Temperature result = new messages.hvac.VehicleRemoteHvac.Temperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.Temperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.unit_ = unit_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.Temperature) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.Temperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.Temperature other) {
+ if (other == messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) return this;
+ if (other.getValue() != 0F) {
+ setValue(other.getValue());
+ }
+ if (!other.getUnit().isEmpty()) {
+ unit_ = other.unit_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 13: {
+ value_ = input.readFloat();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 13
+ case 18: {
+ unit_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private float value_ ;
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return The value.
+ */
+ @java.lang.Override
+ public float getValue() {
+ return value_;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(float value) {
+
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature value
+ * </pre>
+ *
+ * <code>float value = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object unit_ = "";
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The unit.
+ */
+ public java.lang.String getUnit() {
+ java.lang.Object ref = unit_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ unit_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return The bytes for unit.
+ */
+ public com.google.protobuf.ByteString
+ getUnitBytes() {
+ java.lang.Object ref = unit_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ unit_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnit(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearUnit() {
+ unit_ = getDefaultInstance().getUnit();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Temperature unit (e.g., "Celsius", "Fahrenheit")
+ * </pre>
+ *
+ * <code>string unit = 2;</code>
+ * @param value The bytes for unit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnitBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ unit_ = value;
+ bitField0_ |= 0x00000002;
+ 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.hvac.Temperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.Temperature)
+ private static final messages.hvac.VehicleRemoteHvac.Temperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.Temperature();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.Temperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<Temperature>
+ PARSER = new com.google.protobuf.AbstractParser<Temperature>() {
+ @java.lang.Override
+ public Temperature 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<Temperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Temperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACZoneOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.HVACZone)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ int getZoneValue();
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone.Zone getZone();
+
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ boolean hasTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ messages.hvac.VehicleRemoteHvac.Temperature getTargetTemperature();
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.HVACZone}
+ */
+ public static final class HVACZone extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.HVACZone)
+ HVACZoneOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACZone.newBuilder() to construct.
+ private HVACZone(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACZone() {
+ zone_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACZone();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACZone.class, messages.hvac.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code messages.hvac.HVACZone.Zone}
+ */
+ public enum Zone
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ DRIVER(0),
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ PASSENGER(1),
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ REAR_LEFT(2),
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ REAR_RIGHT(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>DRIVER = 0;</code>
+ */
+ public static final int DRIVER_VALUE = 0;
+ /**
+ * <code>PASSENGER = 1;</code>
+ */
+ public static final int PASSENGER_VALUE = 1;
+ /**
+ * <code>REAR_LEFT = 2;</code>
+ */
+ public static final int REAR_LEFT_VALUE = 2;
+ /**
+ * <code>REAR_RIGHT = 3;</code>
+ */
+ public static final int REAR_RIGHT_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Zone valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Zone forNumber(int value) {
+ switch (value) {
+ case 0: return DRIVER;
+ case 1: return PASSENGER;
+ case 2: return REAR_LEFT;
+ case 3: return REAR_RIGHT;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Zone>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Zone> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Zone>() {
+ public Zone findValueByNumber(int number) {
+ return Zone.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.HVACZone.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Zone[] VALUES = values();
+
+ public static Zone valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Zone(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:messages.hvac.HVACZone.Zone)
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 1;
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override public messages.hvac.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ messages.hvac.VehicleRemoteHvac.HVACZone.Zone result = messages.hvac.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+
+ public static final int TARGET_TEMPERATURE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.Temperature targetTemperature_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTargetTemperature() {
+ return targetTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ return targetTemperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ return targetTemperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+
+ 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 (zone_ != messages.hvac.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ output.writeEnum(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ output.writeMessage(2, getTargetTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (zone_ != messages.hvac.VehicleRemoteHvac.HVACZone.Zone.DRIVER.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, zone_);
+ }
+ if (targetTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getTargetTemperature());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.HVACZone)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.HVACZone other = (messages.hvac.VehicleRemoteHvac.HVACZone) obj;
+
+ if (zone_ != other.zone_) return false;
+ if (hasTargetTemperature() != other.hasTargetTemperature()) return false;
+ if (hasTargetTemperature()) {
+ if (!getTargetTemperature()
+ .equals(other.getTargetTemperature())) 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) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + zone_;
+ if (hasTargetTemperature()) {
+ hash = (37 * hash) + TARGET_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone 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 messages.hvac.VehicleRemoteHvac.HVACZone parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone 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 messages.hvac.VehicleRemoteHvac.HVACZone parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACZone 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(messages.hvac.VehicleRemoteHvac.HVACZone 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.hvac.HVACZone}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.HVACZone)
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACZone.class, messages.hvac.VehicleRemoteHvac.HVACZone.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.HVACZone.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ zone_ = 0;
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACZone_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone build() {
+ messages.hvac.VehicleRemoteHvac.HVACZone result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone buildPartial() {
+ messages.hvac.VehicleRemoteHvac.HVACZone result = new messages.hvac.VehicleRemoteHvac.HVACZone(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.HVACZone result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.zone_ = zone_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.targetTemperature_ = targetTemperatureBuilder_ == null
+ ? targetTemperature_
+ : targetTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.HVACZone) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.HVACZone)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.HVACZone other) {
+ if (other == messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) return this;
+ if (other.zone_ != 0) {
+ setZoneValue(other.getZoneValue());
+ }
+ if (other.hasTargetTemperature()) {
+ mergeTargetTemperature(other.getTargetTemperature());
+ }
+ 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: {
+ zone_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getTargetTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int zone_ = 0;
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The enum numeric value on the wire for zone.
+ */
+ @java.lang.Override public int getZoneValue() {
+ return zone_;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @param value The enum numeric value on the wire for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneValue(int value) {
+ zone_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Zone getZone() {
+ messages.hvac.VehicleRemoteHvac.HVACZone.Zone result = messages.hvac.VehicleRemoteHvac.HVACZone.Zone.forNumber(zone_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACZone.Zone.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(messages.hvac.VehicleRemoteHvac.HVACZone.Zone value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ zone_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * HVAC Zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone.Zone zone = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ zone_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.Temperature targetTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder> targetTemperatureBuilder_;
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return Whether the targetTemperature field is set.
+ */
+ public boolean hasTargetTemperature() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ * @return The targetTemperature.
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature getTargetTemperature() {
+ if (targetTemperatureBuilder_ == null) {
+ return targetTemperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ } else {
+ return targetTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ targetTemperature_ = value;
+ } else {
+ targetTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder setTargetTemperature(
+ messages.hvac.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperature_ = builderForValue.build();
+ } else {
+ targetTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder mergeTargetTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (targetTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ targetTemperature_ != null &&
+ targetTemperature_ != messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTargetTemperatureBuilder().mergeFrom(value);
+ } else {
+ targetTemperature_ = value;
+ }
+ } else {
+ targetTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public Builder clearTargetTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ targetTemperature_ = null;
+ if (targetTemperatureBuilder_ != null) {
+ targetTemperatureBuilder_.dispose();
+ targetTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature.Builder getTargetTemperatureBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getTargetTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTargetTemperatureOrBuilder() {
+ if (targetTemperatureBuilder_ != null) {
+ return targetTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return targetTemperature_ == null ?
+ messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : targetTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Target temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature target_temperature = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTargetTemperatureFieldBuilder() {
+ if (targetTemperatureBuilder_ == null) {
+ targetTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTargetTemperature(),
+ getParentForChildren(),
+ isClean());
+ targetTemperature_ = null;
+ }
+ return targetTemperatureBuilder_;
+ }
+ @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.hvac.HVACZone)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACZone)
+ private static final messages.hvac.VehicleRemoteHvac.HVACZone DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.HVACZone();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACZone getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACZone>
+ PARSER = new com.google.protobuf.AbstractParser<HVACZone>() {
+ @java.lang.Override
+ public HVACZone 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<HVACZone> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACZone> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.PreconditionRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone>
+ getHvacZonesList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index);
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ int getHvacZonesCount();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ java.util.List<? extends messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList();
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index);
+
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ boolean hasStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.PreconditionRequest}
+ */
+ public static final class PreconditionRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.PreconditionRequest)
+ PreconditionRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionRequest.newBuilder() to construct.
+ private PreconditionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionRequest() {
+ hvacZones_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest.class, messages.hvac.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ public static final int HVAC_ZONES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> hvacZones_;
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public java.util.List<? extends messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ return hvacZones_;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public int getHvacZonesCount() {
+ return hvacZones_.size();
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ return hvacZones_.get(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ return hvacZones_.get(index);
+ }
+
+ public static final int START_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp startTime_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ output.writeMessage(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ output.writeMessage(2, getStartTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < hvacZones_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, hvacZones_.get(i));
+ }
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getStartTime());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.PreconditionRequest)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest other = (messages.hvac.VehicleRemoteHvac.PreconditionRequest) obj;
+
+ if (!getHvacZonesList()
+ .equals(other.getHvacZonesList())) return false;
+ if (hasStartTime() != other.hasStartTime()) return false;
+ if (hasStartTime()) {
+ if (!getStartTime()
+ .equals(other.getStartTime())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getHvacZonesCount() > 0) {
+ hash = (37 * hash) + HVAC_ZONES_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacZonesList().hashCode();
+ }
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest 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 messages.hvac.VehicleRemoteHvac.PreconditionRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest 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 messages.hvac.VehicleRemoteHvac.PreconditionRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest 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(messages.hvac.VehicleRemoteHvac.PreconditionRequest 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.hvac.PreconditionRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.PreconditionRequest)
+ messages.hvac.VehicleRemoteHvac.PreconditionRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest.class, messages.hvac.VehicleRemoteHvac.PreconditionRequest.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.PreconditionRequest.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ } else {
+ hvacZones_ = null;
+ hvacZonesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest build() {
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest buildPartial() {
+ messages.hvac.VehicleRemoteHvac.PreconditionRequest result = new messages.hvac.VehicleRemoteHvac.PreconditionRequest(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(messages.hvac.VehicleRemoteHvac.PreconditionRequest result) {
+ if (hvacZonesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = java.util.Collections.unmodifiableList(hvacZones_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.hvacZones_ = hvacZones_;
+ } else {
+ result.hvacZones_ = hvacZonesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.PreconditionRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.startTime_ = startTimeBuilder_ == null
+ ? startTime_
+ : startTimeBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.PreconditionRequest) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.PreconditionRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.PreconditionRequest other) {
+ if (other == messages.hvac.VehicleRemoteHvac.PreconditionRequest.getDefaultInstance()) return this;
+ if (hvacZonesBuilder_ == null) {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZones_.isEmpty()) {
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureHvacZonesIsMutable();
+ hvacZones_.addAll(other.hvacZones_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.hvacZones_.isEmpty()) {
+ if (hvacZonesBuilder_.isEmpty()) {
+ hvacZonesBuilder_.dispose();
+ hvacZonesBuilder_ = null;
+ hvacZones_ = other.hvacZones_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ hvacZonesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getHvacZonesFieldBuilder() : null;
+ } else {
+ hvacZonesBuilder_.addAllMessages(other.hvacZones_);
+ }
+ }
+ }
+ if (other.hasStartTime()) {
+ mergeStartTime(other.getStartTime());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ messages.hvac.VehicleRemoteHvac.HVACZone m =
+ input.readMessage(
+ messages.hvac.VehicleRemoteHvac.HVACZone.parser(),
+ extensionRegistry);
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(m);
+ } else {
+ hvacZonesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getStartTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> hvacZones_ =
+ java.util.Collections.emptyList();
+ private void ensureHvacZonesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ hvacZones_ = new java.util.ArrayList<messages.hvac.VehicleRemoteHvac.HVACZone>(hvacZones_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> hvacZonesBuilder_;
+
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone> getHvacZonesList() {
+ if (hvacZonesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ } else {
+ return hvacZonesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public int getHvacZonesCount() {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.size();
+ } else {
+ return hvacZonesBuilder_.getCount();
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone getHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index);
+ } else {
+ return hvacZonesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder setHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (hvacZonesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, value);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addHvacZones(
+ int index, messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder addAllHvacZones(
+ java.lang.Iterable<? extends messages.hvac.VehicleRemoteHvac.HVACZone> values) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, hvacZones_);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder clearHvacZones() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZones_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public Builder removeHvacZones(int index) {
+ if (hvacZonesBuilder_ == null) {
+ ensureHvacZonesIsMutable();
+ hvacZones_.remove(index);
+ onChanged();
+ } else {
+ hvacZonesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder getHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getHvacZonesOrBuilder(
+ int index) {
+ if (hvacZonesBuilder_ == null) {
+ return hvacZones_.get(index); } else {
+ return hvacZonesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<? extends messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesOrBuilderList() {
+ if (hvacZonesBuilder_ != null) {
+ return hvacZonesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(hvacZones_);
+ }
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder() {
+ return getHvacZonesFieldBuilder().addBuilder(
+ messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder addHvacZonesBuilder(
+ int index) {
+ return getHvacZonesFieldBuilder().addBuilder(
+ index, messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance());
+ }
+ /**
+ * <pre>
+ * List of HVAC zones to precondition
+ * </pre>
+ *
+ * <code>repeated .messages.hvac.HVACZone hvac_zones = 1;</code>
+ */
+ public java.util.List<messages.hvac.VehicleRemoteHvac.HVACZone.Builder>
+ getHvacZonesBuilderList() {
+ return getHvacZonesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getHvacZonesFieldBuilder() {
+ if (hvacZonesBuilder_ == null) {
+ hvacZonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ hvacZones_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ hvacZones_ = null;
+ }
+ return hvacZonesBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp startTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return Whether the startTime field is set.
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ * @return The startTime.
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder setStartTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ startTime_ != null &&
+ startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getStartTimeBuilder().mergeFrom(value);
+ } else {
+ startTime_ = value;
+ }
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public Builder clearStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ * <pre>
+ * For scheduled preconditioning, set the start_time to the desired future time.
+ * For on-demand preconditioning, leave the start_time unset.
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp start_time = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(),
+ getParentForChildren(),
+ isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+ @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.hvac.PreconditionRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionRequest)
+ private static final messages.hvac.VehicleRemoteHvac.PreconditionRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.PreconditionRequest();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionRequest>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionRequest>() {
+ @java.lang.Override
+ public PreconditionRequest 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<PreconditionRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionRequest> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PreconditionResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.PreconditionResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ int getStatusValue();
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus();
+
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.PreconditionResponse}
+ */
+ public static final class PreconditionResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.PreconditionResponse)
+ PreconditionResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PreconditionResponse.newBuilder() to construct.
+ private PreconditionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private PreconditionResponse() {
+ status_ = 0;
+ message_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PreconditionResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.class, messages.hvac.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code messages.hvac.PreconditionResponse.Status}
+ */
+ public enum Status
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ SUCCESS(0),
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ FAILURE(1),
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ PENDING(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>SUCCESS = 0;</code>
+ */
+ public static final int SUCCESS_VALUE = 0;
+ /**
+ * <code>FAILURE = 1;</code>
+ */
+ public static final int FAILURE_VALUE = 1;
+ /**
+ * <code>PENDING = 2;</code>
+ */
+ public static final int PENDING_VALUE = 2;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Status valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Status forNumber(int value) {
+ switch (value) {
+ case 0: return SUCCESS;
+ case 1: return FAILURE;
+ case 2: return PENDING;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<Status>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Status> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<Status>() {
+ public Status findValueByNumber(int number) {
+ return Status.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.PreconditionResponse.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Status[] VALUES = values();
+
+ public static Status valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Status(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:messages.hvac.PreconditionResponse.Status)
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 1;
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override public messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status result = messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ 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();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (status_ != messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ output.writeEnum(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.SUCCESS.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
+ }
+ 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 messages.hvac.VehicleRemoteHvac.PreconditionResponse)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse other = (messages.hvac.VehicleRemoteHvac.PreconditionResponse) obj;
+
+ if (status_ != other.status_) return false;
+ if (!getMessage()
+ .equals(other.getMessage())) 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) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse 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 messages.hvac.VehicleRemoteHvac.PreconditionResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse 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 messages.hvac.VehicleRemoteHvac.PreconditionResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse 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(messages.hvac.VehicleRemoteHvac.PreconditionResponse 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.hvac.PreconditionResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.PreconditionResponse)
+ messages.hvac.VehicleRemoteHvac.PreconditionResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.class, messages.hvac.VehicleRemoteHvac.PreconditionResponse.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.PreconditionResponse.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ status_ = 0;
+ message_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_PreconditionResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse build() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse buildPartial() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse result = new messages.hvac.VehicleRemoteHvac.PreconditionResponse(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.PreconditionResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.status_ = status_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.message_ = message_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.PreconditionResponse) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.PreconditionResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.PreconditionResponse other) {
+ if (other == messages.hvac.VehicleRemoteHvac.PreconditionResponse.getDefaultInstance()) return this;
+ if (other.status_ != 0) {
+ setStatusValue(other.getStatusValue());
+ }
+ if (!other.getMessage().isEmpty()) {
+ message_ = other.message_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ status_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ message_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int status_ = 0;
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The enum numeric value on the wire for status.
+ */
+ @java.lang.Override public int getStatusValue() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @param value The enum numeric value on the wire for status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatusValue(int value) {
+ status_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return The status.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status getStatus() {
+ messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status result = messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.forNumber(status_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @param value The status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatus(messages.hvac.VehicleRemoteHvac.PreconditionResponse.Status value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ status_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Status of the precondition request
+ * </pre>
+ *
+ * <code>.messages.hvac.PreconditionResponse.Status status = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString
+ getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Optional message
+ * </pre>
+ *
+ * <code>string message = 2;</code>
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000002;
+ 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.hvac.PreconditionResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.PreconditionResponse)
+ private static final messages.hvac.VehicleRemoteHvac.PreconditionResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.PreconditionResponse();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<PreconditionResponse>
+ PARSER = new com.google.protobuf.AbstractParser<PreconditionResponse>() {
+ @java.lang.Override
+ public PreconditionResponse 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<PreconditionResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreconditionResponse> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.PreconditionResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HVACStateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.HVACState)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACState.State getState();
+
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ boolean hasCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone getCurrentZone();
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.HVACState}
+ */
+ public static final class HVACState extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.HVACState)
+ HVACStateOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HVACState.newBuilder() to construct.
+ private HVACState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private HVACState() {
+ state_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HVACState();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACState.class, messages.hvac.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code messages.hvac.HVACState.State}
+ */
+ public enum State
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>OFF = 0;</code>
+ */
+ OFF(0),
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ HEATING(1),
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ COOLING(2),
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ IDLE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>OFF = 0;</code>
+ */
+ public static final int OFF_VALUE = 0;
+ /**
+ * <code>HEATING = 1;</code>
+ */
+ public static final int HEATING_VALUE = 1;
+ /**
+ * <code>COOLING = 2;</code>
+ */
+ public static final int COOLING_VALUE = 2;
+ /**
+ * <code>IDLE = 3;</code>
+ */
+ public static final int IDLE_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0: return OFF;
+ case 1: return HEATING;
+ case 2: return COOLING;
+ case 3: return IDLE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<State>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ State> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<State>() {
+ public State findValueByNumber(int number) {
+ return State.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.HVACState.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final State[] VALUES = values();
+
+ public static State valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private State(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:messages.hvac.HVACState.State)
+ }
+
+ public static final int STATE_FIELD_NUMBER = 1;
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override public messages.hvac.VehicleRemoteHvac.HVACState.State getState() {
+ messages.hvac.VehicleRemoteHvac.HVACState.State result = messages.hvac.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+
+ public static final int CURRENT_ZONE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.HVACZone currentZone_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ @java.lang.Override
+ public boolean hasCurrentZone() {
+ return currentZone_ != null;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ return currentZone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ return currentZone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+
+ 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 (state_ != messages.hvac.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (currentZone_ != null) {
+ output.writeMessage(2, getCurrentZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_ != messages.hvac.VehicleRemoteHvac.HVACState.State.OFF.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, state_);
+ }
+ if (currentZone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getCurrentZone());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.HVACState)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.HVACState other = (messages.hvac.VehicleRemoteHvac.HVACState) obj;
+
+ if (state_ != other.state_) return false;
+ if (hasCurrentZone() != other.hasCurrentZone()) return false;
+ if (hasCurrentZone()) {
+ if (!getCurrentZone()
+ .equals(other.getCurrentZone())) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasCurrentZone()) {
+ hash = (37 * hash) + CURRENT_ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getCurrentZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState 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 messages.hvac.VehicleRemoteHvac.HVACState parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState 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 messages.hvac.VehicleRemoteHvac.HVACState parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.HVACState 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(messages.hvac.VehicleRemoteHvac.HVACState 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.hvac.HVACState}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.HVACState)
+ messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.HVACState.class, messages.hvac.VehicleRemoteHvac.HVACState.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.HVACState.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ state_ = 0;
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_HVACState_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState build() {
+ messages.hvac.VehicleRemoteHvac.HVACState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState buildPartial() {
+ messages.hvac.VehicleRemoteHvac.HVACState result = new messages.hvac.VehicleRemoteHvac.HVACState(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.HVACState result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.currentZone_ = currentZoneBuilder_ == null
+ ? currentZone_
+ : currentZoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.HVACState) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.HVACState)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.HVACState other) {
+ if (other == messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance()) return this;
+ if (other.state_ != 0) {
+ setStateValue(other.getStateValue());
+ }
+ if (other.hasCurrentZone()) {
+ mergeCurrentZone(other.getCurrentZone());
+ }
+ 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: {
+ state_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getCurrentZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int state_ = 0;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override public int getStateValue() {
+ return state_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return The state.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState.State getState() {
+ messages.hvac.VehicleRemoteHvac.HVACState.State result = messages.hvac.VehicleRemoteHvac.HVACState.State.forNumber(state_);
+ return result == null ? messages.hvac.VehicleRemoteHvac.HVACState.State.UNRECOGNIZED : result;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(messages.hvac.VehicleRemoteHvac.HVACState.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState.State state = 1;</code>
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.HVACZone currentZone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> currentZoneBuilder_;
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return Whether the currentZone field is set.
+ */
+ public boolean hasCurrentZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ * @return The currentZone.
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone getCurrentZone() {
+ if (currentZoneBuilder_ == null) {
+ return currentZone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ } else {
+ return currentZoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ currentZone_ = value;
+ } else {
+ currentZoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder setCurrentZone(
+ messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (currentZoneBuilder_ == null) {
+ currentZone_ = builderForValue.build();
+ } else {
+ currentZoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder mergeCurrentZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (currentZoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ currentZone_ != null &&
+ currentZone_ != messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getCurrentZoneBuilder().mergeFrom(value);
+ } else {
+ currentZone_ = value;
+ }
+ } else {
+ currentZoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public Builder clearCurrentZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ currentZone_ = null;
+ if (currentZoneBuilder_ != null) {
+ currentZoneBuilder_.dispose();
+ currentZoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder getCurrentZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getCurrentZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getCurrentZoneOrBuilder() {
+ if (currentZoneBuilder_ != null) {
+ return currentZoneBuilder_.getMessageOrBuilder();
+ } else {
+ return currentZone_ == null ?
+ messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : currentZone_;
+ }
+ }
+ /**
+ * <pre>
+ * Current active zone
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone current_zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getCurrentZoneFieldBuilder() {
+ if (currentZoneBuilder_ == null) {
+ currentZoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getCurrentZone(),
+ getParentForChildren(),
+ isClean());
+ currentZone_ = null;
+ }
+ return currentZoneBuilder_;
+ }
+ @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.hvac.HVACState)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.HVACState)
+ private static final messages.hvac.VehicleRemoteHvac.HVACState DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.HVACState();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.HVACState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<HVACState>
+ PARSER = new com.google.protobuf.AbstractParser<HVACState>() {
+ @java.lang.Override
+ public HVACState 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<HVACState> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<HVACState> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinTemperatureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.CabinTemperature)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ messages.hvac.VehicleRemoteHvac.Temperature getTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder();
+
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ boolean hasZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZone getZone();
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.CabinTemperature}
+ */
+ public static final class CabinTemperature extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.CabinTemperature)
+ CabinTemperatureOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinTemperature.newBuilder() to construct.
+ private CabinTemperature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinTemperature() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinTemperature();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.class, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 1;
+ private messages.hvac.VehicleRemoteHvac.Temperature temperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return temperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.Temperature getTemperature() {
+ return temperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ return temperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.HVACZone zone_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ @java.lang.Override
+ public boolean hasZone() {
+ return zone_ != null;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZone getZone() {
+ return zone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ return zone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+
+ 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 (temperature_ != null) {
+ output.writeMessage(1, getTemperature());
+ }
+ if (zone_ != null) {
+ output.writeMessage(2, getZone());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (temperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getTemperature());
+ }
+ if (zone_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getZone());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.CabinTemperature)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.CabinTemperature other = (messages.hvac.VehicleRemoteHvac.CabinTemperature) obj;
+
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (!getTemperature()
+ .equals(other.getTemperature())) return false;
+ }
+ if (hasZone() != other.hasZone()) return false;
+ if (hasZone()) {
+ if (!getZone()
+ .equals(other.getZone())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getTemperature().hashCode();
+ }
+ if (hasZone()) {
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature 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 messages.hvac.VehicleRemoteHvac.CabinTemperature parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature 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 messages.hvac.VehicleRemoteHvac.CabinTemperature parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature 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(messages.hvac.VehicleRemoteHvac.CabinTemperature 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.hvac.CabinTemperature}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.CabinTemperature)
+ messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.class, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.CabinTemperature.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinTemperature_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature build() {
+ messages.hvac.VehicleRemoteHvac.CabinTemperature result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature buildPartial() {
+ messages.hvac.VehicleRemoteHvac.CabinTemperature result = new messages.hvac.VehicleRemoteHvac.CabinTemperature(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.CabinTemperature result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.temperature_ = temperatureBuilder_ == null
+ ? temperature_
+ : temperatureBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.zone_ = zoneBuilder_ == null
+ ? zone_
+ : zoneBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.CabinTemperature) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.CabinTemperature)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.CabinTemperature other) {
+ if (other == messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) return this;
+ if (other.hasTemperature()) {
+ mergeTemperature(other.getTemperature());
+ }
+ if (other.hasZone()) {
+ mergeZone(other.getZone());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getZoneFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private messages.hvac.VehicleRemoteHvac.Temperature temperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder> temperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return Whether the temperature field is set.
+ */
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ * @return The temperature.
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature getTemperature() {
+ if (temperatureBuilder_ == null) {
+ return temperature_ == null ? messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ } else {
+ return temperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ temperature_ = value;
+ } else {
+ temperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder setTemperature(
+ messages.hvac.VehicleRemoteHvac.Temperature.Builder builderForValue) {
+ if (temperatureBuilder_ == null) {
+ temperature_ = builderForValue.build();
+ } else {
+ temperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder mergeTemperature(messages.hvac.VehicleRemoteHvac.Temperature value) {
+ if (temperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ temperature_ != null &&
+ temperature_ != messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance()) {
+ getTemperatureBuilder().mergeFrom(value);
+ } else {
+ temperature_ = value;
+ }
+ } else {
+ temperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ temperature_ = null;
+ if (temperatureBuilder_ != null) {
+ temperatureBuilder_.dispose();
+ temperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.Temperature.Builder getTemperatureBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder getTemperatureOrBuilder() {
+ if (temperatureBuilder_ != null) {
+ return temperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return temperature_ == null ?
+ messages.hvac.VehicleRemoteHvac.Temperature.getDefaultInstance() : temperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.Temperature temperature = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>
+ getTemperatureFieldBuilder() {
+ if (temperatureBuilder_ == null) {
+ temperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.Temperature, messages.hvac.VehicleRemoteHvac.Temperature.Builder, messages.hvac.VehicleRemoteHvac.TemperatureOrBuilder>(
+ getTemperature(),
+ getParentForChildren(),
+ isClean());
+ temperature_ = null;
+ }
+ return temperatureBuilder_;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.HVACZone zone_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder> zoneBuilder_;
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return Whether the zone field is set.
+ */
+ public boolean hasZone() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ * @return The zone.
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone getZone() {
+ if (zoneBuilder_ == null) {
+ return zone_ == null ? messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ } else {
+ return zoneBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ zone_ = value;
+ } else {
+ zoneBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder setZone(
+ messages.hvac.VehicleRemoteHvac.HVACZone.Builder builderForValue) {
+ if (zoneBuilder_ == null) {
+ zone_ = builderForValue.build();
+ } else {
+ zoneBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder mergeZone(messages.hvac.VehicleRemoteHvac.HVACZone value) {
+ if (zoneBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ zone_ != null &&
+ zone_ != messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance()) {
+ getZoneBuilder().mergeFrom(value);
+ } else {
+ zone_ = value;
+ }
+ } else {
+ zoneBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public Builder clearZone() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ zone_ = null;
+ if (zoneBuilder_ != null) {
+ zoneBuilder_.dispose();
+ zoneBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZone.Builder getZoneBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getZoneFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder getZoneOrBuilder() {
+ if (zoneBuilder_ != null) {
+ return zoneBuilder_.getMessageOrBuilder();
+ } else {
+ return zone_ == null ?
+ messages.hvac.VehicleRemoteHvac.HVACZone.getDefaultInstance() : zone_;
+ }
+ }
+ /**
+ * <pre>
+ * Zone of the reported temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACZone zone = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>
+ getZoneFieldBuilder() {
+ if (zoneBuilder_ == null) {
+ zoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACZone, messages.hvac.VehicleRemoteHvac.HVACZone.Builder, messages.hvac.VehicleRemoteHvac.HVACZoneOrBuilder>(
+ getZone(),
+ getParentForChildren(),
+ isClean());
+ zone_ = null;
+ }
+ return zoneBuilder_;
+ }
+ @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.hvac.CabinTemperature)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinTemperature)
+ private static final messages.hvac.VehicleRemoteHvac.CabinTemperature DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.CabinTemperature();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinTemperature>
+ PARSER = new com.google.protobuf.AbstractParser<CabinTemperature>() {
+ @java.lang.Override
+ public CabinTemperature 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<CabinTemperature> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinTemperature> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CabinConditionStatusPublishOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:messages.hvac.CabinConditionStatusPublish)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ boolean hasEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ com.google.protobuf.Timestamp getEventTime();
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
+
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ boolean hasHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ messages.hvac.VehicleRemoteHvac.HVACState getHvacState();
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder();
+
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ boolean hasCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ messages.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature();
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder();
+ }
+ /**
+ * Protobuf type {@code messages.hvac.CabinConditionStatusPublish}
+ */
+ public static final class CabinConditionStatusPublish extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:messages.hvac.CabinConditionStatusPublish)
+ CabinConditionStatusPublishOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CabinConditionStatusPublish.newBuilder() to construct.
+ private CabinConditionStatusPublish(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private CabinConditionStatusPublish() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CabinConditionStatusPublish();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.class, messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ public static final int EVENT_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp eventTime_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventTime() {
+ return eventTime_ != null;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEventTime() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+
+ public static final int HVAC_STATE_FIELD_NUMBER = 2;
+ private messages.hvac.VehicleRemoteHvac.HVACState hvacState_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ @java.lang.Override
+ public boolean hasHvacState() {
+ return hvacState_ != null;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACState getHvacState() {
+ return hvacState_ == null ? messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ return hvacState_ == null ? messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+
+ public static final int CABIN_TEMPERATURE_FIELD_NUMBER = 3;
+ private messages.hvac.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasCabinTemperature() {
+ return cabinTemperature_ != null;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ return cabinTemperature_ == null ? messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ return cabinTemperature_ == null ? messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+
+ 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 (eventTime_ != null) {
+ output.writeMessage(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ output.writeMessage(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ output.writeMessage(3, getCabinTemperature());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (eventTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getEventTime());
+ }
+ if (hvacState_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getHvacState());
+ }
+ if (cabinTemperature_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getCabinTemperature());
+ }
+ 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 messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish)) {
+ return super.equals(obj);
+ }
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish other = (messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish) obj;
+
+ if (hasEventTime() != other.hasEventTime()) return false;
+ if (hasEventTime()) {
+ if (!getEventTime()
+ .equals(other.getEventTime())) return false;
+ }
+ if (hasHvacState() != other.hasHvacState()) return false;
+ if (hasHvacState()) {
+ if (!getHvacState()
+ .equals(other.getHvacState())) return false;
+ }
+ if (hasCabinTemperature() != other.hasCabinTemperature()) return false;
+ if (hasCabinTemperature()) {
+ if (!getCabinTemperature()
+ .equals(other.getCabinTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEventTime()) {
+ hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventTime().hashCode();
+ }
+ if (hasHvacState()) {
+ hash = (37 * hash) + HVAC_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + getHvacState().hashCode();
+ }
+ if (hasCabinTemperature()) {
+ hash = (37 * hash) + CABIN_TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getCabinTemperature().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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 messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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 messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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(messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish 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.hvac.CabinConditionStatusPublish}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:messages.hvac.CabinConditionStatusPublish)
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublishOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.class, messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.Builder.class);
+ }
+
+ // Construct using messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return messages.hvac.VehicleRemoteHvac.internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish build() {
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish buildPartial() {
+ messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result = new messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.eventTime_ = eventTimeBuilder_ == null
+ ? eventTime_
+ : eventTimeBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.hvacState_ = hvacStateBuilder_ == null
+ ? hvacState_
+ : hvacStateBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.cabinTemperature_ = cabinTemperatureBuilder_ == null
+ ? cabinTemperature_
+ : cabinTemperatureBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish) {
+ return mergeFrom((messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish other) {
+ if (other == messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish.getDefaultInstance()) return this;
+ if (other.hasEventTime()) {
+ mergeEventTime(other.getEventTime());
+ }
+ if (other.hasHvacState()) {
+ mergeHvacState(other.getHvacState());
+ }
+ if (other.hasCabinTemperature()) {
+ mergeCabinTemperature(other.getCabinTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getEventTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getHvacStateFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getCabinTemperatureFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Timestamp eventTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return Whether the eventTime field is set.
+ */
+ public boolean hasEventTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ * @return The eventTime.
+ */
+ public com.google.protobuf.Timestamp getEventTime() {
+ if (eventTimeBuilder_ == null) {
+ return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ } else {
+ return eventTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventTime_ = value;
+ } else {
+ eventTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder setEventTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (eventTimeBuilder_ == null) {
+ eventTime_ = builderForValue.build();
+ } else {
+ eventTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
+ if (eventTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ eventTime_ != null &&
+ eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEventTimeBuilder().mergeFrom(value);
+ } else {
+ eventTime_ = value;
+ }
+ } else {
+ eventTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public Builder clearEventTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ eventTime_ = null;
+ if (eventTimeBuilder_ != null) {
+ eventTimeBuilder_.dispose();
+ eventTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getEventTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
+ if (eventTimeBuilder_ != null) {
+ return eventTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return eventTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+ }
+ }
+ /**
+ * <pre>
+ * Time of the event
+ * </pre>
+ *
+ * <code>.google.protobuf.Timestamp event_time = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getEventTimeFieldBuilder() {
+ if (eventTimeBuilder_ == null) {
+ eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getEventTime(),
+ getParentForChildren(),
+ isClean());
+ eventTime_ = null;
+ }
+ return eventTimeBuilder_;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.HVACState hvacState_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACState, messages.hvac.VehicleRemoteHvac.HVACState.Builder, messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder> hvacStateBuilder_;
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return Whether the hvacState field is set.
+ */
+ public boolean hasHvacState() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ * @return The hvacState.
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACState getHvacState() {
+ if (hvacStateBuilder_ == null) {
+ return hvacState_ == null ? messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ } else {
+ return hvacStateBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(messages.hvac.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ hvacState_ = value;
+ } else {
+ hvacStateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder setHvacState(
+ messages.hvac.VehicleRemoteHvac.HVACState.Builder builderForValue) {
+ if (hvacStateBuilder_ == null) {
+ hvacState_ = builderForValue.build();
+ } else {
+ hvacStateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder mergeHvacState(messages.hvac.VehicleRemoteHvac.HVACState value) {
+ if (hvacStateBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ hvacState_ != null &&
+ hvacState_ != messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance()) {
+ getHvacStateBuilder().mergeFrom(value);
+ } else {
+ hvacState_ = value;
+ }
+ } else {
+ hvacStateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public Builder clearHvacState() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ hvacState_ = null;
+ if (hvacStateBuilder_ != null) {
+ hvacStateBuilder_.dispose();
+ hvacStateBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACState.Builder getHvacStateBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getHvacStateFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder getHvacStateOrBuilder() {
+ if (hvacStateBuilder_ != null) {
+ return hvacStateBuilder_.getMessageOrBuilder();
+ } else {
+ return hvacState_ == null ?
+ messages.hvac.VehicleRemoteHvac.HVACState.getDefaultInstance() : hvacState_;
+ }
+ }
+ /**
+ * <pre>
+ * Current state of the HVAC
+ * </pre>
+ *
+ * <code>.messages.hvac.HVACState hvac_state = 2;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACState, messages.hvac.VehicleRemoteHvac.HVACState.Builder, messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder>
+ getHvacStateFieldBuilder() {
+ if (hvacStateBuilder_ == null) {
+ hvacStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.HVACState, messages.hvac.VehicleRemoteHvac.HVACState.Builder, messages.hvac.VehicleRemoteHvac.HVACStateOrBuilder>(
+ getHvacState(),
+ getParentForChildren(),
+ isClean());
+ hvacState_ = null;
+ }
+ return hvacStateBuilder_;
+ }
+
+ private messages.hvac.VehicleRemoteHvac.CabinTemperature cabinTemperature_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.CabinTemperature, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder, messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder> cabinTemperatureBuilder_;
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return Whether the cabinTemperature field is set.
+ */
+ public boolean hasCabinTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ * @return The cabinTemperature.
+ */
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature getCabinTemperature() {
+ if (cabinTemperatureBuilder_ == null) {
+ return cabinTemperature_ == null ? messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ } else {
+ return cabinTemperatureBuilder_.getMessage();
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(messages.hvac.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cabinTemperature_ = value;
+ } else {
+ cabinTemperatureBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder setCabinTemperature(
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder builderForValue) {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperature_ = builderForValue.build();
+ } else {
+ cabinTemperatureBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder mergeCabinTemperature(messages.hvac.VehicleRemoteHvac.CabinTemperature value) {
+ if (cabinTemperatureBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ cabinTemperature_ != null &&
+ cabinTemperature_ != messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance()) {
+ getCabinTemperatureBuilder().mergeFrom(value);
+ } else {
+ cabinTemperature_ = value;
+ }
+ } else {
+ cabinTemperatureBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public Builder clearCabinTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ cabinTemperature_ = null;
+ if (cabinTemperatureBuilder_ != null) {
+ cabinTemperatureBuilder_.dispose();
+ cabinTemperatureBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder getCabinTemperatureBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getCabinTemperatureFieldBuilder().getBuilder();
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ public messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder getCabinTemperatureOrBuilder() {
+ if (cabinTemperatureBuilder_ != null) {
+ return cabinTemperatureBuilder_.getMessageOrBuilder();
+ } else {
+ return cabinTemperature_ == null ?
+ messages.hvac.VehicleRemoteHvac.CabinTemperature.getDefaultInstance() : cabinTemperature_;
+ }
+ }
+ /**
+ * <pre>
+ * Current cabin temperature
+ * </pre>
+ *
+ * <code>.messages.hvac.CabinTemperature cabin_temperature = 3;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.CabinTemperature, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder, messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder>
+ getCabinTemperatureFieldBuilder() {
+ if (cabinTemperatureBuilder_ == null) {
+ cabinTemperatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ messages.hvac.VehicleRemoteHvac.CabinTemperature, messages.hvac.VehicleRemoteHvac.CabinTemperature.Builder, messages.hvac.VehicleRemoteHvac.CabinTemperatureOrBuilder>(
+ getCabinTemperature(),
+ getParentForChildren(),
+ isClean());
+ cabinTemperature_ = null;
+ }
+ return cabinTemperatureBuilder_;
+ }
+ @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.hvac.CabinConditionStatusPublish)
+ }
+
+ // @@protoc_insertion_point(class_scope:messages.hvac.CabinConditionStatusPublish)
+ private static final messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish();
+ }
+
+ public static messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<CabinConditionStatusPublish>
+ PARSER = new com.google.protobuf.AbstractParser<CabinConditionStatusPublish>() {
+ @java.lang.Override
+ public CabinConditionStatusPublish 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<CabinConditionStatusPublish> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CabinConditionStatusPublish> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public messages.hvac.VehicleRemoteHvac.CabinConditionStatusPublish getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_Temperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_Temperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_HVACZone_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_HVACZone_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_PreconditionRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_PreconditionResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_HVACState_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_HVACState_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_CabinTemperature_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_CabinTemperature_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_messages_hvac_CabinConditionStatusPublish_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_messages_hvac_CabinConditionStatusPublish_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/VehicleRemoteHvac.proto\022\rmess" +
+ "ages.hvac\032\037google/protobuf/timestamp.pro" +
+ "to\"*\n\013Temperature\022\r\n\005value\030\001 \001(\002\022\014\n\004unit" +
+ "\030\002 \001(\t\"\260\001\n\010HVACZone\022*\n\004zone\030\001 \001(\0162\034.mess" +
+ "ages.hvac.HVACZone.Zone\0226\n\022target_temper" +
+ "ature\030\002 \001(\0132\032.messages.hvac.Temperature\"" +
+ "@\n\004Zone\022\n\n\006DRIVER\020\000\022\r\n\tPASSENGER\020\001\022\r\n\tRE" +
+ "AR_LEFT\020\002\022\016\n\nREAR_RIGHT\020\003\"r\n\023Preconditio" +
+ "nRequest\022+\n\nhvac_zones\030\001 \003(\0132\027.messages." +
+ "hvac.HVACZone\022.\n\nstart_time\030\002 \001(\0132\032.goog" +
+ "le.protobuf.Timestamp\"\224\001\n\024PreconditionRe" +
+ "sponse\022:\n\006status\030\001 \001(\0162*.messages.hvac.P" +
+ "reconditionResponse.Status\022\017\n\007message\030\002 " +
+ "\001(\t\"/\n\006Status\022\013\n\007SUCCESS\020\000\022\013\n\007FAILURE\020\001\022" +
+ "\013\n\007PENDING\020\002\"\237\001\n\tHVACState\022-\n\005state\030\001 \001(" +
+ "\0162\036.messages.hvac.HVACState.State\022-\n\014cur" +
+ "rent_zone\030\002 \001(\0132\027.messages.hvac.HVACZone" +
+ "\"4\n\005State\022\007\n\003OFF\020\000\022\013\n\007HEATING\020\001\022\013\n\007COOLI" +
+ "NG\020\002\022\010\n\004IDLE\020\003\"j\n\020CabinTemperature\022/\n\013te" +
+ "mperature\030\001 \001(\0132\032.messages.hvac.Temperat" +
+ "ure\022%\n\004zone\030\002 \001(\0132\027.messages.hvac.HVACZo" +
+ "ne\"\267\001\n\033CabinConditionStatusPublish\022.\n\nev" +
+ "ent_time\030\001 \001(\0132\032.google.protobuf.Timesta" +
+ "mp\022,\n\nhvac_state\030\002 \001(\0132\030.messages.hvac.H" +
+ "VACState\022:\n\021cabin_temperature\030\003 \001(\0132\037.me" +
+ "ssages.hvac.CabinTemperatureb\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_messages_hvac_Temperature_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_messages_hvac_Temperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_Temperature_descriptor,
+ new java.lang.String[] { "Value", "Unit", });
+ internal_static_messages_hvac_HVACZone_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_messages_hvac_HVACZone_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_HVACZone_descriptor,
+ new java.lang.String[] { "Zone", "TargetTemperature", });
+ internal_static_messages_hvac_PreconditionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_messages_hvac_PreconditionRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_PreconditionRequest_descriptor,
+ new java.lang.String[] { "HvacZones", "StartTime", });
+ internal_static_messages_hvac_PreconditionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_messages_hvac_PreconditionResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_PreconditionResponse_descriptor,
+ new java.lang.String[] { "Status", "Message", });
+ internal_static_messages_hvac_HVACState_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_messages_hvac_HVACState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_HVACState_descriptor,
+ new java.lang.String[] { "State", "CurrentZone", });
+ internal_static_messages_hvac_CabinTemperature_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_messages_hvac_CabinTemperature_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_CabinTemperature_descriptor,
+ new java.lang.String[] { "Temperature", "Zone", });
+ internal_static_messages_hvac_CabinConditionStatusPublish_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_messages_hvac_CabinConditionStatusPublish_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_messages_hvac_CabinConditionStatusPublish_descriptor,
+ new java.lang.String[] { "EventTime", "HvacState", "CabinTemperature", });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/proto/.DS_Store b/src/main/proto/.DS_Store
index b452eef..49a1204 100644
--- a/src/main/proto/.DS_Store
+++ b/src/main/proto/.DS_Store
Binary files differ
diff --git a/src/main/proto/messages/VehiclePrecisionLocation.proto b/src/main/proto/messages/VehiclePrecisionLocation.proto
index f83da98..4438c79 100644
--- a/src/main/proto/messages/VehiclePrecisionLocation.proto
+++ b/src/main/proto/messages/VehiclePrecisionLocation.proto
@@ -1,6 +1,6 @@
syntax = "proto3";
-package messages;
+package messages.location;
import "vss/vspec.proto";
import "messages/VehicleMessageHeader.proto";
diff --git a/src/main/proto/messages/VehicleRemoteHvac.proto b/src/main/proto/messages/VehicleRemoteHvac.proto
index d122621..2ccc4af 100644
--- a/src/main/proto/messages/VehicleRemoteHvac.proto
+++ b/src/main/proto/messages/VehicleRemoteHvac.proto
@@ -1,78 +1,73 @@
syntax = "proto3";
+/** # Cabin Preconditioning
+This set of messages define how to aquire vehicle location, either on demand or by interval and events.
+ ## Message Orchestration
+ [TO-DO]
+ ## MQTT Topic Design
+ | Direction | Subscribe Topic | Publish Topic |
+ | ----------- | ----- | -------- |
+ | Vehicle to Cloud | cabin/# |cabin/<device_id> |
+ | ----------- | ----- | -------- |
+ | Cloud to Vehicle | <device_id>/cabin| <device_id>/cabin |
+ **/
+import "google/protobuf/timestamp.proto";
+package messages.hvac;
-package messages;
-import "vss/vspec.proto";
-import "messages/VehicleMessageHeader.proto";
-
-
-// # Remote HVAC Commands and Settings
-//
-// This set of messages define requests and response for sending remote commands to vehicles
-//
-// ## Message Orchestration
-// [TO-DO]
-//
-// ## MQTT Topic Design
-// | Direction | Subscribe Topic | Publish Topic |
-// | ----------- | ----- | -------- |
-// | Vehicle to Cloud | rohv/* | rohv/<device_id> |
-// | ----------- | ----- | -------- |
-// | Cloud to Vehicle | <device_id>/rohv| <device_id>/rohv |
-
-/**
-* Cabin Preconditioning can be used to remotely start and Set the Interior canbin HVAC and set the desired temperature.
-*/
-
-message CabinPreconditionRequest {
- VehicleMessageHeading messageHeader = 1;
- SetAcStatusRequest setAcStatus = 2;
- SetTemperatureRequest setTemp = 3;
+message Temperature {
+ float value = 1; // Temperature value
+ string unit = 2; // Temperature unit (e.g., "Celsius", "Fahrenheit")
}
-
-message CabinPreConditionReponse {
- VehicleMessageHeading messageHeader = 1;
- SetAcStatusReply setAcStatusReply = 2;
- SetTemperatureReply setTemperatureReply = 3;
+message HVACZone {
+ enum Zone {
+ DRIVER = 0;
+ PASSENGER = 1;
+ REAR_LEFT = 2;
+ REAR_RIGHT = 3;
+ }
+
+ Zone zone = 1; // HVAC Zone
+ Temperature target_temperature = 2; // Target temperature
}
-message SetAcStatusRequest {
- AcStatusEnum desiredStatus = 1; // The desired status of A/C
-}
-
-/**
- * @brief
- *
- */
-message SetAcStatusReply {
- AcStatusEnum status = 1;
-
-
+message PreconditionRequest {
+
+ repeated HVACZone hvac_zones = 1; // List of HVAC zones to precondition
+ // For scheduled preconditioning, set the start_time to the desired future time.
+ // For on-demand preconditioning, leave the start_time unset.
+ google.protobuf.Timestamp start_time = 2;
}
-enum AcStatusEnum {
- ON = 0;
- OFF = 1;
- UKNONWN_ERROR = 2;
+message PreconditionResponse {
+ enum Status {
+ SUCCESS = 0;
+ FAILURE = 1;
+ PENDING = 2;
+ }
+
+ Status status = 1; // Status of the precondition request
+ string message = 2; // Optional message
}
-/**
- * @brief
- *
- */
-message SetTemperatureRequest {
- float temperature = 1; // The desired cabin temperature in degree Celsius
+message HVACState {
+ enum State {
+ OFF = 0;
+ HEATING = 1;
+ COOLING = 2;
+ IDLE = 3;
+ }
+
+ State state = 1; // Current state of the HVAC
+ HVACZone current_zone = 2; // Current active zone
}
-/**
- * @brief
- *
- */
-message SetTemperatureReply {
- SetTempStatusEnum tempStatus = 1;
+message CabinTemperature {
+ Temperature temperature = 1; // Current cabin temperature
+ HVACZone zone = 2; // Zone of the reported temperature
}
-enum SetTempStatusEnum {
- TEMP_SUCCESS = 0;
- TEMP_ERROR = 1;
+message CabinConditionStatusPublish {
+ google.protobuf.Timestamp event_time = 1; // Time of the event
+ HVACState hvac_state = 2; // Current state of the HVAC
+ CabinTemperature cabin_temperature = 3; // Current cabin temperature
} \ No newline at end of file