From 13696ae9c1d98bfb00b92e4c67b692a21ca4a1a4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:03:29 -0400 Subject: [PATCH] Automated Protos Update (#267) Co-authored-by: viambot --- src/viam/api/buf.lock | 4 +- src/viam/api/google/api/field_info.pb.cc | 322 ++++++++++-- src/viam/api/google/api/field_info.pb.h | 312 +++++++++++- src/viam/api/robot/v1/robot.pb.cc | 598 ++++++++++++++++++----- src/viam/api/robot/v1/robot.pb.h | 543 +++++++++++++++++++- 5 files changed, 1634 insertions(+), 145 deletions(-) diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index 6b2b472e2..b68b5afda 100644 --- a/src/viam/api/buf.lock +++ b/src/viam/api/buf.lock @@ -4,11 +4,11 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: f0e53af8f2fc4556b94f482688b57223 + commit: 2bbd25900cb34c79bae97d85c948d3cf - remote: buf.build owner: viamrobotics repository: api - commit: 72e48cae4d7344648914c49296b973da + commit: 04ba8421f5a940f1804f64abfa5c957f - remote: buf.build owner: viamrobotics repository: goutils diff --git a/src/viam/api/google/api/field_info.pb.cc b/src/viam/api/google/api/field_info.pb.cc index bad89f054..7237a96d2 100644 --- a/src/viam/api/google/api/field_info.pb.cc +++ b/src/viam/api/google/api/field_info.pb.cc @@ -23,9 +23,31 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace api { +inline constexpr TypeReference::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : type_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR TypeReference::TypeReference(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TypeReferenceDefaultTypeInternal { + PROTOBUF_CONSTEXPR TypeReferenceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TypeReferenceDefaultTypeInternal() {} + union { + TypeReference _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeReferenceDefaultTypeInternal _TypeReference_default_instance_; + inline constexpr FieldInfo::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : format_{static_cast< ::google::api::FieldInfo_Format >(0)}, + : referenced_types_{}, + format_{static_cast< ::google::api::FieldInfo_Format >(0)}, _cached_size_{0} {} template @@ -43,7 +65,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldInfoDefaultTypeInternal _FieldInfo_default_instance_; } // namespace api } // namespace google -static ::_pb::Metadata file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[1]; +static ::_pb::Metadata file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[2]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_google_2fapi_2ffield_5finfo_2eproto = nullptr; @@ -58,30 +80,45 @@ const ::uint32_t TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets[] PROT ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, _impl_.format_), + PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, _impl_.referenced_types_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::TypeReference, _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(::google::api::TypeReference, _impl_.type_name_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::google::api::FieldInfo)}, + {10, -1, -1, sizeof(::google::api::TypeReference)}, }; static const ::_pb::Message* const file_default_instances[] = { &::google::api::_FieldInfo_default_instance_._instance, + &::google::api::_TypeReference_default_instance_._instance, }; const char descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\033google/api/field_info.proto\022\ngoogle.ap" - "i\032 google/protobuf/descriptor.proto\"\224\001\n\t" + "i\032 google/protobuf/descriptor.proto\"\332\001\n\t" "FieldInfo\0224\n\006format\030\001 \001(\0162\034.google.api.F" - "ieldInfo.FormatR\006format\"Q\n\006Format\022\026\n\022FOR" - "MAT_UNSPECIFIED\020\000\022\t\n\005UUID4\020\001\022\010\n\004IPV4\020\002\022\010" - "\n\004IPV6\020\003\022\020\n\014IPV4_OR_IPV6\020\004:W\n\nfield_info" - "\022\035.google.protobuf.FieldOptions\030\314\361\371\212\001 \001(" - "\0132\025.google.api.FieldInfoR\tfieldInfoB\254\001\n\016" - "com.google.apiB\016FieldInfoProtoP\001ZAgoogle" - ".golang.org/genproto/googleapis/api/anno" - "tations;annotations\242\002\003GAX\252\002\nGoogle.Api\312\002" - "\nGoogle\\Api\342\002\026Google\\Api\\GPBMetadata\352\002\013G" - "oogle::Apib\006proto3" + "ieldInfo.FormatR\006format\022D\n\020referenced_ty" + "pes\030\002 \003(\0132\031.google.api.TypeReferenceR\017re" + "ferencedTypes\"Q\n\006Format\022\026\n\022FORMAT_UNSPEC" + "IFIED\020\000\022\t\n\005UUID4\020\001\022\010\n\004IPV4\020\002\022\010\n\004IPV6\020\003\022\020" + "\n\014IPV4_OR_IPV6\020\004\",\n\rTypeReference\022\033\n\ttyp" + "e_name\030\001 \001(\tR\010typeName:W\n\nfield_info\022\035.g" + "oogle.protobuf.FieldOptions\030\314\361\371\212\001 \001(\0132\025." + "google.api.FieldInfoR\tfieldInfoB\254\001\n\016com." + "google.apiB\016FieldInfoProtoP\001ZAgoogle.gol" + "ang.org/genproto/googleapis/api/annotati" + "ons;annotations\242\002\003GAX\252\002\nGoogle.Api\312\002\nGoo" + "gle\\Api\342\002\026Google\\Api\\GPBMetadata\352\002\013Googl" + "e::Apib\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps[1] = { @@ -91,13 +128,13 @@ static ::absl::once_flag descriptor_table_google_2fapi_2ffield_5finfo_2eproto_on const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2ffield_5finfo_2eproto = { false, false, - 498, + 614, descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto, "google/api/field_info.proto", &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps, 1, - 1, + 2, schemas, file_default_instances, TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets, @@ -159,15 +196,30 @@ FieldInfo::FieldInfo(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.api.FieldInfo) } +inline PROTOBUF_NDEBUG_INLINE FieldInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : referenced_types_{visibility, arena, from.referenced_types_}, + _cached_size_{0} {} + FieldInfo::FieldInfo( - ::google::protobuf::Arena* arena, const FieldInfo& from) - : FieldInfo(arena) { - MergeFrom(from); + ::google::protobuf::Arena* arena, + const FieldInfo& from) + : ::google::protobuf::Message(arena) { + FieldInfo* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.format_ = from._impl_.format_; + + // @@protoc_insertion_point(copy_constructor:google.api.FieldInfo) } inline PROTOBUF_NDEBUG_INLINE FieldInfo::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : _cached_size_{0} {} + : referenced_types_{visibility, arena}, + _cached_size_{0} {} inline void FieldInfo::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -190,6 +242,7 @@ PROTOBUF_NOINLINE void FieldInfo::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.referenced_types_.Clear(); _impl_.format_ = 0; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -202,20 +255,23 @@ const char* FieldInfo::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FieldInfo::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> FieldInfo::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967292, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), &_FieldInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ + // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.referenced_types_)}}, // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FieldInfo, _impl_.format_), 63>(), {8, 63, 0, PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.format_)}}, @@ -225,9 +281,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FieldInfo::_table_ = { // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; {PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.format_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ + // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; + {PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.referenced_types_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::api::TypeReference>()}, + }}, {{ }}, }; @@ -245,6 +304,14 @@ ::uint8_t* FieldInfo::_InternalSerialize( 1, this->_internal_format(), target); } + // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; + for (unsigned i = 0, + n = static_cast(this->_internal_referenced_types_size()); i < n; i++) { + const auto& repfield = this->_internal_referenced_types().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -262,6 +329,12 @@ ::size_t FieldInfo::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; + total_size += 1UL * this->_internal_referenced_types_size(); + for (const auto& msg : this->_internal_referenced_types()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; if (this->_internal_format() != 0) { total_size += 1 + @@ -287,6 +360,8 @@ void FieldInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_mutable_referenced_types()->MergeFrom( + from._internal_referenced_types()); if (from._internal_format() != 0) { _this->_internal_set_format(from._internal_format()); } @@ -310,6 +385,7 @@ ::_pbi::CachedSize* FieldInfo::AccessCachedSize() const { void FieldInfo::InternalSwap(FieldInfo* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.referenced_types_.InternalSwap(&other->_impl_.referenced_types_); swap(_impl_.format_, other->_impl_.format_); } @@ -318,6 +394,196 @@ ::google::protobuf::Metadata FieldInfo::GetMetadata() const { &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_getter, &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[0]); } +// =================================================================== + +class TypeReference::_Internal { + public: +}; + +TypeReference::TypeReference(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:google.api.TypeReference) +} +inline PROTOBUF_NDEBUG_INLINE TypeReference::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : type_name_(arena, from.type_name_), + _cached_size_{0} {} + +TypeReference::TypeReference( + ::google::protobuf::Arena* arena, + const TypeReference& from) + : ::google::protobuf::Message(arena) { + TypeReference* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + + // @@protoc_insertion_point(copy_constructor:google.api.TypeReference) +} +inline PROTOBUF_NDEBUG_INLINE TypeReference::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : type_name_(arena), + _cached_size_{0} {} + +inline void TypeReference::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +TypeReference::~TypeReference() { + // @@protoc_insertion_point(destructor:google.api.TypeReference) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void TypeReference::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.type_name_.Destroy(); + _impl_.~Impl_(); +} + +PROTOBUF_NOINLINE void TypeReference::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.TypeReference) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_name_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* TypeReference::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 42, 2> TypeReference::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_TypeReference_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string type_name = 1 [json_name = "typeName"]; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(TypeReference, _impl_.type_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string type_name = 1 [json_name = "typeName"]; + {PROTOBUF_FIELD_OFFSET(TypeReference, _impl_.type_name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\30\11\0\0\0\0\0\0" + "google.api.TypeReference" + "type_name" + }}, +}; + +::uint8_t* TypeReference::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.TypeReference) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string type_name = 1 [json_name = "typeName"]; + if (!this->_internal_type_name().empty()) { + const std::string& _s = this->_internal_type_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.TypeReference.type_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.TypeReference) + return target; +} + +::size_t TypeReference::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.TypeReference) + ::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 type_name = 1 [json_name = "typeName"]; + if (!this->_internal_type_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_type_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData TypeReference::_class_data_ = { + TypeReference::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TypeReference::GetClassData() const { + return &_class_data_; +} + +void TypeReference::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:google.api.TypeReference) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type_name().empty()) { + _this->_internal_set_type_name(from._internal_type_name()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void TypeReference::CopyFrom(const TypeReference& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.TypeReference) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool TypeReference::IsInitialized() const { + return true; +} + +::_pbi::CachedSize* TypeReference::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void TypeReference::InternalSwap(TypeReference* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_name_, &other->_impl_.type_name_, arena); +} + +::google::protobuf::Metadata TypeReference::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_getter, &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, + file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[1]); +} PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, ::google::protobuf::internal::MessageTypeTraits< ::google::api::FieldInfo >, 11, false> field_info(kFieldInfoFieldNumber, ::google::api::FieldInfo::default_instance(), nullptr); diff --git a/src/viam/api/google/api/field_info.pb.h b/src/viam/api/google/api/field_info.pb.h index 0e42d0bb0..758d3be4d 100644 --- a/src/viam/api/google/api/field_info.pb.h +++ b/src/viam/api/google/api/field_info.pb.h @@ -62,6 +62,9 @@ namespace api { class FieldInfo; struct FieldInfoDefaultTypeInternal; extern FieldInfoDefaultTypeInternal _FieldInfo_default_instance_; +class TypeReference; +struct TypeReferenceDefaultTypeInternal; +extern TypeReferenceDefaultTypeInternal _TypeReference_default_instance_; } // namespace api namespace protobuf { } // namespace protobuf @@ -111,6 +114,187 @@ inline bool FieldInfo_Format_Parse(absl::string_view name, FieldInfo_Format* val // ------------------------------------------------------------------- +class TypeReference final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.TypeReference) */ { + public: + inline TypeReference() : TypeReference(nullptr) {} + ~TypeReference() override; + template + explicit PROTOBUF_CONSTEXPR TypeReference(::google::protobuf::internal::ConstantInitialized); + + inline TypeReference(const TypeReference& from) + : TypeReference(nullptr, from) {} + TypeReference(TypeReference&& from) noexcept + : TypeReference() { + *this = ::std::move(from); + } + + inline TypeReference& operator=(const TypeReference& from) { + CopyFrom(from); + return *this; + } + inline TypeReference& operator=(TypeReference&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TypeReference& default_instance() { + return *internal_default_instance(); + } + static inline const TypeReference* internal_default_instance() { + return reinterpret_cast( + &_TypeReference_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(TypeReference& a, TypeReference& b) { + a.Swap(&b); + } + inline void Swap(TypeReference* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TypeReference* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TypeReference* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TypeReference& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const TypeReference& from) { + TypeReference::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(TypeReference* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "google.api.TypeReference"; + } + protected: + explicit TypeReference(::google::protobuf::Arena* arena); + TypeReference(::google::protobuf::Arena* arena, const TypeReference& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTypeNameFieldNumber = 1, + }; + // string type_name = 1 [json_name = "typeName"]; + void clear_type_name() ; + const std::string& type_name() const; + template + void set_type_name(Arg_&& arg, Args_... args); + std::string* mutable_type_name(); + PROTOBUF_NODISCARD std::string* release_type_name(); + void set_allocated_type_name(std::string* value); + + private: + const std::string& _internal_type_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name( + const std::string& value); + std::string* _internal_mutable_type_name(); + + public: + // @@protoc_insertion_point(class_scope:google.api.TypeReference) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 42, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr type_name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_google_2fapi_2ffield_5finfo_2eproto; +};// ------------------------------------------------------------------- + class FieldInfo final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.FieldInfo) */ { public: @@ -266,8 +450,27 @@ class FieldInfo final : // accessors ------------------------------------------------------- enum : int { + kReferencedTypesFieldNumber = 2, kFormatFieldNumber = 1, }; + // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; + int referenced_types_size() const; + private: + int _internal_referenced_types_size() const; + + public: + void clear_referenced_types() ; + ::google::api::TypeReference* mutable_referenced_types(int index); + ::google::protobuf::RepeatedPtrField< ::google::api::TypeReference >* + mutable_referenced_types(); + private: + const ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>& _internal_referenced_types() const; + ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>* _internal_mutable_referenced_types(); + public: + const ::google::api::TypeReference& referenced_types(int index) const; + ::google::api::TypeReference* add_referenced_types(); + const ::google::protobuf::RepeatedPtrField< ::google::api::TypeReference >& + referenced_types() const; // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; void clear_format() ; ::google::api::FieldInfo_Format format() const; @@ -284,7 +487,7 @@ class FieldInfo final : friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, + 1, 2, 1, 0, 2> _table_; friend class ::google::protobuf::MessageLite; @@ -301,6 +504,7 @@ class FieldInfo final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField< ::google::api::TypeReference > referenced_types_; int format_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -352,6 +556,112 @@ inline void FieldInfo::_internal_set_format(::google::api::FieldInfo_Format valu _impl_.format_ = value; } +// repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; +inline int FieldInfo::_internal_referenced_types_size() const { + return _internal_referenced_types().size(); +} +inline int FieldInfo::referenced_types_size() const { + return _internal_referenced_types_size(); +} +inline void FieldInfo::clear_referenced_types() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.referenced_types_.Clear(); +} +inline ::google::api::TypeReference* FieldInfo::mutable_referenced_types(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:google.api.FieldInfo.referenced_types) + return _internal_mutable_referenced_types()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>* FieldInfo::mutable_referenced_types() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:google.api.FieldInfo.referenced_types) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_referenced_types(); +} +inline const ::google::api::TypeReference& FieldInfo::referenced_types(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:google.api.FieldInfo.referenced_types) + return _internal_referenced_types().Get(index); +} +inline ::google::api::TypeReference* FieldInfo::add_referenced_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::api::TypeReference* _add = _internal_mutable_referenced_types()->Add(); + // @@protoc_insertion_point(field_add:google.api.FieldInfo.referenced_types) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>& FieldInfo::referenced_types() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:google.api.FieldInfo.referenced_types) + return _internal_referenced_types(); +} +inline const ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>& +FieldInfo::_internal_referenced_types() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.referenced_types_; +} +inline ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>* +FieldInfo::_internal_mutable_referenced_types() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.referenced_types_; +} + +// ------------------------------------------------------------------- + +// TypeReference + +// string type_name = 1 [json_name = "typeName"]; +inline void TypeReference::clear_type_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_name_.ClearToEmpty(); +} +inline const std::string& TypeReference::type_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:google.api.TypeReference.type_name) + return _internal_type_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void TypeReference::set_type_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.type_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:google.api.TypeReference.type_name) +} +inline std::string* TypeReference::mutable_type_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_type_name(); + // @@protoc_insertion_point(field_mutable:google.api.TypeReference.type_name) + return _s; +} +inline const std::string& TypeReference::_internal_type_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.type_name_.Get(); +} +inline void TypeReference::_internal_set_type_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.type_name_.Set(value, GetArena()); +} +inline std::string* TypeReference::_internal_mutable_type_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.type_name_.Mutable( GetArena()); +} +inline std::string* TypeReference::release_type_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:google.api.TypeReference.type_name) + return _impl_.type_name_.Release(); +} +inline void TypeReference::set_allocated_type_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_name_.IsDefault()) { + _impl_.type_name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.TypeReference.type_name) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/src/viam/api/robot/v1/robot.pb.cc b/src/viam/api/robot/v1/robot.pb.cc index 8d2a41d9a..f30c9a049 100644 --- a/src/viam/api/robot/v1/robot.pb.cc +++ b/src/viam/api/robot/v1/robot.pb.cc @@ -534,6 +534,9 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ResourceStatus::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, + revision_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), name_{nullptr}, last_updated_{nullptr}, state_{static_cast< ::viam::robot::v1::ResourceStatus_State >(0)} {} @@ -680,6 +683,28 @@ struct DiscoverComponentsRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; +inline constexpr ConfigStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + revision_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + last_updated_{nullptr} {} + +template +PROTOBUF_CONSTEXPR ConfigStatus::ConfigStatus(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ConfigStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConfigStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ConfigStatusDefaultTypeInternal() {} + union { + ConfigStatus _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigStatusDefaultTypeInternal _ConfigStatus_default_instance_; + inline constexpr TransformPoseResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -834,8 +859,9 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetMachineStatusResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : resources_{}, - _cached_size_{0} {} + : _cached_size_{0}, + resources_{}, + config_{nullptr} {} template PROTOBUF_CONSTEXPR GetMachineStatusResponse::GetMachineStatusResponse(::_pbi::ConstantInitialized) @@ -953,7 +979,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace v1 } // namespace robot } // namespace viam -static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[50]; +static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[51]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_robot_2fv1_2frobot_2eproto = nullptr; @@ -1432,7 +1458,7 @@ const ::uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1441,6 +1467,9 @@ const ::uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _impl_.resources_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _impl_.config_), + ~0u, + 0, PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _internal_metadata_), ~0u, // no _extensions_ @@ -1452,9 +1481,23 @@ const ::uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECT PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.name_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.state_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.last_updated_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.revision_), 0, ~0u, 1, + ~0u, + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _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(::viam::robot::v1::ConfigStatus, _impl_.revision_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _impl_.last_updated_), + ~0u, + 0, }; static const ::_pbi::MigrationSchema @@ -1507,8 +1550,9 @@ static const ::_pbi::MigrationSchema {449, -1, -1, sizeof(::viam::robot::v1::ShutdownRequest)}, {457, -1, -1, sizeof(::viam::robot::v1::ShutdownResponse)}, {465, -1, -1, sizeof(::viam::robot::v1::GetMachineStatusRequest)}, - {473, -1, -1, sizeof(::viam::robot::v1::GetMachineStatusResponse)}, - {482, 493, -1, sizeof(::viam::robot::v1::ResourceStatus)}, + {473, 483, -1, sizeof(::viam::robot::v1::GetMachineStatusResponse)}, + {485, 497, -1, sizeof(::viam::robot::v1::ResourceStatus)}, + {501, 511, -1, sizeof(::viam::robot::v1::ConfigStatus)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1562,6 +1606,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::robot::v1::_GetMachineStatusRequest_default_instance_._instance, &::viam::robot::v1::_GetMachineStatusResponse_default_instance_._instance, &::viam::robot::v1::_ResourceStatus_default_instance_._instance, + &::viam::robot::v1::_ConfigStatus_default_instance_._instance, }; const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\024robot/v1/robot.proto\022\rviam.robot.v1\032\026c" @@ -1667,90 +1712,95 @@ const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTI "\n\013module_name\030\002 \001(\tH\000R\nmoduleNameB\014\n\nid_" "or_name\"\027\n\025RestartModuleResponse\"\021\n\017Shut" "downRequest\"\022\n\020ShutdownResponse\"\031\n\027GetMa" - "chineStatusRequest\"W\n\030GetMachineStatusRe" - "sponse\022;\n\tresources\030\001 \003(\0132\035.viam.robot.v" - "1.ResourceStatusR\tresources\"\260\002\n\016Resource" - "Status\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.Re" - "sourceNameR\004name\0229\n\005state\030\002 \001(\0162#.viam.r" - "obot.v1.ResourceStatus.StateR\005state\022=\n\014l" - "ast_updated\030\003 \001(\0132\032.google.protobuf.Time" - "stampR\013lastUpdated\"r\n\005State\022\025\n\021STATE_UNS" - "PECIFIED\020\000\022\026\n\022STATE_UNCONFIGURED\020\001\022\025\n\021ST" - "ATE_CONFIGURING\020\002\022\017\n\013STATE_READY\020\003\022\022\n\016ST" - "ATE_REMOVING\020\004*z\n\022PeerConnectionType\022$\n " - "PEER_CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n\031PE" - "ER_CONNECTION_TYPE_GRPC\020\001\022\037\n\033PEER_CONNEC" - "TION_TYPE_WEBRTC\020\0022\332\024\n\014RobotService\022\200\001\n\r" - "GetOperations\022#.viam.robot.v1.GetOperati" - "onsRequest\032$.viam.robot.v1.GetOperations" - "Response\"$\202\323\344\223\002\036\022\034/viam/api/v1/operation" - "s/list\022x\n\013GetSessions\022!.viam.robot.v1.Ge" - "tSessionsRequest\032\".viam.robot.v1.GetSess" - "ionsResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/sessi" - "ons/list\022\177\n\rResourceNames\022#.viam.robot.v" - "1.ResourceNamesRequest\032$.viam.robot.v1.R" - "esourceNamesResponse\"#\202\323\344\223\002\035\022\033/viam/api/" - "v1/resources/list\022\235\001\n\023ResourceRPCSubtype" - "s\022).viam.robot.v1.ResourceRPCSubtypesReq" - "uest\032*.viam.robot.v1.ResourceRPCSubtypes" - "Response\"/\202\323\344\223\002)\022\'/viam/api/v1/resource_" - "rpc_subtypes/list\022\210\001\n\017CancelOperation\022%." - "viam.robot.v1.CancelOperationRequest\032&.v" - "iam.robot.v1.CancelOperationResponse\"&\202\323" - "\344\223\002 \"\036/viam/api/v1/operations/cancel\022\215\001\n" - "\021BlockForOperation\022\'.viam.robot.v1.Block" - "ForOperationRequest\032(.viam.robot.v1.Bloc" - "kForOperationResponse\"%\202\323\344\223\002\037\"\035/viam/api" - "/v1/operations/block\022\224\001\n\022DiscoverCompone" - "nts\022(.viam.robot.v1.DiscoverComponentsRe" - "quest\032).viam.robot.v1.DiscoverComponents" - "Response\")\202\323\344\223\002#\022!/viam/api/v1/discovery" - "/components\022\220\001\n\021FrameSystemConfig\022\'.viam" - ".robot.v1.FrameSystemConfigRequest\032(.via" - "m.robot.v1.FrameSystemConfigResponse\"(\202\323" - "\344\223\002\"\022 /viam/api/v1/frame_system/config\022\214" - "\001\n\rTransformPose\022#.viam.robot.v1.Transfo" - "rmPoseRequest\032$.viam.robot.v1.TransformP" - "oseResponse\"0\202\323\344\223\002*\022(/viam/api/v1/frame_" - "system/transform_pose\022\210\001\n\014TransformPCD\022\"" - ".viam.robot.v1.TransformPCDRequest\032#.via" - "m.robot.v1.TransformPCDResponse\"/\202\323\344\223\002)\022" - "\'/viam/api/v1/frame_system/transform_pcd" - "\022n\n\tGetStatus\022\037.viam.robot.v1.GetStatusR" - "equest\032 .viam.robot.v1.GetStatusResponse" - "\"\036\210\002\001\202\323\344\223\002\025\022\023/viam/api/v1/status\022\200\001\n\014Str" - "eamStatus\022\".viam.robot.v1.StreamStatusRe" - "quest\032#.viam.robot.v1.StreamStatusRespon" - "se\"%\210\002\001\202\323\344\223\002\034\022\032/viam/api/v1/status/strea" - "m0\001\022g\n\007StopAll\022\035.viam.robot.v1.StopAllRe" - "quest\032\036.viam.robot.v1.StopAllResponse\"\035\202" - "\323\344\223\002\027\022\025/viam/api/v1/stop_all\022v\n\014StartSes" - "sion\022\".viam.robot.v1.StartSessionRequest" - "\032#.viam.robot.v1.StartSessionResponse\"\035\202" - "\323\344\223\002\027\"\025/viam/api/v1/sessions\022\235\001\n\024SendSes" - "sionHeartbeat\022*.viam.robot.v1.SendSessio" - "nHeartbeatRequest\032+.viam.robot.v1.SendSe" - "ssionHeartbeatResponse\",\202\323\344\223\002&\"$/viam/ap" - "i/v1/sessions/{id}/heartbeat\022V\n\003Log\022\031.vi" - "am.robot.v1.LogRequest\032\032.viam.robot.v1.L" - "ogResponse\"\030\202\323\344\223\002\022\"\020/viam/api/v1/log\022\210\001\n" - "\020GetCloudMetadata\022&.viam.robot.v1.GetClo" - "udMetadataRequest\032\'.viam.robot.v1.GetClo" - "udMetadataResponse\"#\202\323\344\223\002\035\022\033/viam/api/v1" - "/cloud_metadata\022\177\n\rRestartModule\022#.viam." - "robot.v1.RestartModuleRequest\032$.viam.rob" - "ot.v1.RestartModuleResponse\"#\202\323\344\223\002\035\"\033/vi" - "am/api/v1/restart_module\022j\n\010Shutdown\022\036.v" - "iam.robot.v1.ShutdownRequest\032\037.viam.robo" - "t.v1.ShutdownResponse\"\035\202\323\344\223\002\027\"\025/viam/api" - "/v1/shutdown\022\210\001\n\020GetMachineStatus\022&.viam" - ".robot.v1.GetMachineStatusRequest\032\'.viam" - ".robot.v1.GetMachineStatusResponse\"#\202\323\344\223" - "\002\035\022\033/viam/api/v1/machine_statusB\217\001\n\021com." - "viam.robot.v1B\nRobotProtoP\001Z\030go.viam.com" - "/api/robot/v1\242\002\003VRX\252\002\rViam.Robot.V1\312\002\rVi" - "am\\Robot\\V1\342\002\031Viam\\Robot\\V1\\GPBMetadata\352" - "\002\017Viam::Robot::V1b\006proto3" + "chineStatusRequest\"\214\001\n\030GetMachineStatusR" + "esponse\022;\n\tresources\030\001 \003(\0132\035.viam.robot." + "v1.ResourceStatusR\tresources\0223\n\006config\030\002" + " \001(\0132\033.viam.robot.v1.ConfigStatusR\006confi" + "g\"\314\002\n\016ResourceStatus\0220\n\004name\030\001 \001(\0132\034.via" + "m.common.v1.ResourceNameR\004name\0229\n\005state\030" + "\002 \001(\0162#.viam.robot.v1.ResourceStatus.Sta" + "teR\005state\022=\n\014last_updated\030\003 \001(\0132\032.google" + ".protobuf.TimestampR\013lastUpdated\022\032\n\010revi" + "sion\030\004 \001(\tR\010revision\"r\n\005State\022\025\n\021STATE_U" + "NSPECIFIED\020\000\022\026\n\022STATE_UNCONFIGURED\020\001\022\025\n\021" + "STATE_CONFIGURING\020\002\022\017\n\013STATE_READY\020\003\022\022\n\016" + "STATE_REMOVING\020\004\"i\n\014ConfigStatus\022\032\n\010revi" + "sion\030\001 \001(\tR\010revision\022=\n\014last_updated\030\002 \001" + "(\0132\032.google.protobuf.TimestampR\013lastUpda" + "ted*z\n\022PeerConnectionType\022$\n PEER_CONNEC" + "TION_TYPE_UNSPECIFIED\020\000\022\035\n\031PEER_CONNECTI" + "ON_TYPE_GRPC\020\001\022\037\n\033PEER_CONNECTION_TYPE_W" + "EBRTC\020\0022\332\024\n\014RobotService\022\200\001\n\rGetOperatio" + "ns\022#.viam.robot.v1.GetOperationsRequest\032" + "$.viam.robot.v1.GetOperationsResponse\"$\202" + "\323\344\223\002\036\022\034/viam/api/v1/operations/list\022x\n\013G" + "etSessions\022!.viam.robot.v1.GetSessionsRe" + "quest\032\".viam.robot.v1.GetSessionsRespons" + "e\"\"\202\323\344\223\002\034\022\032/viam/api/v1/sessions/list\022\177\n" + "\rResourceNames\022#.viam.robot.v1.ResourceN" + "amesRequest\032$.viam.robot.v1.ResourceName" + "sResponse\"#\202\323\344\223\002\035\022\033/viam/api/v1/resource" + "s/list\022\235\001\n\023ResourceRPCSubtypes\022).viam.ro" + "bot.v1.ResourceRPCSubtypesRequest\032*.viam" + ".robot.v1.ResourceRPCSubtypesResponse\"/\202" + "\323\344\223\002)\022\'/viam/api/v1/resource_rpc_subtype" + "s/list\022\210\001\n\017CancelOperation\022%.viam.robot." + "v1.CancelOperationRequest\032&.viam.robot.v" + "1.CancelOperationResponse\"&\202\323\344\223\002 \"\036/viam" + "/api/v1/operations/cancel\022\215\001\n\021BlockForOp" + "eration\022\'.viam.robot.v1.BlockForOperatio" + "nRequest\032(.viam.robot.v1.BlockForOperati" + "onResponse\"%\202\323\344\223\002\037\"\035/viam/api/v1/operati" + "ons/block\022\224\001\n\022DiscoverComponents\022(.viam." + "robot.v1.DiscoverComponentsRequest\032).via" + "m.robot.v1.DiscoverComponentsResponse\")\202" + "\323\344\223\002#\022!/viam/api/v1/discovery/components" + "\022\220\001\n\021FrameSystemConfig\022\'.viam.robot.v1.F" + "rameSystemConfigRequest\032(.viam.robot.v1." + "FrameSystemConfigResponse\"(\202\323\344\223\002\"\022 /viam" + "/api/v1/frame_system/config\022\214\001\n\rTransfor" + "mPose\022#.viam.robot.v1.TransformPoseReque" + "st\032$.viam.robot.v1.TransformPoseResponse" + "\"0\202\323\344\223\002*\022(/viam/api/v1/frame_system/tran" + "sform_pose\022\210\001\n\014TransformPCD\022\".viam.robot" + ".v1.TransformPCDRequest\032#.viam.robot.v1." + "TransformPCDResponse\"/\202\323\344\223\002)\022\'/viam/api/" + "v1/frame_system/transform_pcd\022n\n\tGetStat" + "us\022\037.viam.robot.v1.GetStatusRequest\032 .vi" + "am.robot.v1.GetStatusResponse\"\036\210\002\001\202\323\344\223\002\025" + "\022\023/viam/api/v1/status\022\200\001\n\014StreamStatus\022\"" + ".viam.robot.v1.StreamStatusRequest\032#.via" + "m.robot.v1.StreamStatusResponse\"%\210\002\001\202\323\344\223" + "\002\034\022\032/viam/api/v1/status/stream0\001\022g\n\007Stop" + "All\022\035.viam.robot.v1.StopAllRequest\032\036.via" + "m.robot.v1.StopAllResponse\"\035\202\323\344\223\002\027\022\025/via" + "m/api/v1/stop_all\022v\n\014StartSession\022\".viam" + ".robot.v1.StartSessionRequest\032#.viam.rob" + "ot.v1.StartSessionResponse\"\035\202\323\344\223\002\027\"\025/via" + "m/api/v1/sessions\022\235\001\n\024SendSessionHeartbe" + "at\022*.viam.robot.v1.SendSessionHeartbeatR" + "equest\032+.viam.robot.v1.SendSessionHeartb" + "eatResponse\",\202\323\344\223\002&\"$/viam/api/v1/sessio" + "ns/{id}/heartbeat\022V\n\003Log\022\031.viam.robot.v1" + ".LogRequest\032\032.viam.robot.v1.LogResponse\"" + "\030\202\323\344\223\002\022\"\020/viam/api/v1/log\022\210\001\n\020GetCloudMe" + "tadata\022&.viam.robot.v1.GetCloudMetadataR" + "equest\032\'.viam.robot.v1.GetCloudMetadataR" + "esponse\"#\202\323\344\223\002\035\022\033/viam/api/v1/cloud_meta" + "data\022\177\n\rRestartModule\022#.viam.robot.v1.Re" + "startModuleRequest\032$.viam.robot.v1.Resta" + "rtModuleResponse\"#\202\323\344\223\002\035\"\033/viam/api/v1/r" + "estart_module\022j\n\010Shutdown\022\036.viam.robot.v" + "1.ShutdownRequest\032\037.viam.robot.v1.Shutdo" + "wnResponse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/shutdow" + "n\022\210\001\n\020GetMachineStatus\022&.viam.robot.v1.G" + "etMachineStatusRequest\032\'.viam.robot.v1.G" + "etMachineStatusResponse\"#\202\323\344\223\002\035\022\033/viam/a" + "pi/v1/machine_statusB\217\001\n\021com.viam.robot." + "v1B\nRobotProtoP\001Z\030go.viam.com/api/robot/" + "v1\242\002\003VRX\252\002\rViam.Robot.V1\312\002\rViam\\Robot\\V1" + "\342\002\031Viam\\Robot\\V1\\GPBMetadata\352\002\017Viam::Rob" + "ot::V1b\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = { @@ -1764,13 +1814,13 @@ static ::absl::once_flag descriptor_table_robot_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto = { false, false, - 7465, + 7654, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, "robot/v1/robot.proto", &descriptor_table_robot_2fv1_2frobot_2eproto_once, descriptor_table_robot_2fv1_2frobot_2eproto_deps, 5, - 50, + 51, schemas, file_default_instances, TableStruct_robot_2fv1_2frobot_2eproto::offsets, @@ -9937,8 +9987,18 @@ ::google::protobuf::Metadata GetMachineStatusRequest::GetMetadata() const { class GetMachineStatusResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_._has_bits_); + static const ::viam::robot::v1::ConfigStatus& config(const GetMachineStatusResponse* msg); + static void set_has_config(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; +const ::viam::robot::v1::ConfigStatus& GetMachineStatusResponse::_Internal::config(const GetMachineStatusResponse* msg) { + return *msg->_impl_.config_; +} GetMachineStatusResponse::GetMachineStatusResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -9947,8 +10007,9 @@ GetMachineStatusResponse::GetMachineStatusResponse(::google::protobuf::Arena* ar inline PROTOBUF_NDEBUG_INLINE GetMachineStatusResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) - : resources_{visibility, arena, from.resources_}, - _cached_size_{0} {} + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + resources_{visibility, arena, from.resources_} {} GetMachineStatusResponse::GetMachineStatusResponse( ::google::protobuf::Arena* arena, @@ -9959,17 +10020,22 @@ GetMachineStatusResponse::GetMachineStatusResponse( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.config_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::viam::robot::v1::ConfigStatus>(arena, *from._impl_.config_) + : nullptr; // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetMachineStatusResponse) } inline PROTOBUF_NDEBUG_INLINE GetMachineStatusResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : resources_{visibility, arena}, - _cached_size_{0} {} + : _cached_size_{0}, + resources_{visibility, arena} {} inline void GetMachineStatusResponse::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.config_ = {}; } GetMachineStatusResponse::~GetMachineStatusResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.GetMachineStatusResponse) @@ -9978,6 +10044,7 @@ GetMachineStatusResponse::~GetMachineStatusResponse() { } inline void GetMachineStatusResponse::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.config_; _impl_.~Impl_(); } @@ -9989,6 +10056,12 @@ PROTOBUF_NOINLINE void GetMachineStatusResponse::Clear() { (void) cached_has_bits; _impl_.resources_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.config_ != nullptr); + _impl_.config_->Clear(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -10000,20 +10073,23 @@ const char* GetMachineStatusResponse::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMachineStatusResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetMachineStatusResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_._has_bits_), 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967292, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries + 2, // num_field_entries + 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_GetMachineStatusResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + {::_pbi::TcParser::FastMtS1, + {18, 0, 1, PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.config_)}}, // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; {::_pbi::TcParser::FastMtR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.resources_)}}, @@ -10021,10 +10097,14 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMachineStatusResponse::_table_ = { 65535, 65535 }}, {{ // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; - {PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.resources_), 0, 0, + {PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.resources_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + {PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.config_), _Internal::kHasBitsOffset + 0, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::viam::robot::v1::ResourceStatus>()}, + {::_pbi::TcParser::GetTable<::viam::robot::v1::ConfigStatus>()}, }}, {{ }}, }; @@ -10044,6 +10124,14 @@ ::uint8_t* GetMachineStatusResponse::_InternalSerialize( InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } + cached_has_bits = _impl_._has_bits_[0]; + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::config(this), + _Internal::config(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -10067,6 +10155,13 @@ ::size_t GetMachineStatusResponse::ByteSizeLong() const { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -10088,6 +10183,10 @@ void GetMachineStatusResponse::MergeImpl(::google::protobuf::Message& to_msg, co _this->_internal_mutable_resources()->MergeFrom( from._internal_resources()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_config()->::viam::robot::v1::ConfigStatus::MergeFrom( + from._internal_config()); + } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10108,7 +10207,9 @@ ::_pbi::CachedSize* GetMachineStatusResponse::AccessCachedSize() const { void GetMachineStatusResponse::InternalSwap(GetMachineStatusResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.resources_.InternalSwap(&other->_impl_.resources_); + swap(_impl_.config_, other->_impl_.config_); } ::google::protobuf::Metadata GetMachineStatusResponse::GetMetadata() const { @@ -10158,7 +10259,8 @@ inline PROTOBUF_NDEBUG_INLINE ResourceStatus::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + _cached_size_{0}, + revision_(arena, from.revision_) {} ResourceStatus::ResourceStatus( ::google::protobuf::Arena* arena, @@ -10183,7 +10285,8 @@ ResourceStatus::ResourceStatus( inline PROTOBUF_NDEBUG_INLINE ResourceStatus::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : _cached_size_{0} {} + : _cached_size_{0}, + revision_(arena) {} inline void ResourceStatus::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -10201,6 +10304,7 @@ ResourceStatus::~ResourceStatus() { } inline void ResourceStatus::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); + _impl_.revision_.Destroy(); delete _impl_.name_; delete _impl_.last_updated_; _impl_.~Impl_(); @@ -10213,6 +10317,7 @@ PROTOBUF_NOINLINE void ResourceStatus::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.revision_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -10237,21 +10342,23 @@ const char* ResourceStatus::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> ResourceStatus::_table_ = { +const ::_pbi::TcParseTable<2, 4, 2, 45, 2> ResourceStatus::_table_ = { { PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_._has_bits_), 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask + 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap + 4294967280, // skipmap offsetof(decltype(_table_), field_entries), - 3, // num_field_entries + 4, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_ResourceStatus_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - {::_pbi::TcParser::MiniParse, {}}, + // string revision = 4 [json_name = "revision"]; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.revision_)}}, // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.name_)}}, @@ -10273,10 +10380,16 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> ResourceStatus::_table_ = { // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.last_updated_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string revision = 4 [json_name = "revision"]; + {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.revision_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, {{ {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, }}, {{ + "\34\0\0\0\10\0\0\0" + "viam.robot.v1.ResourceStatus" + "revision" }}, }; @@ -10309,6 +10422,14 @@ ::uint8_t* ResourceStatus::_InternalSerialize( _Internal::last_updated(this).GetCachedSize(), target, stream); } + // string revision = 4 [json_name = "revision"]; + if (!this->_internal_revision().empty()) { + const std::string& _s = this->_internal_revision(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.ResourceStatus.revision"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -10326,6 +10447,12 @@ ::size_t ResourceStatus::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string revision = 4 [json_name = "revision"]; + if (!this->_internal_revision().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_revision()); + } + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; @@ -10366,6 +10493,9 @@ void ResourceStatus::MergeImpl(::google::protobuf::Message& to_msg, const ::goog ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + if (!from._internal_revision().empty()) { + _this->_internal_set_revision(from._internal_revision()); + } cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -10399,8 +10529,11 @@ ::_pbi::CachedSize* ResourceStatus::AccessCachedSize() const { } void ResourceStatus::InternalSwap(ResourceStatus* PROTOBUF_RESTRICT other) { using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.revision_, &other->_impl_.revision_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.state_) + sizeof(ResourceStatus::_impl_.state_) @@ -10414,6 +10547,251 @@ ::google::protobuf::Metadata ResourceStatus::GetMetadata() const { &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, file_level_metadata_robot_2fv1_2frobot_2eproto[49]); } +// =================================================================== + +class ConfigStatus::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_._has_bits_); + static const ::google::protobuf::Timestamp& last_updated(const ConfigStatus* msg); + static void set_has_last_updated(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::google::protobuf::Timestamp& ConfigStatus::_Internal::last_updated(const ConfigStatus* msg) { + return *msg->_impl_.last_updated_; +} +void ConfigStatus::clear_last_updated() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.last_updated_ != nullptr) _impl_.last_updated_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +ConfigStatus::ConfigStatus(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ConfigStatus) +} +inline PROTOBUF_NDEBUG_INLINE ConfigStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + revision_(arena, from.revision_) {} + +ConfigStatus::ConfigStatus( + ::google::protobuf::Arena* arena, + const ConfigStatus& from) + : ::google::protobuf::Message(arena) { + ConfigStatus* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.last_updated_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_updated_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ConfigStatus) +} +inline PROTOBUF_NDEBUG_INLINE ConfigStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + revision_(arena) {} + +inline void ConfigStatus::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.last_updated_ = {}; +} +ConfigStatus::~ConfigStatus() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ConfigStatus) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ConfigStatus::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.revision_.Destroy(); + delete _impl_.last_updated_; + _impl_.~Impl_(); +} + +PROTOBUF_NOINLINE void ConfigStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ConfigStatus) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.revision_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.last_updated_ != nullptr); + _impl_.last_updated_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ConfigStatus::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 43, 2> ConfigStatus::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ConfigStatus_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.last_updated_)}}, + // string revision = 1 [json_name = "revision"]; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.revision_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string revision = 1 [json_name = "revision"]; + {PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.revision_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; + {PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.last_updated_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, + }}, {{ + "\32\10\0\0\0\0\0\0" + "viam.robot.v1.ConfigStatus" + "revision" + }}, +}; + +::uint8_t* ConfigStatus::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ConfigStatus) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string revision = 1 [json_name = "revision"]; + if (!this->_internal_revision().empty()) { + const std::string& _s = this->_internal_revision(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.ConfigStatus.revision"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + cached_has_bits = _impl_._has_bits_[0]; + // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::last_updated(this), + _Internal::last_updated(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.ConfigStatus) + return target; +} + +::size_t ConfigStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ConfigStatus) + ::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 revision = 1 [json_name = "revision"]; + if (!this->_internal_revision().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_revision()); + } + + // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_updated_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ConfigStatus::_class_data_ = { + ConfigStatus::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ConfigStatus::GetClassData() const { + return &_class_data_; +} + +void ConfigStatus::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ConfigStatus) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_revision().empty()) { + _this->_internal_set_revision(from._internal_revision()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_last_updated()->::google::protobuf::Timestamp::MergeFrom( + from._internal_last_updated()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ConfigStatus::CopyFrom(const ConfigStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ConfigStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ConfigStatus::IsInitialized() const { + return true; +} + +::_pbi::CachedSize* ConfigStatus::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void ConfigStatus::InternalSwap(ConfigStatus* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.revision_, &other->_impl_.revision_, arena); + swap(_impl_.last_updated_, other->_impl_.last_updated_); +} + +::google::protobuf::Metadata ConfigStatus::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[50]); +} // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace robot diff --git a/src/viam/api/robot/v1/robot.pb.h b/src/viam/api/robot/v1/robot.pb.h index e8f45ae2d..3be82555d 100644 --- a/src/viam/api/robot/v1/robot.pb.h +++ b/src/viam/api/robot/v1/robot.pb.h @@ -77,6 +77,9 @@ extern CancelOperationRequestDefaultTypeInternal _CancelOperationRequest_default class CancelOperationResponse; struct CancelOperationResponseDefaultTypeInternal; extern CancelOperationResponseDefaultTypeInternal _CancelOperationResponse_default_instance_; +class ConfigStatus; +struct ConfigStatusDefaultTypeInternal; +extern ConfigStatusDefaultTypeInternal _ConfigStatus_default_instance_; class DiscoverComponentsRequest; struct DiscoverComponentsRequestDefaultTypeInternal; extern DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; @@ -5381,10 +5384,27 @@ class ResourceStatus final : // accessors ------------------------------------------------------- enum : int { + kRevisionFieldNumber = 4, kNameFieldNumber = 1, kLastUpdatedFieldNumber = 3, kStateFieldNumber = 2, }; + // string revision = 4 [json_name = "revision"]; + void clear_revision() ; + const std::string& revision() const; + template + void set_revision(Arg_&& arg, Args_... args); + std::string* mutable_revision(); + PROTOBUF_NODISCARD std::string* release_revision(); + void set_allocated_revision(std::string* value); + + private: + const std::string& _internal_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision( + const std::string& value); + std::string* _internal_mutable_revision(); + + public: // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; bool has_name() const; void clear_name() ; @@ -5431,8 +5451,8 @@ class ResourceStatus final : friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 0, 2> + 2, 4, 2, + 45, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -5450,6 +5470,7 @@ class ResourceStatus final : ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr revision_; ::viam::common::v1::ResourceName* name_; ::google::protobuf::Timestamp* last_updated_; int state_; @@ -6658,6 +6679,205 @@ class DiscoverComponentsRequest final : friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; };// ------------------------------------------------------------------- +class ConfigStatus final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ConfigStatus) */ { + public: + inline ConfigStatus() : ConfigStatus(nullptr) {} + ~ConfigStatus() override; + template + explicit PROTOBUF_CONSTEXPR ConfigStatus(::google::protobuf::internal::ConstantInitialized); + + inline ConfigStatus(const ConfigStatus& from) + : ConfigStatus(nullptr, from) {} + ConfigStatus(ConfigStatus&& from) noexcept + : ConfigStatus() { + *this = ::std::move(from); + } + + inline ConfigStatus& operator=(const ConfigStatus& from) { + CopyFrom(from); + return *this; + } + inline ConfigStatus& operator=(ConfigStatus&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ConfigStatus& default_instance() { + return *internal_default_instance(); + } + static inline const ConfigStatus* internal_default_instance() { + return reinterpret_cast( + &_ConfigStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 50; + + friend void swap(ConfigStatus& a, ConfigStatus& b) { + a.Swap(&b); + } + inline void Swap(ConfigStatus* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConfigStatus* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConfigStatus* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ConfigStatus& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ConfigStatus& from) { + ConfigStatus::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(ConfigStatus* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.robot.v1.ConfigStatus"; + } + protected: + explicit ConfigStatus(::google::protobuf::Arena* arena); + ConfigStatus(::google::protobuf::Arena* arena, const ConfigStatus& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRevisionFieldNumber = 1, + kLastUpdatedFieldNumber = 2, + }; + // string revision = 1 [json_name = "revision"]; + void clear_revision() ; + const std::string& revision() const; + template + void set_revision(Arg_&& arg, Args_... args); + std::string* mutable_revision(); + PROTOBUF_NODISCARD std::string* release_revision(); + void set_allocated_revision(std::string* value); + + private: + const std::string& _internal_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision( + const std::string& value); + std::string* _internal_mutable_revision(); + + public: + // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; + bool has_last_updated() const; + void clear_last_updated() ; + const ::google::protobuf::Timestamp& last_updated() const; + PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_updated(); + ::google::protobuf::Timestamp* mutable_last_updated(); + void set_allocated_last_updated(::google::protobuf::Timestamp* value); + void unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value); + ::google::protobuf::Timestamp* unsafe_arena_release_last_updated(); + + private: + const ::google::protobuf::Timestamp& _internal_last_updated() const; + ::google::protobuf::Timestamp* _internal_mutable_last_updated(); + + public: + // @@protoc_insertion_point(class_scope:viam.robot.v1.ConfigStatus) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 43, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr revision_; + ::google::protobuf::Timestamp* last_updated_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +};// ------------------------------------------------------------------- + class TransformPoseResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPoseResponse) */ { public: @@ -8253,6 +8473,7 @@ class GetMachineStatusResponse final : enum : int { kResourcesFieldNumber = 1, + kConfigFieldNumber = 2, }; // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; int resources_size() const; @@ -8272,13 +8493,28 @@ class GetMachineStatusResponse final : ::viam::robot::v1::ResourceStatus* add_resources(); const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >& resources() const; + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + bool has_config() const; + void clear_config() ; + const ::viam::robot::v1::ConfigStatus& config() const; + PROTOBUF_NODISCARD ::viam::robot::v1::ConfigStatus* release_config(); + ::viam::robot::v1::ConfigStatus* mutable_config(); + void set_allocated_config(::viam::robot::v1::ConfigStatus* value); + void unsafe_arena_set_allocated_config(::viam::robot::v1::ConfigStatus* value); + ::viam::robot::v1::ConfigStatus* unsafe_arena_release_config(); + + private: + const ::viam::robot::v1::ConfigStatus& _internal_config() const; + ::viam::robot::v1::ConfigStatus* _internal_mutable_config(); + + public: // @@protoc_insertion_point(class_scope:viam.robot.v1.GetMachineStatusResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, + 1, 2, 2, 0, 2> _table_; friend class ::google::protobuf::MessageLite; @@ -8295,8 +8531,10 @@ class GetMachineStatusResponse final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus > resources_; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus > resources_; + ::viam::robot::v1::ConfigStatus* config_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; @@ -13322,6 +13560,102 @@ GetMachineStatusResponse::_internal_mutable_resources() { return &_impl_.resources_; } +// .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; +inline bool GetMachineStatusResponse::has_config() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); + return value; +} +inline void GetMachineStatusResponse::clear_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.config_ != nullptr) _impl_.config_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::viam::robot::v1::ConfigStatus& GetMachineStatusResponse::_internal_config() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::viam::robot::v1::ConfigStatus* p = _impl_.config_; + return p != nullptr ? *p : reinterpret_cast(::viam::robot::v1::_ConfigStatus_default_instance_); +} +inline const ::viam::robot::v1::ConfigStatus& GetMachineStatusResponse::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetMachineStatusResponse.config) + return _internal_config(); +} +inline void GetMachineStatusResponse::unsafe_arena_set_allocated_config(::viam::robot::v1::ConfigStatus* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); + } + _impl_.config_ = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.GetMachineStatusResponse.config) +} +inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::release_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::robot::v1::ConfigStatus* released = _impl_.config_; + _impl_.config_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::unsafe_arena_release_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.robot.v1.GetMachineStatusResponse.config) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::robot::v1::ConfigStatus* temp = _impl_.config_; + _impl_.config_ = nullptr; + return temp; +} +inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::_internal_mutable_config() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::robot::v1::ConfigStatus>(GetArena()); + _impl_.config_ = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(p); + } + return _impl_.config_; +} +inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::viam::robot::v1::ConfigStatus* _msg = _internal_mutable_config(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetMachineStatusResponse.config) + return _msg; +} +inline void GetMachineStatusResponse::set_allocated_config(::viam::robot::v1::ConfigStatus* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::viam::robot::v1::ConfigStatus*>(_impl_.config_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.config_ = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(value); + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetMachineStatusResponse.config) +} + // ------------------------------------------------------------------- // ResourceStatus @@ -13531,6 +13865,207 @@ inline void ResourceStatus::set_allocated_last_updated(::google::protobuf::Times // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceStatus.last_updated) } +// string revision = 4 [json_name = "revision"]; +inline void ResourceStatus::clear_revision() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.revision_.ClearToEmpty(); +} +inline const std::string& ResourceStatus::revision() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceStatus.revision) + return _internal_revision(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ResourceStatus::set_revision(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.revision_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:viam.robot.v1.ResourceStatus.revision) +} +inline std::string* ResourceStatus::mutable_revision() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_revision(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceStatus.revision) + return _s; +} +inline const std::string& ResourceStatus::_internal_revision() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.revision_.Get(); +} +inline void ResourceStatus::_internal_set_revision(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.revision_.Set(value, GetArena()); +} +inline std::string* ResourceStatus::_internal_mutable_revision() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.revision_.Mutable( GetArena()); +} +inline std::string* ResourceStatus::release_revision() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceStatus.revision) + return _impl_.revision_.Release(); +} +inline void ResourceStatus::set_allocated_revision(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.revision_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.revision_.IsDefault()) { + _impl_.revision_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceStatus.revision) +} + +// ------------------------------------------------------------------- + +// ConfigStatus + +// string revision = 1 [json_name = "revision"]; +inline void ConfigStatus::clear_revision() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.revision_.ClearToEmpty(); +} +inline const std::string& ConfigStatus::revision() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.robot.v1.ConfigStatus.revision) + return _internal_revision(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ConfigStatus::set_revision(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.revision_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:viam.robot.v1.ConfigStatus.revision) +} +inline std::string* ConfigStatus::mutable_revision() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_revision(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ConfigStatus.revision) + return _s; +} +inline const std::string& ConfigStatus::_internal_revision() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.revision_.Get(); +} +inline void ConfigStatus::_internal_set_revision(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.revision_.Set(value, GetArena()); +} +inline std::string* ConfigStatus::_internal_mutable_revision() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.revision_.Mutable( GetArena()); +} +inline std::string* ConfigStatus::release_revision() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.robot.v1.ConfigStatus.revision) + return _impl_.revision_.Release(); +} +inline void ConfigStatus::set_allocated_revision(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.revision_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.revision_.IsDefault()) { + _impl_.revision_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ConfigStatus.revision) +} + +// .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; +inline bool ConfigStatus::has_last_updated() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.last_updated_ != nullptr); + return value; +} +inline const ::google::protobuf::Timestamp& ConfigStatus::_internal_last_updated() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::google::protobuf::Timestamp* p = _impl_.last_updated_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +} +inline const ::google::protobuf::Timestamp& ConfigStatus::last_updated() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.robot.v1.ConfigStatus.last_updated) + return _internal_last_updated(); +} +inline void ConfigStatus::unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); + } + _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.ConfigStatus.last_updated) +} +inline ::google::protobuf::Timestamp* ConfigStatus::release_last_updated() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Timestamp* released = _impl_.last_updated_; + _impl_.last_updated_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::google::protobuf::Timestamp* ConfigStatus::unsafe_arena_release_last_updated() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.robot.v1.ConfigStatus.last_updated) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Timestamp* temp = _impl_.last_updated_; + _impl_.last_updated_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* ConfigStatus::_internal_mutable_last_updated() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.last_updated_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); + _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); + } + return _impl_.last_updated_; +} +inline ::google::protobuf::Timestamp* ConfigStatus::mutable_last_updated() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Timestamp* _msg = _internal_mutable_last_updated(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ConfigStatus.last_updated) + return _msg; +} +inline void ConfigStatus::set_allocated_last_updated(::google::protobuf::Timestamp* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ConfigStatus.last_updated) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__