diff --git a/src/viam/api/app/packages/v1/packages.grpc.pb.h b/src/viam/api/app/packages/v1/packages.grpc.pb.h index f02988784..5f044fc74 100644 --- a/src/viam/api/app/packages/v1/packages.grpc.pb.h +++ b/src/viam/api/app/packages/v1/packages.grpc.pb.h @@ -65,7 +65,7 @@ class PackageService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::packages::v1::GetPackageResponse>> PrepareAsyncGetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::packages::v1::GetPackageResponse>>(PrepareAsyncGetPackageRaw(context, request, cq)); } - // ListPackages gets the metadata for the requested packages. Include package name, version, and/or + // ListPackages gets the metadata for the requested packages. Includes package name, version, and/or // type to filter beyond the required organization_id. ListPackages also returns URLs for // downloading each package if they are requested. virtual ::grpc::Status ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest& request, ::viam::app::packages::v1::ListPackagesResponse* response) = 0; @@ -87,7 +87,7 @@ class PackageService final { // for downloading the package if one is requested. virtual void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function) = 0; virtual void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // ListPackages gets the metadata for the requested packages. Include package name, version, and/or + // ListPackages gets the metadata for the requested packages. Includes package name, version, and/or // type to filter beyond the required organization_id. ListPackages also returns URLs for // downloading each package if they are requested. virtual void ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function) = 0; @@ -188,7 +188,7 @@ class PackageService final { // GetPackage returns the metadata for a requested package version. It also returns a URL // for downloading the package if one is requested. virtual ::grpc::Status GetPackage(::grpc::ServerContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response); - // ListPackages gets the metadata for the requested packages. Include package name, version, and/or + // ListPackages gets the metadata for the requested packages. Includes package name, version, and/or // type to filter beyond the required organization_id. ListPackages also returns URLs for // downloading each package if they are requested. virtual ::grpc::Status ListPackages(::grpc::ServerContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response); diff --git a/src/viam/api/app/packages/v1/packages.pb.cc b/src/viam/api/app/packages/v1/packages.pb.cc index faf28b041..b5c58b046 100644 --- a/src/viam/api/app/packages/v1/packages.pb.cc +++ b/src/viam/api/app/packages/v1/packages.pb.cc @@ -379,26 +379,25 @@ const char descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto[] PR "l\210\001\001B\007\n\005_nameB\n\n\010_versionB\007\n\005_typeB\016\n\014_i" "nclude_url\"Q\n\024ListPackagesResponse\0229\n\010pa" "ckages\030\001 \003(\0132\035.viam.app.packages.v1.Pack" - "ageR\010packages*\261\001\n\013PackageType\022\034\n\030PACKAGE" + "ageR\010packages*\224\001\n\013PackageType\022\034\n\030PACKAGE" "_TYPE_UNSPECIFIED\020\000\022\030\n\024PACKAGE_TYPE_ARCH" "IVE\020\001\022\031\n\025PACKAGE_TYPE_ML_MODEL\020\002\022\027\n\023PACK" "AGE_TYPE_MODULE\020\003\022\031\n\025PACKAGE_TYPE_SLAM_M" - "AP\020\004\022\033\n\027PACKAGE_TYPE_BOARD_DEFS\020\0052\240\004\n\016Pa" - "ckageService\022\207\001\n\rCreatePackage\022*.viam.ap" - "p.packages.v1.CreatePackageRequest\032+.via" - "m.app.packages.v1.CreatePackageResponse\"" - "\033\202\323\344\223\002\025\"\023/packages/v1/create(\001\022\205\001\n\rDelet" - "ePackage\022*.viam.app.packages.v1.DeletePa" - "ckageRequest\032+.viam.app.packages.v1.Dele" - "tePackageResponse\"\033\202\323\344\223\002\025*\023/packages/v1/" - "delete\022y\n\nGetPackage\022\'.viam.app.packages" - ".v1.GetPackageRequest\032(.viam.app.package" - "s.v1.GetPackageResponse\"\030\202\323\344\223\002\022\022\020/packag" - "es/v1/get\022\200\001\n\014ListPackages\022).viam.app.pa" - "ckages.v1.ListPackagesRequest\032*.viam.app" - ".packages.v1.ListPackagesResponse\"\031\202\323\344\223\002" - "\023\022\021/packages/v1/listB!Z\037go.viam.com/api/" - "app/packages/v1b\006proto3" + "AP\020\0042\240\004\n\016PackageService\022\207\001\n\rCreatePackag" + "e\022*.viam.app.packages.v1.CreatePackageRe" + "quest\032+.viam.app.packages.v1.CreatePacka" + "geResponse\"\033\202\323\344\223\002\025\"\023/packages/v1/create(" + "\001\022\205\001\n\rDeletePackage\022*.viam.app.packages." + "v1.DeletePackageRequest\032+.viam.app.packa" + "ges.v1.DeletePackageResponse\"\033\202\323\344\223\002\025*\023/p" + "ackages/v1/delete\022y\n\nGetPackage\022\'.viam.a" + "pp.packages.v1.GetPackageRequest\032(.viam." + "app.packages.v1.GetPackageResponse\"\030\202\323\344\223" + "\002\022\022\020/packages/v1/get\022\200\001\n\014ListPackages\022)." + "viam.app.packages.v1.ListPackagesRequest" + "\032*.viam.app.packages.v1.ListPackagesResp" + "onse\"\031\202\323\344\223\002\023\022\021/packages/v1/listB!Z\037go.vi" + "am.com/api/app/packages/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_deps[3] = { &::descriptor_table_google_2fapi_2fannotations_2eproto, @@ -407,7 +406,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_app_2fpackages_2fv1 }; static ::_pbi::once_flag descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto = { - false, false, 2463, descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto, + false, false, 2434, descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto, "app/packages/v1/packages.proto", &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_deps, 3, 11, schemas, file_default_instances, TableStruct_app_2fpackages_2fv1_2fpackages_2eproto::offsets, @@ -435,7 +434,6 @@ bool PackageType_IsValid(int value) { case 2: case 3: case 4: - case 5: return true; default: return false; diff --git a/src/viam/api/app/packages/v1/packages.pb.h b/src/viam/api/app/packages/v1/packages.pb.h index e6d310bc8..c96674036 100644 --- a/src/viam/api/app/packages/v1/packages.pb.h +++ b/src/viam/api/app/packages/v1/packages.pb.h @@ -114,13 +114,12 @@ enum PackageType : int { PACKAGE_TYPE_ML_MODEL = 2, PACKAGE_TYPE_MODULE = 3, PACKAGE_TYPE_SLAM_MAP = 4, - PACKAGE_TYPE_BOARD_DEFS = 5, PackageType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), PackageType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool PackageType_IsValid(int value); constexpr PackageType PackageType_MIN = PACKAGE_TYPE_UNSPECIFIED; -constexpr PackageType PackageType_MAX = PACKAGE_TYPE_BOARD_DEFS; +constexpr PackageType PackageType_MAX = PACKAGE_TYPE_SLAM_MAP; constexpr int PackageType_ARRAYSIZE = PackageType_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PackageType_descriptor(); diff --git a/src/viam/api/app/v1/app.pb.cc b/src/viam/api/app/v1/app.pb.cc index 4db18d0c1..172266cc0 100644 --- a/src/viam/api/app/v1/app.pb.cc +++ b/src/viam/api/app/v1/app.pb.cc @@ -893,7 +893,8 @@ struct GetRobotPartResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartResponseDefaultTypeInternal _GetRobotPartResponse_default_instance_; PROTOBUF_CONSTEXPR GetRobotPartLogsRequest::GetRobotPartLogsRequest( ::_pbi::ConstantInitialized) - : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + : levels_() + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , filter_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , errors_only_(false){} @@ -906,25 +907,6 @@ struct GetRobotPartLogsRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartLogsRequestDefaultTypeInternal _GetRobotPartLogsRequest_default_instance_; -PROTOBUF_CONSTEXPR LogEntry::LogEntry( - ::_pbi::ConstantInitialized) - : fields_() - , host_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , logger_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , stack_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , time_(nullptr) - , caller_(nullptr){} -struct LogEntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogEntryDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~LogEntryDefaultTypeInternal() {} - union { - LogEntry _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogEntryDefaultTypeInternal _LogEntry_default_instance_; PROTOBUF_CONSTEXPR GetRobotPartLogsResponse::GetRobotPartLogsResponse( ::_pbi::ConstantInitialized) : logs_() @@ -2216,7 +2198,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace v1 } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fv1_2fapp_2eproto[168]; +static ::_pb::Metadata file_level_metadata_app_2fv1_2fapp_2eproto[167]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fapp_2eproto[3]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2fapp_2eproto = nullptr; @@ -2785,24 +2767,12 @@ const uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VA PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, errors_only_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, filter_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, page_token_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, levels_), ~0u, ~0u, 0, 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, host_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, level_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, time_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, logger_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, message_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, caller_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, stack_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogEntry, fields_), + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -3674,107 +3644,106 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 532, -1, -1, sizeof(::viam::app::v1::GetRobotPartsResponse)}, { 539, -1, -1, sizeof(::viam::app::v1::GetRobotPartRequest)}, { 546, -1, -1, sizeof(::viam::app::v1::GetRobotPartResponse)}, - { 554, 564, -1, sizeof(::viam::app::v1::GetRobotPartLogsRequest)}, - { 568, -1, -1, sizeof(::viam::app::v1::LogEntry)}, - { 582, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsResponse)}, - { 590, 599, -1, sizeof(::viam::app::v1::TailRobotPartLogsRequest)}, - { 602, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsResponse)}, - { 609, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryRequest)}, - { 616, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryResponse)}, - { 623, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartRequest)}, - { 632, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartResponse)}, - { 639, -1, -1, sizeof(::viam::app::v1::NewRobotPartRequest)}, - { 647, -1, -1, sizeof(::viam::app::v1::NewRobotPartResponse)}, - { 654, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartRequest)}, - { 661, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysRequest)}, - { 668, -1, -1, sizeof(::viam::app::v1::APIKey)}, - { 678, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysResponse)}, - { 685, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartResponse)}, - { 691, -1, -1, sizeof(::viam::app::v1::Fragment)}, - { 707, -1, -1, sizeof(::viam::app::v1::ListFragmentsRequest)}, - { 715, -1, -1, sizeof(::viam::app::v1::ListFragmentsResponse)}, - { 722, -1, -1, sizeof(::viam::app::v1::GetFragmentRequest)}, - { 729, -1, -1, sizeof(::viam::app::v1::GetFragmentResponse)}, - { 736, -1, -1, sizeof(::viam::app::v1::CreateFragmentRequest)}, - { 745, -1, -1, sizeof(::viam::app::v1::CreateFragmentResponse)}, - { 752, 762, -1, sizeof(::viam::app::v1::UpdateFragmentRequest)}, - { 766, -1, -1, sizeof(::viam::app::v1::UpdateFragmentResponse)}, - { 773, -1, -1, sizeof(::viam::app::v1::DeleteFragmentRequest)}, - { 780, -1, -1, sizeof(::viam::app::v1::DeleteFragmentResponse)}, - { 786, -1, -1, sizeof(::viam::app::v1::ListRobotsRequest)}, - { 793, -1, -1, sizeof(::viam::app::v1::ListRobotsResponse)}, - { 800, -1, -1, sizeof(::viam::app::v1::NewRobotRequest)}, - { 808, -1, -1, sizeof(::viam::app::v1::NewRobotResponse)}, - { 815, -1, -1, sizeof(::viam::app::v1::UpdateRobotRequest)}, - { 824, -1, -1, sizeof(::viam::app::v1::UpdateRobotResponse)}, - { 831, -1, -1, sizeof(::viam::app::v1::DeleteRobotRequest)}, - { 838, -1, -1, sizeof(::viam::app::v1::DeleteRobotResponse)}, - { 844, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainRequest)}, - { 851, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainResponse)}, - { 857, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartRequest)}, - { 864, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartResponse)}, - { 870, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretRequest)}, - { 877, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretResponse)}, - { 884, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretRequest)}, - { 892, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretResponse)}, - { 898, -1, -1, sizeof(::viam::app::v1::Authorization)}, - { 911, -1, -1, sizeof(::viam::app::v1::AddRoleRequest)}, - { 918, -1, -1, sizeof(::viam::app::v1::AddRoleResponse)}, - { 924, -1, -1, sizeof(::viam::app::v1::RemoveRoleRequest)}, - { 931, -1, -1, sizeof(::viam::app::v1::RemoveRoleResponse)}, - { 937, -1, -1, sizeof(::viam::app::v1::ChangeRoleRequest)}, - { 945, -1, -1, sizeof(::viam::app::v1::ChangeRoleResponse)}, - { 951, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsRequest)}, - { 959, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsResponse)}, - { 966, -1, -1, sizeof(::viam::app::v1::CheckPermissionsRequest)}, - { 973, -1, -1, sizeof(::viam::app::v1::AuthorizedPermissions)}, - { 982, -1, -1, sizeof(::viam::app::v1::CheckPermissionsResponse)}, - { 989, -1, -1, sizeof(::viam::app::v1::ModuleVersion)}, - { 999, -1, -1, sizeof(::viam::app::v1::ModuleMetadata)}, - { 1008, -1, -1, sizeof(::viam::app::v1::MLModelMetadata)}, - { 1015, -1, -1, sizeof(::viam::app::v1::RegistryItem)}, - { 1038, -1, -1, sizeof(::viam::app::v1::GetRegistryItemRequest)}, - { 1045, -1, -1, sizeof(::viam::app::v1::GetRegistryItemResponse)}, - { 1052, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemRequest)}, - { 1061, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemResponse)}, - { 1067, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemRequest)}, - { 1077, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemResponse)}, - { 1083, 1096, -1, sizeof(::viam::app::v1::ListRegistryItemsRequest)}, - { 1103, -1, -1, sizeof(::viam::app::v1::ListRegistryItemsResponse)}, - { 1110, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemRequest)}, - { 1117, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemResponse)}, - { 1123, -1, -1, sizeof(::viam::app::v1::CreateModuleRequest)}, - { 1131, -1, -1, sizeof(::viam::app::v1::CreateModuleResponse)}, - { 1139, -1, -1, sizeof(::viam::app::v1::UpdateModuleRequest)}, - { 1151, -1, -1, sizeof(::viam::app::v1::UpdateModuleResponse)}, - { 1158, -1, -1, sizeof(::viam::app::v1::Model)}, - { 1166, -1, -1, sizeof(::viam::app::v1::ModuleFileInfo)}, - { 1175, -1, -1, sizeof(::viam::app::v1::UploadModuleFileRequest)}, - { 1184, -1, -1, sizeof(::viam::app::v1::UploadModuleFileResponse)}, - { 1191, -1, -1, sizeof(::viam::app::v1::GetModuleRequest)}, - { 1198, -1, -1, sizeof(::viam::app::v1::GetModuleResponse)}, - { 1205, -1, -1, sizeof(::viam::app::v1::Module)}, - { 1223, -1, -1, sizeof(::viam::app::v1::VersionHistory)}, - { 1233, -1, -1, sizeof(::viam::app::v1::Uploads)}, - { 1241, 1248, -1, sizeof(::viam::app::v1::ListModulesRequest)}, - { 1249, -1, -1, sizeof(::viam::app::v1::ListModulesResponse)}, - { 1256, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailRequest)}, - { 1263, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailResponse)}, - { 1270, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserRequest)}, - { 1277, -1, -1, sizeof(::viam::app::v1::OrgDetails)}, - { 1285, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserResponse)}, - { 1292, -1, -1, sizeof(::viam::app::v1::CreateKeyRequest)}, - { 1300, -1, -1, sizeof(::viam::app::v1::CreateKeyResponse)}, - { 1308, -1, -1, sizeof(::viam::app::v1::DeleteKeyRequest)}, - { 1315, -1, -1, sizeof(::viam::app::v1::DeleteKeyResponse)}, - { 1321, -1, -1, sizeof(::viam::app::v1::AuthorizationDetails)}, - { 1332, -1, -1, sizeof(::viam::app::v1::APIKeyWithAuthorizations)}, - { 1340, -1, -1, sizeof(::viam::app::v1::ListKeysRequest)}, - { 1347, -1, -1, sizeof(::viam::app::v1::ListKeysResponse)}, - { 1354, -1, -1, sizeof(::viam::app::v1::RotateKeyRequest)}, - { 1361, -1, -1, sizeof(::viam::app::v1::RotateKeyResponse)}, - { 1369, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest)}, - { 1376, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse)}, + { 554, 565, -1, sizeof(::viam::app::v1::GetRobotPartLogsRequest)}, + { 570, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsResponse)}, + { 578, 587, -1, sizeof(::viam::app::v1::TailRobotPartLogsRequest)}, + { 590, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsResponse)}, + { 597, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryRequest)}, + { 604, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryResponse)}, + { 611, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartRequest)}, + { 620, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartResponse)}, + { 627, -1, -1, sizeof(::viam::app::v1::NewRobotPartRequest)}, + { 635, -1, -1, sizeof(::viam::app::v1::NewRobotPartResponse)}, + { 642, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartRequest)}, + { 649, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysRequest)}, + { 656, -1, -1, sizeof(::viam::app::v1::APIKey)}, + { 666, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysResponse)}, + { 673, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartResponse)}, + { 679, -1, -1, sizeof(::viam::app::v1::Fragment)}, + { 695, -1, -1, sizeof(::viam::app::v1::ListFragmentsRequest)}, + { 703, -1, -1, sizeof(::viam::app::v1::ListFragmentsResponse)}, + { 710, -1, -1, sizeof(::viam::app::v1::GetFragmentRequest)}, + { 717, -1, -1, sizeof(::viam::app::v1::GetFragmentResponse)}, + { 724, -1, -1, sizeof(::viam::app::v1::CreateFragmentRequest)}, + { 733, -1, -1, sizeof(::viam::app::v1::CreateFragmentResponse)}, + { 740, 750, -1, sizeof(::viam::app::v1::UpdateFragmentRequest)}, + { 754, -1, -1, sizeof(::viam::app::v1::UpdateFragmentResponse)}, + { 761, -1, -1, sizeof(::viam::app::v1::DeleteFragmentRequest)}, + { 768, -1, -1, sizeof(::viam::app::v1::DeleteFragmentResponse)}, + { 774, -1, -1, sizeof(::viam::app::v1::ListRobotsRequest)}, + { 781, -1, -1, sizeof(::viam::app::v1::ListRobotsResponse)}, + { 788, -1, -1, sizeof(::viam::app::v1::NewRobotRequest)}, + { 796, -1, -1, sizeof(::viam::app::v1::NewRobotResponse)}, + { 803, -1, -1, sizeof(::viam::app::v1::UpdateRobotRequest)}, + { 812, -1, -1, sizeof(::viam::app::v1::UpdateRobotResponse)}, + { 819, -1, -1, sizeof(::viam::app::v1::DeleteRobotRequest)}, + { 826, -1, -1, sizeof(::viam::app::v1::DeleteRobotResponse)}, + { 832, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainRequest)}, + { 839, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainResponse)}, + { 845, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartRequest)}, + { 852, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartResponse)}, + { 858, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretRequest)}, + { 865, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretResponse)}, + { 872, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretRequest)}, + { 880, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretResponse)}, + { 886, -1, -1, sizeof(::viam::app::v1::Authorization)}, + { 899, -1, -1, sizeof(::viam::app::v1::AddRoleRequest)}, + { 906, -1, -1, sizeof(::viam::app::v1::AddRoleResponse)}, + { 912, -1, -1, sizeof(::viam::app::v1::RemoveRoleRequest)}, + { 919, -1, -1, sizeof(::viam::app::v1::RemoveRoleResponse)}, + { 925, -1, -1, sizeof(::viam::app::v1::ChangeRoleRequest)}, + { 933, -1, -1, sizeof(::viam::app::v1::ChangeRoleResponse)}, + { 939, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsRequest)}, + { 947, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsResponse)}, + { 954, -1, -1, sizeof(::viam::app::v1::CheckPermissionsRequest)}, + { 961, -1, -1, sizeof(::viam::app::v1::AuthorizedPermissions)}, + { 970, -1, -1, sizeof(::viam::app::v1::CheckPermissionsResponse)}, + { 977, -1, -1, sizeof(::viam::app::v1::ModuleVersion)}, + { 987, -1, -1, sizeof(::viam::app::v1::ModuleMetadata)}, + { 996, -1, -1, sizeof(::viam::app::v1::MLModelMetadata)}, + { 1003, -1, -1, sizeof(::viam::app::v1::RegistryItem)}, + { 1026, -1, -1, sizeof(::viam::app::v1::GetRegistryItemRequest)}, + { 1033, -1, -1, sizeof(::viam::app::v1::GetRegistryItemResponse)}, + { 1040, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemRequest)}, + { 1049, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemResponse)}, + { 1055, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemRequest)}, + { 1065, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemResponse)}, + { 1071, 1084, -1, sizeof(::viam::app::v1::ListRegistryItemsRequest)}, + { 1091, -1, -1, sizeof(::viam::app::v1::ListRegistryItemsResponse)}, + { 1098, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemRequest)}, + { 1105, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemResponse)}, + { 1111, -1, -1, sizeof(::viam::app::v1::CreateModuleRequest)}, + { 1119, -1, -1, sizeof(::viam::app::v1::CreateModuleResponse)}, + { 1127, -1, -1, sizeof(::viam::app::v1::UpdateModuleRequest)}, + { 1139, -1, -1, sizeof(::viam::app::v1::UpdateModuleResponse)}, + { 1146, -1, -1, sizeof(::viam::app::v1::Model)}, + { 1154, -1, -1, sizeof(::viam::app::v1::ModuleFileInfo)}, + { 1163, -1, -1, sizeof(::viam::app::v1::UploadModuleFileRequest)}, + { 1172, -1, -1, sizeof(::viam::app::v1::UploadModuleFileResponse)}, + { 1179, -1, -1, sizeof(::viam::app::v1::GetModuleRequest)}, + { 1186, -1, -1, sizeof(::viam::app::v1::GetModuleResponse)}, + { 1193, -1, -1, sizeof(::viam::app::v1::Module)}, + { 1211, -1, -1, sizeof(::viam::app::v1::VersionHistory)}, + { 1221, -1, -1, sizeof(::viam::app::v1::Uploads)}, + { 1229, 1236, -1, sizeof(::viam::app::v1::ListModulesRequest)}, + { 1237, -1, -1, sizeof(::viam::app::v1::ListModulesResponse)}, + { 1244, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailRequest)}, + { 1251, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailResponse)}, + { 1258, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserRequest)}, + { 1265, -1, -1, sizeof(::viam::app::v1::OrgDetails)}, + { 1273, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserResponse)}, + { 1280, -1, -1, sizeof(::viam::app::v1::CreateKeyRequest)}, + { 1288, -1, -1, sizeof(::viam::app::v1::CreateKeyResponse)}, + { 1296, -1, -1, sizeof(::viam::app::v1::DeleteKeyRequest)}, + { 1303, -1, -1, sizeof(::viam::app::v1::DeleteKeyResponse)}, + { 1309, -1, -1, sizeof(::viam::app::v1::AuthorizationDetails)}, + { 1320, -1, -1, sizeof(::viam::app::v1::APIKeyWithAuthorizations)}, + { 1328, -1, -1, sizeof(::viam::app::v1::ListKeysRequest)}, + { 1335, -1, -1, sizeof(::viam::app::v1::ListKeysResponse)}, + { 1342, -1, -1, sizeof(::viam::app::v1::RotateKeyRequest)}, + { 1349, -1, -1, sizeof(::viam::app::v1::RotateKeyResponse)}, + { 1357, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest)}, + { 1364, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -3846,7 +3815,6 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_GetRobotPartRequest_default_instance_._instance, &::viam::app::v1::_GetRobotPartResponse_default_instance_._instance, &::viam::app::v1::_GetRobotPartLogsRequest_default_instance_._instance, - &::viam::app::v1::_LogEntry_default_instance_._instance, &::viam::app::v1::_GetRobotPartLogsResponse_default_instance_._instance, &::viam::app::v1::_TailRobotPartLogsRequest_default_instance_._instance, &::viam::app::v1::_TailRobotPartLogsResponse_default_instance_._instance, @@ -3950,659 +3918,655 @@ static const ::_pb::Message* const file_default_instances[] = { const char descriptor_table_protodef_app_2fv1_2fapp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\020app/v1/app.proto\022\013viam.app.v1\032\036app/pac" - "kages/v1/packages.proto\032\034google/protobuf" - "/struct.proto\032\037google/protobuf/timestamp" - ".proto\032\026tagger/v1/tagger.proto\"\354\002\n\005Robot" - "\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bson:\"_id\" json:\"id,o" - "mitempty\"R\002id\0220\n\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"" - "name\" json:\"name\"R\004name\022@\n\010location\030\003 \001(" - "\tB$\232\204\236\003\037bson:\"location\" json:\"location\"R" - "\010location\022g\n\013last_access\030\004 \001(\0132\032.google." - "protobuf.TimestampB*\232\204\236\003%bson:\"last_acce" - "ss\" json:\"last_access\"R\nlastAccess\022Q\n\ncr" - "eated_on\030\005 \001(\0132\032.google.protobuf.Timesta" - "mpB\026\232\204\236\003\021bson:\"created_on\"R\tcreatedOn\"\323\007" - "\n\tRobotPart\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bson:\"_id\"" - " json:\"id,omitempty\"R\002id\0220\n\004name\030\002 \001(\tB\034" - "\232\204\236\003\027bson:\"name\" json:\"name\"R\004name\022\?\n\010dn" - "s_name\030\n \001(\tB$\232\204\236\003\037bson:\"dns_name\" json:" - "\"dns_name\"R\007dnsName\022B\n\006secret\030\003 \001(\tB*\232\204\236" - "\003%bson:\"secret\" json:\"secret,omitempty\"R" - "\006secret\0224\n\005robot\030\004 \001(\tB\036\232\204\236\003\031bson:\"robot" - "\" json:\"robot\"R\005robot\022A\n\013location_id\030\014 \001" - "(\tB \232\204\236\003\033bson:\"location_id\" json:\"-\"R\nlo" - "cationId\022b\n\014robot_config\030\005 \001(\0132\027.google." - "protobuf.StructB&\232\204\236\003!bson:\"config\" json" - ":\"robot_config\"R\013robotConfig\022g\n\013last_acc" - "ess\030\006 \001(\0132\032.google.protobuf.TimestampB*\232" - "\204\236\003%bson:\"last_access\" json:\"last_access" - "\"R\nlastAccess\022\177\n\022user_supplied_info\030\007 \001(" - "\0132\027.google.protobuf.StructB8\232\204\236\0033bson:\"u" - "ser_supplied_info\" json:\"user_supplied_i" - "nfo\"R\020userSuppliedInfo\022C\n\tmain_part\030\010 \001(" - "\010B&\232\204\236\003!bson:\"main_part\" json:\"main_part" - "\"R\010mainPart\022\022\n\004fqdn\030\t \001(\tR\004fqdn\022\035\n\nlocal" - "_fqdn\030\013 \001(\tR\tlocalFqdn\022Q\n\ncreated_on\030\r \001" - "(\0132\032.google.protobuf.TimestampB\026\232\204\236\003\021bso" - "n:\"created_on\"R\tcreatedOn\022H\n\007secrets\030\016 \003" - "(\0132\031.viam.app.v1.SharedSecretB\023\232\204\236\003\016bson" - ":\"secrets\"R\007secrets\"\223\002\n\025RobotPartHistory" - "Entry\0220\n\004part\030\001 \001(\tB\034\232\204\236\003\027bson:\"part\" js" - "on:\"part\"R\004part\0224\n\005robot\030\002 \001(\tB\036\232\204\236\003\031bso" - "n:\"robot\" json:\"robot\"R\005robot\022L\n\004when\030\003 " - "\001(\0132\032.google.protobuf.TimestampB\034\232\204\236\003\027bs" - "on:\"when\" json:\"when\"R\004when\022D\n\003old\030\004 \001(\013" - "2\026.viam.app.v1.RobotPartB\032\232\204\236\003\025bson:\"old" - "\" json:\"old\"R\003old\"\032\n\030ListOrganizationsRe" - "quest\"\336\001\n\014Organization\022\016\n\002id\030\001 \001(\tR\002id\022\022" - "\n\004name\030\002 \001(\tR\004name\0229\n\ncreated_on\030\003 \001(\0132\032" - ".google.protobuf.TimestampR\tcreatedOn\022)\n" - "\020public_namespace\030\004 \001(\tR\017publicNamespace" - "\022%\n\016default_region\030\005 \001(\tR\rdefaultRegion\022" - "\025\n\003cid\030\006 \001(\tH\000R\003cid\210\001\001B\006\n\004_cid\"\317\001\n\022Organ" - "izationMember\022\027\n\007user_id\030\001 \001(\tR\006userId\022\026" - "\n\006emails\030\002 \003(\tR\006emails\0229\n\ndate_added\030\003 \001" - "(\0132\032.google.protobuf.TimestampR\tdateAdde" - "d\022>\n\nlast_login\030\004 \001(\0132\032.google.protobuf." - "TimestampH\000R\tlastLogin\210\001\001B\r\n\013_last_login" - "\"\\\n\031ListOrganizationsResponse\022\?\n\rorganiz" - "ations\030\001 \003(\0132\031.viam.app.v1.OrganizationR" - "\rorganizations\"\322\001\n\022OrganizationInvite\022\'\n" - "\017organization_id\030\001 \001(\tR\016organizationId\022\024" - "\n\005email\030\002 \001(\tR\005email\0229\n\ncreated_on\030\003 \001(\013" - "2\032.google.protobuf.TimestampR\tcreatedOn\022" - "B\n\016authorizations\030\004 \003(\0132\032.viam.app.v1.Au" - "thorizationR\016authorizations\"/\n\031CreateOrg" - "anizationRequest\022\022\n\004name\030\001 \001(\tR\004name\"[\n\032" - "CreateOrganizationResponse\022=\n\014organizati" - "on\030\001 \001(\0132\031.viam.app.v1.OrganizationR\014org" - "anization\"A\n\026GetOrganizationRequest\022\'\n\017o" - "rganization_id\030\001 \001(\tR\016organizationId\"X\n\027" - "GetOrganizationResponse\022=\n\014organization\030" - "\001 \001(\0132\031.viam.app.v1.OrganizationR\014organi" - "zation\"X\n+GetOrganizationNamespaceAvaila" - "bilityRequest\022)\n\020public_namespace\030\001 \001(\tR" - "\017publicNamespace\"L\n,GetOrganizationNames" - "paceAvailabilityResponse\022\034\n\tavailable\030\001 " - "\001(\010R\tavailable\"\362\001\n\031UpdateOrganizationReq" - "uest\022\'\n\017organization_id\030\001 \001(\tR\016organizat" - "ionId\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\022.\n\020public" - "_namespace\030\003 \001(\tH\001R\017publicNamespace\210\001\001\022\033" - "\n\006region\030\004 \001(\tH\002R\006region\210\001\001\022\025\n\003cid\030\005 \001(\t" - "H\003R\003cid\210\001\001B\007\n\005_nameB\023\n\021_public_namespace" - "B\t\n\007_regionB\006\n\004_cid\"[\n\032UpdateOrganizatio" - "nResponse\022=\n\014organization\030\001 \001(\0132\031.viam.a" - "pp.v1.OrganizationR\014organization\"D\n\031Dele" - "teOrganizationRequest\022\'\n\017organization_id" - "\030\001 \001(\tR\016organizationId\"\034\n\032DeleteOrganiza" - "tionResponse\"I\n\036ListOrganizationMembersR" - "equest\022\'\n\017organization_id\030\001 \001(\tR\016organiz" - "ationId\"\300\001\n\037ListOrganizationMembersRespo" - "nse\022\'\n\017organization_id\030\001 \001(\tR\016organizati" - "onId\0229\n\007members\030\002 \003(\0132\037.viam.app.v1.Orga" - "nizationMemberR\007members\0229\n\007invites\030\003 \003(\013" - "2\037.viam.app.v1.OrganizationInviteR\007invit" - "es\"\244\001\n\037CreateOrganizationInviteRequest\022\'" - "\n\017organization_id\030\001 \001(\tR\016organizationId\022" - "\024\n\005email\030\002 \001(\tR\005email\022B\n\016authorizations\030" - "\003 \003(\0132\032.viam.app.v1.AuthorizationR\016autho" - "rizations\"[\n CreateOrganizationInviteRes" + "kages/v1/packages.proto\032\026common/v1/commo" + "n.proto\032\034google/protobuf/struct.proto\032\037g" + "oogle/protobuf/timestamp.proto\032\026tagger/v" + "1/tagger.proto\"\354\002\n\005Robot\0223\n\002id\030\001 \001(\tB#\232\204" + "\236\003\036bson:\"_id\" json:\"id,omitempty\"R\002id\0220\n" + "\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name" + "\"R\004name\022@\n\010location\030\003 \001(\tB$\232\204\236\003\037bson:\"lo" + "cation\" json:\"location\"R\010location\022g\n\013las" + "t_access\030\004 \001(\0132\032.google.protobuf.Timesta" + "mpB*\232\204\236\003%bson:\"last_access\" json:\"last_a" + "ccess\"R\nlastAccess\022Q\n\ncreated_on\030\005 \001(\0132\032" + ".google.protobuf.TimestampB\026\232\204\236\003\021bson:\"c" + "reated_on\"R\tcreatedOn\"\323\007\n\tRobotPart\0223\n\002i" + "d\030\001 \001(\tB#\232\204\236\003\036bson:\"_id\" json:\"id,omitem" + "pty\"R\002id\0220\n\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\"" + " json:\"name\"R\004name\022\?\n\010dns_name\030\n \001(\tB$\232\204" + "\236\003\037bson:\"dns_name\" json:\"dns_name\"R\007dnsN" + "ame\022B\n\006secret\030\003 \001(\tB*\232\204\236\003%bson:\"secret\" " + "json:\"secret,omitempty\"R\006secret\0224\n\005robot" + "\030\004 \001(\tB\036\232\204\236\003\031bson:\"robot\" json:\"robot\"R\005" + "robot\022A\n\013location_id\030\014 \001(\tB \232\204\236\003\033bson:\"l" + "ocation_id\" json:\"-\"R\nlocationId\022b\n\014robo" + "t_config\030\005 \001(\0132\027.google.protobuf.StructB" + "&\232\204\236\003!bson:\"config\" json:\"robot_config\"R" + "\013robotConfig\022g\n\013last_access\030\006 \001(\0132\032.goog" + "le.protobuf.TimestampB*\232\204\236\003%bson:\"last_a" + "ccess\" json:\"last_access\"R\nlastAccess\022\177\n" + "\022user_supplied_info\030\007 \001(\0132\027.google.proto" + "buf.StructB8\232\204\236\0033bson:\"user_supplied_inf" + "o\" json:\"user_supplied_info\"R\020userSuppli" + "edInfo\022C\n\tmain_part\030\010 \001(\010B&\232\204\236\003!bson:\"ma" + "in_part\" json:\"main_part\"R\010mainPart\022\022\n\004f" + "qdn\030\t \001(\tR\004fqdn\022\035\n\nlocal_fqdn\030\013 \001(\tR\tloc" + "alFqdn\022Q\n\ncreated_on\030\r \001(\0132\032.google.prot" + "obuf.TimestampB\026\232\204\236\003\021bson:\"created_on\"R\t" + "createdOn\022H\n\007secrets\030\016 \003(\0132\031.viam.app.v1" + ".SharedSecretB\023\232\204\236\003\016bson:\"secrets\"R\007secr" + "ets\"\223\002\n\025RobotPartHistoryEntry\0220\n\004part\030\001 " + "\001(\tB\034\232\204\236\003\027bson:\"part\" json:\"part\"R\004part\022" + "4\n\005robot\030\002 \001(\tB\036\232\204\236\003\031bson:\"robot\" json:\"" + "robot\"R\005robot\022L\n\004when\030\003 \001(\0132\032.google.pro" + "tobuf.TimestampB\034\232\204\236\003\027bson:\"when\" json:\"" + "when\"R\004when\022D\n\003old\030\004 \001(\0132\026.viam.app.v1.R" + "obotPartB\032\232\204\236\003\025bson:\"old\" json:\"old\"R\003ol" + "d\"\032\n\030ListOrganizationsRequest\"\336\001\n\014Organi" + "zation\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004na" + "me\0229\n\ncreated_on\030\003 \001(\0132\032.google.protobuf" + ".TimestampR\tcreatedOn\022)\n\020public_namespac" + "e\030\004 \001(\tR\017publicNamespace\022%\n\016default_regi" + "on\030\005 \001(\tR\rdefaultRegion\022\025\n\003cid\030\006 \001(\tH\000R\003" + "cid\210\001\001B\006\n\004_cid\"\317\001\n\022OrganizationMember\022\027\n" + "\007user_id\030\001 \001(\tR\006userId\022\026\n\006emails\030\002 \003(\tR\006" + "emails\0229\n\ndate_added\030\003 \001(\0132\032.google.prot" + "obuf.TimestampR\tdateAdded\022>\n\nlast_login\030" + "\004 \001(\0132\032.google.protobuf.TimestampH\000R\tlas" + "tLogin\210\001\001B\r\n\013_last_login\"\\\n\031ListOrganiza" + "tionsResponse\022\?\n\rorganizations\030\001 \003(\0132\031.v" + "iam.app.v1.OrganizationR\rorganizations\"\322" + "\001\n\022OrganizationInvite\022\'\n\017organization_id" + "\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005e" + "mail\0229\n\ncreated_on\030\003 \001(\0132\032.google.protob" + "uf.TimestampR\tcreatedOn\022B\n\016authorization" + "s\030\004 \003(\0132\032.viam.app.v1.AuthorizationR\016aut" + "horizations\"/\n\031CreateOrganizationRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\"[\n\032CreateOrganizati" + "onResponse\022=\n\014organization\030\001 \001(\0132\031.viam." + "app.v1.OrganizationR\014organization\"A\n\026Get" + "OrganizationRequest\022\'\n\017organization_id\030\001" + " \001(\tR\016organizationId\"X\n\027GetOrganizationR" + "esponse\022=\n\014organization\030\001 \001(\0132\031.viam.app" + ".v1.OrganizationR\014organization\"X\n+GetOrg" + "anizationNamespaceAvailabilityRequest\022)\n" + "\020public_namespace\030\001 \001(\tR\017publicNamespace" + "\"L\n,GetOrganizationNamespaceAvailability" + "Response\022\034\n\tavailable\030\001 \001(\010R\tavailable\"\362" + "\001\n\031UpdateOrganizationRequest\022\'\n\017organiza" + "tion_id\030\001 \001(\tR\016organizationId\022\027\n\004name\030\002 " + "\001(\tH\000R\004name\210\001\001\022.\n\020public_namespace\030\003 \001(\t" + "H\001R\017publicNamespace\210\001\001\022\033\n\006region\030\004 \001(\tH\002" + "R\006region\210\001\001\022\025\n\003cid\030\005 \001(\tH\003R\003cid\210\001\001B\007\n\005_n" + "ameB\023\n\021_public_namespaceB\t\n\007_regionB\006\n\004_" + "cid\"[\n\032UpdateOrganizationResponse\022=\n\014org" + "anization\030\001 \001(\0132\031.viam.app.v1.Organizati" + "onR\014organization\"D\n\031DeleteOrganizationRe" + "quest\022\'\n\017organization_id\030\001 \001(\tR\016organiza" + "tionId\"\034\n\032DeleteOrganizationResponse\"I\n\036" + "ListOrganizationMembersRequest\022\'\n\017organi" + "zation_id\030\001 \001(\tR\016organizationId\"\300\001\n\037List" + "OrganizationMembersResponse\022\'\n\017organizat" + "ion_id\030\001 \001(\tR\016organizationId\0229\n\007members\030" + "\002 \003(\0132\037.viam.app.v1.OrganizationMemberR\007" + "members\0229\n\007invites\030\003 \003(\0132\037.viam.app.v1.O" + "rganizationInviteR\007invites\"\244\001\n\037CreateOrg" + "anizationInviteRequest\022\'\n\017organization_i" + "d\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005" + "email\022B\n\016authorizations\030\003 \003(\0132\032.viam.app" + ".v1.AuthorizationR\016authorizations\"[\n Cre" + "ateOrganizationInviteResponse\0227\n\006invite\030" + "\001 \001(\0132\037.viam.app.v1.OrganizationInviteR\006" + "invite\"\212\002\n-UpdateOrganizationInviteAutho" + "rizationsRequest\022\'\n\017organization_id\030\001 \001(" + "\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005email\022" + "I\n\022add_authorizations\030\003 \003(\0132\032.viam.app.v" + "1.AuthorizationR\021addAuthorizations\022O\n\025re" + "move_authorizations\030\004 \003(\0132\032.viam.app.v1." + "AuthorizationR\024removeAuthorizations\"i\n.U" + "pdateOrganizationInviteAuthorizationsRes" "ponse\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1.Orga" - "nizationInviteR\006invite\"\212\002\n-UpdateOrganiz" - "ationInviteAuthorizationsRequest\022\'\n\017orga" - "nization_id\030\001 \001(\tR\016organizationId\022\024\n\005ema" - "il\030\002 \001(\tR\005email\022I\n\022add_authorizations\030\003 " - "\003(\0132\032.viam.app.v1.AuthorizationR\021addAuth" - "orizations\022O\n\025remove_authorizations\030\004 \003(" - "\0132\032.viam.app.v1.AuthorizationR\024removeAut" - "horizations\"i\n.UpdateOrganizationInviteA" - "uthorizationsResponse\0227\n\006invite\030\001 \001(\0132\037." - "viam.app.v1.OrganizationInviteR\006invite\"`" - "\n\037DeleteOrganizationInviteRequest\022\'\n\017org" - "anization_id\030\001 \001(\tR\016organizationId\022\024\n\005em" - "ail\030\002 \001(\tR\005email\"\"\n DeleteOrganizationIn" - "viteResponse\"`\n\037ResendOrganizationInvite" - "Request\022\'\n\017organization_id\030\001 \001(\tR\016organi" - "zationId\022\024\n\005email\030\002 \001(\tR\005email\"[\n Resend" - "OrganizationInviteResponse\0227\n\006invite\030\001 \001" - "(\0132\037.viam.app.v1.OrganizationInviteR\006inv" - "ite\"c\n\037DeleteOrganizationMemberRequest\022\'" + "nizationInviteR\006invite\"`\n\037DeleteOrganiza" + "tionInviteRequest\022\'\n\017organization_id\030\001 \001" + "(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005email" + "\"\"\n DeleteOrganizationInviteResponse\"`\n\037" + "ResendOrganizationInviteRequest\022\'\n\017organ" + "ization_id\030\001 \001(\tR\016organizationId\022\024\n\005emai" + "l\030\002 \001(\tR\005email\"[\n ResendOrganizationInvi" + "teResponse\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1" + ".OrganizationInviteR\006invite\"c\n\037DeleteOrg" + "anizationMemberRequest\022\'\n\017organization_i" + "d\030\001 \001(\tR\016organizationId\022\027\n\007user_id\030\002 \001(\t" + "R\006userId\"\"\n DeleteOrganizationMemberResp" + "onse\":\n\024OrganizationIdentity\022\016\n\002id\030\001 \001(\t" + "R\002id\022\022\n\004name\030\002 \001(\tR\004name\"Y\n\024LocationOrga" + "nization\022\'\n\017organization_id\030\001 \001(\tR\016organ" + "izationId\022\030\n\007primary\030\002 \001(\010R\007primary\"\200\001\n\014" + "LocationAuth\022\032\n\006secret\030\001 \001(\tB\002\030\001R\006secret" + "\022\037\n\013location_id\030\002 \001(\tR\nlocationId\0223\n\007sec" + "rets\030\003 \003(\0132\031.viam.app.v1.SharedSecretR\007s" + "ecrets\"\'\n\rStorageConfig\022\026\n\006region\030\001 \001(\tR" + "\006region\"\344\002\n\010Location\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004" + "name\030\002 \001(\tR\004name\022,\n\022parent_location_id\030\004" + " \001(\tR\020parentLocationId\022-\n\004auth\030\005 \001(\0132\031.v" + "iam.app.v1.LocationAuthR\004auth\022G\n\rorganiz" + "ations\030\006 \003(\0132!.viam.app.v1.LocationOrgan" + "izationR\rorganizations\0229\n\ncreated_on\030\003 \001" + "(\0132\032.google.protobuf.TimestampR\tcreatedO" + "n\022\037\n\013robot_count\030\007 \001(\005R\nrobotCount\0222\n\006co" + "nfig\030\010 \001(\0132\032.viam.app.v1.StorageConfigR\006" + "config\"\320\002\n\014SharedSecret\022\036\n\002id\030\001 \001(\tB\016\232\204\236" + "\003\tbson:\"id\"R\002id\022*\n\006secret\030\002 \001(\tB\022\232\204\236\003\rbs" + "on:\"secret\"R\006secret\022c\n\ncreated_on\030\003 \001(\0132" + "\032.google.protobuf.TimestampB(\232\204\236\003#bson:\"" + "created_on\" json:\"created_on\"R\tcreatedOn" + "\022H\n\005state\030\004 \001(\0162\037.viam.app.v1.SharedSecr" + "et.StateB\021\232\204\236\003\014bson:\"state\"R\005state\"E\n\005St" + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\021\n\rSTATE_ENAB" + "LED\020\001\022\022\n\016STATE_DISABLED\020\002\"\236\001\n\025CreateLoca" + "tionRequest\022\'\n\017organization_id\030\001 \001(\tR\016or" + "ganizationId\022\022\n\004name\030\002 \001(\tR\004name\0221\n\022pare" + "nt_location_id\030\003 \001(\tH\000R\020parentLocationId" + "\210\001\001B\025\n\023_parent_location_id\"K\n\026CreateLoca" + "tionResponse\0221\n\010location\030\001 \001(\0132\025.viam.ap" + "p.v1.LocationR\010location\"5\n\022GetLocationRe" + "quest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\"H" + "\n\023GetLocationResponse\0221\n\010location\030\001 \001(\0132" + "\025.viam.app.v1.LocationR\010location\"\314\001\n\025Upd" + "ateLocationRequest\022\037\n\013location_id\030\001 \001(\tR" + "\nlocationId\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\0221\n\022" + "parent_location_id\030\003 \001(\tH\001R\020parentLocati" + "onId\210\001\001\022\033\n\006region\030\004 \001(\tH\002R\006region\210\001\001B\007\n\005" + "_nameB\025\n\023_parent_location_idB\t\n\007_region\"" + "K\n\026UpdateLocationResponse\0221\n\010location\030\001 " + "\001(\0132\025.viam.app.v1.LocationR\010location\"8\n\025" + "DeleteLocationRequest\022\037\n\013location_id\030\001 \001" + "(\tR\nlocationId\"\030\n\026DeleteLocationResponse" + "\"N\n+GetOrganizationsWithAccessToLocation" + "Request\022\037\n\013location_id\030\001 \001(\tR\nlocationId" + "\"\212\001\n,GetOrganizationsWithAccessToLocatio" + "nResponse\022Z\n\027organization_identities\030\001 \003" + "(\0132!.viam.app.v1.OrganizationIdentityR\026o" + "rganizationIdentities\"\?\n\024ListLocationsRe" + "quest\022\'\n\017organization_id\030\001 \001(\tR\016organiza" + "tionId\"`\n\024ShareLocationRequest\022\037\n\013locati" + "on_id\030\001 \001(\tR\nlocationId\022\'\n\017organization_" + "id\030\002 \001(\tR\016organizationId\"\027\n\025ShareLocatio" + "nResponse\"b\n\026UnshareLocationRequest\022\037\n\013l" + "ocation_id\030\001 \001(\tR\nlocationId\022\'\n\017organiza" + "tion_id\030\002 \001(\tR\016organizationId\"\031\n\027Unshare" + "LocationResponse\"L\n\025ListLocationsRespons" + "e\0223\n\tlocations\030\001 \003(\0132\025.viam.app.v1.Locat" + "ionR\tlocations\">\n\033CreateLocationSecretRe" + "quest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\"M" + "\n\034CreateLocationSecretResponse\022-\n\004auth\030\001" + " \001(\0132\031.viam.app.v1.LocationAuthR\004auth\"[\n" + "\033DeleteLocationSecretRequest\022\037\n\013location" + "_id\030\001 \001(\tR\nlocationId\022\033\n\tsecret_id\030\002 \001(\t" + "R\010secretId\"\036\n\034DeleteLocationSecretRespon" + "se\"6\n\023LocationAuthRequest\022\037\n\013location_id" + "\030\001 \001(\tR\nlocationId\"E\n\024LocationAuthRespon" + "se\022-\n\004auth\030\001 \001(\0132\031.viam.app.v1.LocationA" + "uthR\004auth\"!\n\017GetRobotRequest\022\016\n\002id\030\001 \001(\t" + "R\002id\"4\n\033GetRoverRentalRobotsRequest\022\025\n\006o" + "rg_id\030\001 \001(\tR\005orgId\"\232\001\n\020RoverRentalRobot\022" + "\031\n\010robot_id\030\001 \001(\tR\007robotId\022\037\n\013location_i" + "d\030\002 \001(\tR\nlocationId\022\035\n\nrobot_name\030\003 \001(\tR" + "\trobotName\022+\n\022robot_main_part_id\030\004 \001(\tR\017" + "robotMainPartId\"U\n\034GetRoverRentalRobotsR" + "esponse\0225\n\006robots\030\001 \003(\0132\035.viam.app.v1.Ro" + "verRentalRobotR\006robots\"<\n\020GetRobotRespon" + "se\022(\n\005robot\030\001 \001(\0132\022.viam.app.v1.RobotR\005r" + "obot\"1\n\024GetRobotPartsRequest\022\031\n\010robot_id" + "\030\001 \001(\tR\007robotId\"E\n\025GetRobotPartsResponse" + "\022,\n\005parts\030\001 \003(\0132\026.viam.app.v1.RobotPartR" + "\005parts\"%\n\023GetRobotPartRequest\022\016\n\002id\030\001 \001(" + "\tR\002id\"c\n\024GetRobotPartResponse\022*\n\004part\030\001 " + "\001(\0132\026.viam.app.v1.RobotPartR\004part\022\037\n\013con" + "fig_json\030\002 \001(\tR\nconfigJson\"\301\001\n\027GetRobotP" + "artLogsRequest\022\016\n\002id\030\001 \001(\tR\002id\022#\n\013errors" + "_only\030\002 \001(\010B\002\030\001R\nerrorsOnly\022\033\n\006filter\030\003 " + "\001(\tH\000R\006filter\210\001\001\022\"\n\npage_token\030\004 \001(\tH\001R\t" + "pageToken\210\001\001\022\026\n\006levels\030\005 \003(\tR\006levelsB\t\n\007" + "_filterB\r\n\013_page_token\"p\n\030GetRobotPartLo" + "gsResponse\022,\n\004logs\030\001 \003(\0132\030.viam.common.v" + "1.LogEntryR\004logs\022&\n\017next_page_token\030\002 \001(" + "\tR\rnextPageToken\"s\n\030TailRobotPartLogsReq" + "uest\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\013errors_only\030\002 \001(" + "\010R\nerrorsOnly\022\033\n\006filter\030\003 \001(\tH\000R\006filter\210" + "\001\001B\t\n\007_filter\"I\n\031TailRobotPartLogsRespon" + "se\022,\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogEnt" + "ryR\004logs\",\n\032GetRobotPartHistoryRequest\022\016" + "\n\002id\030\001 \001(\tR\002id\"[\n\033GetRobotPartHistoryRes" + "ponse\022<\n\007history\030\001 \003(\0132\".viam.app.v1.Rob" + "otPartHistoryEntryR\007history\"x\n\026UpdateRob" + "otPartRequest\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 " + "\001(\tR\004name\022:\n\014robot_config\030\003 \001(\0132\027.google" + ".protobuf.StructR\013robotConfig\"E\n\027UpdateR" + "obotPartResponse\022*\n\004part\030\001 \001(\0132\026.viam.ap" + "p.v1.RobotPartR\004part\"M\n\023NewRobotPartRequ" + "est\022\031\n\010robot_id\030\001 \001(\tR\007robotId\022\033\n\tpart_n" + "ame\030\002 \001(\tR\010partName\"/\n\024NewRobotPartRespo" + "nse\022\027\n\007part_id\030\001 \001(\tR\006partId\"1\n\026DeleteRo" + "botPartRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\"" + "3\n\026GetRobotAPIKeysRequest\022\031\n\010robot_id\030\001 " + "\001(\tR\007robotId\"y\n\006APIKey\022\016\n\002id\030\001 \001(\tR\002id\022\020" + "\n\003key\030\002 \001(\tR\003key\022\022\n\004name\030\003 \001(\tR\004name\0229\n\n" + "created_on\030\004 \001(\0132\032.google.protobuf.Times" + "tampR\tcreatedOn\"[\n\027GetRobotAPIKeysRespon" + "se\022@\n\010api_keys\030\001 \003(\0132%.viam.app.v1.APIKe" + "yWithAuthorizationsR\007apiKeys\"\031\n\027DeleteRo" + "botPartResponse\"\350\004\n\010Fragment\0223\n\002id\030\001 \001(\t" + "B#\232\204\236\003\036bson:\"_id\" json:\"id,omitempty\"R\002i" + "d\0220\n\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"" + "name\"R\004name\022Y\n\010fragment\030\003 \001(\0132\027.google.p" + "rotobuf.StructB$\232\204\236\003\037bson:\"fragment\" jso" + "n:\"fragment\"R\010fragment\022Z\n\022organization_o" + "wner\030\004 \001(\tB+\232\204\236\003&bson:\"organization_owne" + "r\" json:\"owner\"R\021organizationOwner\0228\n\006pu" + "blic\030\005 \001(\010B \232\204\236\003\033bson:\"public\" json:\"pub" + "lic\"R\006public\022Q\n\ncreated_on\030\006 \001(\0132\032.googl" + "e.protobuf.TimestampB\026\232\204\236\003\021bson:\"created" + "_on\"R\tcreatedOn\022+\n\021organization_name\030\007 \001" + "(\tR\020organizationName\022(\n\020robot_part_count" + "\030\t \001(\005R\016robotPartCount\022-\n\022organization_c" + "ount\030\n \001(\005R\021organizationCount\022+\n\022only_us" + "ed_by_owner\030\013 \001(\010R\017onlyUsedByOwner\"`\n\024Li" + "stFragmentsRequest\022\'\n\017organization_id\030\001 " + "\001(\tR\016organizationId\022\037\n\013show_public\030\002 \001(\010" + "R\nshowPublic\"L\n\025ListFragmentsResponse\0223\n" + "\tfragments\030\001 \003(\0132\025.viam.app.v1.FragmentR" + "\tfragments\"$\n\022GetFragmentRequest\022\016\n\002id\030\001" + " \001(\tR\002id\"H\n\023GetFragmentResponse\0221\n\010fragm" + "ent\030\001 \001(\0132\025.viam.app.v1.FragmentR\010fragme" + "nt\"\205\001\n\025CreateFragmentRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\022/\n\006config\030\002 \001(\0132\027.google.protob" + "uf.StructR\006config\022\'\n\017organization_id\030\003 \001" + "(\tR\016organizationId\"K\n\026CreateFragmentResp" + "onse\0221\n\010fragment\030\001 \001(\0132\025.viam.app.v1.Fra" + "gmentR\010fragment\"\224\001\n\025UpdateFragmentReques" + "t\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022/\n" + "\006config\030\003 \001(\0132\027.google.protobuf.StructR\006" + "config\022\033\n\006public\030\004 \001(\010H\000R\006public\210\001\001B\t\n\007_" + "public\"K\n\026UpdateFragmentResponse\0221\n\010frag" + "ment\030\001 \001(\0132\025.viam.app.v1.FragmentR\010fragm" + "ent\"\'\n\025DeleteFragmentRequest\022\016\n\002id\030\001 \001(\t" + "R\002id\"\030\n\026DeleteFragmentResponse\"4\n\021ListRo" + "botsRequest\022\037\n\013location_id\030\001 \001(\tR\nlocati" + "onId\"@\n\022ListRobotsResponse\022*\n\006robots\030\001 \003" + "(\0132\022.viam.app.v1.RobotR\006robots\"A\n\017NewRob" + "otRequest\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010locatio" + "n\030\002 \001(\tR\010location\"\"\n\020NewRobotResponse\022\016\n" + "\002id\030\001 \001(\tR\002id\"T\n\022UpdateRobotRequest\022\016\n\002i" + "d\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\032\n\010locat" + "ion\030\003 \001(\tR\010location\"\?\n\023UpdateRobotRespon" + "se\022(\n\005robot\030\001 \001(\0132\022.viam.app.v1.RobotR\005r" + "obot\"$\n\022DeleteRobotRequest\022\016\n\002id\030\001 \001(\tR\002" + "id\"\025\n\023DeleteRobotResponse\"0\n\025MarkPartAsM" + "ainRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\"\030\n\026M" + "arkPartAsMainResponse\"4\n\031MarkPartForRest" + "artRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\"\034\n\032M" + "arkPartForRestartResponse\"7\n\034CreateRobot" + "PartSecretRequest\022\027\n\007part_id\030\001 \001(\tR\006part" + "Id\"K\n\035CreateRobotPartSecretResponse\022*\n\004p" + "art\030\001 \001(\0132\026.viam.app.v1.RobotPartR\004part\"" + "T\n\034DeleteRobotPartSecretRequest\022\027\n\007part_" + "id\030\001 \001(\tR\006partId\022\033\n\tsecret_id\030\002 \001(\tR\010sec" + "retId\"\037\n\035DeleteRobotPartSecretResponse\"\236" + "\002\n\rAuthorization\022-\n\022authorization_type\030\001" + " \001(\tR\021authorizationType\022)\n\020authorization" + "_id\030\002 \001(\tR\017authorizationId\022#\n\rresource_t" + "ype\030\003 \001(\tR\014resourceType\022\037\n\013resource_id\030\004" + " \001(\tR\nresourceId\022\037\n\013identity_id\030\005 \001(\tR\ni" + "dentityId\022\'\n\017organization_id\030\006 \001(\tR\016orga" + "nizationId\022#\n\ridentity_type\030\007 \001(\tR\014ident" + "ityType\"R\n\016AddRoleRequest\022@\n\rauthorizati" + "on\030\001 \001(\0132\032.viam.app.v1.AuthorizationR\rau" + "thorization\"\021\n\017AddRoleResponse\"U\n\021Remove" + "RoleRequest\022@\n\rauthorization\030\001 \001(\0132\032.via" + "m.app.v1.AuthorizationR\rauthorization\"\024\n" + "\022RemoveRoleResponse\"\245\001\n\021ChangeRoleReques" + "t\022G\n\021old_authorization\030\001 \001(\0132\032.viam.app." + "v1.AuthorizationR\020oldAuthorization\022G\n\021ne" + "w_authorization\030\002 \001(\0132\032.viam.app.v1.Auth" + "orizationR\020newAuthorization\"\024\n\022ChangeRol" + "eResponse\"g\n\031ListAuthorizationsRequest\022\'" "\n\017organization_id\030\001 \001(\tR\016organizationId\022" - "\027\n\007user_id\030\002 \001(\tR\006userId\"\"\n DeleteOrgani" - "zationMemberResponse\":\n\024OrganizationIden" - "tity\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name" - "\"Y\n\024LocationOrganization\022\'\n\017organization" - "_id\030\001 \001(\tR\016organizationId\022\030\n\007primary\030\002 \001" - "(\010R\007primary\"\200\001\n\014LocationAuth\022\032\n\006secret\030\001" - " \001(\tB\002\030\001R\006secret\022\037\n\013location_id\030\002 \001(\tR\nl" - "ocationId\0223\n\007secrets\030\003 \003(\0132\031.viam.app.v1" - ".SharedSecretR\007secrets\"\'\n\rStorageConfig\022" - "\026\n\006region\030\001 \001(\tR\006region\"\344\002\n\010Location\022\016\n\002" - "id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022,\n\022pare" - "nt_location_id\030\004 \001(\tR\020parentLocationId\022-" - "\n\004auth\030\005 \001(\0132\031.viam.app.v1.LocationAuthR" - "\004auth\022G\n\rorganizations\030\006 \003(\0132!.viam.app." - "v1.LocationOrganizationR\rorganizations\0229" - "\n\ncreated_on\030\003 \001(\0132\032.google.protobuf.Tim" - "estampR\tcreatedOn\022\037\n\013robot_count\030\007 \001(\005R\n" - "robotCount\0222\n\006config\030\010 \001(\0132\032.viam.app.v1" - ".StorageConfigR\006config\"\320\002\n\014SharedSecret\022" - "\036\n\002id\030\001 \001(\tB\016\232\204\236\003\tbson:\"id\"R\002id\022*\n\006secre" - "t\030\002 \001(\tB\022\232\204\236\003\rbson:\"secret\"R\006secret\022c\n\nc" - "reated_on\030\003 \001(\0132\032.google.protobuf.Timest" - "ampB(\232\204\236\003#bson:\"created_on\" json:\"create" - "d_on\"R\tcreatedOn\022H\n\005state\030\004 \001(\0162\037.viam.a" - "pp.v1.SharedSecret.StateB\021\232\204\236\003\014bson:\"sta" - "te\"R\005state\"E\n\005State\022\025\n\021STATE_UNSPECIFIED" - "\020\000\022\021\n\rSTATE_ENABLED\020\001\022\022\n\016STATE_DISABLED\020" - "\002\"\236\001\n\025CreateLocationRequest\022\'\n\017organizat" - "ion_id\030\001 \001(\tR\016organizationId\022\022\n\004name\030\002 \001" - "(\tR\004name\0221\n\022parent_location_id\030\003 \001(\tH\000R\020" - "parentLocationId\210\001\001B\025\n\023_parent_location_" - "id\"K\n\026CreateLocationResponse\0221\n\010location" - "\030\001 \001(\0132\025.viam.app.v1.LocationR\010location\"" - "5\n\022GetLocationRequest\022\037\n\013location_id\030\001 \001" - "(\tR\nlocationId\"H\n\023GetLocationResponse\0221\n" - "\010location\030\001 \001(\0132\025.viam.app.v1.LocationR\010" - "location\"\314\001\n\025UpdateLocationRequest\022\037\n\013lo" - "cation_id\030\001 \001(\tR\nlocationId\022\027\n\004name\030\002 \001(" - "\tH\000R\004name\210\001\001\0221\n\022parent_location_id\030\003 \001(\t" - "H\001R\020parentLocationId\210\001\001\022\033\n\006region\030\004 \001(\tH" - "\002R\006region\210\001\001B\007\n\005_nameB\025\n\023_parent_locatio" - "n_idB\t\n\007_region\"K\n\026UpdateLocationRespons" - "e\0221\n\010location\030\001 \001(\0132\025.viam.app.v1.Locati" - "onR\010location\"8\n\025DeleteLocationRequest\022\037\n" - "\013location_id\030\001 \001(\tR\nlocationId\"\030\n\026Delete" - "LocationResponse\"N\n+GetOrganizationsWith" - "AccessToLocationRequest\022\037\n\013location_id\030\001" - " \001(\tR\nlocationId\"\212\001\n,GetOrganizationsWit" - "hAccessToLocationResponse\022Z\n\027organizatio" - "n_identities\030\001 \003(\0132!.viam.app.v1.Organiz" - "ationIdentityR\026organizationIdentities\"\?\n" - "\024ListLocationsRequest\022\'\n\017organization_id" - "\030\001 \001(\tR\016organizationId\"`\n\024ShareLocationR" - "equest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\022" - "\'\n\017organization_id\030\002 \001(\tR\016organizationId" - "\"\027\n\025ShareLocationResponse\"b\n\026UnshareLoca" - "tionRequest\022\037\n\013location_id\030\001 \001(\tR\nlocati" - "onId\022\'\n\017organization_id\030\002 \001(\tR\016organizat" - "ionId\"\031\n\027UnshareLocationResponse\"L\n\025List" - "LocationsResponse\0223\n\tlocations\030\001 \003(\0132\025.v" - "iam.app.v1.LocationR\tlocations\">\n\033Create" - "LocationSecretRequest\022\037\n\013location_id\030\001 \001" - "(\tR\nlocationId\"M\n\034CreateLocationSecretRe" - "sponse\022-\n\004auth\030\001 \001(\0132\031.viam.app.v1.Locat" - "ionAuthR\004auth\"[\n\033DeleteLocationSecretReq" - "uest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\022\033\n" - "\tsecret_id\030\002 \001(\tR\010secretId\"\036\n\034DeleteLoca" - "tionSecretResponse\"6\n\023LocationAuthReques" - "t\022\037\n\013location_id\030\001 \001(\tR\nlocationId\"E\n\024Lo" - "cationAuthResponse\022-\n\004auth\030\001 \001(\0132\031.viam." - "app.v1.LocationAuthR\004auth\"!\n\017GetRobotReq" - "uest\022\016\n\002id\030\001 \001(\tR\002id\"4\n\033GetRoverRentalRo" - "botsRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\232\001\n\020R" - "overRentalRobot\022\031\n\010robot_id\030\001 \001(\tR\007robot" - "Id\022\037\n\013location_id\030\002 \001(\tR\nlocationId\022\035\n\nr" - "obot_name\030\003 \001(\tR\trobotName\022+\n\022robot_main" - "_part_id\030\004 \001(\tR\017robotMainPartId\"U\n\034GetRo" - "verRentalRobotsResponse\0225\n\006robots\030\001 \003(\0132" - "\035.viam.app.v1.RoverRentalRobotR\006robots\"<" - "\n\020GetRobotResponse\022(\n\005robot\030\001 \001(\0132\022.viam" - ".app.v1.RobotR\005robot\"1\n\024GetRobotPartsReq" - "uest\022\031\n\010robot_id\030\001 \001(\tR\007robotId\"E\n\025GetRo" - "botPartsResponse\022,\n\005parts\030\001 \003(\0132\026.viam.a" - "pp.v1.RobotPartR\005parts\"%\n\023GetRobotPartRe" - "quest\022\016\n\002id\030\001 \001(\tR\002id\"c\n\024GetRobotPartRes" - "ponse\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.RobotP" - "artR\004part\022\037\n\013config_json\030\002 \001(\tR\nconfigJs" - "on\"\245\001\n\027GetRobotPartLogsRequest\022\016\n\002id\030\001 \001" - "(\tR\002id\022\037\n\013errors_only\030\002 \001(\010R\nerrorsOnly\022" - "\033\n\006filter\030\003 \001(\tH\000R\006filter\210\001\001\022\"\n\npage_tok" - "en\030\004 \001(\tH\001R\tpageToken\210\001\001B\t\n\007_filterB\r\n\013_" - "page_token\"\227\002\n\010LogEntry\022\022\n\004host\030\001 \001(\tR\004h" - "ost\022\024\n\005level\030\002 \001(\tR\005level\022.\n\004time\030\003 \001(\0132" - "\032.google.protobuf.TimestampR\004time\022\037\n\013log" - "ger_name\030\004 \001(\tR\nloggerName\022\030\n\007message\030\005 " - "\001(\tR\007message\022/\n\006caller\030\006 \001(\0132\027.google.pr" - "otobuf.StructR\006caller\022\024\n\005stack\030\007 \001(\tR\005st" - "ack\022/\n\006fields\030\010 \003(\0132\027.google.protobuf.St" - "ructR\006fields\"m\n\030GetRobotPartLogsResponse" - "\022)\n\004logs\030\001 \003(\0132\025.viam.app.v1.LogEntryR\004l" - "ogs\022&\n\017next_page_token\030\002 \001(\tR\rnextPageTo" - "ken\"s\n\030TailRobotPartLogsRequest\022\016\n\002id\030\001 " - "\001(\tR\002id\022\037\n\013errors_only\030\002 \001(\010R\nerrorsOnly" - "\022\033\n\006filter\030\003 \001(\tH\000R\006filter\210\001\001B\t\n\007_filter" - "\"F\n\031TailRobotPartLogsResponse\022)\n\004logs\030\001 " - "\003(\0132\025.viam.app.v1.LogEntryR\004logs\",\n\032GetR" - "obotPartHistoryRequest\022\016\n\002id\030\001 \001(\tR\002id\"[" - "\n\033GetRobotPartHistoryResponse\022<\n\007history" - "\030\001 \003(\0132\".viam.app.v1.RobotPartHistoryEnt" - "ryR\007history\"x\n\026UpdateRobotPartRequest\022\016\n" - "\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022:\n\014rob" - "ot_config\030\003 \001(\0132\027.google.protobuf.Struct" - "R\013robotConfig\"E\n\027UpdateRobotPartResponse" - "\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.RobotPartR\004" - "part\"M\n\023NewRobotPartRequest\022\031\n\010robot_id\030" - "\001 \001(\tR\007robotId\022\033\n\tpart_name\030\002 \001(\tR\010partN" - "ame\"/\n\024NewRobotPartResponse\022\027\n\007part_id\030\001" - " \001(\tR\006partId\"1\n\026DeleteRobotPartRequest\022\027" - "\n\007part_id\030\001 \001(\tR\006partId\"3\n\026GetRobotAPIKe" - "ysRequest\022\031\n\010robot_id\030\001 \001(\tR\007robotId\"y\n\006" - "APIKey\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003key" - "\022\022\n\004name\030\003 \001(\tR\004name\0229\n\ncreated_on\030\004 \001(\013" - "2\032.google.protobuf.TimestampR\tcreatedOn\"" - "I\n\027GetRobotAPIKeysResponse\022.\n\010api_keys\030\001" - " \003(\0132\023.viam.app.v1.APIKeyR\007apiKeys\"\031\n\027De" - "leteRobotPartResponse\"\350\004\n\010Fragment\0223\n\002id" - "\030\001 \001(\tB#\232\204\236\003\036bson:\"_id\" json:\"id,omitemp" - "ty\"R\002id\0220\n\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" " - "json:\"name\"R\004name\022Y\n\010fragment\030\003 \001(\0132\027.go" - "ogle.protobuf.StructB$\232\204\236\003\037bson:\"fragmen" - "t\" json:\"fragment\"R\010fragment\022Z\n\022organiza" - "tion_owner\030\004 \001(\tB+\232\204\236\003&bson:\"organizatio" - "n_owner\" json:\"owner\"R\021organizationOwner" - "\0228\n\006public\030\005 \001(\010B \232\204\236\003\033bson:\"public\" jso" - "n:\"public\"R\006public\022Q\n\ncreated_on\030\006 \001(\0132\032" - ".google.protobuf.TimestampB\026\232\204\236\003\021bson:\"c" - "reated_on\"R\tcreatedOn\022+\n\021organization_na" - "me\030\007 \001(\tR\020organizationName\022(\n\020robot_part" - "_count\030\t \001(\005R\016robotPartCount\022-\n\022organiza" - "tion_count\030\n \001(\005R\021organizationCount\022+\n\022o" - "nly_used_by_owner\030\013 \001(\010R\017onlyUsedByOwner" - "\"`\n\024ListFragmentsRequest\022\'\n\017organization" - "_id\030\001 \001(\tR\016organizationId\022\037\n\013show_public" - "\030\002 \001(\010R\nshowPublic\"L\n\025ListFragmentsRespo" - "nse\0223\n\tfragments\030\001 \003(\0132\025.viam.app.v1.Fra" - "gmentR\tfragments\"$\n\022GetFragmentRequest\022\016" - "\n\002id\030\001 \001(\tR\002id\"H\n\023GetFragmentResponse\0221\n" - "\010fragment\030\001 \001(\0132\025.viam.app.v1.FragmentR\010" - "fragment\"\205\001\n\025CreateFragmentRequest\022\022\n\004na" - "me\030\001 \001(\tR\004name\022/\n\006config\030\002 \001(\0132\027.google." - "protobuf.StructR\006config\022\'\n\017organization_" - "id\030\003 \001(\tR\016organizationId\"K\n\026CreateFragme" - "ntResponse\0221\n\010fragment\030\001 \001(\0132\025.viam.app." - "v1.FragmentR\010fragment\"\224\001\n\025UpdateFragment" - "Request\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004n" - "ame\022/\n\006config\030\003 \001(\0132\027.google.protobuf.St" - "ructR\006config\022\033\n\006public\030\004 \001(\010H\000R\006public\210\001" - "\001B\t\n\007_public\"K\n\026UpdateFragmentResponse\0221" - "\n\010fragment\030\001 \001(\0132\025.viam.app.v1.FragmentR" - "\010fragment\"\'\n\025DeleteFragmentRequest\022\016\n\002id" - "\030\001 \001(\tR\002id\"\030\n\026DeleteFragmentResponse\"4\n\021" - "ListRobotsRequest\022\037\n\013location_id\030\001 \001(\tR\n" - "locationId\"@\n\022ListRobotsResponse\022*\n\006robo" - "ts\030\001 \003(\0132\022.viam.app.v1.RobotR\006robots\"A\n\017" - "NewRobotRequest\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010l" - "ocation\030\002 \001(\tR\010location\"\"\n\020NewRobotRespo" - "nse\022\016\n\002id\030\001 \001(\tR\002id\"T\n\022UpdateRobotReques" - "t\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\032\n" - "\010location\030\003 \001(\tR\010location\"\?\n\023UpdateRobot" - "Response\022(\n\005robot\030\001 \001(\0132\022.viam.app.v1.Ro" - "botR\005robot\"$\n\022DeleteRobotRequest\022\016\n\002id\030\001" - " \001(\tR\002id\"\025\n\023DeleteRobotResponse\"0\n\025MarkP" - "artAsMainRequest\022\027\n\007part_id\030\001 \001(\tR\006partI" - "d\"\030\n\026MarkPartAsMainResponse\"4\n\031MarkPartF" - "orRestartRequest\022\027\n\007part_id\030\001 \001(\tR\006partI" - "d\"\034\n\032MarkPartForRestartResponse\"7\n\034Creat" - "eRobotPartSecretRequest\022\027\n\007part_id\030\001 \001(\t" - "R\006partId\"K\n\035CreateRobotPartSecretRespons" - "e\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.RobotPartR" - "\004part\"T\n\034DeleteRobotPartSecretRequest\022\027\n" - "\007part_id\030\001 \001(\tR\006partId\022\033\n\tsecret_id\030\002 \001(" - "\tR\010secretId\"\037\n\035DeleteRobotPartSecretResp" - "onse\"\236\002\n\rAuthorization\022-\n\022authorization_" - "type\030\001 \001(\tR\021authorizationType\022)\n\020authori" - "zation_id\030\002 \001(\tR\017authorizationId\022#\n\rreso" - "urce_type\030\003 \001(\tR\014resourceType\022\037\n\013resourc" - "e_id\030\004 \001(\tR\nresourceId\022\037\n\013identity_id\030\005 " - "\001(\tR\nidentityId\022\'\n\017organization_id\030\006 \001(\t" - "R\016organizationId\022#\n\ridentity_type\030\007 \001(\tR" - "\014identityType\"R\n\016AddRoleRequest\022@\n\rautho" - "rization\030\001 \001(\0132\032.viam.app.v1.Authorizati" - "onR\rauthorization\"\021\n\017AddRoleResponse\"U\n\021" - "RemoveRoleRequest\022@\n\rauthorization\030\001 \001(\013" - "2\032.viam.app.v1.AuthorizationR\rauthorizat" - "ion\"\024\n\022RemoveRoleResponse\"\245\001\n\021ChangeRole" - "Request\022G\n\021old_authorization\030\001 \001(\0132\032.via" - "m.app.v1.AuthorizationR\020oldAuthorization" - "\022G\n\021new_authorization\030\002 \001(\0132\032.viam.app.v" - "1.AuthorizationR\020newAuthorization\"\024\n\022Cha" - "ngeRoleResponse\"g\n\031ListAuthorizationsReq" - "uest\022\'\n\017organization_id\030\001 \001(\tR\016organizat" - "ionId\022!\n\014resource_ids\030\002 \003(\tR\013resourceIds" - "\"`\n\032ListAuthorizationsResponse\022B\n\016author" - "izations\030\001 \003(\0132\032.viam.app.v1.Authorizati" - "onR\016authorizations\"_\n\027CheckPermissionsRe" - "quest\022D\n\013permissions\030\001 \003(\0132\".viam.app.v1" - ".AuthorizedPermissionsR\013permissions\"\177\n\025A" - "uthorizedPermissions\022#\n\rresource_type\030\001 " - "\001(\tR\014resourceType\022\037\n\013resource_id\030\002 \001(\tR\n" - "resourceId\022 \n\013permissions\030\003 \003(\tR\013permiss" - "ions\"u\n\030CheckPermissionsResponse\022Y\n\026auth" - "orized_permissions\030\001 \003(\0132\".viam.app.v1.A" - "uthorizedPermissionsR\025authorizedPermissi" - "ons\"\241\001\n\rModuleVersion\022\030\n\007version\030\001 \001(\tR\007" - "version\022*\n\005files\030\002 \003(\0132\024.viam.app.v1.Upl" - "oadsR\005files\022*\n\006models\030\003 \003(\0132\022.viam.app.v" - "1.ModelR\006models\022\036\n\nentrypoint\030\004 \001(\tR\nent" - "rypoint\"\224\001\n\016ModuleMetadata\022*\n\006models\030\001 \003" - "(\0132\022.viam.app.v1.ModelR\006models\0226\n\010versio" - "ns\030\002 \003(\0132\032.viam.app.v1.ModuleVersionR\010ve" - "rsions\022\036\n\nentrypoint\030\003 \001(\tR\nentrypoint\"-" - "\n\017MLModelMetadata\022\032\n\010versions\030\001 \003(\tR\010ver" - "sions\"\267\006\n\014RegistryItem\022\027\n\007item_id\030\001 \001(\tR" - "\006itemId\022\'\n\017organization_id\030\002 \001(\tR\016organi" - "zationId\022)\n\020public_namespace\030\003 \001(\tR\017publ" - "icNamespace\022\022\n\004name\030\004 \001(\tR\004name\0225\n\004type\030" - "\005 \001(\0162!.viam.app.packages.v1.PackageType" - "R\004type\0227\n\nvisibility\030\006 \001(\0162\027.viam.app.v1" - ".VisibilityR\nvisibility\022\020\n\003url\030\007 \001(\tR\003ur" - "l\022 \n\013description\030\010 \001(\tR\013description\022*\n\021t" - "otal_robot_usage\030\t \001(\003R\017totalRobotUsage\022" - ";\n\032total_external_robot_usage\030\r \001(\003R\027tot" - "alExternalRobotUsage\0228\n\030total_organizati" - "on_usage\030\n \001(\003R\026totalOrganizationUsage\022I" - "\n!total_external_organization_usage\030\016 \001(" - "\003R\036totalExternalOrganizationUsage\022F\n\017mod" - "ule_metadata\030\013 \001(\0132\033.viam.app.v1.ModuleM" - "etadataH\000R\016moduleMetadata\022J\n\021ml_model_me" - "tadata\030\014 \001(\0132\034.viam.app.v1.MLModelMetada" - "taH\000R\017mlModelMetadata\0229\n\ncreated_at\030\017 \001(" - "\0132\032.google.protobuf.TimestampR\tcreatedAt" - "\0229\n\nupdated_at\030\020 \001(\0132\032.google.protobuf.T" - "imestampR\tupdatedAtB\n\n\010metadata\"1\n\026GetRe" - "gistryItemRequest\022\027\n\007item_id\030\001 \001(\tR\006item" - "Id\"H\n\027GetRegistryItemResponse\022-\n\004item\030\001 " - "\001(\0132\031.viam.app.v1.RegistryItemR\004item\"\217\001\n" - "\031CreateRegistryItemRequest\022\'\n\017organizati" - "on_id\030\001 \001(\tR\016organizationId\022\022\n\004name\030\002 \001(" - "\tR\004name\0225\n\004type\030\003 \001(\0162!.viam.app.package" - "s.v1.PackageTypeR\004type\"\034\n\032CreateRegistry" - "ItemResponse\"\306\001\n\031UpdateRegistryItemReque" - "st\022\027\n\007item_id\030\001 \001(\tR\006itemId\0225\n\004type\030\002 \001(" - "\0162!.viam.app.packages.v1.PackageTypeR\004ty" - "pe\022 \n\013description\030\003 \001(\tR\013description\0227\n\n" - "visibility\030\004 \001(\0162\027.viam.app.v1.Visibilit" - "yR\nvisibility\"\034\n\032UpdateRegistryItemRespo" - "nse\"\226\003\n\030ListRegistryItemsRequest\022,\n\017orga" - "nization_id\030\001 \001(\tH\000R\016organizationId\210\001\001\0227" - "\n\005types\030\002 \003(\0162!.viam.app.packages.v1.Pac" - "kageTypeR\005types\022;\n\014visibilities\030\003 \003(\0162\027." - "viam.app.v1.VisibilityR\014visibilities\022\034\n\t" - "platforms\030\004 \003(\tR\tplatforms\022;\n\010statuses\030\005" - " \003(\0162\037.viam.app.v1.RegistryItemStatusR\010s" - "tatuses\022$\n\013search_term\030\006 \001(\tH\001R\nsearchTe" - "rm\210\001\001\022\"\n\npage_token\030\007 \001(\tH\002R\tpageToken\210\001" - "\001B\022\n\020_organization_idB\016\n\014_search_termB\r\n" - "\013_page_token\"L\n\031ListRegistryItemsRespons" - "e\022/\n\005items\030\001 \003(\0132\031.viam.app.v1.RegistryI" - "temR\005items\"4\n\031DeleteRegistryItemRequest\022" - "\027\n\007item_id\030\001 \001(\tR\006itemId\"\034\n\032DeleteRegist" - "ryItemResponse\"R\n\023CreateModuleRequest\022\'\n" - "\017organization_id\030\001 \001(\tR\016organizationId\022\022" - "\n\004name\030\002 \001(\tR\004name\"E\n\024CreateModuleRespon" - "se\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\022\020\n\003url\030\002" - " \001(\tR\003url\"\353\001\n\023UpdateModuleRequest\022\033\n\tmod" - "ule_id\030\001 \001(\tR\010moduleId\0227\n\nvisibility\030\002 \001" - "(\0162\027.viam.app.v1.VisibilityR\nvisibility\022" - "\020\n\003url\030\003 \001(\tR\003url\022 \n\013description\030\004 \001(\tR\013" - "description\022*\n\006models\030\005 \003(\0132\022.viam.app.v" - "1.ModelR\006models\022\036\n\nentrypoint\030\006 \001(\tR\nent" - "rypoint\"(\n\024UpdateModuleResponse\022\020\n\003url\030\001" - " \001(\tR\003url\"/\n\005Model\022\020\n\003api\030\001 \001(\tR\003api\022\024\n\005" - "model\030\002 \001(\tR\005model\"c\n\016ModuleFileInfo\022\033\n\t" - "module_id\030\001 \001(\tR\010moduleId\022\030\n\007version\030\002 \001" - "(\tR\007version\022\032\n\010platform\030\003 \001(\tR\010platform\"" - "\207\001\n\027UploadModuleFileRequest\022G\n\020module_fi" - "le_info\030\001 \001(\0132\033.viam.app.v1.ModuleFileIn" - "foH\000R\016moduleFileInfo\022\024\n\004file\030\002 \001(\014H\000R\004fi" - "leB\r\n\013module_file\",\n\030UploadModuleFileRes" - "ponse\022\020\n\003url\030\001 \001(\tR\003url\"/\n\020GetModuleRequ" - "est\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\"@\n\021GetM" - "oduleResponse\022+\n\006module\030\001 \001(\0132\023.viam.app" - ".v1.ModuleR\006module\"\345\003\n\006Module\022\033\n\tmodule_" - "id\030\001 \001(\tR\010moduleId\022\022\n\004name\030\002 \001(\tR\004name\0227" - "\n\nvisibility\030\003 \001(\0162\027.viam.app.v1.Visibil" - "ityR\nvisibility\0227\n\010versions\030\004 \003(\0132\033.viam" - ".app.v1.VersionHistoryR\010versions\022\020\n\003url\030" - "\005 \001(\tR\003url\022 \n\013description\030\006 \001(\tR\013descrip" - "tion\022*\n\006models\030\007 \003(\0132\022.viam.app.v1.Model" - "R\006models\022*\n\021total_robot_usage\030\010 \001(\003R\017tot" - "alRobotUsage\0228\n\030total_organization_usage" - "\030\t \001(\003R\026totalOrganizationUsage\022\'\n\017organi" - "zation_id\030\n \001(\tR\016organizationId\022\036\n\nentry" - "point\030\013 \001(\tR\nentrypoint\022)\n\020public_namesp" - "ace\030\014 \001(\tR\017publicNamespace\"\242\001\n\016VersionHi" - "story\022\030\n\007version\030\001 \001(\tR\007version\022*\n\005files" - "\030\002 \003(\0132\024.viam.app.v1.UploadsR\005files\022*\n\006m" - "odels\030\003 \003(\0132\022.viam.app.v1.ModelR\006models\022" - "\036\n\nentrypoint\030\004 \001(\tR\nentrypoint\"b\n\007Uploa" - "ds\022\032\n\010platform\030\001 \001(\tR\010platform\022;\n\013upload" - "ed_at\030\002 \001(\0132\032.google.protobuf.TimestampR" - "\nuploadedAt\"V\n\022ListModulesRequest\022,\n\017org" - "anization_id\030\001 \001(\tH\000R\016organizationId\210\001\001B" - "\022\n\020_organization_id\"D\n\023ListModulesRespon" - "se\022-\n\007modules\030\001 \003(\0132\023.viam.app.v1.Module" - "R\007modules\"/\n\027GetUserIDByEmailRequest\022\024\n\005" - "email\030\001 \001(\tR\005email\"3\n\030GetUserIDByEmailRe" - "sponse\022\027\n\007user_id\030\001 \001(\tR\006userId\"9\n\036ListO" - "rganizationsByUserRequest\022\027\n\007user_id\030\001 \001" - "(\tR\006userId\">\n\nOrgDetails\022\025\n\006org_id\030\001 \001(\t" - "R\005orgId\022\031\n\010org_name\030\002 \001(\tR\007orgName\"N\n\037Li" - "stOrganizationsByUserResponse\022+\n\004orgs\030\001 " - "\003(\0132\027.viam.app.v1.OrgDetailsR\004orgs\"j\n\020Cr" - "eateKeyRequest\022B\n\016authorizations\030\001 \003(\0132\032" - ".viam.app.v1.AuthorizationR\016authorizatio" - "ns\022\022\n\004name\030\002 \001(\tR\004name\"5\n\021CreateKeyRespo" - "nse\022\020\n\003key\030\001 \001(\tR\003key\022\016\n\002id\030\002 \001(\tR\002id\"\"\n" - "\020DeleteKeyRequest\022\016\n\002id\030\001 \001(\tR\002id\"\023\n\021Del" - "eteKeyResponse\"\315\001\n\024AuthorizationDetails\022" - "-\n\022authorization_type\030\001 \001(\tR\021authorizati" - "onType\022)\n\020authorization_id\030\002 \001(\tR\017author" - "izationId\022#\n\rresource_type\030\003 \001(\tR\014resour" - "ceType\022\037\n\013resource_id\030\004 \001(\tR\nresourceId\022" - "\025\n\006org_id\030\005 \001(\tR\005orgId\"\223\001\n\030APIKeyWithAut" - "horizations\022,\n\007api_key\030\001 \001(\0132\023.viam.app." - "v1.APIKeyR\006apiKey\022I\n\016authorizations\030\002 \003(" - "\0132!.viam.app.v1.AuthorizationDetailsR\016au" - "thorizations\"(\n\017ListKeysRequest\022\025\n\006org_i" - "d\030\001 \001(\tR\005orgId\"T\n\020ListKeysResponse\022@\n\010ap" - "i_keys\030\001 \003(\0132%.viam.app.v1.APIKeyWithAut" - "horizationsR\007apiKeys\"\"\n\020RotateKeyRequest" - "\022\016\n\002id\030\001 \001(\tR\002id\"5\n\021RotateKeyResponse\022\016\n" - "\002id\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003key\"\?\n-Creat" - "eKeyFromExistingKeyAuthorizationsRequest" - "\022\016\n\002id\030\001 \001(\tR\002id\"R\n.CreateKeyFromExistin" - "gKeyAuthorizationsResponse\022\016\n\002id\030\001 \001(\tR\002" - "id\022\020\n\003key\030\002 \001(\tR\003key*\207\001\n\022RegistryItemSta" - "tus\022$\n REGISTRY_ITEM_STATUS_UNSPECIFIED\020" - "\000\022\"\n\036REGISTRY_ITEM_STATUS_PUBLISHED\020\001\022\'\n" - "#REGISTRY_ITEM_STATUS_IN_DEVELOPMENT\020\002*W" - "\n\nVisibility\022\032\n\026VISIBILITY_UNSPECIFIED\020\000" - "\022\026\n\022VISIBILITY_PRIVATE\020\001\022\025\n\021VISIBILITY_P" - "UBLIC\020\0022\3574\n\nAppService\022_\n\020GetUserIDByEma" - "il\022$.viam.app.v1.GetUserIDByEmailRequest" - "\032%.viam.app.v1.GetUserIDByEmailResponse\022" - "e\n\022CreateOrganization\022&.viam.app.v1.Crea" - "teOrganizationRequest\032\'.viam.app.v1.Crea" - "teOrganizationResponse\022b\n\021ListOrganizati" - "ons\022%.viam.app.v1.ListOrganizationsReque" - "st\032&.viam.app.v1.ListOrganizationsRespon" - "se\022\233\001\n$GetOrganizationsWithAccessToLocat" - "ion\0228.viam.app.v1.GetOrganizationsWithAc" - "cessToLocationRequest\0329.viam.app.v1.GetO" - "rganizationsWithAccessToLocationResponse" - "\022t\n\027ListOrganizationsByUser\022+.viam.app.v" - "1.ListOrganizationsByUserRequest\032,.viam." - "app.v1.ListOrganizationsByUserResponse\022\\" - "\n\017GetOrganization\022#.viam.app.v1.GetOrgan" - "izationRequest\032$.viam.app.v1.GetOrganiza" - "tionResponse\022\233\001\n$GetOrganizationNamespac" - "eAvailability\0228.viam.app.v1.GetOrganizat" - "ionNamespaceAvailabilityRequest\0329.viam.a" - "pp.v1.GetOrganizationNamespaceAvailabili" - "tyResponse\022e\n\022UpdateOrganization\022&.viam." - "app.v1.UpdateOrganizationRequest\032\'.viam." - "app.v1.UpdateOrganizationResponse\022e\n\022Del" - "eteOrganization\022&.viam.app.v1.DeleteOrga" - "nizationRequest\032\'.viam.app.v1.DeleteOrga" - "nizationResponse\022t\n\027ListOrganizationMemb" - "ers\022+.viam.app.v1.ListOrganizationMember" - "sRequest\032,.viam.app.v1.ListOrganizationM" - "embersResponse\022w\n\030CreateOrganizationInvi" - "te\022,.viam.app.v1.CreateOrganizationInvit" - "eRequest\032-.viam.app.v1.CreateOrganizatio" - "nInviteResponse\022\241\001\n&UpdateOrganizationIn" - "viteAuthorizations\022:.viam.app.v1.UpdateO" - "rganizationInviteAuthorizationsRequest\032;" - ".viam.app.v1.UpdateOrganizationInviteAut" - "horizationsResponse\022w\n\030DeleteOrganizatio" - "nMember\022,.viam.app.v1.DeleteOrganization" - "MemberRequest\032-.viam.app.v1.DeleteOrgani" - "zationMemberResponse\022w\n\030DeleteOrganizati" - "onInvite\022,.viam.app.v1.DeleteOrganizatio" - "nInviteRequest\032-.viam.app.v1.DeleteOrgan" - "izationInviteResponse\022w\n\030ResendOrganizat" - "ionInvite\022,.viam.app.v1.ResendOrganizati" - "onInviteRequest\032-.viam.app.v1.ResendOrga" - "nizationInviteResponse\022Y\n\016CreateLocation" - "\022\".viam.app.v1.CreateLocationRequest\032#.v" - "iam.app.v1.CreateLocationResponse\022P\n\013Get" - "Location\022\037.viam.app.v1.GetLocationReques" - "t\032 .viam.app.v1.GetLocationResponse\022Y\n\016U" - "pdateLocation\022\".viam.app.v1.UpdateLocati" - "onRequest\032#.viam.app.v1.UpdateLocationRe" - "sponse\022Y\n\016DeleteLocation\022\".viam.app.v1.D" - "eleteLocationRequest\032#.viam.app.v1.Delet" - "eLocationResponse\022V\n\rListLocations\022!.via" - "m.app.v1.ListLocationsRequest\032\".viam.app" - ".v1.ListLocationsResponse\022V\n\rShareLocati" - "on\022!.viam.app.v1.ShareLocationRequest\032\"." - "viam.app.v1.ShareLocationResponse\022\\\n\017Uns" - "hareLocation\022#.viam.app.v1.UnshareLocati" - "onRequest\032$.viam.app.v1.UnshareLocationR" - "esponse\022S\n\014LocationAuth\022 .viam.app.v1.Lo" - "cationAuthRequest\032!.viam.app.v1.Location" - "AuthResponse\022k\n\024CreateLocationSecret\022(.v" - "iam.app.v1.CreateLocationSecretRequest\032)" - ".viam.app.v1.CreateLocationSecretRespons" - "e\022k\n\024DeleteLocationSecret\022(.viam.app.v1." - "DeleteLocationSecretRequest\032).viam.app.v" - "1.DeleteLocationSecretResponse\022G\n\010GetRob" - "ot\022\034.viam.app.v1.GetRobotRequest\032\035.viam." - "app.v1.GetRobotResponse\022k\n\024GetRoverRenta" - "lRobots\022(.viam.app.v1.GetRoverRentalRobo" - "tsRequest\032).viam.app.v1.GetRoverRentalRo" - "botsResponse\022V\n\rGetRobotParts\022!.viam.app" - ".v1.GetRobotPartsRequest\032\".viam.app.v1.G" - "etRobotPartsResponse\022S\n\014GetRobotPart\022 .v" - "iam.app.v1.GetRobotPartRequest\032!.viam.ap" - "p.v1.GetRobotPartResponse\022_\n\020GetRobotPar" - "tLogs\022$.viam.app.v1.GetRobotPartLogsRequ" - "est\032%.viam.app.v1.GetRobotPartLogsRespon" - "se\022d\n\021TailRobotPartLogs\022%.viam.app.v1.Ta" - "ilRobotPartLogsRequest\032&.viam.app.v1.Tai" - "lRobotPartLogsResponse0\001\022h\n\023GetRobotPart" - "History\022\'.viam.app.v1.GetRobotPartHistor" - "yRequest\032(.viam.app.v1.GetRobotPartHisto" - "ryResponse\022\\\n\017UpdateRobotPart\022#.viam.app" - ".v1.UpdateRobotPartRequest\032$.viam.app.v1" - ".UpdateRobotPartResponse\022S\n\014NewRobotPart" - "\022 .viam.app.v1.NewRobotPartRequest\032!.via" - "m.app.v1.NewRobotPartResponse\022\\\n\017DeleteR" - "obotPart\022#.viam.app.v1.DeleteRobotPartRe" - "quest\032$.viam.app.v1.DeleteRobotPartRespo" - "nse\022\\\n\017GetRobotAPIKeys\022#.viam.app.v1.Get" - "RobotAPIKeysRequest\032$.viam.app.v1.GetRob" - "otAPIKeysResponse\022Y\n\016MarkPartAsMain\022\".vi" - "am.app.v1.MarkPartAsMainRequest\032#.viam.a" - "pp.v1.MarkPartAsMainResponse\022e\n\022MarkPart" - "ForRestart\022&.viam.app.v1.MarkPartForRest" - "artRequest\032\'.viam.app.v1.MarkPartForRest" - "artResponse\022n\n\025CreateRobotPartSecret\022).v" - "iam.app.v1.CreateRobotPartSecretRequest\032" - "*.viam.app.v1.CreateRobotPartSecretRespo" - "nse\022n\n\025DeleteRobotPartSecret\022).viam.app." - "v1.DeleteRobotPartSecretRequest\032*.viam.a" - "pp.v1.DeleteRobotPartSecretResponse\022M\n\nL" - "istRobots\022\036.viam.app.v1.ListRobotsReques" - "t\032\037.viam.app.v1.ListRobotsResponse\022G\n\010Ne" - "wRobot\022\034.viam.app.v1.NewRobotRequest\032\035.v" - "iam.app.v1.NewRobotResponse\022P\n\013UpdateRob" - "ot\022\037.viam.app.v1.UpdateRobotRequest\032 .vi" - "am.app.v1.UpdateRobotResponse\022P\n\013DeleteR" - "obot\022\037.viam.app.v1.DeleteRobotRequest\032 ." - "viam.app.v1.DeleteRobotResponse\022V\n\rListF" - "ragments\022!.viam.app.v1.ListFragmentsRequ" - "est\032\".viam.app.v1.ListFragmentsResponse\022" - "P\n\013GetFragment\022\037.viam.app.v1.GetFragment" - "Request\032 .viam.app.v1.GetFragmentRespons" - "e\022Y\n\016CreateFragment\022\".viam.app.v1.Create" - "FragmentRequest\032#.viam.app.v1.CreateFrag" - "mentResponse\022Y\n\016UpdateFragment\022\".viam.ap" - "p.v1.UpdateFragmentRequest\032#.viam.app.v1" - ".UpdateFragmentResponse\022Y\n\016DeleteFragmen" - "t\022\".viam.app.v1.DeleteFragmentRequest\032#." - "viam.app.v1.DeleteFragmentResponse\022D\n\007Ad" - "dRole\022\033.viam.app.v1.AddRoleRequest\032\034.via" - "m.app.v1.AddRoleResponse\022M\n\nRemoveRole\022\036" - ".viam.app.v1.RemoveRoleRequest\032\037.viam.ap" - "p.v1.RemoveRoleResponse\022M\n\nChangeRole\022\036." - "viam.app.v1.ChangeRoleRequest\032\037.viam.app" - ".v1.ChangeRoleResponse\022e\n\022ListAuthorizat" - "ions\022&.viam.app.v1.ListAuthorizationsReq" - "uest\032\'.viam.app.v1.ListAuthorizationsRes" - "ponse\022_\n\020CheckPermissions\022$.viam.app.v1." - "CheckPermissionsRequest\032%.viam.app.v1.Ch" - "eckPermissionsResponse\022\\\n\017GetRegistryIte" - "m\022#.viam.app.v1.GetRegistryItemRequest\032$" - ".viam.app.v1.GetRegistryItemResponse\022e\n\022" - "CreateRegistryItem\022&.viam.app.v1.CreateR" - "egistryItemRequest\032\'.viam.app.v1.CreateR" - "egistryItemResponse\022e\n\022UpdateRegistryIte" - "m\022&.viam.app.v1.UpdateRegistryItemReques" - "t\032\'.viam.app.v1.UpdateRegistryItemRespon" - "se\022b\n\021ListRegistryItems\022%.viam.app.v1.Li" - "stRegistryItemsRequest\032&.viam.app.v1.Lis" - "tRegistryItemsResponse\022e\n\022DeleteRegistry" - "Item\022&.viam.app.v1.DeleteRegistryItemReq" - "uest\032\'.viam.app.v1.DeleteRegistryItemRes" - "ponse\022S\n\014CreateModule\022 .viam.app.v1.Crea" - "teModuleRequest\032!.viam.app.v1.CreateModu" - "leResponse\022S\n\014UpdateModule\022 .viam.app.v1" - ".UpdateModuleRequest\032!.viam.app.v1.Updat" - "eModuleResponse\022a\n\020UploadModuleFile\022$.vi" - "am.app.v1.UploadModuleFileRequest\032%.viam" - ".app.v1.UploadModuleFileResponse(\001\022J\n\tGe" - "tModule\022\035.viam.app.v1.GetModuleRequest\032\036" - ".viam.app.v1.GetModuleResponse\022P\n\013ListMo" - "dules\022\037.viam.app.v1.ListModulesRequest\032 " - ".viam.app.v1.ListModulesResponse\022J\n\tCrea" - "teKey\022\035.viam.app.v1.CreateKeyRequest\032\036.v" - "iam.app.v1.CreateKeyResponse\022J\n\tDeleteKe" - "y\022\035.viam.app.v1.DeleteKeyRequest\032\036.viam." - "app.v1.DeleteKeyResponse\022G\n\010ListKeys\022\034.v" - "iam.app.v1.ListKeysRequest\032\035.viam.app.v1" - ".ListKeysResponse\022J\n\tRotateKey\022\035.viam.ap" - "p.v1.RotateKeyRequest\032\036.viam.app.v1.Rota" - "teKeyResponse\022\241\001\n&CreateKeyFromExistingK" - "eyAuthorizations\022:.viam.app.v1.CreateKey" - "FromExistingKeyAuthorizationsRequest\032;.v" - "iam.app.v1.CreateKeyFromExistingKeyAutho" - "rizationsResponseB\030Z\026go.viam.com/api/app" - "/v1b\006proto3" + "!\n\014resource_ids\030\002 \003(\tR\013resourceIds\"`\n\032Li" + "stAuthorizationsResponse\022B\n\016authorizatio" + "ns\030\001 \003(\0132\032.viam.app.v1.AuthorizationR\016au" + "thorizations\"_\n\027CheckPermissionsRequest\022" + "D\n\013permissions\030\001 \003(\0132\".viam.app.v1.Autho" + "rizedPermissionsR\013permissions\"\177\n\025Authori" + "zedPermissions\022#\n\rresource_type\030\001 \001(\tR\014r" + "esourceType\022\037\n\013resource_id\030\002 \001(\tR\nresour" + "ceId\022 \n\013permissions\030\003 \003(\tR\013permissions\"u" + "\n\030CheckPermissionsResponse\022Y\n\026authorized" + "_permissions\030\001 \003(\0132\".viam.app.v1.Authori" + "zedPermissionsR\025authorizedPermissions\"\241\001" + "\n\rModuleVersion\022\030\n\007version\030\001 \001(\tR\007versio" + "n\022*\n\005files\030\002 \003(\0132\024.viam.app.v1.UploadsR\005" + "files\022*\n\006models\030\003 \003(\0132\022.viam.app.v1.Mode" + "lR\006models\022\036\n\nentrypoint\030\004 \001(\tR\nentrypoin" + "t\"\224\001\n\016ModuleMetadata\022*\n\006models\030\001 \003(\0132\022.v" + "iam.app.v1.ModelR\006models\0226\n\010versions\030\002 \003" + "(\0132\032.viam.app.v1.ModuleVersionR\010versions" + "\022\036\n\nentrypoint\030\003 \001(\tR\nentrypoint\"-\n\017MLMo" + "delMetadata\022\032\n\010versions\030\001 \003(\tR\010versions\"" + "\267\006\n\014RegistryItem\022\027\n\007item_id\030\001 \001(\tR\006itemI" + "d\022\'\n\017organization_id\030\002 \001(\tR\016organization" + "Id\022)\n\020public_namespace\030\003 \001(\tR\017publicName" + "space\022\022\n\004name\030\004 \001(\tR\004name\0225\n\004type\030\005 \001(\0162" + "!.viam.app.packages.v1.PackageTypeR\004type" + "\0227\n\nvisibility\030\006 \001(\0162\027.viam.app.v1.Visib" + "ilityR\nvisibility\022\020\n\003url\030\007 \001(\tR\003url\022 \n\013d" + "escription\030\010 \001(\tR\013description\022*\n\021total_r" + "obot_usage\030\t \001(\003R\017totalRobotUsage\022;\n\032tot" + "al_external_robot_usage\030\r \001(\003R\027totalExte" + "rnalRobotUsage\0228\n\030total_organization_usa" + "ge\030\n \001(\003R\026totalOrganizationUsage\022I\n!tota" + "l_external_organization_usage\030\016 \001(\003R\036tot" + "alExternalOrganizationUsage\022F\n\017module_me" + "tadata\030\013 \001(\0132\033.viam.app.v1.ModuleMetadat" + "aH\000R\016moduleMetadata\022J\n\021ml_model_metadata" + "\030\014 \001(\0132\034.viam.app.v1.MLModelMetadataH\000R\017" + "mlModelMetadata\0229\n\ncreated_at\030\017 \001(\0132\032.go" + "ogle.protobuf.TimestampR\tcreatedAt\0229\n\nup" + "dated_at\030\020 \001(\0132\032.google.protobuf.Timesta" + "mpR\tupdatedAtB\n\n\010metadata\"1\n\026GetRegistry" + "ItemRequest\022\027\n\007item_id\030\001 \001(\tR\006itemId\"H\n\027" + "GetRegistryItemResponse\022-\n\004item\030\001 \001(\0132\031." + "viam.app.v1.RegistryItemR\004item\"\217\001\n\031Creat" + "eRegistryItemRequest\022\'\n\017organization_id\030" + "\001 \001(\tR\016organizationId\022\022\n\004name\030\002 \001(\tR\004nam" + "e\0225\n\004type\030\003 \001(\0162!.viam.app.packages.v1.P" + "ackageTypeR\004type\"\034\n\032CreateRegistryItemRe" + "sponse\"\306\001\n\031UpdateRegistryItemRequest\022\027\n\007" + "item_id\030\001 \001(\tR\006itemId\0225\n\004type\030\002 \001(\0162!.vi" + "am.app.packages.v1.PackageTypeR\004type\022 \n\013" + "description\030\003 \001(\tR\013description\0227\n\nvisibi" + "lity\030\004 \001(\0162\027.viam.app.v1.VisibilityR\nvis" + "ibility\"\034\n\032UpdateRegistryItemResponse\"\226\003" + "\n\030ListRegistryItemsRequest\022,\n\017organizati" + "on_id\030\001 \001(\tH\000R\016organizationId\210\001\001\0227\n\005type" + "s\030\002 \003(\0162!.viam.app.packages.v1.PackageTy" + "peR\005types\022;\n\014visibilities\030\003 \003(\0162\027.viam.a" + "pp.v1.VisibilityR\014visibilities\022\034\n\tplatfo" + "rms\030\004 \003(\tR\tplatforms\022;\n\010statuses\030\005 \003(\0162\037" + ".viam.app.v1.RegistryItemStatusR\010statuse" + "s\022$\n\013search_term\030\006 \001(\tH\001R\nsearchTerm\210\001\001\022" + "\"\n\npage_token\030\007 \001(\tH\002R\tpageToken\210\001\001B\022\n\020_" + "organization_idB\016\n\014_search_termB\r\n\013_page" + "_token\"L\n\031ListRegistryItemsResponse\022/\n\005i" + "tems\030\001 \003(\0132\031.viam.app.v1.RegistryItemR\005i" + "tems\"4\n\031DeleteRegistryItemRequest\022\027\n\007ite" + "m_id\030\001 \001(\tR\006itemId\"\034\n\032DeleteRegistryItem" + "Response\"R\n\023CreateModuleRequest\022\'\n\017organ" + "ization_id\030\001 \001(\tR\016organizationId\022\022\n\004name" + "\030\002 \001(\tR\004name\"E\n\024CreateModuleResponse\022\033\n\t" + "module_id\030\001 \001(\tR\010moduleId\022\020\n\003url\030\002 \001(\tR\003" + "url\"\353\001\n\023UpdateModuleRequest\022\033\n\tmodule_id" + "\030\001 \001(\tR\010moduleId\0227\n\nvisibility\030\002 \001(\0162\027.v" + "iam.app.v1.VisibilityR\nvisibility\022\020\n\003url" + "\030\003 \001(\tR\003url\022 \n\013description\030\004 \001(\tR\013descri" + "ption\022*\n\006models\030\005 \003(\0132\022.viam.app.v1.Mode" + "lR\006models\022\036\n\nentrypoint\030\006 \001(\tR\nentrypoin" + "t\"(\n\024UpdateModuleResponse\022\020\n\003url\030\001 \001(\tR\003" + "url\"/\n\005Model\022\020\n\003api\030\001 \001(\tR\003api\022\024\n\005model\030" + "\002 \001(\tR\005model\"c\n\016ModuleFileInfo\022\033\n\tmodule" + "_id\030\001 \001(\tR\010moduleId\022\030\n\007version\030\002 \001(\tR\007ve" + "rsion\022\032\n\010platform\030\003 \001(\tR\010platform\"\207\001\n\027Up" + "loadModuleFileRequest\022G\n\020module_file_inf" + "o\030\001 \001(\0132\033.viam.app.v1.ModuleFileInfoH\000R\016" + "moduleFileInfo\022\024\n\004file\030\002 \001(\014H\000R\004fileB\r\n\013" + "module_file\",\n\030UploadModuleFileResponse\022" + "\020\n\003url\030\001 \001(\tR\003url\"/\n\020GetModuleRequest\022\033\n" + "\tmodule_id\030\001 \001(\tR\010moduleId\"@\n\021GetModuleR" + "esponse\022+\n\006module\030\001 \001(\0132\023.viam.app.v1.Mo" + "duleR\006module\"\345\003\n\006Module\022\033\n\tmodule_id\030\001 \001" + "(\tR\010moduleId\022\022\n\004name\030\002 \001(\tR\004name\0227\n\nvisi" + "bility\030\003 \001(\0162\027.viam.app.v1.VisibilityR\nv" + "isibility\0227\n\010versions\030\004 \003(\0132\033.viam.app.v" + "1.VersionHistoryR\010versions\022\020\n\003url\030\005 \001(\tR" + "\003url\022 \n\013description\030\006 \001(\tR\013description\022*" + "\n\006models\030\007 \003(\0132\022.viam.app.v1.ModelR\006mode" + "ls\022*\n\021total_robot_usage\030\010 \001(\003R\017totalRobo" + "tUsage\0228\n\030total_organization_usage\030\t \001(\003" + "R\026totalOrganizationUsage\022\'\n\017organization" + "_id\030\n \001(\tR\016organizationId\022\036\n\nentrypoint\030" + "\013 \001(\tR\nentrypoint\022)\n\020public_namespace\030\014 " + "\001(\tR\017publicNamespace\"\242\001\n\016VersionHistory\022" + "\030\n\007version\030\001 \001(\tR\007version\022*\n\005files\030\002 \003(\013" + "2\024.viam.app.v1.UploadsR\005files\022*\n\006models\030" + "\003 \003(\0132\022.viam.app.v1.ModelR\006models\022\036\n\nent" + "rypoint\030\004 \001(\tR\nentrypoint\"b\n\007Uploads\022\032\n\010" + "platform\030\001 \001(\tR\010platform\022;\n\013uploaded_at\030" + "\002 \001(\0132\032.google.protobuf.TimestampR\nuploa" + "dedAt\"V\n\022ListModulesRequest\022,\n\017organizat" + "ion_id\030\001 \001(\tH\000R\016organizationId\210\001\001B\022\n\020_or" + "ganization_id\"D\n\023ListModulesResponse\022-\n\007" + "modules\030\001 \003(\0132\023.viam.app.v1.ModuleR\007modu" + "les\"/\n\027GetUserIDByEmailRequest\022\024\n\005email\030" + "\001 \001(\tR\005email\"3\n\030GetUserIDByEmailResponse" + "\022\027\n\007user_id\030\001 \001(\tR\006userId\"9\n\036ListOrganiz" + "ationsByUserRequest\022\027\n\007user_id\030\001 \001(\tR\006us" + "erId\">\n\nOrgDetails\022\025\n\006org_id\030\001 \001(\tR\005orgI" + "d\022\031\n\010org_name\030\002 \001(\tR\007orgName\"N\n\037ListOrga" + "nizationsByUserResponse\022+\n\004orgs\030\001 \003(\0132\027." + "viam.app.v1.OrgDetailsR\004orgs\"j\n\020CreateKe" + "yRequest\022B\n\016authorizations\030\001 \003(\0132\032.viam." + "app.v1.AuthorizationR\016authorizations\022\022\n\004" + "name\030\002 \001(\tR\004name\"5\n\021CreateKeyResponse\022\020\n" + "\003key\030\001 \001(\tR\003key\022\016\n\002id\030\002 \001(\tR\002id\"\"\n\020Delet" + "eKeyRequest\022\016\n\002id\030\001 \001(\tR\002id\"\023\n\021DeleteKey" + "Response\"\315\001\n\024AuthorizationDetails\022-\n\022aut" + "horization_type\030\001 \001(\tR\021authorizationType" + "\022)\n\020authorization_id\030\002 \001(\tR\017authorizatio" + "nId\022#\n\rresource_type\030\003 \001(\tR\014resourceType" + "\022\037\n\013resource_id\030\004 \001(\tR\nresourceId\022\025\n\006org" + "_id\030\005 \001(\tR\005orgId\"\223\001\n\030APIKeyWithAuthoriza" + "tions\022,\n\007api_key\030\001 \001(\0132\023.viam.app.v1.API" + "KeyR\006apiKey\022I\n\016authorizations\030\002 \003(\0132!.vi" + "am.app.v1.AuthorizationDetailsR\016authoriz" + "ations\"(\n\017ListKeysRequest\022\025\n\006org_id\030\001 \001(" + "\tR\005orgId\"T\n\020ListKeysResponse\022@\n\010api_keys" + "\030\001 \003(\0132%.viam.app.v1.APIKeyWithAuthoriza" + "tionsR\007apiKeys\"\"\n\020RotateKeyRequest\022\016\n\002id" + "\030\001 \001(\tR\002id\"5\n\021RotateKeyResponse\022\016\n\002id\030\001 " + "\001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003key\"\?\n-CreateKeyFr" + "omExistingKeyAuthorizationsRequest\022\016\n\002id" + "\030\001 \001(\tR\002id\"R\n.CreateKeyFromExistingKeyAu" + "thorizationsResponse\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003" + "key\030\002 \001(\tR\003key*\207\001\n\022RegistryItemStatus\022$\n" + " REGISTRY_ITEM_STATUS_UNSPECIFIED\020\000\022\"\n\036R" + "EGISTRY_ITEM_STATUS_PUBLISHED\020\001\022\'\n#REGIS" + "TRY_ITEM_STATUS_IN_DEVELOPMENT\020\002*W\n\nVisi" + "bility\022\032\n\026VISIBILITY_UNSPECIFIED\020\000\022\026\n\022VI" + "SIBILITY_PRIVATE\020\001\022\025\n\021VISIBILITY_PUBLIC\020" + "\0022\3574\n\nAppService\022_\n\020GetUserIDByEmail\022$.v" + "iam.app.v1.GetUserIDByEmailRequest\032%.via" + "m.app.v1.GetUserIDByEmailResponse\022e\n\022Cre" + "ateOrganization\022&.viam.app.v1.CreateOrga" + "nizationRequest\032\'.viam.app.v1.CreateOrga" + "nizationResponse\022b\n\021ListOrganizations\022%." + "viam.app.v1.ListOrganizationsRequest\032&.v" + "iam.app.v1.ListOrganizationsResponse\022\233\001\n" + "$GetOrganizationsWithAccessToLocation\0228." + "viam.app.v1.GetOrganizationsWithAccessTo" + "LocationRequest\0329.viam.app.v1.GetOrganiz" + "ationsWithAccessToLocationResponse\022t\n\027Li" + "stOrganizationsByUser\022+.viam.app.v1.List" + "OrganizationsByUserRequest\032,.viam.app.v1" + ".ListOrganizationsByUserResponse\022\\\n\017GetO" + "rganization\022#.viam.app.v1.GetOrganizatio" + "nRequest\032$.viam.app.v1.GetOrganizationRe" + "sponse\022\233\001\n$GetOrganizationNamespaceAvail" + "ability\0228.viam.app.v1.GetOrganizationNam" + "espaceAvailabilityRequest\0329.viam.app.v1." + "GetOrganizationNamespaceAvailabilityResp" + "onse\022e\n\022UpdateOrganization\022&.viam.app.v1" + ".UpdateOrganizationRequest\032\'.viam.app.v1" + ".UpdateOrganizationResponse\022e\n\022DeleteOrg" + "anization\022&.viam.app.v1.DeleteOrganizati" + "onRequest\032\'.viam.app.v1.DeleteOrganizati" + "onResponse\022t\n\027ListOrganizationMembers\022+." + "viam.app.v1.ListOrganizationMembersReque" + "st\032,.viam.app.v1.ListOrganizationMembers" + "Response\022w\n\030CreateOrganizationInvite\022,.v" + "iam.app.v1.CreateOrganizationInviteReque" + "st\032-.viam.app.v1.CreateOrganizationInvit" + "eResponse\022\241\001\n&UpdateOrganizationInviteAu" + "thorizations\022:.viam.app.v1.UpdateOrganiz" + "ationInviteAuthorizationsRequest\032;.viam." + "app.v1.UpdateOrganizationInviteAuthoriza" + "tionsResponse\022w\n\030DeleteOrganizationMembe" + "r\022,.viam.app.v1.DeleteOrganizationMember" + "Request\032-.viam.app.v1.DeleteOrganization" + "MemberResponse\022w\n\030DeleteOrganizationInvi" + "te\022,.viam.app.v1.DeleteOrganizationInvit" + "eRequest\032-.viam.app.v1.DeleteOrganizatio" + "nInviteResponse\022w\n\030ResendOrganizationInv" + "ite\022,.viam.app.v1.ResendOrganizationInvi" + "teRequest\032-.viam.app.v1.ResendOrganizati" + "onInviteResponse\022Y\n\016CreateLocation\022\".via" + "m.app.v1.CreateLocationRequest\032#.viam.ap" + "p.v1.CreateLocationResponse\022P\n\013GetLocati" + "on\022\037.viam.app.v1.GetLocationRequest\032 .vi" + "am.app.v1.GetLocationResponse\022Y\n\016UpdateL" + "ocation\022\".viam.app.v1.UpdateLocationRequ" + "est\032#.viam.app.v1.UpdateLocationResponse" + "\022Y\n\016DeleteLocation\022\".viam.app.v1.DeleteL" + "ocationRequest\032#.viam.app.v1.DeleteLocat" + "ionResponse\022V\n\rListLocations\022!.viam.app." + "v1.ListLocationsRequest\032\".viam.app.v1.Li" + "stLocationsResponse\022V\n\rShareLocation\022!.v" + "iam.app.v1.ShareLocationRequest\032\".viam.a" + "pp.v1.ShareLocationResponse\022\\\n\017UnshareLo" + "cation\022#.viam.app.v1.UnshareLocationRequ" + "est\032$.viam.app.v1.UnshareLocationRespons" + "e\022S\n\014LocationAuth\022 .viam.app.v1.Location" + "AuthRequest\032!.viam.app.v1.LocationAuthRe" + "sponse\022k\n\024CreateLocationSecret\022(.viam.ap" + "p.v1.CreateLocationSecretRequest\032).viam." + "app.v1.CreateLocationSecretResponse\022k\n\024D" + "eleteLocationSecret\022(.viam.app.v1.Delete" + "LocationSecretRequest\032).viam.app.v1.Dele" + "teLocationSecretResponse\022G\n\010GetRobot\022\034.v" + "iam.app.v1.GetRobotRequest\032\035.viam.app.v1" + ".GetRobotResponse\022k\n\024GetRoverRentalRobot" + "s\022(.viam.app.v1.GetRoverRentalRobotsRequ" + "est\032).viam.app.v1.GetRoverRentalRobotsRe" + "sponse\022V\n\rGetRobotParts\022!.viam.app.v1.Ge" + "tRobotPartsRequest\032\".viam.app.v1.GetRobo" + "tPartsResponse\022S\n\014GetRobotPart\022 .viam.ap" + "p.v1.GetRobotPartRequest\032!.viam.app.v1.G" + "etRobotPartResponse\022_\n\020GetRobotPartLogs\022" + "$.viam.app.v1.GetRobotPartLogsRequest\032%." + "viam.app.v1.GetRobotPartLogsResponse\022d\n\021" + "TailRobotPartLogs\022%.viam.app.v1.TailRobo" + "tPartLogsRequest\032&.viam.app.v1.TailRobot" + "PartLogsResponse0\001\022h\n\023GetRobotPartHistor" + "y\022\'.viam.app.v1.GetRobotPartHistoryReque" + "st\032(.viam.app.v1.GetRobotPartHistoryResp" + "onse\022\\\n\017UpdateRobotPart\022#.viam.app.v1.Up" + "dateRobotPartRequest\032$.viam.app.v1.Updat" + "eRobotPartResponse\022S\n\014NewRobotPart\022 .via" + "m.app.v1.NewRobotPartRequest\032!.viam.app." + "v1.NewRobotPartResponse\022\\\n\017DeleteRobotPa" + "rt\022#.viam.app.v1.DeleteRobotPartRequest\032" + "$.viam.app.v1.DeleteRobotPartResponse\022\\\n" + "\017GetRobotAPIKeys\022#.viam.app.v1.GetRobotA" + "PIKeysRequest\032$.viam.app.v1.GetRobotAPIK" + "eysResponse\022Y\n\016MarkPartAsMain\022\".viam.app" + ".v1.MarkPartAsMainRequest\032#.viam.app.v1." + "MarkPartAsMainResponse\022e\n\022MarkPartForRes" + "tart\022&.viam.app.v1.MarkPartForRestartReq" + "uest\032\'.viam.app.v1.MarkPartForRestartRes" + "ponse\022n\n\025CreateRobotPartSecret\022).viam.ap" + "p.v1.CreateRobotPartSecretRequest\032*.viam" + ".app.v1.CreateRobotPartSecretResponse\022n\n" + "\025DeleteRobotPartSecret\022).viam.app.v1.Del" + "eteRobotPartSecretRequest\032*.viam.app.v1." + "DeleteRobotPartSecretResponse\022M\n\nListRob" + "ots\022\036.viam.app.v1.ListRobotsRequest\032\037.vi" + "am.app.v1.ListRobotsResponse\022G\n\010NewRobot" + "\022\034.viam.app.v1.NewRobotRequest\032\035.viam.ap" + "p.v1.NewRobotResponse\022P\n\013UpdateRobot\022\037.v" + "iam.app.v1.UpdateRobotRequest\032 .viam.app" + ".v1.UpdateRobotResponse\022P\n\013DeleteRobot\022\037" + ".viam.app.v1.DeleteRobotRequest\032 .viam.a" + "pp.v1.DeleteRobotResponse\022V\n\rListFragmen" + "ts\022!.viam.app.v1.ListFragmentsRequest\032\"." + "viam.app.v1.ListFragmentsResponse\022P\n\013Get" + "Fragment\022\037.viam.app.v1.GetFragmentReques" + "t\032 .viam.app.v1.GetFragmentResponse\022Y\n\016C" + "reateFragment\022\".viam.app.v1.CreateFragme" + "ntRequest\032#.viam.app.v1.CreateFragmentRe" + "sponse\022Y\n\016UpdateFragment\022\".viam.app.v1.U" + "pdateFragmentRequest\032#.viam.app.v1.Updat" + "eFragmentResponse\022Y\n\016DeleteFragment\022\".vi" + "am.app.v1.DeleteFragmentRequest\032#.viam.a" + "pp.v1.DeleteFragmentResponse\022D\n\007AddRole\022" + "\033.viam.app.v1.AddRoleRequest\032\034.viam.app." + "v1.AddRoleResponse\022M\n\nRemoveRole\022\036.viam." + "app.v1.RemoveRoleRequest\032\037.viam.app.v1.R" + "emoveRoleResponse\022M\n\nChangeRole\022\036.viam.a" + "pp.v1.ChangeRoleRequest\032\037.viam.app.v1.Ch" + "angeRoleResponse\022e\n\022ListAuthorizations\022&" + ".viam.app.v1.ListAuthorizationsRequest\032\'" + ".viam.app.v1.ListAuthorizationsResponse\022" + "_\n\020CheckPermissions\022$.viam.app.v1.CheckP" + "ermissionsRequest\032%.viam.app.v1.CheckPer" + "missionsResponse\022\\\n\017GetRegistryItem\022#.vi" + "am.app.v1.GetRegistryItemRequest\032$.viam." + "app.v1.GetRegistryItemResponse\022e\n\022Create" + "RegistryItem\022&.viam.app.v1.CreateRegistr" + "yItemRequest\032\'.viam.app.v1.CreateRegistr" + "yItemResponse\022e\n\022UpdateRegistryItem\022&.vi" + "am.app.v1.UpdateRegistryItemRequest\032\'.vi" + "am.app.v1.UpdateRegistryItemResponse\022b\n\021" + "ListRegistryItems\022%.viam.app.v1.ListRegi" + "stryItemsRequest\032&.viam.app.v1.ListRegis" + "tryItemsResponse\022e\n\022DeleteRegistryItem\022&" + ".viam.app.v1.DeleteRegistryItemRequest\032\'" + ".viam.app.v1.DeleteRegistryItemResponse\022" + "S\n\014CreateModule\022 .viam.app.v1.CreateModu" + "leRequest\032!.viam.app.v1.CreateModuleResp" + "onse\022S\n\014UpdateModule\022 .viam.app.v1.Updat" + "eModuleRequest\032!.viam.app.v1.UpdateModul" + "eResponse\022a\n\020UploadModuleFile\022$.viam.app" + ".v1.UploadModuleFileRequest\032%.viam.app.v" + "1.UploadModuleFileResponse(\001\022J\n\tGetModul" + "e\022\035.viam.app.v1.GetModuleRequest\032\036.viam." + "app.v1.GetModuleResponse\022P\n\013ListModules\022" + "\037.viam.app.v1.ListModulesRequest\032 .viam." + "app.v1.ListModulesResponse\022J\n\tCreateKey\022" + "\035.viam.app.v1.CreateKeyRequest\032\036.viam.ap" + "p.v1.CreateKeyResponse\022J\n\tDeleteKey\022\035.vi" + "am.app.v1.DeleteKeyRequest\032\036.viam.app.v1" + ".DeleteKeyResponse\022G\n\010ListKeys\022\034.viam.ap" + "p.v1.ListKeysRequest\032\035.viam.app.v1.ListK" + "eysResponse\022J\n\tRotateKey\022\035.viam.app.v1.R" + "otateKeyRequest\032\036.viam.app.v1.RotateKeyR" + "esponse\022\241\001\n&CreateKeyFromExistingKeyAuth" + "orizations\022:.viam.app.v1.CreateKeyFromEx" + "istingKeyAuthorizationsRequest\032;.viam.ap" + "p.v1.CreateKeyFromExistingKeyAuthorizati" + "onsResponseB\030Z\026go.viam.com/api/app/v1b\006p" + "roto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[4] = { +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[5] = { &::descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto, + &::descriptor_table_common_2fv1_2fcommon_2eproto, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, &::descriptor_table_tagger_2fv1_2ftagger_2eproto, }; static ::_pbi::once_flag descriptor_table_app_2fv1_2fapp_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fapp_2eproto = { - false, false, 25651, descriptor_table_protodef_app_2fv1_2fapp_2eproto, + false, false, 25445, descriptor_table_protodef_app_2fv1_2fapp_2eproto, "app/v1/app.proto", - &descriptor_table_app_2fv1_2fapp_2eproto_once, descriptor_table_app_2fv1_2fapp_2eproto_deps, 4, 168, + &descriptor_table_app_2fv1_2fapp_2eproto_once, descriptor_table_app_2fv1_2fapp_2eproto_deps, 5, 167, schemas, file_default_instances, TableStruct_app_2fv1_2fapp_2eproto::offsets, file_level_metadata_app_2fv1_2fapp_2eproto, file_level_enum_descriptors_app_2fv1_2fapp_2eproto, file_level_service_descriptors_app_2fv1_2fapp_2eproto, @@ -19577,13 +19541,15 @@ class GetRobotPartLogsRequest::_Internal { GetRobotPartLogsRequest::GetRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + levels_(arena) { SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartLogsRequest) } GetRobotPartLogsRequest::GetRobotPartLogsRequest(const GetRobotPartLogsRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + _has_bits_(from._has_bits_), + levels_(from.levels_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -19655,6 +19621,7 @@ void GetRobotPartLogsRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + levels_.Clear(); id_.ClearToEmpty(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { @@ -19687,7 +19654,7 @@ const char* GetRobotPartLogsRequest::_InternalParse(const char* ptr, ::_pbi::Par } else goto handle_unusual; continue; - // bool errors_only = 2 [json_name = "errorsOnly"]; + // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { errors_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); @@ -19715,6 +19682,21 @@ const char* GetRobotPartLogsRequest::_InternalParse(const char* ptr, ::_pbi::Par } else goto handle_unusual; continue; + // repeated string levels = 5 [json_name = "levels"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_levels(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsRequest.levels")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -19755,7 +19737,7 @@ uint8_t* GetRobotPartLogsRequest::_InternalSerialize( 1, this->_internal_id(), target); } - // bool errors_only = 2 [json_name = "errorsOnly"]; + // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; if (this->_internal_errors_only() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_errors_only(), target); @@ -19781,6 +19763,16 @@ uint8_t* GetRobotPartLogsRequest::_InternalSerialize( 4, this->_internal_page_token(), target); } + // repeated string levels = 5 [json_name = "levels"]; + for (int i = 0, n = this->_internal_levels_size(); i < n; i++) { + const auto& s = this->_internal_levels(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsRequest.levels"); + target = stream->WriteString(5, s, target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -19797,6 +19789,14 @@ size_t GetRobotPartLogsRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated string levels = 5 [json_name = "levels"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(levels_.size()); + for (int i = 0, n = levels_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + levels_.Get(i)); + } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { total_size += 1 + @@ -19821,7 +19821,7 @@ size_t GetRobotPartLogsRequest::ByteSizeLong() const { } } - // bool errors_only = 2 [json_name = "errorsOnly"]; + // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; if (this->_internal_errors_only() != 0) { total_size += 1 + 1; } @@ -19848,6 +19848,7 @@ void GetRobotPartLogsRequest::MergeFrom(const GetRobotPartLogsRequest& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; + levels_.MergeFrom(from.levels_); if (!from._internal_id().empty()) { _internal_set_id(from._internal_id()); } @@ -19883,6 +19884,7 @@ void GetRobotPartLogsRequest::InternalSwap(GetRobotPartLogsRequest* other) { auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); + levels_.InternalSwap(&other->levels_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &id_, lhs_arena, &other->id_, rhs_arena @@ -19906,535 +19908,13 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartLogsRequest::GetMetadata() const { // =================================================================== -class LogEntry::_Internal { - public: - static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const LogEntry* msg); - static const ::PROTOBUF_NAMESPACE_ID::Struct& caller(const LogEntry* msg); -}; - -const ::PROTOBUF_NAMESPACE_ID::Timestamp& -LogEntry::_Internal::time(const LogEntry* msg) { - return *msg->time_; -} -const ::PROTOBUF_NAMESPACE_ID::Struct& -LogEntry::_Internal::caller(const LogEntry* msg) { - return *msg->caller_; -} -void LogEntry::clear_time() { - if (GetArenaForAllocation() == nullptr && time_ != nullptr) { - delete time_; - } - time_ = nullptr; -} -void LogEntry::clear_caller() { - if (GetArenaForAllocation() == nullptr && caller_ != nullptr) { - delete caller_; - } - caller_ = nullptr; -} -void LogEntry::clear_fields() { - fields_.Clear(); -} -LogEntry::LogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - fields_(arena) { - SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.LogEntry) -} -LogEntry::LogEntry(const LogEntry& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - fields_(from.fields_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - host_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - host_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_host().empty()) { - host_.Set(from._internal_host(), - GetArenaForAllocation()); - } - level_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - level_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_level().empty()) { - level_.Set(from._internal_level(), - GetArenaForAllocation()); - } - logger_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - logger_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_logger_name().empty()) { - logger_name_.Set(from._internal_logger_name(), - GetArenaForAllocation()); - } - message_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_message().empty()) { - message_.Set(from._internal_message(), - GetArenaForAllocation()); - } - stack_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - stack_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_stack().empty()) { - stack_.Set(from._internal_stack(), - GetArenaForAllocation()); - } - if (from._internal_has_time()) { - time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_); - } else { - time_ = nullptr; - } - if (from._internal_has_caller()) { - caller_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.caller_); - } else { - caller_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogEntry) -} - -inline void LogEntry::SharedCtor() { -host_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - host_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -level_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - level_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -logger_name_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - logger_name_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -message_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - message_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -stack_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - stack_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&time_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&caller_) - - reinterpret_cast(&time_)) + sizeof(caller_)); -} - -LogEntry::~LogEntry() { - // @@protoc_insertion_point(destructor:viam.app.v1.LogEntry) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void LogEntry::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - host_.Destroy(); - level_.Destroy(); - logger_name_.Destroy(); - message_.Destroy(); - stack_.Destroy(); - if (this != internal_default_instance()) delete time_; - if (this != internal_default_instance()) delete caller_; -} - -void LogEntry::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void LogEntry::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.LogEntry) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - fields_.Clear(); - host_.ClearToEmpty(); - level_.ClearToEmpty(); - logger_name_.ClearToEmpty(); - message_.ClearToEmpty(); - stack_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && time_ != nullptr) { - delete time_; - } - time_ = nullptr; - if (GetArenaForAllocation() == nullptr && caller_ != nullptr) { - delete caller_; - } - caller_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LogEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string host = 1 [json_name = "host"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_host(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.host")); - } else - goto handle_unusual; - continue; - // string level = 2 [json_name = "level"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_level(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.level")); - } else - goto handle_unusual; - continue; - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string logger_name = 4 [json_name = "loggerName"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_logger_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.logger_name")); - } else - goto handle_unusual; - continue; - // string message = 5 [json_name = "message"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_message(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.message")); - } else - goto handle_unusual; - continue; - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_caller(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string stack = 7 [json_name = "stack"]; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_stack(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogEntry.stack")); - } else - goto handle_unusual; - continue; - // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_fields(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* LogEntry::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LogEntry) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string host = 1 [json_name = "host"]; - if (!this->_internal_host().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_host().data(), static_cast(this->_internal_host().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.app.v1.LogEntry.host"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_host(), target); - } - - // string level = 2 [json_name = "level"]; - if (!this->_internal_level().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_level().data(), static_cast(this->_internal_level().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.app.v1.LogEntry.level"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_level(), target); - } - - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - if (this->_internal_has_time()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::time(this), - _Internal::time(this).GetCachedSize(), target, stream); - } - - // string logger_name = 4 [json_name = "loggerName"]; - if (!this->_internal_logger_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_logger_name().data(), static_cast(this->_internal_logger_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.app.v1.LogEntry.logger_name"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_logger_name(), target); - } - - // string message = 5 [json_name = "message"]; - if (!this->_internal_message().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_message().data(), static_cast(this->_internal_message().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.app.v1.LogEntry.message"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_message(), target); - } - - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - if (this->_internal_has_caller()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::caller(this), - _Internal::caller(this).GetCachedSize(), target, stream); - } - - // string stack = 7 [json_name = "stack"]; - if (!this->_internal_stack().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_stack().data(), static_cast(this->_internal_stack().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.app.v1.LogEntry.stack"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_stack(), target); - } - - // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; - for (unsigned i = 0, - n = static_cast(this->_internal_fields_size()); i < n; i++) { - const auto& repfield = this->_internal_fields(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.LogEntry) - return target; -} - -size_t LogEntry::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LogEntry) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; - total_size += 1UL * this->_internal_fields_size(); - for (const auto& msg : this->fields_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string host = 1 [json_name = "host"]; - if (!this->_internal_host().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_host()); - } - - // string level = 2 [json_name = "level"]; - if (!this->_internal_level().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_level()); - } - - // string logger_name = 4 [json_name = "loggerName"]; - if (!this->_internal_logger_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_logger_name()); - } - - // string message = 5 [json_name = "message"]; - if (!this->_internal_message().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_message()); - } - - // string stack = 7 [json_name = "stack"]; - if (!this->_internal_stack().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_stack()); - } - - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - if (this->_internal_has_time()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *time_); - } - - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - if (this->_internal_has_caller()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *caller_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogEntry::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - LogEntry::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogEntry::GetClassData() const { return &_class_data_; } - -void LogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void LogEntry::MergeFrom(const LogEntry& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogEntry) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - fields_.MergeFrom(from.fields_); - if (!from._internal_host().empty()) { - _internal_set_host(from._internal_host()); - } - if (!from._internal_level().empty()) { - _internal_set_level(from._internal_level()); - } - if (!from._internal_logger_name().empty()) { - _internal_set_logger_name(from._internal_logger_name()); - } - if (!from._internal_message().empty()) { - _internal_set_message(from._internal_message()); - } - if (!from._internal_stack().empty()) { - _internal_set_stack(from._internal_stack()); - } - if (from._internal_has_time()) { - _internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time()); - } - if (from._internal_has_caller()) { - _internal_mutable_caller()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_caller()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void LogEntry::CopyFrom(const LogEntry& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.LogEntry) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LogEntry::IsInitialized() const { - return true; -} - -void LogEntry::InternalSwap(LogEntry* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - fields_.InternalSwap(&other->fields_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &host_, lhs_arena, - &other->host_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &level_, lhs_arena, - &other->level_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &logger_name_, lhs_arena, - &other->logger_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &message_, lhs_arena, - &other->message_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &stack_, lhs_arena, - &other->stack_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LogEntry, caller_) - + sizeof(LogEntry::caller_) - - PROTOBUF_FIELD_OFFSET(LogEntry, time_)>( - reinterpret_cast(&time_), - reinterpret_cast(&other->time_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LogEntry::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[68]); -} - -// =================================================================== - class GetRobotPartLogsResponse::_Internal { public: }; +void GetRobotPartLogsResponse::clear_logs() { + logs_.Clear(); +} GetRobotPartLogsResponse::GetRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), @@ -20499,7 +19979,7 @@ const char* GetRobotPartLogsResponse::_InternalParse(const char* ptr, ::_pbi::Pa uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; @@ -20551,7 +20031,7 @@ uint8_t* GetRobotPartLogsResponse::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { const auto& repfield = this->_internal_logs(i); @@ -20585,7 +20065,7 @@ size_t GetRobotPartLogsResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); for (const auto& msg : this->logs_) { total_size += @@ -20654,7 +20134,7 @@ void GetRobotPartLogsResponse::InternalSwap(GetRobotPartLogsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartLogsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[69]); + file_level_metadata_app_2fv1_2fapp_2eproto[68]); } // =================================================================== @@ -20936,7 +20416,7 @@ void TailRobotPartLogsRequest::InternalSwap(TailRobotPartLogsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TailRobotPartLogsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[70]); + file_level_metadata_app_2fv1_2fapp_2eproto[69]); } // =================================================================== @@ -20945,6 +20425,9 @@ class TailRobotPartLogsResponse::_Internal { public: }; +void TailRobotPartLogsResponse::clear_logs() { + logs_.Clear(); +} TailRobotPartLogsResponse::TailRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), @@ -20995,7 +20478,7 @@ const char* TailRobotPartLogsResponse::_InternalParse(const char* ptr, ::_pbi::P uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; @@ -21037,7 +20520,7 @@ uint8_t* TailRobotPartLogsResponse::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { const auto& repfield = this->_internal_logs(i); @@ -21061,7 +20544,7 @@ size_t TailRobotPartLogsResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); for (const auto& msg : this->logs_) { total_size += @@ -21114,7 +20597,7 @@ void TailRobotPartLogsResponse::InternalSwap(TailRobotPartLogsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TailRobotPartLogsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[71]); + file_level_metadata_app_2fv1_2fapp_2eproto[70]); } // =================================================================== @@ -21309,7 +20792,7 @@ void GetRobotPartHistoryRequest::InternalSwap(GetRobotPartHistoryRequest* other) ::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartHistoryRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[72]); + file_level_metadata_app_2fv1_2fapp_2eproto[71]); } // =================================================================== @@ -21487,7 +20970,7 @@ void GetRobotPartHistoryResponse::InternalSwap(GetRobotPartHistoryResponse* othe ::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartHistoryResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[73]); + file_level_metadata_app_2fv1_2fapp_2eproto[72]); } // =================================================================== @@ -21778,7 +21261,7 @@ void UpdateRobotPartRequest::InternalSwap(UpdateRobotPartRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotPartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[74]); + file_level_metadata_app_2fv1_2fapp_2eproto[73]); } // =================================================================== @@ -21965,7 +21448,7 @@ void UpdateRobotPartResponse::InternalSwap(UpdateRobotPartResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotPartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[75]); + file_level_metadata_app_2fv1_2fapp_2eproto[74]); } // =================================================================== @@ -22208,7 +21691,7 @@ void NewRobotPartRequest::InternalSwap(NewRobotPartRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NewRobotPartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[76]); + file_level_metadata_app_2fv1_2fapp_2eproto[75]); } // =================================================================== @@ -22403,7 +21886,7 @@ void NewRobotPartResponse::InternalSwap(NewRobotPartResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NewRobotPartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[77]); + file_level_metadata_app_2fv1_2fapp_2eproto[76]); } // =================================================================== @@ -22598,7 +22081,7 @@ void DeleteRobotPartRequest::InternalSwap(DeleteRobotPartRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[78]); + file_level_metadata_app_2fv1_2fapp_2eproto[77]); } // =================================================================== @@ -22793,7 +22276,7 @@ void GetRobotAPIKeysRequest::InternalSwap(GetRobotAPIKeysRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetRobotAPIKeysRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[79]); + file_level_metadata_app_2fv1_2fapp_2eproto[78]); } // =================================================================== @@ -23132,7 +22615,7 @@ void APIKey::InternalSwap(APIKey* other) { ::PROTOBUF_NAMESPACE_ID::Metadata APIKey::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[80]); + file_level_metadata_app_2fv1_2fapp_2eproto[79]); } // =================================================================== @@ -23191,7 +22674,7 @@ const char* GetRobotAPIKeysResponse::_InternalParse(const char* ptr, ::_pbi::Par uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated .viam.app.v1.APIKey api_keys = 1 [json_name = "apiKeys"]; + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; @@ -23233,7 +22716,7 @@ uint8_t* GetRobotAPIKeysResponse::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .viam.app.v1.APIKey api_keys = 1 [json_name = "apiKeys"]; + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; for (unsigned i = 0, n = static_cast(this->_internal_api_keys_size()); i < n; i++) { const auto& repfield = this->_internal_api_keys(i); @@ -23257,7 +22740,7 @@ size_t GetRobotAPIKeysResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.APIKey api_keys = 1 [json_name = "apiKeys"]; + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; total_size += 1UL * this->_internal_api_keys_size(); for (const auto& msg : this->api_keys_) { total_size += @@ -23310,7 +22793,7 @@ void GetRobotAPIKeysResponse::InternalSwap(GetRobotAPIKeysResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetRobotAPIKeysResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[81]); + file_level_metadata_app_2fv1_2fapp_2eproto[80]); } // =================================================================== @@ -23349,7 +22832,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartResponse::GetCl ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[82]); + file_level_metadata_app_2fv1_2fapp_2eproto[81]); } // =================================================================== @@ -23884,7 +23367,7 @@ void Fragment::InternalSwap(Fragment* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Fragment::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[83]); + file_level_metadata_app_2fv1_2fapp_2eproto[82]); } // =================================================================== @@ -24105,7 +23588,7 @@ void ListFragmentsRequest::InternalSwap(ListFragmentsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListFragmentsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[84]); + file_level_metadata_app_2fv1_2fapp_2eproto[83]); } // =================================================================== @@ -24283,7 +23766,7 @@ void ListFragmentsResponse::InternalSwap(ListFragmentsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListFragmentsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[85]); + file_level_metadata_app_2fv1_2fapp_2eproto[84]); } // =================================================================== @@ -24478,7 +23961,7 @@ void GetFragmentRequest::InternalSwap(GetFragmentRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[86]); + file_level_metadata_app_2fv1_2fapp_2eproto[85]); } // =================================================================== @@ -24665,7 +24148,7 @@ void GetFragmentResponse::InternalSwap(GetFragmentResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[87]); + file_level_metadata_app_2fv1_2fapp_2eproto[86]); } // =================================================================== @@ -24956,7 +24439,7 @@ void CreateFragmentRequest::InternalSwap(CreateFragmentRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[88]); + file_level_metadata_app_2fv1_2fapp_2eproto[87]); } // =================================================================== @@ -25143,7 +24626,7 @@ void CreateFragmentResponse::InternalSwap(CreateFragmentResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[89]); + file_level_metadata_app_2fv1_2fapp_2eproto[88]); } // =================================================================== @@ -25477,7 +24960,7 @@ void UpdateFragmentRequest::InternalSwap(UpdateFragmentRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[90]); + file_level_metadata_app_2fv1_2fapp_2eproto[89]); } // =================================================================== @@ -25664,7 +25147,7 @@ void UpdateFragmentResponse::InternalSwap(UpdateFragmentResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[91]); + file_level_metadata_app_2fv1_2fapp_2eproto[90]); } // =================================================================== @@ -25859,7 +25342,7 @@ void DeleteFragmentRequest::InternalSwap(DeleteFragmentRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DeleteFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[92]); + file_level_metadata_app_2fv1_2fapp_2eproto[91]); } // =================================================================== @@ -25898,7 +25381,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteFragmentResponse::GetCla ::PROTOBUF_NAMESPACE_ID::Metadata DeleteFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[93]); + file_level_metadata_app_2fv1_2fapp_2eproto[92]); } // =================================================================== @@ -26093,7 +25576,7 @@ void ListRobotsRequest::InternalSwap(ListRobotsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListRobotsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[94]); + file_level_metadata_app_2fv1_2fapp_2eproto[93]); } // =================================================================== @@ -26271,7 +25754,7 @@ void ListRobotsResponse::InternalSwap(ListRobotsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListRobotsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[95]); + file_level_metadata_app_2fv1_2fapp_2eproto[94]); } // =================================================================== @@ -26514,7 +25997,7 @@ void NewRobotRequest::InternalSwap(NewRobotRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NewRobotRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[96]); + file_level_metadata_app_2fv1_2fapp_2eproto[95]); } // =================================================================== @@ -26709,7 +26192,7 @@ void NewRobotResponse::InternalSwap(NewRobotResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NewRobotResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[97]); + file_level_metadata_app_2fv1_2fapp_2eproto[96]); } // =================================================================== @@ -27000,7 +26483,7 @@ void UpdateRobotRequest::InternalSwap(UpdateRobotRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[98]); + file_level_metadata_app_2fv1_2fapp_2eproto[97]); } // =================================================================== @@ -27187,7 +26670,7 @@ void UpdateRobotResponse::InternalSwap(UpdateRobotResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[99]); + file_level_metadata_app_2fv1_2fapp_2eproto[98]); } // =================================================================== @@ -27382,7 +26865,7 @@ void DeleteRobotRequest::InternalSwap(DeleteRobotRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[100]); + file_level_metadata_app_2fv1_2fapp_2eproto[99]); } // =================================================================== @@ -27421,7 +26904,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotResponse::GetClassD ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[101]); + file_level_metadata_app_2fv1_2fapp_2eproto[100]); } // =================================================================== @@ -27616,7 +27099,7 @@ void MarkPartAsMainRequest::InternalSwap(MarkPartAsMainRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MarkPartAsMainRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[102]); + file_level_metadata_app_2fv1_2fapp_2eproto[101]); } // =================================================================== @@ -27655,7 +27138,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartAsMainResponse::GetCla ::PROTOBUF_NAMESPACE_ID::Metadata MarkPartAsMainResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[103]); + file_level_metadata_app_2fv1_2fapp_2eproto[102]); } // =================================================================== @@ -27850,7 +27333,7 @@ void MarkPartForRestartRequest::InternalSwap(MarkPartForRestartRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MarkPartForRestartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[104]); + file_level_metadata_app_2fv1_2fapp_2eproto[103]); } // =================================================================== @@ -27889,7 +27372,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartForRestartResponse::Ge ::PROTOBUF_NAMESPACE_ID::Metadata MarkPartForRestartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[105]); + file_level_metadata_app_2fv1_2fapp_2eproto[104]); } // =================================================================== @@ -28084,7 +27567,7 @@ void CreateRobotPartSecretRequest::InternalSwap(CreateRobotPartSecretRequest* ot ::PROTOBUF_NAMESPACE_ID::Metadata CreateRobotPartSecretRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[106]); + file_level_metadata_app_2fv1_2fapp_2eproto[105]); } // =================================================================== @@ -28271,7 +27754,7 @@ void CreateRobotPartSecretResponse::InternalSwap(CreateRobotPartSecretResponse* ::PROTOBUF_NAMESPACE_ID::Metadata CreateRobotPartSecretResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[107]); + file_level_metadata_app_2fv1_2fapp_2eproto[106]); } // =================================================================== @@ -28514,7 +27997,7 @@ void DeleteRobotPartSecretRequest::InternalSwap(DeleteRobotPartSecretRequest* ot ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartSecretRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[108]); + file_level_metadata_app_2fv1_2fapp_2eproto[107]); } // =================================================================== @@ -28553,7 +28036,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartSecretResponse: ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartSecretResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[109]); + file_level_metadata_app_2fv1_2fapp_2eproto[108]); } // =================================================================== @@ -29036,7 +28519,7 @@ void Authorization::InternalSwap(Authorization* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Authorization::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[110]); + file_level_metadata_app_2fv1_2fapp_2eproto[109]); } // =================================================================== @@ -29223,7 +28706,7 @@ void AddRoleRequest::InternalSwap(AddRoleRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddRoleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[111]); + file_level_metadata_app_2fv1_2fapp_2eproto[110]); } // =================================================================== @@ -29262,7 +28745,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddRoleResponse::GetClassData( ::PROTOBUF_NAMESPACE_ID::Metadata AddRoleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[112]); + file_level_metadata_app_2fv1_2fapp_2eproto[111]); } // =================================================================== @@ -29449,7 +28932,7 @@ void RemoveRoleRequest::InternalSwap(RemoveRoleRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RemoveRoleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[113]); + file_level_metadata_app_2fv1_2fapp_2eproto[112]); } // =================================================================== @@ -29488,7 +28971,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveRoleResponse::GetClassDa ::PROTOBUF_NAMESPACE_ID::Metadata RemoveRoleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[114]); + file_level_metadata_app_2fv1_2fapp_2eproto[113]); } // =================================================================== @@ -29723,7 +29206,7 @@ void ChangeRoleRequest::InternalSwap(ChangeRoleRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ChangeRoleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[115]); + file_level_metadata_app_2fv1_2fapp_2eproto[114]); } // =================================================================== @@ -29762,7 +29245,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeRoleResponse::GetClassDa ::PROTOBUF_NAMESPACE_ID::Metadata ChangeRoleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[116]); + file_level_metadata_app_2fv1_2fapp_2eproto[115]); } // =================================================================== @@ -29995,7 +29478,7 @@ void ListAuthorizationsRequest::InternalSwap(ListAuthorizationsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListAuthorizationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[117]); + file_level_metadata_app_2fv1_2fapp_2eproto[116]); } // =================================================================== @@ -30173,7 +29656,7 @@ void ListAuthorizationsResponse::InternalSwap(ListAuthorizationsResponse* other) ::PROTOBUF_NAMESPACE_ID::Metadata ListAuthorizationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[118]); + file_level_metadata_app_2fv1_2fapp_2eproto[117]); } // =================================================================== @@ -30351,7 +29834,7 @@ void CheckPermissionsRequest::InternalSwap(CheckPermissionsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CheckPermissionsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[119]); + file_level_metadata_app_2fv1_2fapp_2eproto[118]); } // =================================================================== @@ -30632,7 +30115,7 @@ void AuthorizedPermissions::InternalSwap(AuthorizedPermissions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AuthorizedPermissions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[120]); + file_level_metadata_app_2fv1_2fapp_2eproto[119]); } // =================================================================== @@ -30810,7 +30293,7 @@ void CheckPermissionsResponse::InternalSwap(CheckPermissionsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CheckPermissionsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[121]); + file_level_metadata_app_2fv1_2fapp_2eproto[120]); } // =================================================================== @@ -31119,7 +30602,7 @@ void ModuleVersion::InternalSwap(ModuleVersion* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ModuleVersion::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[122]); + file_level_metadata_app_2fv1_2fapp_2eproto[121]); } // =================================================================== @@ -31380,7 +30863,7 @@ void ModuleMetadata::InternalSwap(ModuleMetadata* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ModuleMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[123]); + file_level_metadata_app_2fv1_2fapp_2eproto[122]); } // =================================================================== @@ -31563,7 +31046,7 @@ void MLModelMetadata::InternalSwap(MLModelMetadata* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MLModelMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[124]); + file_level_metadata_app_2fv1_2fapp_2eproto[123]); } // =================================================================== @@ -32390,7 +31873,7 @@ void RegistryItem::InternalSwap(RegistryItem* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegistryItem::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[125]); + file_level_metadata_app_2fv1_2fapp_2eproto[124]); } // =================================================================== @@ -32585,7 +32068,7 @@ void GetRegistryItemRequest::InternalSwap(GetRegistryItemRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[126]); + file_level_metadata_app_2fv1_2fapp_2eproto[125]); } // =================================================================== @@ -32772,7 +32255,7 @@ void GetRegistryItemResponse::InternalSwap(GetRegistryItemResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[127]); + file_level_metadata_app_2fv1_2fapp_2eproto[126]); } // =================================================================== @@ -33044,7 +32527,7 @@ void CreateRegistryItemRequest::InternalSwap(CreateRegistryItemRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[128]); + file_level_metadata_app_2fv1_2fapp_2eproto[127]); } // =================================================================== @@ -33083,7 +32566,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRegistryItemResponse::Ge ::PROTOBUF_NAMESPACE_ID::Metadata CreateRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[129]); + file_level_metadata_app_2fv1_2fapp_2eproto[128]); } // =================================================================== @@ -33392,7 +32875,7 @@ void UpdateRegistryItemRequest::InternalSwap(UpdateRegistryItemRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[130]); + file_level_metadata_app_2fv1_2fapp_2eproto[129]); } // =================================================================== @@ -33431,7 +32914,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRegistryItemResponse::Ge ::PROTOBUF_NAMESPACE_ID::Metadata UpdateRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[131]); + file_level_metadata_app_2fv1_2fapp_2eproto[130]); } // =================================================================== @@ -33919,7 +33402,7 @@ void ListRegistryItemsRequest::InternalSwap(ListRegistryItemsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListRegistryItemsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[132]); + file_level_metadata_app_2fv1_2fapp_2eproto[131]); } // =================================================================== @@ -34097,7 +33580,7 @@ void ListRegistryItemsResponse::InternalSwap(ListRegistryItemsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListRegistryItemsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[133]); + file_level_metadata_app_2fv1_2fapp_2eproto[132]); } // =================================================================== @@ -34292,7 +33775,7 @@ void DeleteRegistryItemRequest::InternalSwap(DeleteRegistryItemRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[134]); + file_level_metadata_app_2fv1_2fapp_2eproto[133]); } // =================================================================== @@ -34331,7 +33814,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRegistryItemResponse::Ge ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[135]); + file_level_metadata_app_2fv1_2fapp_2eproto[134]); } // =================================================================== @@ -34574,7 +34057,7 @@ void CreateModuleRequest::InternalSwap(CreateModuleRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateModuleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[136]); + file_level_metadata_app_2fv1_2fapp_2eproto[135]); } // =================================================================== @@ -34817,7 +34300,7 @@ void CreateModuleResponse::InternalSwap(CreateModuleResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateModuleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[137]); + file_level_metadata_app_2fv1_2fapp_2eproto[136]); } // =================================================================== @@ -35218,7 +34701,7 @@ void UpdateModuleRequest::InternalSwap(UpdateModuleRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateModuleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[138]); + file_level_metadata_app_2fv1_2fapp_2eproto[137]); } // =================================================================== @@ -35413,7 +34896,7 @@ void UpdateModuleResponse::InternalSwap(UpdateModuleResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UpdateModuleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[139]); + file_level_metadata_app_2fv1_2fapp_2eproto[138]); } // =================================================================== @@ -35656,7 +35139,7 @@ void Model::InternalSwap(Model* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Model::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[140]); + file_level_metadata_app_2fv1_2fapp_2eproto[139]); } // =================================================================== @@ -35947,7 +35430,7 @@ void ModuleFileInfo::InternalSwap(ModuleFileInfo* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ModuleFileInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[141]); + file_level_metadata_app_2fv1_2fapp_2eproto[140]); } // =================================================================== @@ -36216,7 +35699,7 @@ void UploadModuleFileRequest::InternalSwap(UploadModuleFileRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UploadModuleFileRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[142]); + file_level_metadata_app_2fv1_2fapp_2eproto[141]); } // =================================================================== @@ -36411,7 +35894,7 @@ void UploadModuleFileResponse::InternalSwap(UploadModuleFileResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UploadModuleFileResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[143]); + file_level_metadata_app_2fv1_2fapp_2eproto[142]); } // =================================================================== @@ -36606,7 +36089,7 @@ void GetModuleRequest::InternalSwap(GetModuleRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetModuleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[144]); + file_level_metadata_app_2fv1_2fapp_2eproto[143]); } // =================================================================== @@ -36793,7 +36276,7 @@ void GetModuleResponse::InternalSwap(GetModuleResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetModuleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[145]); + file_level_metadata_app_2fv1_2fapp_2eproto[144]); } // =================================================================== @@ -37427,7 +36910,7 @@ void Module::InternalSwap(Module* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Module::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[146]); + file_level_metadata_app_2fv1_2fapp_2eproto[145]); } // =================================================================== @@ -37736,7 +37219,7 @@ void VersionHistory::InternalSwap(VersionHistory* other) { ::PROTOBUF_NAMESPACE_ID::Metadata VersionHistory::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[147]); + file_level_metadata_app_2fv1_2fapp_2eproto[146]); } // =================================================================== @@ -37979,7 +37462,7 @@ void Uploads::InternalSwap(Uploads* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Uploads::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[148]); + file_level_metadata_app_2fv1_2fapp_2eproto[147]); } // =================================================================== @@ -38187,7 +37670,7 @@ void ListModulesRequest::InternalSwap(ListModulesRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListModulesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[149]); + file_level_metadata_app_2fv1_2fapp_2eproto[148]); } // =================================================================== @@ -38365,7 +37848,7 @@ void ListModulesResponse::InternalSwap(ListModulesResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListModulesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[150]); + file_level_metadata_app_2fv1_2fapp_2eproto[149]); } // =================================================================== @@ -38560,7 +38043,7 @@ void GetUserIDByEmailRequest::InternalSwap(GetUserIDByEmailRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetUserIDByEmailRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[151]); + file_level_metadata_app_2fv1_2fapp_2eproto[150]); } // =================================================================== @@ -38755,7 +38238,7 @@ void GetUserIDByEmailResponse::InternalSwap(GetUserIDByEmailResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetUserIDByEmailResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[152]); + file_level_metadata_app_2fv1_2fapp_2eproto[151]); } // =================================================================== @@ -38950,7 +38433,7 @@ void ListOrganizationsByUserRequest::InternalSwap(ListOrganizationsByUserRequest ::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsByUserRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[153]); + file_level_metadata_app_2fv1_2fapp_2eproto[152]); } // =================================================================== @@ -39193,7 +38676,7 @@ void OrgDetails::InternalSwap(OrgDetails* other) { ::PROTOBUF_NAMESPACE_ID::Metadata OrgDetails::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[154]); + file_level_metadata_app_2fv1_2fapp_2eproto[153]); } // =================================================================== @@ -39371,7 +38854,7 @@ void ListOrganizationsByUserResponse::InternalSwap(ListOrganizationsByUserRespon ::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsByUserResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[155]); + file_level_metadata_app_2fv1_2fapp_2eproto[154]); } // =================================================================== @@ -39599,7 +39082,7 @@ void CreateKeyRequest::InternalSwap(CreateKeyRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[156]); + file_level_metadata_app_2fv1_2fapp_2eproto[155]); } // =================================================================== @@ -39842,7 +39325,7 @@ void CreateKeyResponse::InternalSwap(CreateKeyResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[157]); + file_level_metadata_app_2fv1_2fapp_2eproto[156]); } // =================================================================== @@ -40037,7 +39520,7 @@ void DeleteKeyRequest::InternalSwap(DeleteKeyRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DeleteKeyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[158]); + file_level_metadata_app_2fv1_2fapp_2eproto[157]); } // =================================================================== @@ -40076,7 +39559,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteKeyResponse::GetClassDat ::PROTOBUF_NAMESPACE_ID::Metadata DeleteKeyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[159]); + file_level_metadata_app_2fv1_2fapp_2eproto[158]); } // =================================================================== @@ -40463,7 +39946,7 @@ void AuthorizationDetails::InternalSwap(AuthorizationDetails* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AuthorizationDetails::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[160]); + file_level_metadata_app_2fv1_2fapp_2eproto[159]); } // =================================================================== @@ -40683,7 +40166,7 @@ void APIKeyWithAuthorizations::InternalSwap(APIKeyWithAuthorizations* other) { ::PROTOBUF_NAMESPACE_ID::Metadata APIKeyWithAuthorizations::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[161]); + file_level_metadata_app_2fv1_2fapp_2eproto[160]); } // =================================================================== @@ -40878,7 +40361,7 @@ void ListKeysRequest::InternalSwap(ListKeysRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListKeysRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[162]); + file_level_metadata_app_2fv1_2fapp_2eproto[161]); } // =================================================================== @@ -41056,7 +40539,7 @@ void ListKeysResponse::InternalSwap(ListKeysResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListKeysResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[163]); + file_level_metadata_app_2fv1_2fapp_2eproto[162]); } // =================================================================== @@ -41251,7 +40734,7 @@ void RotateKeyRequest::InternalSwap(RotateKeyRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RotateKeyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[164]); + file_level_metadata_app_2fv1_2fapp_2eproto[163]); } // =================================================================== @@ -41494,7 +40977,7 @@ void RotateKeyResponse::InternalSwap(RotateKeyResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RotateKeyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[165]); + file_level_metadata_app_2fv1_2fapp_2eproto[164]); } // =================================================================== @@ -41689,7 +41172,7 @@ void CreateKeyFromExistingKeyAuthorizationsRequest::InternalSwap(CreateKeyFromEx ::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyFromExistingKeyAuthorizationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[166]); + file_level_metadata_app_2fv1_2fapp_2eproto[165]); } // =================================================================== @@ -41932,7 +41415,7 @@ void CreateKeyFromExistingKeyAuthorizationsResponse::InternalSwap(CreateKeyFromE ::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyFromExistingKeyAuthorizationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[167]); + file_level_metadata_app_2fv1_2fapp_2eproto[166]); } // @@protoc_insertion_point(namespace_scope) @@ -42212,10 +41695,6 @@ template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartLogsRequest* Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartLogsRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartLogsRequest >(arena); } -template<> PROTOBUF_NOINLINE ::viam::app::v1::LogEntry* -Arena::CreateMaybeMessage< ::viam::app::v1::LogEntry >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::app::v1::LogEntry >(arena); -} template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartLogsResponse* Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartLogsResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartLogsResponse >(arena); diff --git a/src/viam/api/app/v1/app.pb.h b/src/viam/api/app/v1/app.pb.h index 4bedf039d..cc5dbd38a 100644 --- a/src/viam/api/app/v1/app.pb.h +++ b/src/viam/api/app/v1/app.pb.h @@ -33,6 +33,7 @@ #include #include #include "app/packages/v1/packages.pb.h" +#include "common/v1/common.pb.h" #include #include #include "tagger/v1/tagger.pb.h" @@ -380,9 +381,6 @@ extern LocationAuthResponseDefaultTypeInternal _LocationAuthResponse_default_ins class LocationOrganization; struct LocationOrganizationDefaultTypeInternal; extern LocationOrganizationDefaultTypeInternal _LocationOrganization_default_instance_; -class LogEntry; -struct LogEntryDefaultTypeInternal; -extern LogEntryDefaultTypeInternal _LogEntry_default_instance_; class MLModelMetadata; struct MLModelMetadataDefaultTypeInternal; extern MLModelMetadataDefaultTypeInternal _MLModelMetadata_default_instance_; @@ -670,7 +668,6 @@ template<> ::viam::app::v1::LocationAuth* Arena::CreateMaybeMessage<::viam::app: template<> ::viam::app::v1::LocationAuthRequest* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuthRequest>(Arena*); template<> ::viam::app::v1::LocationAuthResponse* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuthResponse>(Arena*); template<> ::viam::app::v1::LocationOrganization* Arena::CreateMaybeMessage<::viam::app::v1::LocationOrganization>(Arena*); -template<> ::viam::app::v1::LogEntry* Arena::CreateMaybeMessage<::viam::app::v1::LogEntry>(Arena*); template<> ::viam::app::v1::MLModelMetadata* Arena::CreateMaybeMessage<::viam::app::v1::MLModelMetadata>(Arena*); template<> ::viam::app::v1::MarkPartAsMainRequest* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartAsMainRequest>(Arena*); template<> ::viam::app::v1::MarkPartAsMainResponse* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartAsMainResponse>(Arena*); @@ -11959,11 +11956,36 @@ class GetRobotPartLogsRequest final : // accessors ------------------------------------------------------- enum : int { + kLevelsFieldNumber = 5, kIdFieldNumber = 1, kFilterFieldNumber = 3, kPageTokenFieldNumber = 4, kErrorsOnlyFieldNumber = 2, }; + // repeated string levels = 5 [json_name = "levels"]; + int levels_size() const; + private: + int _internal_levels_size() const; + public: + void clear_levels(); + const std::string& levels(int index) const; + std::string* mutable_levels(int index); + void set_levels(int index, const std::string& value); + void set_levels(int index, std::string&& value); + void set_levels(int index, const char* value); + void set_levels(int index, const char* value, size_t size); + std::string* add_levels(); + void add_levels(const std::string& value); + void add_levels(std::string&& value); + void add_levels(const char* value); + void add_levels(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& levels() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_levels(); + private: + const std::string& _internal_levels(int index) const; + std::string* _internal_add_levels(); + public: + // string id = 1 [json_name = "id"]; void clear_id(); const std::string& id() const; @@ -12014,10 +12036,10 @@ class GetRobotPartLogsRequest final : std::string* _internal_mutable_page_token(); public: - // bool errors_only = 2 [json_name = "errorsOnly"]; - void clear_errors_only(); - bool errors_only() const; - void set_errors_only(bool value); + // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; + PROTOBUF_DEPRECATED void clear_errors_only(); + PROTOBUF_DEPRECATED bool errors_only() const; + PROTOBUF_DEPRECATED void set_errors_only(bool value); private: bool _internal_errors_only() const; void _internal_set_errors_only(bool value); @@ -12032,6 +12054,7 @@ class GetRobotPartLogsRequest final : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField levels_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filter_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; @@ -12040,278 +12063,6 @@ class GetRobotPartLogsRequest final : }; // ------------------------------------------------------------------- -class LogEntry final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogEntry) */ { - public: - inline LogEntry() : LogEntry(nullptr) {} - ~LogEntry() override; - explicit PROTOBUF_CONSTEXPR LogEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LogEntry(const LogEntry& from); - LogEntry(LogEntry&& from) noexcept - : LogEntry() { - *this = ::std::move(from); - } - - inline LogEntry& operator=(const LogEntry& from) { - CopyFrom(from); - return *this; - } - inline LogEntry& operator=(LogEntry&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LogEntry& default_instance() { - return *internal_default_instance(); - } - static inline const LogEntry* internal_default_instance() { - return reinterpret_cast( - &_LogEntry_default_instance_); - } - static constexpr int kIndexInFileMessages = - 68; - - friend void swap(LogEntry& a, LogEntry& b) { - a.Swap(&b); - } - inline void Swap(LogEntry* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LogEntry* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LogEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const LogEntry& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const LogEntry& from); - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LogEntry* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.app.v1.LogEntry"; - } - protected: - explicit LogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFieldsFieldNumber = 8, - kHostFieldNumber = 1, - kLevelFieldNumber = 2, - kLoggerNameFieldNumber = 4, - kMessageFieldNumber = 5, - kStackFieldNumber = 7, - kTimeFieldNumber = 3, - kCallerFieldNumber = 6, - }; - // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; - int fields_size() const; - private: - int _internal_fields_size() const; - public: - void clear_fields(); - ::PROTOBUF_NAMESPACE_ID::Struct* mutable_fields(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* - mutable_fields(); - private: - const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_fields(int index) const; - ::PROTOBUF_NAMESPACE_ID::Struct* _internal_add_fields(); - public: - const ::PROTOBUF_NAMESPACE_ID::Struct& fields(int index) const; - ::PROTOBUF_NAMESPACE_ID::Struct* add_fields(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& - fields() const; - - // string host = 1 [json_name = "host"]; - void clear_host(); - const std::string& host() const; - template - void set_host(ArgT0&& arg0, ArgT... args); - std::string* mutable_host(); - PROTOBUF_NODISCARD std::string* release_host(); - void set_allocated_host(std::string* host); - private: - const std::string& _internal_host() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); - std::string* _internal_mutable_host(); - public: - - // string level = 2 [json_name = "level"]; - void clear_level(); - const std::string& level() const; - template - void set_level(ArgT0&& arg0, ArgT... args); - std::string* mutable_level(); - PROTOBUF_NODISCARD std::string* release_level(); - void set_allocated_level(std::string* level); - private: - const std::string& _internal_level() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_level(const std::string& value); - std::string* _internal_mutable_level(); - public: - - // string logger_name = 4 [json_name = "loggerName"]; - void clear_logger_name(); - const std::string& logger_name() const; - template - void set_logger_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_logger_name(); - PROTOBUF_NODISCARD std::string* release_logger_name(); - void set_allocated_logger_name(std::string* logger_name); - private: - const std::string& _internal_logger_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_logger_name(const std::string& value); - std::string* _internal_mutable_logger_name(); - public: - - // string message = 5 [json_name = "message"]; - void clear_message(); - const std::string& message() const; - template - void set_message(ArgT0&& arg0, ArgT... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* message); - private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); - std::string* _internal_mutable_message(); - public: - - // string stack = 7 [json_name = "stack"]; - void clear_stack(); - const std::string& stack() const; - template - void set_stack(ArgT0&& arg0, ArgT... args); - std::string* mutable_stack(); - PROTOBUF_NODISCARD std::string* release_stack(); - void set_allocated_stack(std::string* stack); - private: - const std::string& _internal_stack() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_stack(const std::string& value); - std::string* _internal_mutable_stack(); - public: - - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - bool has_time() const; - private: - bool _internal_has_time() const; - public: - void clear_time(); - const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); - ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); - void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); - private: - const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; - ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); - public: - void unsafe_arena_set_allocated_time( - ::PROTOBUF_NAMESPACE_ID::Timestamp* time); - ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); - - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - bool has_caller() const; - private: - bool _internal_has_caller() const; - public: - void clear_caller(); - const ::PROTOBUF_NAMESPACE_ID::Struct& caller() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_caller(); - ::PROTOBUF_NAMESPACE_ID::Struct* mutable_caller(); - void set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller); - private: - const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_caller() const; - ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_caller(); - public: - void unsafe_arena_set_allocated_caller( - ::PROTOBUF_NAMESPACE_ID::Struct* caller); - ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_caller(); - - // @@protoc_insertion_point(class_scope:viam.app.v1.LogEntry) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct > fields_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr level_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logger_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stack_; - ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; - ::PROTOBUF_NAMESPACE_ID::Struct* caller_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -}; -// ------------------------------------------------------------------- - class GetRobotPartLogsResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartLogsResponse) */ { public: @@ -12360,7 +12111,7 @@ class GetRobotPartLogsResponse final : &_GetRobotPartLogsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 69; + 68; friend void swap(GetRobotPartLogsResponse& a, GetRobotPartLogsResponse& b) { a.Swap(&b); @@ -12434,22 +12185,22 @@ class GetRobotPartLogsResponse final : kLogsFieldNumber = 1, kNextPageTokenFieldNumber = 2, }; - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; int logs_size() const; private: int _internal_logs_size() const; public: void clear_logs(); - ::viam::app::v1::LogEntry* mutable_logs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* mutable_logs(); private: - const ::viam::app::v1::LogEntry& _internal_logs(int index) const; - ::viam::app::v1::LogEntry* _internal_add_logs(); + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); public: - const ::viam::app::v1::LogEntry& logs(int index) const; - ::viam::app::v1::LogEntry* add_logs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& logs() const; // string next_page_token = 2 [json_name = "nextPageToken"]; @@ -12473,7 +12224,7 @@ class GetRobotPartLogsResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry > logs_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; @@ -12528,7 +12279,7 @@ class TailRobotPartLogsRequest final : &_TailRobotPartLogsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 70; + 69; friend void swap(TailRobotPartLogsRequest& a, TailRobotPartLogsRequest& b) { a.Swap(&b); @@ -12708,7 +12459,7 @@ class TailRobotPartLogsResponse final : &_TailRobotPartLogsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 71; + 70; friend void swap(TailRobotPartLogsResponse& a, TailRobotPartLogsResponse& b) { a.Swap(&b); @@ -12781,22 +12532,22 @@ class TailRobotPartLogsResponse final : enum : int { kLogsFieldNumber = 1, }; - // repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; int logs_size() const; private: int _internal_logs_size() const; public: void clear_logs(); - ::viam::app::v1::LogEntry* mutable_logs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* mutable_logs(); private: - const ::viam::app::v1::LogEntry& _internal_logs(int index) const; - ::viam::app::v1::LogEntry* _internal_add_logs(); + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); public: - const ::viam::app::v1::LogEntry& logs(int index) const; - ::viam::app::v1::LogEntry* add_logs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& logs() const; // @@protoc_insertion_point(class_scope:viam.app.v1.TailRobotPartLogsResponse) @@ -12806,7 +12557,7 @@ class TailRobotPartLogsResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry > logs_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; }; @@ -12860,7 +12611,7 @@ class GetRobotPartHistoryRequest final : &_GetRobotPartHistoryRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 72; + 71; friend void swap(GetRobotPartHistoryRequest& a, GetRobotPartHistoryRequest& b) { a.Swap(&b); @@ -13008,7 +12759,7 @@ class GetRobotPartHistoryResponse final : &_GetRobotPartHistoryResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 73; + 72; friend void swap(GetRobotPartHistoryResponse& a, GetRobotPartHistoryResponse& b) { a.Swap(&b); @@ -13160,7 +12911,7 @@ class UpdateRobotPartRequest final : &_UpdateRobotPartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 74; + 73; friend void swap(UpdateRobotPartRequest& a, UpdateRobotPartRequest& b) { a.Swap(&b); @@ -13344,7 +13095,7 @@ class UpdateRobotPartResponse final : &_UpdateRobotPartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 75; + 74; friend void swap(UpdateRobotPartResponse& a, UpdateRobotPartResponse& b) { a.Swap(&b); @@ -13496,7 +13247,7 @@ class NewRobotPartRequest final : &_NewRobotPartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 76; + 75; friend void swap(NewRobotPartRequest& a, NewRobotPartRequest& b) { a.Swap(&b); @@ -13660,7 +13411,7 @@ class NewRobotPartResponse final : &_NewRobotPartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 77; + 76; friend void swap(NewRobotPartResponse& a, NewRobotPartResponse& b) { a.Swap(&b); @@ -13808,7 +13559,7 @@ class DeleteRobotPartRequest final : &_DeleteRobotPartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 78; + 77; friend void swap(DeleteRobotPartRequest& a, DeleteRobotPartRequest& b) { a.Swap(&b); @@ -13956,7 +13707,7 @@ class GetRobotAPIKeysRequest final : &_GetRobotAPIKeysRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 79; + 78; friend void swap(GetRobotAPIKeysRequest& a, GetRobotAPIKeysRequest& b) { a.Swap(&b); @@ -14104,7 +13855,7 @@ class APIKey final : &_APIKey_default_instance_); } static constexpr int kIndexInFileMessages = - 80; + 79; friend void swap(APIKey& a, APIKey& b) { a.Swap(&b); @@ -14304,7 +14055,7 @@ class GetRobotAPIKeysResponse final : &_GetRobotAPIKeysResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 81; + 80; friend void swap(GetRobotAPIKeysResponse& a, GetRobotAPIKeysResponse& b) { a.Swap(&b); @@ -14377,22 +14128,22 @@ class GetRobotAPIKeysResponse final : enum : int { kApiKeysFieldNumber = 1, }; - // repeated .viam.app.v1.APIKey api_keys = 1 [json_name = "apiKeys"]; + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; int api_keys_size() const; private: int _internal_api_keys_size() const; public: void clear_api_keys(); - ::viam::app::v1::APIKey* mutable_api_keys(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKey >* + ::viam::app::v1::APIKeyWithAuthorizations* mutable_api_keys(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* mutable_api_keys(); private: - const ::viam::app::v1::APIKey& _internal_api_keys(int index) const; - ::viam::app::v1::APIKey* _internal_add_api_keys(); + const ::viam::app::v1::APIKeyWithAuthorizations& _internal_api_keys(int index) const; + ::viam::app::v1::APIKeyWithAuthorizations* _internal_add_api_keys(); public: - const ::viam::app::v1::APIKey& api_keys(int index) const; - ::viam::app::v1::APIKey* add_api_keys(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKey >& + const ::viam::app::v1::APIKeyWithAuthorizations& api_keys(int index) const; + ::viam::app::v1::APIKeyWithAuthorizations* add_api_keys(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& api_keys() const; // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotAPIKeysResponse) @@ -14402,7 +14153,7 @@ class GetRobotAPIKeysResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKey > api_keys_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations > api_keys_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; }; @@ -14455,7 +14206,7 @@ class DeleteRobotPartResponse final : &_DeleteRobotPartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 82; + 81; friend void swap(DeleteRobotPartResponse& a, DeleteRobotPartResponse& b) { a.Swap(&b); @@ -14572,7 +14323,7 @@ class Fragment final : &_Fragment_default_instance_); } static constexpr int kIndexInFileMessages = - 83; + 82; friend void swap(Fragment& a, Fragment& b) { a.Swap(&b); @@ -14852,7 +14603,7 @@ class ListFragmentsRequest final : &_ListFragmentsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 84; + 83; friend void swap(ListFragmentsRequest& a, ListFragmentsRequest& b) { a.Swap(&b); @@ -15011,7 +14762,7 @@ class ListFragmentsResponse final : &_ListFragmentsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 85; + 84; friend void swap(ListFragmentsResponse& a, ListFragmentsResponse& b) { a.Swap(&b); @@ -15163,7 +14914,7 @@ class GetFragmentRequest final : &_GetFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 86; + 85; friend void swap(GetFragmentRequest& a, GetFragmentRequest& b) { a.Swap(&b); @@ -15311,7 +15062,7 @@ class GetFragmentResponse final : &_GetFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 87; + 86; friend void swap(GetFragmentResponse& a, GetFragmentResponse& b) { a.Swap(&b); @@ -15463,7 +15214,7 @@ class CreateFragmentRequest final : &_CreateFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 88; + 87; friend void swap(CreateFragmentRequest& a, CreateFragmentRequest& b) { a.Swap(&b); @@ -15647,7 +15398,7 @@ class CreateFragmentResponse final : &_CreateFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 89; + 88; friend void swap(CreateFragmentResponse& a, CreateFragmentResponse& b) { a.Swap(&b); @@ -15799,7 +15550,7 @@ class UpdateFragmentRequest final : &_UpdateFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 90; + 89; friend void swap(UpdateFragmentRequest& a, UpdateFragmentRequest& b) { a.Swap(&b); @@ -15999,7 +15750,7 @@ class UpdateFragmentResponse final : &_UpdateFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 91; + 90; friend void swap(UpdateFragmentResponse& a, UpdateFragmentResponse& b) { a.Swap(&b); @@ -16151,7 +15902,7 @@ class DeleteFragmentRequest final : &_DeleteFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 92; + 91; friend void swap(DeleteFragmentRequest& a, DeleteFragmentRequest& b) { a.Swap(&b); @@ -16298,7 +16049,7 @@ class DeleteFragmentResponse final : &_DeleteFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 93; + 92; friend void swap(DeleteFragmentResponse& a, DeleteFragmentResponse& b) { a.Swap(&b); @@ -16415,7 +16166,7 @@ class ListRobotsRequest final : &_ListRobotsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 94; + 93; friend void swap(ListRobotsRequest& a, ListRobotsRequest& b) { a.Swap(&b); @@ -16563,7 +16314,7 @@ class ListRobotsResponse final : &_ListRobotsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 95; + 94; friend void swap(ListRobotsResponse& a, ListRobotsResponse& b) { a.Swap(&b); @@ -16715,7 +16466,7 @@ class NewRobotRequest final : &_NewRobotRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 96; + 95; friend void swap(NewRobotRequest& a, NewRobotRequest& b) { a.Swap(&b); @@ -16879,7 +16630,7 @@ class NewRobotResponse final : &_NewRobotResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 97; + 96; friend void swap(NewRobotResponse& a, NewRobotResponse& b) { a.Swap(&b); @@ -17027,7 +16778,7 @@ class UpdateRobotRequest final : &_UpdateRobotRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 98; + 97; friend void swap(UpdateRobotRequest& a, UpdateRobotRequest& b) { a.Swap(&b); @@ -17207,7 +16958,7 @@ class UpdateRobotResponse final : &_UpdateRobotResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 99; + 98; friend void swap(UpdateRobotResponse& a, UpdateRobotResponse& b) { a.Swap(&b); @@ -17359,7 +17110,7 @@ class DeleteRobotRequest final : &_DeleteRobotRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 100; + 99; friend void swap(DeleteRobotRequest& a, DeleteRobotRequest& b) { a.Swap(&b); @@ -17506,7 +17257,7 @@ class DeleteRobotResponse final : &_DeleteRobotResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 101; + 100; friend void swap(DeleteRobotResponse& a, DeleteRobotResponse& b) { a.Swap(&b); @@ -17623,7 +17374,7 @@ class MarkPartAsMainRequest final : &_MarkPartAsMainRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 102; + 101; friend void swap(MarkPartAsMainRequest& a, MarkPartAsMainRequest& b) { a.Swap(&b); @@ -17770,7 +17521,7 @@ class MarkPartAsMainResponse final : &_MarkPartAsMainResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 103; + 102; friend void swap(MarkPartAsMainResponse& a, MarkPartAsMainResponse& b) { a.Swap(&b); @@ -17887,7 +17638,7 @@ class MarkPartForRestartRequest final : &_MarkPartForRestartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 104; + 103; friend void swap(MarkPartForRestartRequest& a, MarkPartForRestartRequest& b) { a.Swap(&b); @@ -18034,7 +17785,7 @@ class MarkPartForRestartResponse final : &_MarkPartForRestartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 105; + 104; friend void swap(MarkPartForRestartResponse& a, MarkPartForRestartResponse& b) { a.Swap(&b); @@ -18151,7 +17902,7 @@ class CreateRobotPartSecretRequest final : &_CreateRobotPartSecretRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 106; + 105; friend void swap(CreateRobotPartSecretRequest& a, CreateRobotPartSecretRequest& b) { a.Swap(&b); @@ -18299,7 +18050,7 @@ class CreateRobotPartSecretResponse final : &_CreateRobotPartSecretResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 107; + 106; friend void swap(CreateRobotPartSecretResponse& a, CreateRobotPartSecretResponse& b) { a.Swap(&b); @@ -18451,7 +18202,7 @@ class DeleteRobotPartSecretRequest final : &_DeleteRobotPartSecretRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 108; + 107; friend void swap(DeleteRobotPartSecretRequest& a, DeleteRobotPartSecretRequest& b) { a.Swap(&b); @@ -18614,7 +18365,7 @@ class DeleteRobotPartSecretResponse final : &_DeleteRobotPartSecretResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 109; + 108; friend void swap(DeleteRobotPartSecretResponse& a, DeleteRobotPartSecretResponse& b) { a.Swap(&b); @@ -18731,7 +18482,7 @@ class Authorization final : &_Authorization_default_instance_); } static constexpr int kIndexInFileMessages = - 110; + 109; friend void swap(Authorization& a, Authorization& b) { a.Swap(&b); @@ -18975,7 +18726,7 @@ class AddRoleRequest final : &_AddRoleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 111; + 110; friend void swap(AddRoleRequest& a, AddRoleRequest& b) { a.Swap(&b); @@ -19126,7 +18877,7 @@ class AddRoleResponse final : &_AddRoleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 112; + 111; friend void swap(AddRoleResponse& a, AddRoleResponse& b) { a.Swap(&b); @@ -19243,7 +18994,7 @@ class RemoveRoleRequest final : &_RemoveRoleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 113; + 112; friend void swap(RemoveRoleRequest& a, RemoveRoleRequest& b) { a.Swap(&b); @@ -19394,7 +19145,7 @@ class RemoveRoleResponse final : &_RemoveRoleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 114; + 113; friend void swap(RemoveRoleResponse& a, RemoveRoleResponse& b) { a.Swap(&b); @@ -19511,7 +19262,7 @@ class ChangeRoleRequest final : &_ChangeRoleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 115; + 114; friend void swap(ChangeRoleRequest& a, ChangeRoleRequest& b) { a.Swap(&b); @@ -19682,7 +19433,7 @@ class ChangeRoleResponse final : &_ChangeRoleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 116; + 115; friend void swap(ChangeRoleResponse& a, ChangeRoleResponse& b) { a.Swap(&b); @@ -19799,7 +19550,7 @@ class ListAuthorizationsRequest final : &_ListAuthorizationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 117; + 116; friend void swap(ListAuthorizationsRequest& a, ListAuthorizationsRequest& b) { a.Swap(&b); @@ -19973,7 +19724,7 @@ class ListAuthorizationsResponse final : &_ListAuthorizationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 118; + 117; friend void swap(ListAuthorizationsResponse& a, ListAuthorizationsResponse& b) { a.Swap(&b); @@ -20125,7 +19876,7 @@ class CheckPermissionsRequest final : &_CheckPermissionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 119; + 118; friend void swap(CheckPermissionsRequest& a, CheckPermissionsRequest& b) { a.Swap(&b); @@ -20277,7 +20028,7 @@ class AuthorizedPermissions final : &_AuthorizedPermissions_default_instance_); } static constexpr int kIndexInFileMessages = - 120; + 119; friend void swap(AuthorizedPermissions& a, AuthorizedPermissions& b) { a.Swap(&b); @@ -20467,7 +20218,7 @@ class CheckPermissionsResponse final : &_CheckPermissionsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 121; + 120; friend void swap(CheckPermissionsResponse& a, CheckPermissionsResponse& b) { a.Swap(&b); @@ -20619,7 +20370,7 @@ class ModuleVersion final : &_ModuleVersion_default_instance_); } static constexpr int kIndexInFileMessages = - 122; + 121; friend void swap(ModuleVersion& a, ModuleVersion& b) { a.Swap(&b); @@ -20823,7 +20574,7 @@ class ModuleMetadata final : &_ModuleMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 123; + 122; friend void swap(ModuleMetadata& a, ModuleMetadata& b) { a.Swap(&b); @@ -21011,7 +20762,7 @@ class MLModelMetadata final : &_MLModelMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 124; + 123; friend void swap(MLModelMetadata& a, MLModelMetadata& b) { a.Swap(&b); @@ -21175,7 +20926,7 @@ class RegistryItem final : &_RegistryItem_default_instance_); } static constexpr int kIndexInFileMessages = - 125; + 124; friend void swap(RegistryItem& a, RegistryItem& b) { a.Swap(&b); @@ -21562,7 +21313,7 @@ class GetRegistryItemRequest final : &_GetRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 126; + 125; friend void swap(GetRegistryItemRequest& a, GetRegistryItemRequest& b) { a.Swap(&b); @@ -21710,7 +21461,7 @@ class GetRegistryItemResponse final : &_GetRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 127; + 126; friend void swap(GetRegistryItemResponse& a, GetRegistryItemResponse& b) { a.Swap(&b); @@ -21862,7 +21613,7 @@ class CreateRegistryItemRequest final : &_CreateRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 128; + 127; friend void swap(CreateRegistryItemRequest& a, CreateRegistryItemRequest& b) { a.Swap(&b); @@ -22036,7 +21787,7 @@ class CreateRegistryItemResponse final : &_CreateRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 129; + 128; friend void swap(CreateRegistryItemResponse& a, CreateRegistryItemResponse& b) { a.Swap(&b); @@ -22153,7 +21904,7 @@ class UpdateRegistryItemRequest final : &_UpdateRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 130; + 129; friend void swap(UpdateRegistryItemRequest& a, UpdateRegistryItemRequest& b) { a.Swap(&b); @@ -22338,7 +22089,7 @@ class UpdateRegistryItemResponse final : &_UpdateRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 131; + 130; friend void swap(UpdateRegistryItemResponse& a, UpdateRegistryItemResponse& b) { a.Swap(&b); @@ -22455,7 +22206,7 @@ class ListRegistryItemsRequest final : &_ListRegistryItemsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 132; + 131; friend void swap(ListRegistryItemsRequest& a, ListRegistryItemsRequest& b) { a.Swap(&b); @@ -22734,7 +22485,7 @@ class ListRegistryItemsResponse final : &_ListRegistryItemsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 133; + 132; friend void swap(ListRegistryItemsResponse& a, ListRegistryItemsResponse& b) { a.Swap(&b); @@ -22886,7 +22637,7 @@ class DeleteRegistryItemRequest final : &_DeleteRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 134; + 133; friend void swap(DeleteRegistryItemRequest& a, DeleteRegistryItemRequest& b) { a.Swap(&b); @@ -23033,7 +22784,7 @@ class DeleteRegistryItemResponse final : &_DeleteRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 135; + 134; friend void swap(DeleteRegistryItemResponse& a, DeleteRegistryItemResponse& b) { a.Swap(&b); @@ -23150,7 +22901,7 @@ class CreateModuleRequest final : &_CreateModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 136; + 135; friend void swap(CreateModuleRequest& a, CreateModuleRequest& b) { a.Swap(&b); @@ -23314,7 +23065,7 @@ class CreateModuleResponse final : &_CreateModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 137; + 136; friend void swap(CreateModuleResponse& a, CreateModuleResponse& b) { a.Swap(&b); @@ -23478,7 +23229,7 @@ class UpdateModuleRequest final : &_UpdateModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 138; + 137; friend void swap(UpdateModuleRequest& a, UpdateModuleRequest& b) { a.Swap(&b); @@ -23705,7 +23456,7 @@ class UpdateModuleResponse final : &_UpdateModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 139; + 138; friend void swap(UpdateModuleResponse& a, UpdateModuleResponse& b) { a.Swap(&b); @@ -23853,7 +23604,7 @@ class Model final : &_Model_default_instance_); } static constexpr int kIndexInFileMessages = - 140; + 139; friend void swap(Model& a, Model& b) { a.Swap(&b); @@ -24017,7 +23768,7 @@ class ModuleFileInfo final : &_ModuleFileInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 141; + 140; friend void swap(ModuleFileInfo& a, ModuleFileInfo& b) { a.Swap(&b); @@ -24203,7 +23954,7 @@ class UploadModuleFileRequest final : &_UploadModuleFileRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 142; + 141; friend void swap(UploadModuleFileRequest& a, UploadModuleFileRequest& b) { a.Swap(&b); @@ -24388,7 +24139,7 @@ class UploadModuleFileResponse final : &_UploadModuleFileResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 143; + 142; friend void swap(UploadModuleFileResponse& a, UploadModuleFileResponse& b) { a.Swap(&b); @@ -24536,7 +24287,7 @@ class GetModuleRequest final : &_GetModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 144; + 143; friend void swap(GetModuleRequest& a, GetModuleRequest& b) { a.Swap(&b); @@ -24684,7 +24435,7 @@ class GetModuleResponse final : &_GetModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 145; + 144; friend void swap(GetModuleResponse& a, GetModuleResponse& b) { a.Swap(&b); @@ -24836,7 +24587,7 @@ class Module final : &_Module_default_instance_); } static constexpr int kIndexInFileMessages = - 146; + 145; friend void swap(Module& a, Module& b) { a.Swap(&b); @@ -25153,7 +24904,7 @@ class VersionHistory final : &_VersionHistory_default_instance_); } static constexpr int kIndexInFileMessages = - 147; + 146; friend void swap(VersionHistory& a, VersionHistory& b) { a.Swap(&b); @@ -25357,7 +25108,7 @@ class Uploads final : &_Uploads_default_instance_); } static constexpr int kIndexInFileMessages = - 148; + 147; friend void swap(Uploads& a, Uploads& b) { a.Swap(&b); @@ -25525,7 +25276,7 @@ class ListModulesRequest final : &_ListModulesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 149; + 148; friend void swap(ListModulesRequest& a, ListModulesRequest& b) { a.Swap(&b); @@ -25678,7 +25429,7 @@ class ListModulesResponse final : &_ListModulesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 150; + 149; friend void swap(ListModulesResponse& a, ListModulesResponse& b) { a.Swap(&b); @@ -25830,7 +25581,7 @@ class GetUserIDByEmailRequest final : &_GetUserIDByEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 151; + 150; friend void swap(GetUserIDByEmailRequest& a, GetUserIDByEmailRequest& b) { a.Swap(&b); @@ -25978,7 +25729,7 @@ class GetUserIDByEmailResponse final : &_GetUserIDByEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 152; + 151; friend void swap(GetUserIDByEmailResponse& a, GetUserIDByEmailResponse& b) { a.Swap(&b); @@ -26126,7 +25877,7 @@ class ListOrganizationsByUserRequest final : &_ListOrganizationsByUserRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 153; + 152; friend void swap(ListOrganizationsByUserRequest& a, ListOrganizationsByUserRequest& b) { a.Swap(&b); @@ -26274,7 +26025,7 @@ class OrgDetails final : &_OrgDetails_default_instance_); } static constexpr int kIndexInFileMessages = - 154; + 153; friend void swap(OrgDetails& a, OrgDetails& b) { a.Swap(&b); @@ -26438,7 +26189,7 @@ class ListOrganizationsByUserResponse final : &_ListOrganizationsByUserResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 155; + 154; friend void swap(ListOrganizationsByUserResponse& a, ListOrganizationsByUserResponse& b) { a.Swap(&b); @@ -26590,7 +26341,7 @@ class CreateKeyRequest final : &_CreateKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 156; + 155; friend void swap(CreateKeyRequest& a, CreateKeyRequest& b) { a.Swap(&b); @@ -26758,7 +26509,7 @@ class CreateKeyResponse final : &_CreateKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 157; + 156; friend void swap(CreateKeyResponse& a, CreateKeyResponse& b) { a.Swap(&b); @@ -26922,7 +26673,7 @@ class DeleteKeyRequest final : &_DeleteKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 158; + 157; friend void swap(DeleteKeyRequest& a, DeleteKeyRequest& b) { a.Swap(&b); @@ -27069,7 +26820,7 @@ class DeleteKeyResponse final : &_DeleteKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 159; + 158; friend void swap(DeleteKeyResponse& a, DeleteKeyResponse& b) { a.Swap(&b); @@ -27186,7 +26937,7 @@ class AuthorizationDetails final : &_AuthorizationDetails_default_instance_); } static constexpr int kIndexInFileMessages = - 160; + 159; friend void swap(AuthorizationDetails& a, AuthorizationDetails& b) { a.Swap(&b); @@ -27398,7 +27149,7 @@ class APIKeyWithAuthorizations final : &_APIKeyWithAuthorizations_default_instance_); } static constexpr int kIndexInFileMessages = - 161; + 160; friend void swap(APIKeyWithAuthorizations& a, APIKeyWithAuthorizations& b) { a.Swap(&b); @@ -27570,7 +27321,7 @@ class ListKeysRequest final : &_ListKeysRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 162; + 161; friend void swap(ListKeysRequest& a, ListKeysRequest& b) { a.Swap(&b); @@ -27718,7 +27469,7 @@ class ListKeysResponse final : &_ListKeysResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 163; + 162; friend void swap(ListKeysResponse& a, ListKeysResponse& b) { a.Swap(&b); @@ -27870,7 +27621,7 @@ class RotateKeyRequest final : &_RotateKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 164; + 163; friend void swap(RotateKeyRequest& a, RotateKeyRequest& b) { a.Swap(&b); @@ -28018,7 +27769,7 @@ class RotateKeyResponse final : &_RotateKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 165; + 164; friend void swap(RotateKeyResponse& a, RotateKeyResponse& b) { a.Swap(&b); @@ -28182,7 +27933,7 @@ class CreateKeyFromExistingKeyAuthorizationsRequest final : &_CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 166; + 165; friend void swap(CreateKeyFromExistingKeyAuthorizationsRequest& a, CreateKeyFromExistingKeyAuthorizationsRequest& b) { a.Swap(&b); @@ -28330,7 +28081,7 @@ class CreateKeyFromExistingKeyAuthorizationsResponse final : &_CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 167; + 166; friend void swap(CreateKeyFromExistingKeyAuthorizationsResponse& a, CreateKeyFromExistingKeyAuthorizationsResponse& b) { a.Swap(&b); @@ -36267,7 +36018,7 @@ inline void GetRobotPartLogsRequest::set_allocated_id(std::string* id) { // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.id) } -// bool errors_only = 2 [json_name = "errorsOnly"]; +// bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; inline void GetRobotPartLogsRequest::clear_errors_only() { errors_only_ = false; } @@ -36423,506 +36174,117 @@ inline void GetRobotPartLogsRequest::set_allocated_page_token(std::string* page_ // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.page_token) } -// ------------------------------------------------------------------- - -// LogEntry - -// string host = 1 [json_name = "host"]; -inline void LogEntry::clear_host() { - host_.ClearToEmpty(); -} -inline const std::string& LogEntry::host() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.host) - return _internal_host(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void LogEntry::set_host(ArgT0&& arg0, ArgT... args) { - - host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.host) -} -inline std::string* LogEntry::mutable_host() { - std::string* _s = _internal_mutable_host(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.host) - return _s; -} -inline const std::string& LogEntry::_internal_host() const { - return host_.Get(); -} -inline void LogEntry::_internal_set_host(const std::string& value) { - - host_.Set(value, GetArenaForAllocation()); -} -inline std::string* LogEntry::_internal_mutable_host() { - - return host_.Mutable(GetArenaForAllocation()); -} -inline std::string* LogEntry::release_host() { - // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.host) - return host_.Release(); -} -inline void LogEntry::set_allocated_host(std::string* host) { - if (host != nullptr) { - - } else { - - } - host_.SetAllocated(host, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (host_.IsDefault()) { - host_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.host) -} - -// string level = 2 [json_name = "level"]; -inline void LogEntry::clear_level() { - level_.ClearToEmpty(); -} -inline const std::string& LogEntry::level() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.level) - return _internal_level(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void LogEntry::set_level(ArgT0&& arg0, ArgT... args) { - - level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.level) -} -inline std::string* LogEntry::mutable_level() { - std::string* _s = _internal_mutable_level(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.level) - return _s; -} -inline const std::string& LogEntry::_internal_level() const { - return level_.Get(); -} -inline void LogEntry::_internal_set_level(const std::string& value) { - - level_.Set(value, GetArenaForAllocation()); -} -inline std::string* LogEntry::_internal_mutable_level() { - - return level_.Mutable(GetArenaForAllocation()); -} -inline std::string* LogEntry::release_level() { - // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.level) - return level_.Release(); -} -inline void LogEntry::set_allocated_level(std::string* level) { - if (level != nullptr) { - - } else { - - } - level_.SetAllocated(level, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (level_.IsDefault()) { - level_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.level) -} - -// .google.protobuf.Timestamp time = 3 [json_name = "time"]; -inline bool LogEntry::_internal_has_time() const { - return this != internal_default_instance() && time_ != nullptr; -} -inline bool LogEntry::has_time() const { - return _internal_has_time(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::_internal_time() const { - const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = time_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::time() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.time) - return _internal_time(); -} -inline void LogEntry::unsafe_arena_set_allocated_time( - ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); - } - time_ = time; - if (time) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.LogEntry.time) -} -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::release_time() { - - ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; - time_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::unsafe_arena_release_time() { - // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.time) - - ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; - time_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::_internal_mutable_time() { - - if (time_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); - time_ = p; - } - return time_; -} -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::mutable_time() { - ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.time) - return _msg; -} -inline void LogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); - } - if (time) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); - if (message_arena != submessage_arena) { - time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, time, submessage_arena); - } - - } else { - - } - time_ = time; - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.time) -} - -// string logger_name = 4 [json_name = "loggerName"]; -inline void LogEntry::clear_logger_name() { - logger_name_.ClearToEmpty(); +// repeated string levels = 5 [json_name = "levels"]; +inline int GetRobotPartLogsRequest::_internal_levels_size() const { + return levels_.size(); } -inline const std::string& LogEntry::logger_name() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.logger_name) - return _internal_logger_name(); +inline int GetRobotPartLogsRequest::levels_size() const { + return _internal_levels_size(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LogEntry::set_logger_name(ArgT0&& arg0, ArgT... args) { - - logger_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.logger_name) +inline void GetRobotPartLogsRequest::clear_levels() { + levels_.Clear(); } -inline std::string* LogEntry::mutable_logger_name() { - std::string* _s = _internal_mutable_logger_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.logger_name) +inline std::string* GetRobotPartLogsRequest::add_levels() { + std::string* _s = _internal_add_levels(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.GetRobotPartLogsRequest.levels) return _s; } -inline const std::string& LogEntry::_internal_logger_name() const { - return logger_name_.Get(); +inline const std::string& GetRobotPartLogsRequest::_internal_levels(int index) const { + return levels_.Get(index); } -inline void LogEntry::_internal_set_logger_name(const std::string& value) { - - logger_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* LogEntry::_internal_mutable_logger_name() { - - return logger_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* LogEntry::release_logger_name() { - // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.logger_name) - return logger_name_.Release(); -} -inline void LogEntry::set_allocated_logger_name(std::string* logger_name) { - if (logger_name != nullptr) { - - } else { - - } - logger_name_.SetAllocated(logger_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (logger_name_.IsDefault()) { - logger_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.logger_name) -} - -// string message = 5 [json_name = "message"]; -inline void LogEntry::clear_message() { - message_.ClearToEmpty(); -} -inline const std::string& LogEntry::message() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.message) - return _internal_message(); +inline const std::string& GetRobotPartLogsRequest::levels(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.levels) + return _internal_levels(index); } -template -inline PROTOBUF_ALWAYS_INLINE -void LogEntry::set_message(ArgT0&& arg0, ArgT... args) { - - message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.message) -} -inline std::string* LogEntry::mutable_message() { - std::string* _s = _internal_mutable_message(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.message) - return _s; +inline std::string* GetRobotPartLogsRequest::mutable_levels(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.levels) + return levels_.Mutable(index); } -inline const std::string& LogEntry::_internal_message() const { - return message_.Get(); -} -inline void LogEntry::_internal_set_message(const std::string& value) { - - message_.Set(value, GetArenaForAllocation()); -} -inline std::string* LogEntry::_internal_mutable_message() { - - return message_.Mutable(GetArenaForAllocation()); -} -inline std::string* LogEntry::release_message() { - // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.message) - return message_.Release(); -} -inline void LogEntry::set_allocated_message(std::string* message) { - if (message != nullptr) { - - } else { - - } - message_.SetAllocated(message, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_.IsDefault()) { - message_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.message) -} - -// .google.protobuf.Struct caller = 6 [json_name = "caller"]; -inline bool LogEntry::_internal_has_caller() const { - return this != internal_default_instance() && caller_ != nullptr; -} -inline bool LogEntry::has_caller() const { - return _internal_has_caller(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_caller() const { - const ::PROTOBUF_NAMESPACE_ID::Struct* p = caller_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +inline void GetRobotPartLogsRequest::set_levels(int index, const std::string& value) { + levels_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::caller() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.caller) - return _internal_caller(); +inline void GetRobotPartLogsRequest::set_levels(int index, std::string&& value) { + levels_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline void LogEntry::unsafe_arena_set_allocated_caller( - ::PROTOBUF_NAMESPACE_ID::Struct* caller) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller_); - } - caller_ = caller; - if (caller) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.LogEntry.caller) -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::release_caller() { - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = caller_; - caller_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::unsafe_arena_release_caller() { - // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.caller) - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = caller_; - caller_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_mutable_caller() { - - if (caller_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); - caller_ = p; - } - return caller_; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_caller() { - ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_caller(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.caller) - return _msg; -} -inline void LogEntry::set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller_); - } - if (caller) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller)); - if (message_arena != submessage_arena) { - caller = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, caller, submessage_arena); - } - - } else { - - } - caller_ = caller; - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.caller) -} - -// string stack = 7 [json_name = "stack"]; -inline void LogEntry::clear_stack() { - stack_.ClearToEmpty(); -} -inline const std::string& LogEntry::stack() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.stack) - return _internal_stack(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void LogEntry::set_stack(ArgT0&& arg0, ArgT... args) { - - stack_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.app.v1.LogEntry.stack) -} -inline std::string* LogEntry::mutable_stack() { - std::string* _s = _internal_mutable_stack(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.stack) - return _s; -} -inline const std::string& LogEntry::_internal_stack() const { - return stack_.Get(); -} -inline void LogEntry::_internal_set_stack(const std::string& value) { - - stack_.Set(value, GetArenaForAllocation()); -} -inline std::string* LogEntry::_internal_mutable_stack() { - - return stack_.Mutable(GetArenaForAllocation()); -} -inline std::string* LogEntry::release_stack() { - // @@protoc_insertion_point(field_release:viam.app.v1.LogEntry.stack) - return stack_.Release(); -} -inline void LogEntry::set_allocated_stack(std::string* stack) { - if (stack != nullptr) { - - } else { - - } - stack_.SetAllocated(stack, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (stack_.IsDefault()) { - stack_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogEntry.stack) -} - -// repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; -inline int LogEntry::_internal_fields_size() const { - return fields_.size(); +inline void GetRobotPartLogsRequest::set_levels(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + levels_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline int LogEntry::fields_size() const { - return _internal_fields_size(); +inline void GetRobotPartLogsRequest::set_levels(int index, const char* value, size_t size) { + levels_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:viam.app.v1.LogEntry.fields) - return fields_.Mutable(index); +inline std::string* GetRobotPartLogsRequest::_internal_add_levels() { + return levels_.Add(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* -LogEntry::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.LogEntry.fields) - return &fields_; +inline void GetRobotPartLogsRequest::add_levels(const std::string& value) { + levels_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_fields(int index) const { - return fields_.Get(index); +inline void GetRobotPartLogsRequest::add_levels(std::string&& value) { + levels_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::fields(int index) const { - // @@protoc_insertion_point(field_get:viam.app.v1.LogEntry.fields) - return _internal_fields(index); +inline void GetRobotPartLogsRequest::add_levels(const char* value) { + GOOGLE_DCHECK(value != nullptr); + levels_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_add_fields() { - return fields_.Add(); +inline void GetRobotPartLogsRequest::add_levels(const char* value, size_t size) { + levels_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::add_fields() { - ::PROTOBUF_NAMESPACE_ID::Struct* _add = _internal_add_fields(); - // @@protoc_insertion_point(field_add:viam.app.v1.LogEntry.fields) - return _add; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetRobotPartLogsRequest::levels() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartLogsRequest.levels) + return levels_; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& -LogEntry::fields() const { - // @@protoc_insertion_point(field_list:viam.app.v1.LogEntry.fields) - return fields_; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetRobotPartLogsRequest::mutable_levels() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartLogsRequest.levels) + return &levels_; } // ------------------------------------------------------------------- // GetRobotPartLogsResponse -// repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; +// repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; inline int GetRobotPartLogsResponse::_internal_logs_size() const { return logs_.size(); } inline int GetRobotPartLogsResponse::logs_size() const { return _internal_logs_size(); } -inline void GetRobotPartLogsResponse::clear_logs() { - logs_.Clear(); -} -inline ::viam::app::v1::LogEntry* GetRobotPartLogsResponse::mutable_logs(int index) { +inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::mutable_logs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsResponse.logs) return logs_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* GetRobotPartLogsResponse::mutable_logs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartLogsResponse.logs) return &logs_; } -inline const ::viam::app::v1::LogEntry& GetRobotPartLogsResponse::_internal_logs(int index) const { +inline const ::viam::common::v1::LogEntry& GetRobotPartLogsResponse::_internal_logs(int index) const { return logs_.Get(index); } -inline const ::viam::app::v1::LogEntry& GetRobotPartLogsResponse::logs(int index) const { +inline const ::viam::common::v1::LogEntry& GetRobotPartLogsResponse::logs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsResponse.logs) return _internal_logs(index); } -inline ::viam::app::v1::LogEntry* GetRobotPartLogsResponse::_internal_add_logs() { +inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::_internal_add_logs() { return logs_.Add(); } -inline ::viam::app::v1::LogEntry* GetRobotPartLogsResponse::add_logs() { - ::viam::app::v1::LogEntry* _add = _internal_add_logs(); +inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsResponse.logs) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& GetRobotPartLogsResponse::logs() const { // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartLogsResponse.logs) return logs_; @@ -37124,41 +36486,38 @@ inline void TailRobotPartLogsRequest::set_allocated_filter(std::string* filter) // TailRobotPartLogsResponse -// repeated .viam.app.v1.LogEntry logs = 1 [json_name = "logs"]; +// repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; inline int TailRobotPartLogsResponse::_internal_logs_size() const { return logs_.size(); } inline int TailRobotPartLogsResponse::logs_size() const { return _internal_logs_size(); } -inline void TailRobotPartLogsResponse::clear_logs() { - logs_.Clear(); -} -inline ::viam::app::v1::LogEntry* TailRobotPartLogsResponse::mutable_logs(int index) { +inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::mutable_logs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsResponse.logs) return logs_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* TailRobotPartLogsResponse::mutable_logs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.TailRobotPartLogsResponse.logs) return &logs_; } -inline const ::viam::app::v1::LogEntry& TailRobotPartLogsResponse::_internal_logs(int index) const { +inline const ::viam::common::v1::LogEntry& TailRobotPartLogsResponse::_internal_logs(int index) const { return logs_.Get(index); } -inline const ::viam::app::v1::LogEntry& TailRobotPartLogsResponse::logs(int index) const { +inline const ::viam::common::v1::LogEntry& TailRobotPartLogsResponse::logs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsResponse.logs) return _internal_logs(index); } -inline ::viam::app::v1::LogEntry* TailRobotPartLogsResponse::_internal_add_logs() { +inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::_internal_add_logs() { return logs_.Add(); } -inline ::viam::app::v1::LogEntry* TailRobotPartLogsResponse::add_logs() { - ::viam::app::v1::LogEntry* _add = _internal_add_logs(); +inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); // @@protoc_insertion_point(field_add:viam.app.v1.TailRobotPartLogsResponse.logs) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& TailRobotPartLogsResponse::logs() const { // @@protoc_insertion_point(field_list:viam.app.v1.TailRobotPartLogsResponse.logs) return logs_; @@ -38054,7 +37413,7 @@ inline void APIKey::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* // GetRobotAPIKeysResponse -// repeated .viam.app.v1.APIKey api_keys = 1 [json_name = "apiKeys"]; +// repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; inline int GetRobotAPIKeysResponse::_internal_api_keys_size() const { return api_keys_.size(); } @@ -38064,31 +37423,31 @@ inline int GetRobotAPIKeysResponse::api_keys_size() const { inline void GetRobotAPIKeysResponse::clear_api_keys() { api_keys_.Clear(); } -inline ::viam::app::v1::APIKey* GetRobotAPIKeysResponse::mutable_api_keys(int index) { +inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::mutable_api_keys(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotAPIKeysResponse.api_keys) return api_keys_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKey >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* GetRobotAPIKeysResponse::mutable_api_keys() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotAPIKeysResponse.api_keys) return &api_keys_; } -inline const ::viam::app::v1::APIKey& GetRobotAPIKeysResponse::_internal_api_keys(int index) const { +inline const ::viam::app::v1::APIKeyWithAuthorizations& GetRobotAPIKeysResponse::_internal_api_keys(int index) const { return api_keys_.Get(index); } -inline const ::viam::app::v1::APIKey& GetRobotAPIKeysResponse::api_keys(int index) const { +inline const ::viam::app::v1::APIKeyWithAuthorizations& GetRobotAPIKeysResponse::api_keys(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotAPIKeysResponse.api_keys) return _internal_api_keys(index); } -inline ::viam::app::v1::APIKey* GetRobotAPIKeysResponse::_internal_add_api_keys() { +inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::_internal_add_api_keys() { return api_keys_.Add(); } -inline ::viam::app::v1::APIKey* GetRobotAPIKeysResponse::add_api_keys() { - ::viam::app::v1::APIKey* _add = _internal_add_api_keys(); +inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::add_api_keys() { + ::viam::app::v1::APIKeyWithAuthorizations* _add = _internal_add_api_keys(); // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotAPIKeysResponse.api_keys) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKey >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& GetRobotAPIKeysResponse::api_keys() const { // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotAPIKeysResponse.api_keys) return api_keys_; @@ -47454,8 +46813,6 @@ inline void CreateKeyFromExistingKeyAuthorizationsResponse::set_allocated_key(st // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/app/v1/robot.pb.cc b/src/viam/api/app/v1/robot.pb.cc index 136732e01..7c0db5e30 100644 --- a/src/viam/api/app/v1/robot.pb.cc +++ b/src/viam/api/app/v1/robot.pb.cc @@ -80,6 +80,8 @@ PROTOBUF_CONSTEXPR CloudConfig::CloudConfig( , signaling_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , location_secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , primary_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , signaling_insecure_(false){} struct CloudConfigDefaultTypeInternal { PROTOBUF_CONSTEXPR CloudConfigDefaultTypeInternal() @@ -669,6 +671,8 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_secret_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, secret_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_secrets_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, primary_org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _internal_metadata_), ~0u, // no _extensions_ @@ -1031,42 +1035,42 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 28, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, { 36, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, { 43, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, - { 58, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, - { 74, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, - { 82, 90, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, - { 92, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, - { 107, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, - { 121, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, - { 132, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, - { 139, 148, -1, sizeof(::viam::app::v1::AuthConfig)}, - { 151, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, - { 158, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, - { 165, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, - { 173, -1, -1, sizeof(::viam::app::v1::Frame)}, - { 183, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, - { 190, -1, -1, sizeof(::viam::app::v1::Translation)}, - { 199, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, - { 205, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, - { 215, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, - { 225, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, - { 234, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, - { 244, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, - { 254, -1, -1, sizeof(::viam::app::v1::Orientation)}, - { 267, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, - { 283, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, - { 291, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, - { 299, 311, -1, sizeof(::viam::app::v1::AgentInfo)}, - { 317, 325, -1, sizeof(::viam::app::v1::ConfigRequest)}, - { 327, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, - { 334, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, - { 341, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, - { 350, -1, -1, sizeof(::viam::app::v1::LogRequest)}, - { 358, -1, -1, sizeof(::viam::app::v1::LogResponse)}, - { 364, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, - { 371, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, - { 380, 388, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, - { 390, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, - { 403, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, + { 60, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, + { 76, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, + { 84, 92, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, + { 94, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, + { 109, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, + { 123, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, + { 134, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, + { 141, 150, -1, sizeof(::viam::app::v1::AuthConfig)}, + { 153, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, + { 160, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, + { 167, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, + { 175, -1, -1, sizeof(::viam::app::v1::Frame)}, + { 185, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, + { 192, -1, -1, sizeof(::viam::app::v1::Translation)}, + { 201, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, + { 207, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, + { 217, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, + { 227, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, + { 236, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, + { 246, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, + { 256, -1, -1, sizeof(::viam::app::v1::Orientation)}, + { 269, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, + { 285, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, + { 293, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, + { 301, 313, -1, sizeof(::viam::app::v1::AgentInfo)}, + { 319, 327, -1, sizeof(::viam::app::v1::ConfigRequest)}, + { 329, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, + { 336, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, + { 343, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, + { 352, -1, -1, sizeof(::viam::app::v1::LogRequest)}, + { 360, -1, -1, sizeof(::viam::app::v1::LogResponse)}, + { 366, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, + { 373, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, + { 382, 390, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, + { 392, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, + { 405, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1113,185 +1117,186 @@ static const ::_pb::Message* const file_default_instances[] = { }; const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\022app/v1/robot.proto\022\013viam.app.v1\032\020app/v" - "1/app.proto\032\026common/v1/common.proto\032\036goo" - "gle/protobuf/duration.proto\032\034google/prot" - "obuf/struct.proto\032\026tagger/v1/tagger.prot" - "o\"\211\005\n\013RobotConfig\022.\n\005cloud\030\001 \001(\0132\030.viam." - "app.v1.CloudConfigR\005cloud\0223\n\007remotes\030\002 \003" - "(\0132\031.viam.app.v1.RemoteConfigR\007remotes\022<" - "\n\ncomponents\030\003 \003(\0132\034.viam.app.v1.Compone" - "ntConfigR\ncomponents\0228\n\tprocesses\030\004 \003(\0132" - "\032.viam.app.v1.ProcessConfigR\tprocesses\0226" - "\n\010services\030\005 \003(\0132\032.viam.app.v1.ServiceCo" - "nfigR\010services\0229\n\007network\030\006 \001(\0132\032.viam.a" - "pp.v1.NetworkConfigH\000R\007network\210\001\001\0220\n\004aut" - "h\030\007 \001(\0132\027.viam.app.v1.AuthConfigH\001R\004auth" - "\210\001\001\022\031\n\005debug\030\010 \001(\010H\002R\005debug\210\001\001\0223\n\007module" - "s\030\t \003(\0132\031.viam.app.v1.ModuleConfigR\007modu" - "les\0227\n\025disable_partial_start\030\n \001(\010H\003R\023di" - "sablePartialStart\210\001\001\0226\n\010packages\030\013 \003(\0132\032" - ".viam.app.v1.PackageConfigR\010packagesB\n\n\010" - "_networkB\007\n\005_authB\010\n\006_debugB\030\n\026_disable_" - "partial_start\"8\n\016LocationSecret\022\016\n\002id\030\001 " - "\001(\tR\002id\022\026\n\006secret\030\002 \001(\tR\006secret\"+\n\023AppVa" - "lidationStatus\022\024\n\005error\030\001 \001(\tR\005error\"\330\002\n" - "\013CloudConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001" - "(\tR\004fqdn\022\035\n\nlocal_fqdn\030\003 \001(\tR\tlocalFqdn\022" - "\035\n\nmanaged_by\030\004 \001(\tR\tmanagedBy\022+\n\021signal" - "ing_address\030\005 \001(\tR\020signalingAddress\022-\n\022s" - "ignaling_insecure\030\006 \001(\010R\021signalingInsecu" - "re\022+\n\017location_secret\030\007 \001(\tB\002\030\001R\016locatio" - "nSecret\022\026\n\006secret\030\010 \001(\tR\006secret\022F\n\020locat" - "ion_secrets\030\t \003(\0132\033.viam.app.v1.Location" - "SecretR\017locationSecrets\"\273\003\n\017ComponentCon" - "fig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 \001" - "(\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\022\024\n\005mod" - "el\030\004 \001(\tR\005model\022(\n\005frame\030\005 \001(\0132\022.viam.ap" - "p.v1.FrameR\005frame\022\035\n\ndepends_on\030\006 \003(\tR\td" - "ependsOn\022l\n\017service_configs\030\007 \003(\0132\'.viam" - ".app.v1.ResourceLevelServiceConfigB\032\232\204\236\003" - "\025json:\"service_config\"R\016serviceConfigs\0227" - "\n\nattributes\030\010 \001(\0132\027.google.protobuf.Str" - "uctR\nattributes\022\020\n\003api\030\t \001(\tR\003api\022J\n\021log" - "_configuration\030\n \001(\0132\035.viam.app.v1.LogCo" - "nfigurationR\020logConfiguration\"i\n\032Resourc" - "eLevelServiceConfig\022\022\n\004type\030\001 \001(\tR\004type\022" - "7\n\nattributes\030\002 \001(\0132\027.google.protobuf.St" - "ructR\nattributes\"\324\002\n\rProcessConfig\022\016\n\002id" - "\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004args\030\003" - " \003(\tR\004args\022\020\n\003cwd\030\004 \001(\tR\003cwd\022\031\n\010one_shot" - "\030\005 \001(\010R\007oneShot\022\020\n\003log\030\006 \001(\010R\003log\022\037\n\013sto" - "p_signal\030\007 \001(\005R\nstopSignal\022<\n\014stop_timeo" - "ut\030\010 \001(\0132\031.google.protobuf.DurationR\013sto" - "pTimeout\0225\n\003env\030\t \003(\0132#.viam.app.v1.Proc" - "essConfig.EnvEntryR\003env\0326\n\010EnvEntry\022\020\n\003k" - "ey\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"" - "\303\002\n\rServiceConfig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n" - "\tnamespace\030\002 \001(\tR\tnamespace\022\022\n\004type\030\003 \001(" - "\tR\004type\0227\n\nattributes\030\004 \001(\0132\027.google.pro" - "tobuf.StructR\nattributes\022\035\n\ndepends_on\030\005" - " \003(\tR\tdependsOn\022\024\n\005model\030\006 \001(\tR\005model\022\020\n" - "\003api\030\t \001(\tR\003api\022l\n\017service_configs\030\n \003(\013" - "2\'.viam.app.v1.ResourceLevelServiceConfi" - "gB\032\232\204\236\003\025json:\"service_config\"R\016serviceCo" - "nfigs\"\305\001\n\rNetworkConfig\022\022\n\004fqdn\030\001 \001(\tR\004f" - "qdn\022!\n\014bind_address\030\002 \001(\tR\013bindAddress\022\"" - "\n\rtls_cert_file\030\003 \001(\tR\013tlsCertFile\022 \n\014tl" - "s_key_file\030\004 \001(\tR\ntlsKeyFile\0227\n\010sessions" - "\030\005 \001(\0132\033.viam.app.v1.SessionsConfigR\010ses" - "sions\"V\n\016SessionsConfig\022D\n\020heartbeat_win" - "dow\030\001 \001(\0132\031.google.protobuf.DurationR\017he" - "artbeatWindow\"\345\001\n\nAuthConfig\022:\n\010handlers" - "\030\001 \003(\0132\036.viam.app.v1.AuthHandlerConfigR\010" - "handlers\022*\n\021tls_auth_entities\030\002 \003(\tR\017tls" - "AuthEntities\022V\n\024external_auth_config\030\003 \001" - "(\0132\037.viam.app.v1.ExternalAuthConfigH\000R\022e" - "xternalAuthConfig\210\001\001B\027\n\025_external_auth_c" - "onfig\"7\n\010JWKSFile\022+\n\004json\030\001 \001(\0132\027.google" - ".protobuf.StructR\004json\"\?\n\022ExternalAuthCo" - "nfig\022)\n\004jwks\030\001 \001(\0132\025.viam.app.v1.JWKSFil" - "eR\004jwks\"v\n\021AuthHandlerConfig\0220\n\004type\030\001 \001" - "(\0162\034.viam.app.v1.CredentialsTypeR\004type\022/" - "\n\006config\030\005 \001(\0132\027.google.protobuf.StructR" - "\006config\"\315\001\n\005Frame\022\026\n\006parent\030\001 \001(\tR\006paren" - "t\022:\n\013translation\030\002 \001(\0132\030.viam.app.v1.Tra" - "nslationR\013translation\022:\n\013orientation\030\003 \001" - "(\0132\030.viam.app.v1.OrientationR\013orientatio" - "n\0224\n\010geometry\030\004 \001(\0132\030.viam.common.v1.Geo" - "metryR\010geometry\"(\n\020LogConfiguration\022\024\n\005l" - "evel\030\001 \001(\tR\005level\"7\n\013Translation\022\014\n\001x\030\001 " - "\001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014\n\001z\030\003 \001(\001R\001z\"\320\007\n\013O" - "rientation\022O\n\016no_orientation\030\001 \001(\0132&.via" - "m.app.v1.Orientation.NoOrientationH\000R\rno" - "Orientation\022Z\n\016vector_radians\030\002 \001(\01321.vi" - "am.app.v1.Orientation.OrientationVectorR" - "adiansH\000R\rvectorRadians\022Z\n\016vector_degree" - "s\030\003 \001(\01321.viam.app.v1.Orientation.Orient" - "ationVectorDegreesH\000R\rvectorDegrees\022I\n\014e" - "uler_angles\030\004 \001(\0132$.viam.app.v1.Orientat" - "ion.EulerAnglesH\000R\013eulerAngles\022F\n\013axis_a" - "ngles\030\005 \001(\0132#.viam.app.v1.Orientation.Ax" - "isAnglesH\000R\naxisAngles\022E\n\nquaternion\030\006 \001" - "(\0132#.viam.app.v1.Orientation.QuaternionH" - "\000R\nquaternion\032\017\n\rNoOrientation\032j\n\030Orient" - "ationVectorRadians\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\t" - "json:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(" - "\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032j\n\030OrientationVectorD" - "egrees\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005t" - "heta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 " - "\001(\001R\001z\032I\n\013EulerAngles\022\022\n\004roll\030\001 \001(\001R\004rol" - "l\022\024\n\005pitch\030\002 \001(\001R\005pitch\022\020\n\003yaw\030\003 \001(\001R\003ya" - "w\032\\\n\nAxisAngles\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjso" - "n:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001" - "y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQuaternion\022\014\n\001w\030\001 \001(\001" - "R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001" - "(\001R\001zB\006\n\004type\"\365\003\n\014RemoteConfig\022\022\n\004name\030\001" - " \001(\tR\004name\022\030\n\007address\030\002 \001(\tR\007address\022(\n\005" - "frame\030\003 \001(\0132\022.viam.app.v1.FrameR\005frame\022+" - "\n\004auth\030\004 \001(\0132\027.viam.app.v1.RemoteAuthR\004a" - "uth\022\035\n\nmanaged_by\030\005 \001(\tR\tmanagedBy\022\032\n\010in" - "secure\030\006 \001(\010R\010insecure\022U\n\031connection_che" - "ck_interval\030\007 \001(\0132\031.google.protobuf.Dura" - "tionR\027connectionCheckInterval\022H\n\022reconne" - "ct_interval\030\010 \001(\0132\031.google.protobuf.Dura" - "tionR\021reconnectInterval\022l\n\017service_confi" - "gs\030\t \003(\0132\'.viam.app.v1.ResourceLevelServ" - "iceConfigB\032\232\204\236\003\025json:\"service_config\"R\016s" - "erviceConfigs\022\026\n\006secret\030\n \001(\tR\006secret\"\306\001" - "\n\nRemoteAuth\022E\n\013credentials\030\001 \001(\0132#.viam" - ".app.v1.RemoteAuth.CredentialsR\013credenti" - "als\022\026\n\006entity\030\002 \001(\tR\006entity\032Y\n\013Credentia" - "ls\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Credentia" - "lsTypeR\004type\022\030\n\007payload\030\002 \001(\tR\007payload\"\254" - "\001\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR\004host\022\016\n\002os\030\002" - " \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022\030\n\007version\030\004 " - "\001(\tR\007version\022!\n\014git_revision\030\005 \001(\tR\013gitR" - "evision\022\037\n\010platform\030\006 \001(\tH\000R\010platform\210\001\001" - "B\013\n\t_platform\"j\n\rConfigRequest\022\016\n\002id\030\001 \001" - "(\tR\002id\022:\n\nagent_info\030\002 \001(\0132\026.viam.app.v1" - ".AgentInfoH\000R\tagentInfo\210\001\001B\r\n\013_agent_inf" - "o\"B\n\016ConfigResponse\0220\n\006config\030\001 \001(\0132\030.vi" - "am.app.v1.RobotConfigR\006config\"$\n\022Certifi" - "cateRequest\022\016\n\002id\030\001 \001(\tR\002id\"v\n\023Certifica" - "teResponse\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017tls_certif" - "icate\030\002 \001(\tR\016tlsCertificate\022&\n\017tls_priva" - "te_key\030\003 \001(\tR\rtlsPrivateKey\"G\n\nLogReques" - "t\022\016\n\002id\030\001 \001(\tR\002id\022)\n\004logs\030\002 \003(\0132\025.viam.a" - "pp.v1.LogEntryR\004logs\"\r\n\013LogResponse\"%\n\023N" - "eedsRestartRequest\022\016\n\002id\030\001 \001(\tR\002id\"\232\001\n\024N" - "eedsRestartResponse\022\016\n\002id\030\001 \001(\tR\002id\022!\n\014m" - "ust_restart\030\002 \001(\010R\013mustRestart\022O\n\026restar" - "t_check_interval\030\003 \001(\0132\031.google.protobuf" - ".DurationR\024restartCheckInterval\"\254\002\n\014Modu" - "leConfig\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004path\030\002 \001" - "(\tR\004path\022\033\n\tlog_level\030\003 \001(\tR\010logLevel\022\022\n" - "\004type\030\004 \001(\tR\004type\022\033\n\tmodule_id\030\005 \001(\tR\010mo" - "duleId\0224\n\003env\030\006 \003(\0132\".viam.app.v1.Module" - "Config.EnvEntryR\003env\0228\n\006status\030\007 \001(\0132 .v" - "iam.app.v1.AppValidationStatusR\006status\0326" - "\n\010EnvEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 " - "\001(\tR\005value:\0028\001\"\245\001\n\rPackageConfig\022\022\n\004name" - "\030\001 \001(\tR\004name\022\030\n\007package\030\002 \001(\tR\007package\022\030" - "\n\007version\030\003 \001(\tR\007version\022\022\n\004type\030\004 \001(\tR\004" - "type\0228\n\006status\030\005 \001(\0132 .viam.app.v1.AppVa" - "lidationStatusR\006status*\277\001\n\017CredentialsTy" - "pe\022 \n\034CREDENTIALS_TYPE_UNSPECIFIED\020\000\022\035\n\031" - "CREDENTIALS_TYPE_INTERNAL\020\001\022\034\n\030CREDENTIA" - "LS_TYPE_API_KEY\020\002\022!\n\035CREDENTIALS_TYPE_RO" - "BOT_SECRET\020\003\022*\n&CREDENTIALS_TYPE_ROBOT_L" - "OCATION_SECRET\020\0042\262\002\n\014RobotService\022A\n\006Con" - "fig\022\032.viam.app.v1.ConfigRequest\032\033.viam.a" - "pp.v1.ConfigResponse\022P\n\013Certificate\022\037.vi" - "am.app.v1.CertificateRequest\032 .viam.app." - "v1.CertificateResponse\0228\n\003Log\022\027.viam.app" - ".v1.LogRequest\032\030.viam.app.v1.LogResponse" - "\022S\n\014NeedsRestart\022 .viam.app.v1.NeedsRest" - "artRequest\032!.viam.app.v1.NeedsRestartRes" - "ponseB\030Z\026go.viam.com/api/app/v1b\006proto3" + "\n\022app/v1/robot.proto\022\013viam.app.v1\032\026commo" + "n/v1/common.proto\032\036google/protobuf/durat" + "ion.proto\032\034google/protobuf/struct.proto\032" + "\026tagger/v1/tagger.proto\"\211\005\n\013RobotConfig\022" + ".\n\005cloud\030\001 \001(\0132\030.viam.app.v1.CloudConfig" + "R\005cloud\0223\n\007remotes\030\002 \003(\0132\031.viam.app.v1.R" + "emoteConfigR\007remotes\022<\n\ncomponents\030\003 \003(\013" + "2\034.viam.app.v1.ComponentConfigR\ncomponen" + "ts\0228\n\tprocesses\030\004 \003(\0132\032.viam.app.v1.Proc" + "essConfigR\tprocesses\0226\n\010services\030\005 \003(\0132\032" + ".viam.app.v1.ServiceConfigR\010services\0229\n\007" + "network\030\006 \001(\0132\032.viam.app.v1.NetworkConfi" + "gH\000R\007network\210\001\001\0220\n\004auth\030\007 \001(\0132\027.viam.app" + ".v1.AuthConfigH\001R\004auth\210\001\001\022\031\n\005debug\030\010 \001(\010" + "H\002R\005debug\210\001\001\0223\n\007modules\030\t \003(\0132\031.viam.app" + ".v1.ModuleConfigR\007modules\0227\n\025disable_par" + "tial_start\030\n \001(\010H\003R\023disablePartialStart\210" + "\001\001\0226\n\010packages\030\013 \003(\0132\032.viam.app.v1.Packa" + "geConfigR\010packagesB\n\n\010_networkB\007\n\005_authB" + "\010\n\006_debugB\030\n\026_disable_partial_start\"8\n\016L" + "ocationSecret\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006secret\030" + "\002 \001(\tR\006secret\"+\n\023AppValidationStatus\022\024\n\005" + "error\030\001 \001(\tR\005error\"\237\003\n\013CloudConfig\022\016\n\002id" + "\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001(\tR\004fqdn\022\035\n\nlocal_" + "fqdn\030\003 \001(\tR\tlocalFqdn\022\035\n\nmanaged_by\030\004 \001(" + "\tR\tmanagedBy\022+\n\021signaling_address\030\005 \001(\tR" + "\020signalingAddress\022-\n\022signaling_insecure\030" + "\006 \001(\010R\021signalingInsecure\022+\n\017location_sec" + "ret\030\007 \001(\tB\002\030\001R\016locationSecret\022\026\n\006secret\030" + "\010 \001(\tR\006secret\022F\n\020location_secrets\030\t \003(\0132" + "\033.viam.app.v1.LocationSecretR\017locationSe" + "crets\022$\n\016primary_org_id\030\n \001(\tR\014primaryOr" + "gId\022\037\n\013location_id\030\013 \001(\tR\nlocationId\"\273\003\n" + "\017ComponentConfig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\t" + "namespace\030\002 \001(\tR\tnamespace\022\022\n\004type\030\003 \001(\t" + "R\004type\022\024\n\005model\030\004 \001(\tR\005model\022(\n\005frame\030\005 " + "\001(\0132\022.viam.app.v1.FrameR\005frame\022\035\n\ndepend" + "s_on\030\006 \003(\tR\tdependsOn\022l\n\017service_configs" + "\030\007 \003(\0132\'.viam.app.v1.ResourceLevelServic" + "eConfigB\032\232\204\236\003\025json:\"service_config\"R\016ser" + "viceConfigs\0227\n\nattributes\030\010 \001(\0132\027.google" + ".protobuf.StructR\nattributes\022\020\n\003api\030\t \001(" + "\tR\003api\022J\n\021log_configuration\030\n \001(\0132\035.viam" + ".app.v1.LogConfigurationR\020logConfigurati" + "on\"i\n\032ResourceLevelServiceConfig\022\022\n\004type" + "\030\001 \001(\tR\004type\0227\n\nattributes\030\002 \001(\0132\027.googl" + "e.protobuf.StructR\nattributes\"\324\002\n\rProces" + "sConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004n" + "ame\022\022\n\004args\030\003 \003(\tR\004args\022\020\n\003cwd\030\004 \001(\tR\003cw" + "d\022\031\n\010one_shot\030\005 \001(\010R\007oneShot\022\020\n\003log\030\006 \001(" + "\010R\003log\022\037\n\013stop_signal\030\007 \001(\005R\nstopSignal\022" + "<\n\014stop_timeout\030\010 \001(\0132\031.google.protobuf." + "DurationR\013stopTimeout\0225\n\003env\030\t \003(\0132#.via" + "m.app.v1.ProcessConfig.EnvEntryR\003env\0326\n\010" + "EnvEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(" + "\tR\005value:\0028\001\"\303\002\n\rServiceConfig\022\022\n\004name\030\001" + " \001(\tR\004name\022\034\n\tnamespace\030\002 \001(\tR\tnamespace" + "\022\022\n\004type\030\003 \001(\tR\004type\0227\n\nattributes\030\004 \001(\013" + "2\027.google.protobuf.StructR\nattributes\022\035\n" + "\ndepends_on\030\005 \003(\tR\tdependsOn\022\024\n\005model\030\006 " + "\001(\tR\005model\022\020\n\003api\030\t \001(\tR\003api\022l\n\017service_" + "configs\030\n \003(\0132\'.viam.app.v1.ResourceLeve" + "lServiceConfigB\032\232\204\236\003\025json:\"service_confi" + "g\"R\016serviceConfigs\"\305\001\n\rNetworkConfig\022\022\n\004" + "fqdn\030\001 \001(\tR\004fqdn\022!\n\014bind_address\030\002 \001(\tR\013" + "bindAddress\022\"\n\rtls_cert_file\030\003 \001(\tR\013tlsC" + "ertFile\022 \n\014tls_key_file\030\004 \001(\tR\ntlsKeyFil" + "e\0227\n\010sessions\030\005 \001(\0132\033.viam.app.v1.Sessio" + "nsConfigR\010sessions\"V\n\016SessionsConfig\022D\n\020" + "heartbeat_window\030\001 \001(\0132\031.google.protobuf" + ".DurationR\017heartbeatWindow\"\345\001\n\nAuthConfi" + "g\022:\n\010handlers\030\001 \003(\0132\036.viam.app.v1.AuthHa" + "ndlerConfigR\010handlers\022*\n\021tls_auth_entiti" + "es\030\002 \003(\tR\017tlsAuthEntities\022V\n\024external_au" + "th_config\030\003 \001(\0132\037.viam.app.v1.ExternalAu" + "thConfigH\000R\022externalAuthConfig\210\001\001B\027\n\025_ex" + "ternal_auth_config\"7\n\010JWKSFile\022+\n\004json\030\001" + " \001(\0132\027.google.protobuf.StructR\004json\"\?\n\022E" + "xternalAuthConfig\022)\n\004jwks\030\001 \001(\0132\025.viam.a" + "pp.v1.JWKSFileR\004jwks\"v\n\021AuthHandlerConfi" + "g\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Credential" + "sTypeR\004type\022/\n\006config\030\005 \001(\0132\027.google.pro" + "tobuf.StructR\006config\"\315\001\n\005Frame\022\026\n\006parent" + "\030\001 \001(\tR\006parent\022:\n\013translation\030\002 \001(\0132\030.vi" + "am.app.v1.TranslationR\013translation\022:\n\013or" + "ientation\030\003 \001(\0132\030.viam.app.v1.Orientatio" + "nR\013orientation\0224\n\010geometry\030\004 \001(\0132\030.viam." + "common.v1.GeometryR\010geometry\"(\n\020LogConfi" + "guration\022\024\n\005level\030\001 \001(\tR\005level\"7\n\013Transl" + "ation\022\014\n\001x\030\001 \001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014\n\001z\030\003" + " \001(\001R\001z\"\320\007\n\013Orientation\022O\n\016no_orientatio" + "n\030\001 \001(\0132&.viam.app.v1.Orientation.NoOrie" + "ntationH\000R\rnoOrientation\022Z\n\016vector_radia" + "ns\030\002 \001(\01321.viam.app.v1.Orientation.Orien" + "tationVectorRadiansH\000R\rvectorRadians\022Z\n\016" + "vector_degrees\030\003 \001(\01321.viam.app.v1.Orien" + "tation.OrientationVectorDegreesH\000R\rvecto" + "rDegrees\022I\n\014euler_angles\030\004 \001(\0132$.viam.ap" + "p.v1.Orientation.EulerAnglesH\000R\013eulerAng" + "les\022F\n\013axis_angles\030\005 \001(\0132#.viam.app.v1.O" + "rientation.AxisAnglesH\000R\naxisAngles\022E\n\nq" + "uaternion\030\006 \001(\0132#.viam.app.v1.Orientatio" + "n.QuaternionH\000R\nquaternion\032\017\n\rNoOrientat" + "ion\032j\n\030OrientationVectorRadians\022$\n\005theta" + "\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001" + "R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032j\n\030Orien" + "tationVectorDegrees\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003" + "\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001" + "(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032I\n\013EulerAngles\022\022\n\004ro" + "ll\030\001 \001(\001R\004roll\022\024\n\005pitch\030\002 \001(\001R\005pitch\022\020\n\003" + "yaw\030\003 \001(\001R\003yaw\032\\\n\nAxisAngles\022$\n\005theta\030\001 " + "\001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x" + "\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQuaterni" + "on\022\014\n\001w\030\001 \001(\001R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(" + "\001R\001y\022\014\n\001z\030\004 \001(\001R\001zB\006\n\004type\"\365\003\n\014RemoteCon" + "fig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007address\030\002 \001(\t" + "R\007address\022(\n\005frame\030\003 \001(\0132\022.viam.app.v1.F" + "rameR\005frame\022+\n\004auth\030\004 \001(\0132\027.viam.app.v1." + "RemoteAuthR\004auth\022\035\n\nmanaged_by\030\005 \001(\tR\tma" + "nagedBy\022\032\n\010insecure\030\006 \001(\010R\010insecure\022U\n\031c" + "onnection_check_interval\030\007 \001(\0132\031.google." + "protobuf.DurationR\027connectionCheckInterv" + "al\022H\n\022reconnect_interval\030\010 \001(\0132\031.google." + "protobuf.DurationR\021reconnectInterval\022l\n\017" + "service_configs\030\t \003(\0132\'.viam.app.v1.Reso" + "urceLevelServiceConfigB\032\232\204\236\003\025json:\"servi" + "ce_config\"R\016serviceConfigs\022\026\n\006secret\030\n \001" + "(\tR\006secret\"\306\001\n\nRemoteAuth\022E\n\013credentials" + "\030\001 \001(\0132#.viam.app.v1.RemoteAuth.Credenti" + "alsR\013credentials\022\026\n\006entity\030\002 \001(\tR\006entity" + "\032Y\n\013Credentials\0220\n\004type\030\001 \001(\0162\034.viam.app" + ".v1.CredentialsTypeR\004type\022\030\n\007payload\030\002 \001" + "(\tR\007payload\"\254\001\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR" + "\004host\022\016\n\002os\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022" + "\030\n\007version\030\004 \001(\tR\007version\022!\n\014git_revisio" + "n\030\005 \001(\tR\013gitRevision\022\037\n\010platform\030\006 \001(\tH\000" + "R\010platform\210\001\001B\013\n\t_platform\"j\n\rConfigRequ" + "est\022\016\n\002id\030\001 \001(\tR\002id\022:\n\nagent_info\030\002 \001(\0132" + "\026.viam.app.v1.AgentInfoH\000R\tagentInfo\210\001\001B" + "\r\n\013_agent_info\"B\n\016ConfigResponse\0220\n\006conf" + "ig\030\001 \001(\0132\030.viam.app.v1.RobotConfigR\006conf" + "ig\"$\n\022CertificateRequest\022\016\n\002id\030\001 \001(\tR\002id" + "\"v\n\023CertificateResponse\022\016\n\002id\030\001 \001(\tR\002id\022" + "\'\n\017tls_certificate\030\002 \001(\tR\016tlsCertificate" + "\022&\n\017tls_private_key\030\003 \001(\tR\rtlsPrivateKey" + "\"J\n\nLogRequest\022\016\n\002id\030\001 \001(\tR\002id\022,\n\004logs\030\002" + " \003(\0132\030.viam.common.v1.LogEntryR\004logs\"\r\n\013" + "LogResponse\"%\n\023NeedsRestartRequest\022\016\n\002id" + "\030\001 \001(\tR\002id\"\232\001\n\024NeedsRestartResponse\022\016\n\002i" + "d\030\001 \001(\tR\002id\022!\n\014must_restart\030\002 \001(\010R\013mustR" + "estart\022O\n\026restart_check_interval\030\003 \001(\0132\031" + ".google.protobuf.DurationR\024restartCheckI" + "nterval\"\254\002\n\014ModuleConfig\022\022\n\004name\030\001 \001(\tR\004" + "name\022\022\n\004path\030\002 \001(\tR\004path\022\033\n\tlog_level\030\003 " + "\001(\tR\010logLevel\022\022\n\004type\030\004 \001(\tR\004type\022\033\n\tmod" + "ule_id\030\005 \001(\tR\010moduleId\0224\n\003env\030\006 \003(\0132\".vi" + "am.app.v1.ModuleConfig.EnvEntryR\003env\0228\n\006" + "status\030\007 \001(\0132 .viam.app.v1.AppValidation" + "StatusR\006status\0326\n\010EnvEntry\022\020\n\003key\030\001 \001(\tR" + "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\245\001\n\rPacka" + "geConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007package\030" + "\002 \001(\tR\007package\022\030\n\007version\030\003 \001(\tR\007version" + "\022\022\n\004type\030\004 \001(\tR\004type\0228\n\006status\030\005 \001(\0132 .v" + "iam.app.v1.AppValidationStatusR\006status*\277" + "\001\n\017CredentialsType\022 \n\034CREDENTIALS_TYPE_U" + "NSPECIFIED\020\000\022\035\n\031CREDENTIALS_TYPE_INTERNA" + "L\020\001\022\034\n\030CREDENTIALS_TYPE_API_KEY\020\002\022!\n\035CRE" + "DENTIALS_TYPE_ROBOT_SECRET\020\003\022*\n&CREDENTI" + "ALS_TYPE_ROBOT_LOCATION_SECRET\020\0042\262\002\n\014Rob" + "otService\022A\n\006Config\022\032.viam.app.v1.Config" + "Request\032\033.viam.app.v1.ConfigResponse\022P\n\013" + "Certificate\022\037.viam.app.v1.CertificateReq" + "uest\032 .viam.app.v1.CertificateResponse\0228" + "\n\003Log\022\027.viam.app.v1.LogRequest\032\030.viam.ap" + "p.v1.LogResponse\022S\n\014NeedsRestart\022 .viam." + "app.v1.NeedsRestartRequest\032!.viam.app.v1" + ".NeedsRestartResponseB\030Z\026go.viam.com/api" + "/app/v1b\006proto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[5] = { - &::descriptor_table_app_2fv1_2fapp_2eproto, +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, &::descriptor_table_google_2fprotobuf_2fduration_2eproto, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, @@ -1299,9 +1304,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2e }; static ::_pbi::once_flag descriptor_table_app_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto = { - false, false, 7039, descriptor_table_protodef_app_2fv1_2frobot_2eproto, + false, false, 7095, descriptor_table_protodef_app_2fv1_2frobot_2eproto, "app/v1/robot.proto", - &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 5, 40, + &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 4, 40, schemas, file_default_instances, TableStruct_app_2fv1_2frobot_2eproto::offsets, file_level_metadata_app_2fv1_2frobot_2eproto, file_level_enum_descriptors_app_2fv1_2frobot_2eproto, file_level_service_descriptors_app_2fv1_2frobot_2eproto, @@ -2397,6 +2402,22 @@ CloudConfig::CloudConfig(const CloudConfig& from) secret_.Set(from._internal_secret(), GetArenaForAllocation()); } + primary_org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_primary_org_id().empty()) { + primary_org_id_.Set(from._internal_primary_org_id(), + GetArenaForAllocation()); + } + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } signaling_insecure_ = from.signaling_insecure_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.CloudConfig) } @@ -2430,6 +2451,14 @@ secret_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING secret_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +primary_org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING signaling_insecure_ = false; } @@ -2451,6 +2480,8 @@ inline void CloudConfig::SharedDtor() { signaling_address_.Destroy(); location_secret_.Destroy(); secret_.Destroy(); + primary_org_id_.Destroy(); + location_id_.Destroy(); } void CloudConfig::SetCachedSize(int size) const { @@ -2471,6 +2502,8 @@ void CloudConfig::Clear() { signaling_address_.ClearToEmpty(); location_secret_.ClearToEmpty(); secret_.ClearToEmpty(); + primary_org_id_.ClearToEmpty(); + location_id_.ClearToEmpty(); signaling_insecure_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2572,6 +2605,26 @@ const char* CloudConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; + // string primary_org_id = 10 [json_name = "primaryOrgId"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_primary_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.primary_org_id")); + } else + goto handle_unusual; + continue; + // string location_id = 11 [json_name = "locationId"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.location_id")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2685,6 +2738,26 @@ uint8_t* CloudConfig::_InternalSerialize( InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); } + // string primary_org_id = 10 [json_name = "primaryOrgId"]; + if (!this->_internal_primary_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_primary_org_id().data(), static_cast(this->_internal_primary_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.primary_org_id"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_primary_org_id(), target); + } + + // string location_id = 11 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.location_id"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_location_id(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -2757,6 +2830,20 @@ size_t CloudConfig::ByteSizeLong() const { this->_internal_secret()); } + // string primary_org_id = 10 [json_name = "primaryOrgId"]; + if (!this->_internal_primary_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_primary_org_id()); + } + + // string location_id = 11 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; if (this->_internal_signaling_insecure() != 0) { total_size += 1 + 1; @@ -2806,6 +2893,12 @@ void CloudConfig::MergeFrom(const CloudConfig& from) { if (!from._internal_secret().empty()) { _internal_set_secret(from._internal_secret()); } + if (!from._internal_primary_org_id().empty()) { + _internal_set_primary_org_id(from._internal_primary_org_id()); + } + if (!from._internal_location_id().empty()) { + _internal_set_location_id(from._internal_location_id()); + } if (from._internal_signaling_insecure() != 0) { _internal_set_signaling_insecure(from._internal_signaling_insecure()); } @@ -2857,6 +2950,14 @@ void CloudConfig::InternalSwap(CloudConfig* other) { &secret_, lhs_arena, &other->secret_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &primary_org_id_, lhs_arena, + &other->primary_org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); swap(signaling_insecure_, other->signaling_insecure_); } @@ -11472,7 +11573,7 @@ const char* LogRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; - // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr -= 1; @@ -11524,7 +11625,7 @@ uint8_t* LogRequest::_InternalSerialize( 1, this->_internal_id(), target); } - // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { const auto& repfield = this->_internal_logs(i); @@ -11548,7 +11649,7 @@ size_t LogRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); for (const auto& msg : this->logs_) { total_size += diff --git a/src/viam/api/app/v1/robot.pb.h b/src/viam/api/app/v1/robot.pb.h index 88d882772..319264e46 100644 --- a/src/viam/api/app/v1/robot.pb.h +++ b/src/viam/api/app/v1/robot.pb.h @@ -35,7 +35,6 @@ #include #include #include -#include "app/v1/app.pb.h" #include "common/v1/common.pb.h" #include #include @@ -1038,6 +1037,8 @@ class CloudConfig final : kSignalingAddressFieldNumber = 5, kLocationSecretFieldNumber = 7, kSecretFieldNumber = 8, + kPrimaryOrgIdFieldNumber = 10, + kLocationIdFieldNumber = 11, kSignalingInsecureFieldNumber = 6, }; // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; @@ -1156,6 +1157,34 @@ class CloudConfig final : std::string* _internal_mutable_secret(); public: + // string primary_org_id = 10 [json_name = "primaryOrgId"]; + void clear_primary_org_id(); + const std::string& primary_org_id() const; + template + void set_primary_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_primary_org_id(); + PROTOBUF_NODISCARD std::string* release_primary_org_id(); + void set_allocated_primary_org_id(std::string* primary_org_id); + private: + const std::string& _internal_primary_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_org_id(const std::string& value); + std::string* _internal_mutable_primary_org_id(); + public: + + // string location_id = 11 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; void clear_signaling_insecure(); bool signaling_insecure() const; @@ -1180,6 +1209,8 @@ class CloudConfig final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signaling_address_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_secret_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; bool signaling_insecure_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; @@ -6739,22 +6770,22 @@ class LogRequest final : kLogsFieldNumber = 2, kIdFieldNumber = 1, }; - // repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; + // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; int logs_size() const; private: int _internal_logs_size() const; public: void clear_logs(); - ::viam::app::v1::LogEntry* mutable_logs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* mutable_logs(); private: - const ::viam::app::v1::LogEntry& _internal_logs(int index) const; - ::viam::app::v1::LogEntry* _internal_add_logs(); + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); public: - const ::viam::app::v1::LogEntry& logs(int index) const; - ::viam::app::v1::LogEntry* add_logs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& logs() const; // string id = 1 [json_name = "id"]; @@ -6778,7 +6809,7 @@ class LogRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry > logs_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; @@ -8877,6 +8908,106 @@ CloudConfig::location_secrets() const { return location_secrets_; } +// string primary_org_id = 10 [json_name = "primaryOrgId"]; +inline void CloudConfig::clear_primary_org_id() { + primary_org_id_.ClearToEmpty(); +} +inline const std::string& CloudConfig::primary_org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.primary_org_id) + return _internal_primary_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_primary_org_id(ArgT0&& arg0, ArgT... args) { + + primary_org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.primary_org_id) +} +inline std::string* CloudConfig::mutable_primary_org_id() { + std::string* _s = _internal_mutable_primary_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.primary_org_id) + return _s; +} +inline const std::string& CloudConfig::_internal_primary_org_id() const { + return primary_org_id_.Get(); +} +inline void CloudConfig::_internal_set_primary_org_id(const std::string& value) { + + primary_org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_primary_org_id() { + + return primary_org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_primary_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.primary_org_id) + return primary_org_id_.Release(); +} +inline void CloudConfig::set_allocated_primary_org_id(std::string* primary_org_id) { + if (primary_org_id != nullptr) { + + } else { + + } + primary_org_id_.SetAllocated(primary_org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (primary_org_id_.IsDefault()) { + primary_org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.primary_org_id) +} + +// string location_id = 11 [json_name = "locationId"]; +inline void CloudConfig::clear_location_id() { + location_id_.ClearToEmpty(); +} +inline const std::string& CloudConfig::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.location_id) +} +inline std::string* CloudConfig::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.location_id) + return _s; +} +inline const std::string& CloudConfig::_internal_location_id() const { + return location_id_.Get(); +} +inline void CloudConfig::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.location_id) + return location_id_.Release(); +} +inline void CloudConfig::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.location_id) +} + // ------------------------------------------------------------------- // ComponentConfig @@ -14370,38 +14501,38 @@ inline void LogRequest::set_allocated_id(std::string* id) { // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogRequest.id) } -// repeated .viam.app.v1.LogEntry logs = 2 [json_name = "logs"]; +// repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; inline int LogRequest::_internal_logs_size() const { return logs_.size(); } inline int LogRequest::logs_size() const { return _internal_logs_size(); } -inline ::viam::app::v1::LogEntry* LogRequest::mutable_logs(int index) { +inline ::viam::common::v1::LogEntry* LogRequest::mutable_logs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.LogRequest.logs) return logs_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* LogRequest::mutable_logs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.LogRequest.logs) return &logs_; } -inline const ::viam::app::v1::LogEntry& LogRequest::_internal_logs(int index) const { +inline const ::viam::common::v1::LogEntry& LogRequest::_internal_logs(int index) const { return logs_.Get(index); } -inline const ::viam::app::v1::LogEntry& LogRequest::logs(int index) const { +inline const ::viam::common::v1::LogEntry& LogRequest::logs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.LogRequest.logs) return _internal_logs(index); } -inline ::viam::app::v1::LogEntry* LogRequest::_internal_add_logs() { +inline ::viam::common::v1::LogEntry* LogRequest::_internal_add_logs() { return logs_.Add(); } -inline ::viam::app::v1::LogEntry* LogRequest::add_logs() { - ::viam::app::v1::LogEntry* _add = _internal_add_logs(); +inline ::viam::common::v1::LogEntry* LogRequest::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); // @@protoc_insertion_point(field_add:viam.app.v1.LogRequest.logs) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogEntry >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& LogRequest::logs() const { // @@protoc_insertion_point(field_list:viam.app.v1.LogRequest.logs) return logs_; diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index 458749fab..d2538b65e 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: a86849a25cc04f4dbe9b15ddddfbc488 + commit: 7e6f6e774e29406da95bd61cdcdbc8bc - remote: buf.build owner: viamrobotics repository: api - commit: 95fa2217be304b49ade1b3f4b69921e5 + commit: ae02f42bc57641ebb9f9d26216d3f875 - remote: buf.build owner: viamrobotics repository: goutils diff --git a/src/viam/api/common/v1/common.pb.cc b/src/viam/api/common/v1/common.pb.cc index 7b87c5da9..0ec3c45ec 100644 --- a/src/viam/api/common/v1/common.pb.cc +++ b/src/viam/api/common/v1/common.pb.cc @@ -424,10 +424,29 @@ struct GetReadingsResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +PROTOBUF_CONSTEXPR LogEntry::LogEntry( + ::_pbi::ConstantInitialized) + : fields_() + , host_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logger_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , stack_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , time_(nullptr) + , caller_(nullptr){} +struct LogEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogEntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogEntryDefaultTypeInternal() {} + union { + LogEntry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogEntryDefaultTypeInternal _LogEntry_default_instance_; } // namespace v1 } // namespace common } // namespace viam -static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[31]; +static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[32]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2fv1_2fcommon_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_common_2fv1_2fcommon_2eproto = nullptr; @@ -696,6 +715,20 @@ const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse, readings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, host_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, level_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, time_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, logger_name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, message_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, caller_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, stack_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, fields_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::common::v1::ResourceName)}, @@ -729,6 +762,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 239, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, { 247, 255, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, { 257, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, + { 264, -1, -1, sizeof(::viam::common::v1::LogEntry)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -763,6 +797,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::common::v1::_GetReadingsRequest_default_instance_._instance, &::viam::common::v1::_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_._instance, &::viam::common::v1::_GetReadingsResponse_default_instance_._instance, + &::viam::common::v1::_LogEntry_default_instance_._instance, }; const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -848,14 +883,21 @@ const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SEC "common.v1.GetReadingsResponse.ReadingsEn" "tryR\010readings\032S\n\rReadingsEntry\022\020\n\003key\030\001 " "\001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.google.protobu" - "f.ValueR\005value:\0028\001*\177\n\024KinematicsFileForm" - "at\022&\n\"KINEMATICS_FILE_FORMAT_UNSPECIFIED" - "\020\000\022\036\n\032KINEMATICS_FILE_FORMAT_SVA\020\001\022\037\n\033KI" - "NEMATICS_FILE_FORMAT_URDF\020\002:a\n\032safety_he" - "artbeat_monitored\022\036.google.protobuf.Meth" - "odOptions\030\244\222\005 \001(\010R\030safetyHeartbeatMonito" - "red\210\001\001B/\n\022com.viam.common.v1Z\031go.viam.co" - "m/api/common/v1b\006proto3" + "f.ValueR\005value:\0028\001\"\227\002\n\010LogEntry\022\022\n\004host\030" + "\001 \001(\tR\004host\022\024\n\005level\030\002 \001(\tR\005level\022.\n\004tim" + "e\030\003 \001(\0132\032.google.protobuf.TimestampR\004tim" + "e\022\037\n\013logger_name\030\004 \001(\tR\nloggerName\022\030\n\007me" + "ssage\030\005 \001(\tR\007message\022/\n\006caller\030\006 \001(\0132\027.g" + "oogle.protobuf.StructR\006caller\022\024\n\005stack\030\007" + " \001(\tR\005stack\022/\n\006fields\030\010 \003(\0132\027.google.pro" + "tobuf.StructR\006fields*\177\n\024KinematicsFileFo" + "rmat\022&\n\"KINEMATICS_FILE_FORMAT_UNSPECIFI" + "ED\020\000\022\036\n\032KINEMATICS_FILE_FORMAT_SVA\020\001\022\037\n\033" + "KINEMATICS_FILE_FORMAT_URDF\020\002:a\n\032safety_" + "heartbeat_monitored\022\036.google.protobuf.Me" + "thodOptions\030\244\222\005 \001(\010R\030safetyHeartbeatMoni" + "tored\210\001\001B/\n\022com.viam.common.v1Z\031go.viam." + "com/api/common/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommon_2eproto_deps[3] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, @@ -864,9 +906,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommo }; static ::_pbi::once_flag descriptor_table_common_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_common_2fv1_2fcommon_2eproto = { - false, false, 3583, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, + false, false, 3865, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, "common/v1/common.proto", - &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 31, + &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 32, schemas, file_default_instances, TableStruct_common_2fv1_2fcommon_2eproto::offsets, file_level_metadata_common_2fv1_2fcommon_2eproto, file_level_enum_descriptors_common_2fv1_2fcommon_2eproto, file_level_service_descriptors_common_2fv1_2fcommon_2eproto, @@ -7675,6 +7717,531 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::GetMetadata() const { &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, file_level_metadata_common_2fv1_2fcommon_2eproto[30]); } + +// =================================================================== + +class LogEntry::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const LogEntry* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& caller(const LogEntry* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +LogEntry::_Internal::time(const LogEntry* msg) { + return *msg->time_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +LogEntry::_Internal::caller(const LogEntry* msg) { + return *msg->caller_; +} +void LogEntry::clear_time() { + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; +} +void LogEntry::clear_caller() { + if (GetArenaForAllocation() == nullptr && caller_ != nullptr) { + delete caller_; + } + caller_ = nullptr; +} +void LogEntry::clear_fields() { + fields_.Clear(); +} +LogEntry::LogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + fields_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.LogEntry) +} +LogEntry::LogEntry(const LogEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + fields_(from.fields_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_host().empty()) { + host_.Set(from._internal_host(), + GetArenaForAllocation()); + } + level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_level().empty()) { + level_.Set(from._internal_level(), + GetArenaForAllocation()); + } + logger_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logger_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logger_name().empty()) { + logger_name_.Set(from._internal_logger_name(), + GetArenaForAllocation()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } + stack_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + stack_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_stack().empty()) { + stack_.Set(from._internal_stack(), + GetArenaForAllocation()); + } + if (from._internal_has_time()) { + time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_); + } else { + time_ = nullptr; + } + if (from._internal_has_caller()) { + caller_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.caller_); + } else { + caller_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.LogEntry) +} + +inline void LogEntry::SharedCtor() { +host_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +level_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logger_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logger_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +stack_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + stack_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&caller_) - + reinterpret_cast(&time_)) + sizeof(caller_)); +} + +LogEntry::~LogEntry() { + // @@protoc_insertion_point(destructor:viam.common.v1.LogEntry) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LogEntry::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + host_.Destroy(); + level_.Destroy(); + logger_name_.Destroy(); + message_.Destroy(); + stack_.Destroy(); + if (this != internal_default_instance()) delete time_; + if (this != internal_default_instance()) delete caller_; +} + +void LogEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void LogEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.LogEntry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fields_.Clear(); + host_.ClearToEmpty(); + level_.ClearToEmpty(); + logger_name_.ClearToEmpty(); + message_.ClearToEmpty(); + stack_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; + if (GetArenaForAllocation() == nullptr && caller_ != nullptr) { + delete caller_; + } + caller_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogEntry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string host = 1 [json_name = "host"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_host(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.host")); + } else + goto handle_unusual; + continue; + // string level = 2 [json_name = "level"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_level(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.level")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string logger_name = 4 [json_name = "loggerName"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_logger_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.logger_name")); + } else + goto handle_unusual; + continue; + // string message = 5 [json_name = "message"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.message")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_caller(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string stack = 7 [json_name = "stack"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_stack(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.stack")); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_fields(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* LogEntry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.LogEntry) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string host = 1 [json_name = "host"]; + if (!this->_internal_host().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_host().data(), static_cast(this->_internal_host().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.host"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_host(), target); + } + + // string level = 2 [json_name = "level"]; + if (!this->_internal_level().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_level().data(), static_cast(this->_internal_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.level"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_level(), target); + } + + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::time(this), + _Internal::time(this).GetCachedSize(), target, stream); + } + + // string logger_name = 4 [json_name = "loggerName"]; + if (!this->_internal_logger_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logger_name().data(), static_cast(this->_internal_logger_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.logger_name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_logger_name(), target); + } + + // string message = 5 [json_name = "message"]; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.message"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_message(), target); + } + + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + if (this->_internal_has_caller()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::caller(this), + _Internal::caller(this).GetCachedSize(), target, stream); + } + + // string stack = 7 [json_name = "stack"]; + if (!this->_internal_stack().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_stack().data(), static_cast(this->_internal_stack().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.stack"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_stack(), target); + } + + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + for (unsigned i = 0, + n = static_cast(this->_internal_fields_size()); i < n; i++) { + const auto& repfield = this->_internal_fields(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.LogEntry) + return target; +} + +size_t LogEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.LogEntry) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + total_size += 1UL * this->_internal_fields_size(); + for (const auto& msg : this->fields_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string host = 1 [json_name = "host"]; + if (!this->_internal_host().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_host()); + } + + // string level = 2 [json_name = "level"]; + if (!this->_internal_level().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_level()); + } + + // string logger_name = 4 [json_name = "loggerName"]; + if (!this->_internal_logger_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logger_name()); + } + + // string message = 5 [json_name = "message"]; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // string stack = 7 [json_name = "stack"]; + if (!this->_internal_stack().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_stack()); + } + + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *time_); + } + + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + if (this->_internal_has_caller()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *caller_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogEntry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LogEntry::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogEntry::GetClassData() const { return &_class_data_; } + +void LogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void LogEntry::MergeFrom(const LogEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.LogEntry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + fields_.MergeFrom(from.fields_); + if (!from._internal_host().empty()) { + _internal_set_host(from._internal_host()); + } + if (!from._internal_level().empty()) { + _internal_set_level(from._internal_level()); + } + if (!from._internal_logger_name().empty()) { + _internal_set_logger_name(from._internal_logger_name()); + } + if (!from._internal_message().empty()) { + _internal_set_message(from._internal_message()); + } + if (!from._internal_stack().empty()) { + _internal_set_stack(from._internal_stack()); + } + if (from._internal_has_time()) { + _internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time()); + } + if (from._internal_has_caller()) { + _internal_mutable_caller()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_caller()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LogEntry::CopyFrom(const LogEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.LogEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LogEntry::IsInitialized() const { + return true; +} + +void LogEntry::InternalSwap(LogEntry* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + fields_.InternalSwap(&other->fields_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &host_, lhs_arena, + &other->host_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &level_, lhs_arena, + &other->level_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logger_name_, lhs_arena, + &other->logger_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &stack_, lhs_arena, + &other->stack_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(LogEntry, caller_) + + sizeof(LogEntry::caller_) + - PROTOBUF_FIELD_OFFSET(LogEntry, time_)>( + reinterpret_cast(&time_), + reinterpret_cast(&other->time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LogEntry::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, + file_level_metadata_common_2fv1_2fcommon_2eproto[31]); +} PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false> safety_heartbeat_monitored(kSafetyHeartbeatMonitoredFieldNumber, false, nullptr); @@ -7808,6 +8375,10 @@ template<> PROTOBUF_NOINLINE ::viam::common::v1::GetReadingsResponse* Arena::CreateMaybeMessage< ::viam::common::v1::GetReadingsResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::common::v1::GetReadingsResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::common::v1::LogEntry* +Arena::CreateMaybeMessage< ::viam::common::v1::LogEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::LogEntry >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/src/viam/api/common/v1/common.pb.h b/src/viam/api/common/v1/common.pb.h index ea310ff4e..91ecc109a 100644 --- a/src/viam/api/common/v1/common.pb.h +++ b/src/viam/api/common/v1/common.pb.h @@ -114,6 +114,9 @@ extern GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_insta class GetReadingsResponse_ReadingsEntry_DoNotUse; struct GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal; extern GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; +class LogEntry; +struct LogEntryDefaultTypeInternal; +extern LogEntryDefaultTypeInternal _LogEntry_default_instance_; class Orientation; struct OrientationDefaultTypeInternal; extern OrientationDefaultTypeInternal _Orientation_default_instance_; @@ -171,6 +174,7 @@ template<> ::viam::common::v1::GetKinematicsResponse* Arena::CreateMaybeMessage< template<> ::viam::common::v1::GetReadingsRequest* Arena::CreateMaybeMessage<::viam::common::v1::GetReadingsRequest>(Arena*); template<> ::viam::common::v1::GetReadingsResponse* Arena::CreateMaybeMessage<::viam::common::v1::GetReadingsResponse>(Arena*); template<> ::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse>(Arena*); +template<> ::viam::common::v1::LogEntry* Arena::CreateMaybeMessage<::viam::common::v1::LogEntry>(Arena*); template<> ::viam::common::v1::Orientation* Arena::CreateMaybeMessage<::viam::common::v1::Orientation>(Arena*); template<> ::viam::common::v1::PointCloudObject* Arena::CreateMaybeMessage<::viam::common::v1::PointCloudObject>(Arena*); template<> ::viam::common::v1::Pose* Arena::CreateMaybeMessage<::viam::common::v1::Pose>(Arena*); @@ -4982,6 +4986,278 @@ class GetReadingsResponse final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; }; +// ------------------------------------------------------------------- + +class LogEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.LogEntry) */ { + public: + inline LogEntry() : LogEntry(nullptr) {} + ~LogEntry() override; + explicit PROTOBUF_CONSTEXPR LogEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogEntry(const LogEntry& from); + LogEntry(LogEntry&& from) noexcept + : LogEntry() { + *this = ::std::move(from); + } + + inline LogEntry& operator=(const LogEntry& from) { + CopyFrom(from); + return *this; + } + inline LogEntry& operator=(LogEntry&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const LogEntry& default_instance() { + return *internal_default_instance(); + } + static inline const LogEntry* internal_default_instance() { + return reinterpret_cast( + &_LogEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(LogEntry& a, LogEntry& b) { + a.Swap(&b); + } + inline void Swap(LogEntry* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LogEntry* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogEntry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogEntry& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LogEntry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.LogEntry"; + } + protected: + explicit LogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kFieldsFieldNumber = 8, + kHostFieldNumber = 1, + kLevelFieldNumber = 2, + kLoggerNameFieldNumber = 4, + kMessageFieldNumber = 5, + kStackFieldNumber = 7, + kTimeFieldNumber = 3, + kCallerFieldNumber = 6, + }; + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + int fields_size() const; + private: + int _internal_fields_size() const; + public: + void clear_fields(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_fields(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* + mutable_fields(); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_fields(int index) const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_add_fields(); + public: + const ::PROTOBUF_NAMESPACE_ID::Struct& fields(int index) const; + ::PROTOBUF_NAMESPACE_ID::Struct* add_fields(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& + fields() const; + + // string host = 1 [json_name = "host"]; + void clear_host(); + const std::string& host() const; + template + void set_host(ArgT0&& arg0, ArgT... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* host); + private: + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); + std::string* _internal_mutable_host(); + public: + + // string level = 2 [json_name = "level"]; + void clear_level(); + const std::string& level() const; + template + void set_level(ArgT0&& arg0, ArgT... args); + std::string* mutable_level(); + PROTOBUF_NODISCARD std::string* release_level(); + void set_allocated_level(std::string* level); + private: + const std::string& _internal_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_level(const std::string& value); + std::string* _internal_mutable_level(); + public: + + // string logger_name = 4 [json_name = "loggerName"]; + void clear_logger_name(); + const std::string& logger_name() const; + template + void set_logger_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_logger_name(); + PROTOBUF_NODISCARD std::string* release_logger_name(); + void set_allocated_logger_name(std::string* logger_name); + private: + const std::string& _internal_logger_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logger_name(const std::string& value); + std::string* _internal_mutable_logger_name(); + public: + + // string message = 5 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // string stack = 7 [json_name = "stack"]; + void clear_stack(); + const std::string& stack() const; + template + void set_stack(ArgT0&& arg0, ArgT... args); + std::string* mutable_stack(); + PROTOBUF_NODISCARD std::string* release_stack(); + void set_allocated_stack(std::string* stack); + private: + const std::string& _internal_stack() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stack(const std::string& value); + std::string* _internal_mutable_stack(); + public: + + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + bool has_time() const; + private: + bool _internal_has_time() const; + public: + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + bool has_caller() const; + private: + bool _internal_has_caller() const; + public: + void clear_caller(); + const ::PROTOBUF_NAMESPACE_ID::Struct& caller() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_caller(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_caller(); + void set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_caller() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_caller(); + public: + void unsafe_arena_set_allocated_caller( + ::PROTOBUF_NAMESPACE_ID::Struct* caller); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_caller(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.LogEntry) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct > fields_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr level_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logger_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stack_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + ::PROTOBUF_NAMESPACE_ID::Struct* caller_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; // =================================================================== static const int kSafetyHeartbeatMonitoredFieldNumber = 84260; @@ -7928,6 +8204,467 @@ GetReadingsResponse::mutable_readings() { return _internal_mutable_readings(); } +// ------------------------------------------------------------------- + +// LogEntry + +// string host = 1 [json_name = "host"]; +inline void LogEntry::clear_host() { + host_.ClearToEmpty(); +} +inline const std::string& LogEntry::host() const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.host) + return _internal_host(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_host(ArgT0&& arg0, ArgT... args) { + + host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.host) +} +inline std::string* LogEntry::mutable_host() { + std::string* _s = _internal_mutable_host(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.host) + return _s; +} +inline const std::string& LogEntry::_internal_host() const { + return host_.Get(); +} +inline void LogEntry::_internal_set_host(const std::string& value) { + + host_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_host() { + + return host_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_host() { + // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.host) + return host_.Release(); +} +inline void LogEntry::set_allocated_host(std::string* host) { + if (host != nullptr) { + + } else { + + } + host_.SetAllocated(host, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (host_.IsDefault()) { + host_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.host) +} + +// string level = 2 [json_name = "level"]; +inline void LogEntry::clear_level() { + level_.ClearToEmpty(); +} +inline const std::string& LogEntry::level() const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.level) + return _internal_level(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_level(ArgT0&& arg0, ArgT... args) { + + level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.level) +} +inline std::string* LogEntry::mutable_level() { + std::string* _s = _internal_mutable_level(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.level) + return _s; +} +inline const std::string& LogEntry::_internal_level() const { + return level_.Get(); +} +inline void LogEntry::_internal_set_level(const std::string& value) { + + level_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_level() { + + return level_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_level() { + // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.level) + return level_.Release(); +} +inline void LogEntry::set_allocated_level(std::string* level) { + if (level != nullptr) { + + } else { + + } + level_.SetAllocated(level, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (level_.IsDefault()) { + level_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.level) +} + +// .google.protobuf.Timestamp time = 3 [json_name = "time"]; +inline bool LogEntry::_internal_has_time() const { + return this != internal_default_instance() && time_ != nullptr; +} +inline bool LogEntry::has_time() const { + return _internal_has_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::time() const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.time) + return _internal_time(); +} +inline void LogEntry::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); + } + time_ = time; + if (time) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.LogEntry.time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::unsafe_arena_release_time() { + // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.time) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::_internal_mutable_time() { + + if (time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + time_ = p; + } + return time_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.time) + return _msg; +} +inline void LogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); + } + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); + if (message_arena != submessage_arena) { + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); + } + + } else { + + } + time_ = time; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.time) +} + +// string logger_name = 4 [json_name = "loggerName"]; +inline void LogEntry::clear_logger_name() { + logger_name_.ClearToEmpty(); +} +inline const std::string& LogEntry::logger_name() const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.logger_name) + return _internal_logger_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_logger_name(ArgT0&& arg0, ArgT... args) { + + logger_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.logger_name) +} +inline std::string* LogEntry::mutable_logger_name() { + std::string* _s = _internal_mutable_logger_name(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.logger_name) + return _s; +} +inline const std::string& LogEntry::_internal_logger_name() const { + return logger_name_.Get(); +} +inline void LogEntry::_internal_set_logger_name(const std::string& value) { + + logger_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_logger_name() { + + return logger_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_logger_name() { + // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.logger_name) + return logger_name_.Release(); +} +inline void LogEntry::set_allocated_logger_name(std::string* logger_name) { + if (logger_name != nullptr) { + + } else { + + } + logger_name_.SetAllocated(logger_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logger_name_.IsDefault()) { + logger_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.logger_name) +} + +// string message = 5 [json_name = "message"]; +inline void LogEntry::clear_message() { + message_.ClearToEmpty(); +} +inline const std::string& LogEntry::message() const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.message) +} +inline std::string* LogEntry::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.message) + return _s; +} +inline const std::string& LogEntry::_internal_message() const { + return message_.Get(); +} +inline void LogEntry::_internal_set_message(const std::string& value) { + + message_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_message() { + + return message_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_message() { + // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.message) + return message_.Release(); +} +inline void LogEntry::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.message) +} + +// .google.protobuf.Struct caller = 6 [json_name = "caller"]; +inline bool LogEntry::_internal_has_caller() const { + return this != internal_default_instance() && caller_ != nullptr; +} +inline bool LogEntry::has_caller() const { + return _internal_has_caller(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_caller() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = caller_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::caller() const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.caller) + return _internal_caller(); +} +inline void LogEntry::unsafe_arena_set_allocated_caller( + ::PROTOBUF_NAMESPACE_ID::Struct* caller) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller_); + } + caller_ = caller; + if (caller) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.LogEntry.caller) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::release_caller() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = caller_; + caller_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::unsafe_arena_release_caller() { + // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.caller) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = caller_; + caller_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_mutable_caller() { + + if (caller_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + caller_ = p; + } + return caller_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_caller() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_caller(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.caller) + return _msg; +} +inline void LogEntry::set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller_); + } + if (caller) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller)); + if (message_arena != submessage_arena) { + caller = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, caller, submessage_arena); + } + + } else { + + } + caller_ = caller; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.caller) +} + +// string stack = 7 [json_name = "stack"]; +inline void LogEntry::clear_stack() { + stack_.ClearToEmpty(); +} +inline const std::string& LogEntry::stack() const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.stack) + return _internal_stack(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_stack(ArgT0&& arg0, ArgT... args) { + + stack_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.stack) +} +inline std::string* LogEntry::mutable_stack() { + std::string* _s = _internal_mutable_stack(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.stack) + return _s; +} +inline const std::string& LogEntry::_internal_stack() const { + return stack_.Get(); +} +inline void LogEntry::_internal_set_stack(const std::string& value) { + + stack_.Set(value, GetArenaForAllocation()); +} +inline std::string* LogEntry::_internal_mutable_stack() { + + return stack_.Mutable(GetArenaForAllocation()); +} +inline std::string* LogEntry::release_stack() { + // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.stack) + return stack_.Release(); +} +inline void LogEntry::set_allocated_stack(std::string* stack) { + if (stack != nullptr) { + + } else { + + } + stack_.SetAllocated(stack, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (stack_.IsDefault()) { + stack_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.stack) +} + +// repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; +inline int LogEntry::_internal_fields_size() const { + return fields_.size(); +} +inline int LogEntry::fields_size() const { + return _internal_fields_size(); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_fields(int index) { + // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.fields) + return fields_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* +LogEntry::mutable_fields() { + // @@protoc_insertion_point(field_mutable_list:viam.common.v1.LogEntry.fields) + return &fields_; +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_fields(int index) const { + return fields_.Get(index); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::fields(int index) const { + // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.fields) + return _internal_fields(index); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_add_fields() { + return fields_.Add(); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::add_fields() { + ::PROTOBUF_NAMESPACE_ID::Struct* _add = _internal_add_fields(); + // @@protoc_insertion_point(field_add:viam.common.v1.LogEntry.fields) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& +LogEntry::fields() const { + // @@protoc_insertion_point(field_list:viam.common.v1.LogEntry.fields) + return fields_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -7991,6 +8728,8 @@ GetReadingsResponse::mutable_readings() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h index 2543bb0ee..6c1e8b2ed 100644 --- a/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h @@ -2,7 +2,7 @@ // If you make any local change, they will be lost. // source: google/api/expr/v1alpha1/checked.proto // Original file comments: -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h index 7bd04246d..ba9228e0e 100644 --- a/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h @@ -2,7 +2,7 @@ // If you make any local change, they will be lost. // source: google/api/expr/v1alpha1/eval.proto // Original file comments: -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h index de5b35f88..1ace6fe16 100644 --- a/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h @@ -2,7 +2,7 @@ // If you make any local change, they will be lost. // source: google/api/expr/v1alpha1/explain.proto // Original file comments: -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h index dfd7e4964..0a6378f09 100644 --- a/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h @@ -2,7 +2,7 @@ // If you make any local change, they will be lost. // source: google/api/expr/v1alpha1/syntax.proto // Original file comments: -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc index 04a90e6c3..9a0b6295f 100644 --- a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc @@ -162,6 +162,34 @@ struct ConstantDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstantDefaultTypeInternal _Constant_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_Extension_Version::SourceInfo_Extension_Version( + ::_pbi::ConstantInitialized) + : major_(int64_t{0}) + , minor_(int64_t{0}){} +struct SourceInfo_Extension_VersionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_Extension_VersionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_Extension_VersionDefaultTypeInternal() {} + union { + SourceInfo_Extension_Version _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_Extension_VersionDefaultTypeInternal _SourceInfo_Extension_Version_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_Extension::SourceInfo_Extension( + ::_pbi::ConstantInitialized) + : affected_components_() + , _affected_components_cached_byte_size_(0) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(nullptr){} +struct SourceInfo_ExtensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_ExtensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_ExtensionDefaultTypeInternal() {} + union { + SourceInfo_Extension _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_ExtensionDefaultTypeInternal _SourceInfo_Extension_default_instance_; PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse( ::_pbi::ConstantInitialized){} struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal { @@ -190,6 +218,7 @@ PROTOBUF_CONSTEXPR SourceInfo::SourceInfo( , _line_offsets_cached_byte_size_(0) , positions_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) , macro_calls_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , extensions_() , syntax_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct SourceInfoDefaultTypeInternal { @@ -220,8 +249,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace expr } // namespace api } // namespace google -static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[14]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[16]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto = nullptr; const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -330,6 +359,23 @@ const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto::offs ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, constant_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, major_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, minor_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, affected_components_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, version_), PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -361,6 +407,7 @@ const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto::offs PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, line_offsets_), PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, positions_), PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, macro_calls_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, extensions_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _internal_metadata_), ~0u, // no _extensions_ @@ -383,10 +430,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 61, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Comprehension)}, { 74, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr)}, { 89, -1, -1, sizeof(::google::api::expr::v1alpha1::Constant)}, - { 105, 113, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse)}, - { 115, 123, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse)}, - { 125, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo)}, - { 136, -1, -1, sizeof(::google::api::expr::v1alpha1::SourcePosition)}, + { 105, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_Extension_Version)}, + { 113, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_Extension)}, + { 122, 130, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse)}, + { 132, 140, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse)}, + { 142, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo)}, + { 154, -1, -1, sizeof(::google::api::expr::v1alpha1::SourcePosition)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -400,6 +449,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::google::api::expr::v1alpha1::_Expr_Comprehension_default_instance_._instance, &::google::api::expr::v1alpha1::_Expr_default_instance_._instance, &::google::api::expr::v1alpha1::_Constant_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_Extension_Version_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_Extension_default_instance_._instance, &::google::api::expr::v1alpha1::_SourceInfo_PositionsEntry_DoNotUse_default_instance_._instance, &::google::api::expr::v1alpha1::_SourceInfo_MacroCallsEntry_DoNotUse_default_instance_._instance, &::google::api::expr::v1alpha1::_SourceInfo_default_instance_._instance, @@ -468,24 +519,36 @@ const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2ep "\001(\0132\031.google.protobuf.DurationB\002\030\001H\000R\rdu" "rationValue\022I\n\017timestamp_value\030\t \001(\0132\032.g" "oogle.protobuf.TimestampB\002\030\001H\000R\016timestam" - "pValueB\017\n\rconstant_kind\"\271\003\n\nSourceInfo\022%" + "pValueB\017\n\rconstant_kind\"\214\007\n\nSourceInfo\022%" "\n\016syntax_version\030\001 \001(\tR\rsyntaxVersion\022\032\n" "\010location\030\002 \001(\tR\010location\022!\n\014line_offset" "s\030\003 \003(\005R\013lineOffsets\022Q\n\tpositions\030\004 \003(\0132" "3.google.api.expr.v1alpha1.SourceInfo.Po" "sitionsEntryR\tpositions\022U\n\013macro_calls\030\005" " \003(\01324.google.api.expr.v1alpha1.SourceIn" - "fo.MacroCallsEntryR\nmacroCalls\032<\n\016Positi" - "onsEntry\022\020\n\003key\030\001 \001(\003R\003key\022\024\n\005value\030\002 \001(" - "\005R\005value:\0028\001\032]\n\017MacroCallsEntry\022\020\n\003key\030\001" - " \001(\003R\003key\0224\n\005value\030\002 \001(\0132\036.google.api.ex" - "pr.v1alpha1.ExprR\005value:\0028\001\"p\n\016SourcePos" - "ition\022\032\n\010location\030\001 \001(\tR\010location\022\026\n\006off" - "set\030\002 \001(\005R\006offset\022\022\n\004line\030\003 \001(\005R\004line\022\026\n" - "\006column\030\004 \001(\005R\006columnBn\n\034com.google.api." - "expr.v1alpha1B\013SyntaxProtoP\001Z= 1900 && _MSC_VER < 1912)) +constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_UNSPECIFIED; +constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_PARSER; +constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_TYPE_CHECKER; +constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_RUNTIME; +constexpr SourceInfo_Extension_Component SourceInfo_Extension::Component_MIN; +constexpr SourceInfo_Extension_Component SourceInfo_Extension::Component_MAX; +constexpr int SourceInfo_Extension::Component_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== @@ -3892,6 +3980,491 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Constant::GetMetadata() const { // =================================================================== +class SourceInfo_Extension_Version::_Internal { + public: +}; + +SourceInfo_Extension_Version::SourceInfo_Extension_Version(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourceInfo.Extension.Version) +} +SourceInfo_Extension_Version::SourceInfo_Extension_Version(const SourceInfo_Extension_Version& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&major_, &from.major_, + static_cast(reinterpret_cast(&minor_) - + reinterpret_cast(&major_)) + sizeof(minor_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourceInfo.Extension.Version) +} + +inline void SourceInfo_Extension_Version::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&major_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&minor_) - + reinterpret_cast(&major_)) + sizeof(minor_)); +} + +SourceInfo_Extension_Version::~SourceInfo_Extension_Version() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SourceInfo_Extension_Version::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void SourceInfo_Extension_Version::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SourceInfo_Extension_Version::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&major_, 0, static_cast( + reinterpret_cast(&minor_) - + reinterpret_cast(&major_)) + sizeof(minor_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo_Extension_Version::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 major = 1 [json_name = "major"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + major_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 minor = 2 [json_name = "minor"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SourceInfo_Extension_Version::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 major = 1 [json_name = "major"]; + if (this->_internal_major() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_major(), target); + } + + // int64 minor = 2 [json_name = "minor"]; + if (this->_internal_minor() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_minor(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + return target; +} + +size_t SourceInfo_Extension_Version::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 major = 1 [json_name = "major"]; + if (this->_internal_major() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_major()); + } + + // int64 minor = 2 [json_name = "minor"]; + if (this->_internal_minor() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_minor()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo_Extension_Version::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourceInfo_Extension_Version::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo_Extension_Version::GetClassData() const { return &_class_data_; } + +void SourceInfo_Extension_Version::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SourceInfo_Extension_Version::MergeFrom(const SourceInfo_Extension_Version& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_major() != 0) { + _internal_set_major(from._internal_major()); + } + if (from._internal_minor() != 0) { + _internal_set_minor(from._internal_minor()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SourceInfo_Extension_Version::CopyFrom(const SourceInfo_Extension_Version& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SourceInfo_Extension_Version::IsInitialized() const { + return true; +} + +void SourceInfo_Extension_Version::InternalSwap(SourceInfo_Extension_Version* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, minor_) + + sizeof(SourceInfo_Extension_Version::minor_) + - PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, major_)>( + reinterpret_cast(&major_), + reinterpret_cast(&other->major_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_Extension_Version::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[10]); +} + +// =================================================================== + +class SourceInfo_Extension::_Internal { + public: + static const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& version(const SourceInfo_Extension* msg); +}; + +const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& +SourceInfo_Extension::_Internal::version(const SourceInfo_Extension* msg) { + return *msg->version_; +} +SourceInfo_Extension::SourceInfo_Extension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + affected_components_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourceInfo.Extension) +} +SourceInfo_Extension::SourceInfo_Extension(const SourceInfo_Extension& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + affected_components_(from.affected_components_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_version()) { + version_ = new ::google::api::expr::v1alpha1::SourceInfo_Extension_Version(*from.version_); + } else { + version_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourceInfo.Extension) +} + +inline void SourceInfo_Extension::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_ = nullptr; +} + +SourceInfo_Extension::~SourceInfo_Extension() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourceInfo.Extension) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SourceInfo_Extension::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + if (this != internal_default_instance()) delete version_; +} + +void SourceInfo_Extension::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SourceInfo_Extension::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourceInfo.Extension) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + affected_components_.Clear(); + id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && version_ != nullptr) { + delete version_; + } + version_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo_Extension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourceInfo.Extension.id")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_affected_components(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 16) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_affected_components(static_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Component>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_version(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SourceInfo_Extension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourceInfo.Extension) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourceInfo.Extension.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; + { + int byte_size = _affected_components_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 2, affected_components_, byte_size, target); + } + } + + // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; + if (this->_internal_has_version()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::version(this), + _Internal::version(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.expr.v1alpha1.SourceInfo.Extension) + return target; +} + +size_t SourceInfo_Extension::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourceInfo.Extension) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_affected_components_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::_pbi::WireFormatLite::EnumSize( + this->_internal_affected_components(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _affected_components_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; + if (this->_internal_has_version()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *version_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo_Extension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourceInfo_Extension::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo_Extension::GetClassData() const { return &_class_data_; } + +void SourceInfo_Extension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SourceInfo_Extension::MergeFrom(const SourceInfo_Extension& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo.Extension) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + affected_components_.MergeFrom(from.affected_components_); + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); + } + if (from._internal_has_version()) { + _internal_mutable_version()->::google::api::expr::v1alpha1::SourceInfo_Extension_Version::MergeFrom(from._internal_version()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SourceInfo_Extension::CopyFrom(const SourceInfo_Extension& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.expr.v1alpha1.SourceInfo.Extension) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SourceInfo_Extension::IsInitialized() const { + return true; +} + +void SourceInfo_Extension::InternalSwap(SourceInfo_Extension* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + affected_components_.InternalSwap(&other->affected_components_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + swap(version_, other->version_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_Extension::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[11]); +} + +// =================================================================== + SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse() {} SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} @@ -3901,7 +4474,7 @@ void SourceInfo_PositionsEntry_DoNotUse::MergeFrom(const SourceInfo_PositionsEnt ::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_PositionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, - file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[10]); + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[12]); } // =================================================================== @@ -3915,7 +4488,7 @@ void SourceInfo_MacroCallsEntry_DoNotUse::MergeFrom(const SourceInfo_MacroCallsE ::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_MacroCallsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, - file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[11]); + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[13]); } // =================================================================== @@ -3929,7 +4502,8 @@ SourceInfo::SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), line_offsets_(arena), positions_(arena), - macro_calls_(arena) { + macro_calls_(arena), + extensions_(arena) { SharedCtor(); if (arena != nullptr && !is_message_owned) { arena->OwnCustomDestructor(this, &SourceInfo::ArenaDtor); @@ -3938,7 +4512,8 @@ SourceInfo::SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, } SourceInfo::SourceInfo(const SourceInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - line_offsets_(from.line_offsets_) { + line_offsets_(from.line_offsets_), + extensions_(from.extensions_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); positions_.MergeFrom(from.positions_); macro_calls_.MergeFrom(from.macro_calls_); @@ -4008,6 +4583,7 @@ void SourceInfo::Clear() { line_offsets_.Clear(); positions_.Clear(); macro_calls_.Clear(); + extensions_.Clear(); syntax_version_.ClearToEmpty(); location_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); @@ -4076,6 +4652,19 @@ const char* SourceInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_extensions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -4168,6 +4757,14 @@ uint8_t* SourceInfo::_InternalSerialize( } } + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; + for (unsigned i = 0, + n = static_cast(this->_internal_extensions_size()); i < n; i++) { + const auto& repfield = this->_internal_extensions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -4216,6 +4813,13 @@ size_t SourceInfo::ByteSizeLong() const { total_size += SourceInfo_MacroCallsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; + total_size += 1UL * this->_internal_extensions_size(); + for (const auto& msg : this->extensions_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // string syntax_version = 1 [json_name = "syntaxVersion"]; if (!this->_internal_syntax_version().empty()) { total_size += 1 + @@ -4255,6 +4859,7 @@ void SourceInfo::MergeFrom(const SourceInfo& from) { line_offsets_.MergeFrom(from.line_offsets_); positions_.MergeFrom(from.positions_); macro_calls_.MergeFrom(from.macro_calls_); + extensions_.MergeFrom(from.extensions_); if (!from._internal_syntax_version().empty()) { _internal_set_syntax_version(from._internal_syntax_version()); } @@ -4283,6 +4888,7 @@ void SourceInfo::InternalSwap(SourceInfo* other) { line_offsets_.InternalSwap(&other->line_offsets_); positions_.InternalSwap(&other->positions_); macro_calls_.InternalSwap(&other->macro_calls_); + extensions_.InternalSwap(&other->extensions_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &syntax_version_, lhs_arena, &other->syntax_version_, rhs_arena @@ -4296,7 +4902,7 @@ void SourceInfo::InternalSwap(SourceInfo* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, - file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[12]); + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[14]); } // =================================================================== @@ -4573,7 +5179,7 @@ void SourcePosition::InternalSwap(SourcePosition* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SourcePosition::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, - file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[13]); + file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[15]); } // @@protoc_insertion_point(namespace_scope) @@ -4622,6 +5228,14 @@ template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Constant* Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Constant >(Arena* arena) { return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Constant >(arena); } +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_Extension_Version >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_Extension_Version >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_Extension* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_Extension >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_Extension >(arena); +} template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse >(arena); diff --git a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h index 641b3a502..d92b12bb7 100644 --- a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h @@ -32,6 +32,7 @@ #include // IWYU pragma: export #include #include +#include #include #include #include @@ -87,6 +88,12 @@ extern ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; class SourceInfo; struct SourceInfoDefaultTypeInternal; extern SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +class SourceInfo_Extension; +struct SourceInfo_ExtensionDefaultTypeInternal; +extern SourceInfo_ExtensionDefaultTypeInternal _SourceInfo_Extension_default_instance_; +class SourceInfo_Extension_Version; +struct SourceInfo_Extension_VersionDefaultTypeInternal; +extern SourceInfo_Extension_VersionDefaultTypeInternal _SourceInfo_Extension_Version_default_instance_; class SourceInfo_MacroCallsEntry_DoNotUse; struct SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal; extern SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal _SourceInfo_MacroCallsEntry_DoNotUse_default_instance_; @@ -112,6 +119,8 @@ template<> ::google::api::expr::v1alpha1::Expr_Ident* Arena::CreateMaybeMessage< template<> ::google::api::expr::v1alpha1::Expr_Select* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Select>(Arena*); template<> ::google::api::expr::v1alpha1::ParsedExpr* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ParsedExpr>(Arena*); template<> ::google::api::expr::v1alpha1::SourceInfo* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_Extension* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension_Version>(Arena*); template<> ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse>(Arena*); template<> ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse>(Arena*); template<> ::google::api::expr::v1alpha1::SourcePosition* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourcePosition>(Arena*); @@ -121,6 +130,33 @@ namespace api { namespace expr { namespace v1alpha1 { +enum SourceInfo_Extension_Component : int { + SourceInfo_Extension_Component_COMPONENT_UNSPECIFIED = 0, + SourceInfo_Extension_Component_COMPONENT_PARSER = 1, + SourceInfo_Extension_Component_COMPONENT_TYPE_CHECKER = 2, + SourceInfo_Extension_Component_COMPONENT_RUNTIME = 3, + SourceInfo_Extension_Component_SourceInfo_Extension_Component_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SourceInfo_Extension_Component_SourceInfo_Extension_Component_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool SourceInfo_Extension_Component_IsValid(int value); +constexpr SourceInfo_Extension_Component SourceInfo_Extension_Component_Component_MIN = SourceInfo_Extension_Component_COMPONENT_UNSPECIFIED; +constexpr SourceInfo_Extension_Component SourceInfo_Extension_Component_Component_MAX = SourceInfo_Extension_Component_COMPONENT_RUNTIME; +constexpr int SourceInfo_Extension_Component_Component_ARRAYSIZE = SourceInfo_Extension_Component_Component_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SourceInfo_Extension_Component_descriptor(); +template +inline const std::string& SourceInfo_Extension_Component_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SourceInfo_Extension_Component_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SourceInfo_Extension_Component_descriptor(), enum_t_value); +} +inline bool SourceInfo_Extension_Component_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SourceInfo_Extension_Component* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SourceInfo_Extension_Component_descriptor(), name, value); +} // =================================================================== class ParsedExpr final : @@ -2293,6 +2329,384 @@ class Constant final : }; // ------------------------------------------------------------------- +class SourceInfo_Extension_Version final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo.Extension.Version) */ { + public: + inline SourceInfo_Extension_Version() : SourceInfo_Extension_Version(nullptr) {} + ~SourceInfo_Extension_Version() override; + explicit PROTOBUF_CONSTEXPR SourceInfo_Extension_Version(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SourceInfo_Extension_Version(const SourceInfo_Extension_Version& from); + SourceInfo_Extension_Version(SourceInfo_Extension_Version&& from) noexcept + : SourceInfo_Extension_Version() { + *this = ::std::move(from); + } + + inline SourceInfo_Extension_Version& operator=(const SourceInfo_Extension_Version& from) { + CopyFrom(from); + return *this; + } + inline SourceInfo_Extension_Version& operator=(SourceInfo_Extension_Version&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SourceInfo_Extension_Version& default_instance() { + return *internal_default_instance(); + } + static inline const SourceInfo_Extension_Version* internal_default_instance() { + return reinterpret_cast( + &_SourceInfo_Extension_Version_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(SourceInfo_Extension_Version& a, SourceInfo_Extension_Version& b) { + a.Swap(&b); + } + inline void Swap(SourceInfo_Extension_Version* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SourceInfo_Extension_Version* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SourceInfo_Extension_Version* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourceInfo_Extension_Version& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourceInfo_Extension_Version& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SourceInfo_Extension_Version* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.SourceInfo.Extension.Version"; + } + protected: + explicit SourceInfo_Extension_Version(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMajorFieldNumber = 1, + kMinorFieldNumber = 2, + }; + // int64 major = 1 [json_name = "major"]; + void clear_major(); + int64_t major() const; + void set_major(int64_t value); + private: + int64_t _internal_major() const; + void _internal_set_major(int64_t value); + public: + + // int64 minor = 2 [json_name = "minor"]; + void clear_minor(); + int64_t minor() const; + void set_minor(int64_t value); + private: + int64_t _internal_minor() const; + void _internal_set_minor(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t major_; + int64_t minor_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + +class SourceInfo_Extension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo.Extension) */ { + public: + inline SourceInfo_Extension() : SourceInfo_Extension(nullptr) {} + ~SourceInfo_Extension() override; + explicit PROTOBUF_CONSTEXPR SourceInfo_Extension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SourceInfo_Extension(const SourceInfo_Extension& from); + SourceInfo_Extension(SourceInfo_Extension&& from) noexcept + : SourceInfo_Extension() { + *this = ::std::move(from); + } + + inline SourceInfo_Extension& operator=(const SourceInfo_Extension& from) { + CopyFrom(from); + return *this; + } + inline SourceInfo_Extension& operator=(SourceInfo_Extension&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SourceInfo_Extension& default_instance() { + return *internal_default_instance(); + } + static inline const SourceInfo_Extension* internal_default_instance() { + return reinterpret_cast( + &_SourceInfo_Extension_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(SourceInfo_Extension& a, SourceInfo_Extension& b) { + a.Swap(&b); + } + inline void Swap(SourceInfo_Extension* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SourceInfo_Extension* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SourceInfo_Extension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourceInfo_Extension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourceInfo_Extension& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SourceInfo_Extension* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.SourceInfo.Extension"; + } + protected: + explicit SourceInfo_Extension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef SourceInfo_Extension_Version Version; + + typedef SourceInfo_Extension_Component Component; + static constexpr Component COMPONENT_UNSPECIFIED = + SourceInfo_Extension_Component_COMPONENT_UNSPECIFIED; + static constexpr Component COMPONENT_PARSER = + SourceInfo_Extension_Component_COMPONENT_PARSER; + static constexpr Component COMPONENT_TYPE_CHECKER = + SourceInfo_Extension_Component_COMPONENT_TYPE_CHECKER; + static constexpr Component COMPONENT_RUNTIME = + SourceInfo_Extension_Component_COMPONENT_RUNTIME; + static inline bool Component_IsValid(int value) { + return SourceInfo_Extension_Component_IsValid(value); + } + static constexpr Component Component_MIN = + SourceInfo_Extension_Component_Component_MIN; + static constexpr Component Component_MAX = + SourceInfo_Extension_Component_Component_MAX; + static constexpr int Component_ARRAYSIZE = + SourceInfo_Extension_Component_Component_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Component_descriptor() { + return SourceInfo_Extension_Component_descriptor(); + } + template + static inline const std::string& Component_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Component_Name."); + return SourceInfo_Extension_Component_Name(enum_t_value); + } + static inline bool Component_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Component* value) { + return SourceInfo_Extension_Component_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kAffectedComponentsFieldNumber = 2, + kIdFieldNumber = 1, + kVersionFieldNumber = 3, + }; + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; + int affected_components_size() const; + private: + int _internal_affected_components_size() const; + public: + void clear_affected_components(); + private: + ::google::api::expr::v1alpha1::SourceInfo_Extension_Component _internal_affected_components(int index) const; + void _internal_add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_affected_components(); + public: + ::google::api::expr::v1alpha1::SourceInfo_Extension_Component affected_components(int index) const; + void set_affected_components(int index, ::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); + void add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& affected_components() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_affected_components(); + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; + bool has_version() const; + private: + bool _internal_has_version() const; + public: + void clear_version(); + const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& version() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* release_version(); + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* mutable_version(); + void set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version); + private: + const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& _internal_version() const; + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* _internal_mutable_version(); + public: + void unsafe_arena_set_allocated_version( + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version); + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* unsafe_arena_release_version(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo.Extension) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField affected_components_; + mutable std::atomic _affected_components_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- + class SourceInfo_PositionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry* mutable_macro_calls(); + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; + int extensions_size() const; + private: + int _internal_extensions_size() const; + public: + void clear_extensions(); + ::google::api::expr::v1alpha1::SourceInfo_Extension* mutable_extensions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >* + mutable_extensions(); + private: + const ::google::api::expr::v1alpha1::SourceInfo_Extension& _internal_extensions(int index) const; + ::google::api::expr::v1alpha1::SourceInfo_Extension* _internal_add_extensions(); + public: + const ::google::api::expr::v1alpha1::SourceInfo_Extension& extensions(int index) const; + ::google::api::expr::v1alpha1::SourceInfo_Extension* add_extensions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >& + extensions() const; + // string syntax_version = 1 [json_name = "syntaxVersion"]; void clear_syntax_version(); const std::string& syntax_version() const; @@ -2572,6 +3006,7 @@ class SourceInfo final : int64_t, ::google::api::expr::v1alpha1::Expr, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> macro_calls_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension > extensions_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_version_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -2627,7 +3062,7 @@ class SourcePosition final : &_SourcePosition_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 15; friend void swap(SourcePosition& a, SourcePosition& b) { a.Swap(&b); @@ -5426,6 +5861,237 @@ inline Constant::ConstantKindCase Constant::constant_kind_case() const { } // ------------------------------------------------------------------- +// SourceInfo_Extension_Version + +// int64 major = 1 [json_name = "major"]; +inline void SourceInfo_Extension_Version::clear_major() { + major_ = int64_t{0}; +} +inline int64_t SourceInfo_Extension_Version::_internal_major() const { + return major_; +} +inline int64_t SourceInfo_Extension_Version::major() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.Version.major) + return _internal_major(); +} +inline void SourceInfo_Extension_Version::_internal_set_major(int64_t value) { + + major_ = value; +} +inline void SourceInfo_Extension_Version::set_major(int64_t value) { + _internal_set_major(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.Version.major) +} + +// int64 minor = 2 [json_name = "minor"]; +inline void SourceInfo_Extension_Version::clear_minor() { + minor_ = int64_t{0}; +} +inline int64_t SourceInfo_Extension_Version::_internal_minor() const { + return minor_; +} +inline int64_t SourceInfo_Extension_Version::minor() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.Version.minor) + return _internal_minor(); +} +inline void SourceInfo_Extension_Version::_internal_set_minor(int64_t value) { + + minor_ = value; +} +inline void SourceInfo_Extension_Version::set_minor(int64_t value) { + _internal_set_minor(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.Version.minor) +} + +// ------------------------------------------------------------------- + +// SourceInfo_Extension + +// string id = 1 [json_name = "id"]; +inline void SourceInfo_Extension::clear_id() { + id_.ClearToEmpty(); +} +inline const std::string& SourceInfo_Extension::id() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo_Extension::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.id) +} +inline std::string* SourceInfo_Extension::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.Extension.id) + return _s; +} +inline const std::string& SourceInfo_Extension::_internal_id() const { + return id_.Get(); +} +inline void SourceInfo_Extension::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* SourceInfo_Extension::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* SourceInfo_Extension::release_id() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.Extension.id) + return id_.Release(); +} +inline void SourceInfo_Extension::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.Extension.id) +} + +// repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; +inline int SourceInfo_Extension::_internal_affected_components_size() const { + return affected_components_.size(); +} +inline int SourceInfo_Extension::affected_components_size() const { + return _internal_affected_components_size(); +} +inline void SourceInfo_Extension::clear_affected_components() { + affected_components_.Clear(); +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Component SourceInfo_Extension::_internal_affected_components(int index) const { + return static_cast< ::google::api::expr::v1alpha1::SourceInfo_Extension_Component >(affected_components_.Get(index)); +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Component SourceInfo_Extension::affected_components(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) + return _internal_affected_components(index); +} +inline void SourceInfo_Extension::set_affected_components(int index, ::google::api::expr::v1alpha1::SourceInfo_Extension_Component value) { + affected_components_.Set(index, value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) +} +inline void SourceInfo_Extension::_internal_add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value) { + affected_components_.Add(value); +} +inline void SourceInfo_Extension::add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value) { + _internal_add_affected_components(value); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +SourceInfo_Extension::affected_components() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) + return affected_components_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +SourceInfo_Extension::_internal_mutable_affected_components() { + return &affected_components_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +SourceInfo_Extension::mutable_affected_components() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) + return _internal_mutable_affected_components(); +} + +// .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; +inline bool SourceInfo_Extension::_internal_has_version() const { + return this != internal_default_instance() && version_ != nullptr; +} +inline bool SourceInfo_Extension::has_version() const { + return _internal_has_version(); +} +inline void SourceInfo_Extension::clear_version() { + if (GetArenaForAllocation() == nullptr && version_ != nullptr) { + delete version_; + } + version_ = nullptr; +} +inline const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& SourceInfo_Extension::_internal_version() const { + const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* p = version_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_SourceInfo_Extension_Version_default_instance_); +} +inline const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& SourceInfo_Extension::version() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.version) + return _internal_version(); +} +inline void SourceInfo_Extension::unsafe_arena_set_allocated_version( + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_); + } + version_ = version; + if (version) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.SourceInfo.Extension.version) +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::release_version() { + + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* temp = version_; + version_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::unsafe_arena_release_version() { + // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.Extension.version) + + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* temp = version_; + version_ = nullptr; + return temp; +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::_internal_mutable_version() { + + if (version_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension_Version>(GetArenaForAllocation()); + version_ = p; + } + return version_; +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::mutable_version() { + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* _msg = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.Extension.version) + return _msg; +} +inline void SourceInfo_Extension::set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete version_; + } + if (version) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(version); + if (message_arena != submessage_arena) { + version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, version, submessage_arena); + } + + } else { + + } + version_ = version; + // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.Extension.version) +} + +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -5637,6 +6303,46 @@ SourceInfo::mutable_macro_calls() { return _internal_mutable_macro_calls(); } +// repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; +inline int SourceInfo::_internal_extensions_size() const { + return extensions_.size(); +} +inline int SourceInfo::extensions_size() const { + return _internal_extensions_size(); +} +inline void SourceInfo::clear_extensions() { + extensions_.Clear(); +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::mutable_extensions(int index) { + // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.extensions) + return extensions_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >* +SourceInfo::mutable_extensions() { + // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.SourceInfo.extensions) + return &extensions_; +} +inline const ::google::api::expr::v1alpha1::SourceInfo_Extension& SourceInfo::_internal_extensions(int index) const { + return extensions_.Get(index); +} +inline const ::google::api::expr::v1alpha1::SourceInfo_Extension& SourceInfo::extensions(int index) const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.extensions) + return _internal_extensions(index); +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::_internal_add_extensions() { + return extensions_.Add(); +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::add_extensions() { + ::google::api::expr::v1alpha1::SourceInfo_Extension* _add = _internal_add_extensions(); + // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.SourceInfo.extensions) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >& +SourceInfo::extensions() const { + // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.SourceInfo.extensions) + return extensions_; +} + // ------------------------------------------------------------------- // SourcePosition @@ -5780,6 +6486,10 @@ inline void SourcePosition::set_column(int32_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -5788,6 +6498,16 @@ inline void SourcePosition::set_column(int32_t value) { } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::google::api::expr::v1alpha1::SourceInfo_Extension_Component> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::expr::v1alpha1::SourceInfo_Extension_Component>() { + return ::google::api::expr::v1alpha1::SourceInfo_Extension_Component_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) #include diff --git a/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h index f5d277067..77967d83b 100644 --- a/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h @@ -2,7 +2,7 @@ // If you make any local change, they will be lost. // source: google/api/expr/v1alpha1/value.proto // Original file comments: -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/viam/api/google/api/field_behavior.pb.cc b/src/viam/api/google/api/field_behavior.pb.cc index b49afe2b0..2d3c65d82 100644 --- a/src/viam/api/google/api/field_behavior.pb.cc +++ b/src/viam/api/google/api/field_behavior.pb.cc @@ -37,20 +37,20 @@ const char descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto[] P "ECIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n" "\013OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTA" "BLE\020\005\022\022\n\016UNORDERED_LIST\020\006\022\025\n\021NON_EMPTY_D" - "EFAULT\020\007\022\016\n\nIDENTIFIER\020\010:`\n\016field_behavi" + "EFAULT\020\007\022\016\n\nIDENTIFIER\020\010:d\n\016field_behavi" "or\022\035.google.protobuf.FieldOptions\030\234\010 \003(\016" - "2\031.google.api.FieldBehaviorR\rfieldBehavi" - "orBp\n\016com.google.apiB\022FieldBehaviorProto" - "P\001ZAgoogle.golang.org/genproto/googleapi" - "s/api/annotations;annotations\242\002\004GAPIb\006pr" - "oto3" + "2\031.google.api.FieldBehaviorB\002\020\000R\rfieldBe" + "haviorBp\n\016com.google.apiB\022FieldBehaviorP" + "rotoP\001ZAgoogle.golang.org/genproto/googl" + "eapis/api/annotations;annotations\242\002\004GAPI" + "b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; static ::_pbi::once_flag descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto = { - false, false, 484, descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto, + false, false, 488, descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto, "google/api/field_behavior.proto", &descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once, descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps, 1, 0, schemas, file_default_instances, TableStruct_google_2fapi_2ffield_5fbehavior_2eproto::offsets, @@ -87,7 +87,7 @@ bool FieldBehavior_IsValid(int value) { } PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, true> + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false> field_behavior(kFieldBehaviorFieldNumber, static_cast< ::google::api::FieldBehavior >(0), nullptr); // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/google/api/field_behavior.pb.h b/src/viam/api/google/api/field_behavior.pb.h index 21af7183d..b0cc68eeb 100644 --- a/src/viam/api/google/api/field_behavior.pb.h +++ b/src/viam/api/google/api/field_behavior.pb.h @@ -88,7 +88,7 @@ inline bool FieldBehavior_Parse( static const int kFieldBehaviorFieldNumber = 1052; extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, true > + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false > field_behavior; // =================================================================== diff --git a/src/viam/api/robot/v1/robot.grpc.pb.cc b/src/viam/api/robot/v1/robot.grpc.pb.cc index 5967b0dbb..19b414127 100644 --- a/src/viam/api/robot/v1/robot.grpc.pb.cc +++ b/src/viam/api/robot/v1/robot.grpc.pb.cc @@ -39,6 +39,8 @@ static const char* RobotService_method_names[] = { "/viam.robot.v1.RobotService/StopAll", "/viam.robot.v1.RobotService/StartSession", "/viam.robot.v1.RobotService/SendSessionHeartbeat", + "/viam.robot.v1.RobotService/Log", + "/viam.robot.v1.RobotService/GetCloudMetadata", }; std::unique_ptr< RobotService::Stub> RobotService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -63,6 +65,8 @@ RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chann , rpcmethod_StopAll_(RobotService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_StartSession_(RobotService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_SendSessionHeartbeat_(RobotService_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Log_(RobotService_method_names[15], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCloudMetadata_(RobotService_method_names[16], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status RobotService::Stub::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::viam::robot::v1::GetOperationsResponse* response) { @@ -403,6 +407,52 @@ ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatRespon return result; } +::grpc::Status RobotService::Stub::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::viam::robot::v1::LogResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Log_, context, request, response); +} + +void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>* RobotService::Stub::PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::LogResponse, ::viam::robot::v1::LogRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Log_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>* RobotService::Stub::AsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncLogRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status RobotService::Stub::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::viam::robot::v1::GetCloudMetadataResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCloudMetadata_, context, request, response); +} + +void RobotService::Stub::async::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* RobotService::Stub::PrepareAsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetCloudMetadataResponse, ::viam::robot::v1::GetCloudMetadataRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCloudMetadata_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* RobotService::Stub::AsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetCloudMetadataRaw(context, request, cq); + result->StartCall(); + return result; +} + RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[0], @@ -554,6 +604,26 @@ RobotService::Service::Service() { ::viam::robot::v1::SendSessionHeartbeatResponse* resp) { return service->SendSessionHeartbeat(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[15], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::LogRequest* req, + ::viam::robot::v1::LogResponse* resp) { + return service->Log(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[16], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::GetCloudMetadataRequest* req, + ::viam::robot::v1::GetCloudMetadataResponse* resp) { + return service->GetCloudMetadata(ctx, req, resp); + }, this))); } RobotService::Service::~Service() { @@ -664,6 +734,20 @@ ::grpc::Status RobotService::Service::SendSessionHeartbeat(::grpc::ServerContext return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status RobotService::Service::Log(::grpc::ServerContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status RobotService::Service::GetCloudMetadata(::grpc::ServerContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace viam } // namespace robot diff --git a/src/viam/api/robot/v1/robot.grpc.pb.h b/src/viam/api/robot/v1/robot.grpc.pb.h index c1d492006..20adc430b 100644 --- a/src/viam/api/robot/v1/robot.grpc.pb.h +++ b/src/viam/api/robot/v1/robot.grpc.pb.h @@ -156,6 +156,22 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::SendSessionHeartbeatResponse>> PrepareAsyncSendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::SendSessionHeartbeatResponse>>(PrepareAsyncSendSessionHeartbeatRaw(context, request, cq)); } + // Log sends logs to be logged by this robot. Currently used for module logging. + virtual ::grpc::Status Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::viam::robot::v1::LogResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::LogResponse>> AsyncLog(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::LogResponse>>(AsyncLogRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::LogResponse>> PrepareAsyncLog(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::LogResponse>>(PrepareAsyncLogRaw(context, request, cq)); + } + // GetCloudMetadata returns app-related information about the robot. + virtual ::grpc::Status GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::viam::robot::v1::GetCloudMetadataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetCloudMetadataResponse>> AsyncGetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetCloudMetadataResponse>>(AsyncGetCloudMetadataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetCloudMetadataResponse>> PrepareAsyncGetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetCloudMetadataResponse>>(PrepareAsyncGetCloudMetadataRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -199,6 +215,12 @@ class RobotService final { // SESSION_EXPIRED error will be returned. virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function) = 0; virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Log sends logs to be logged by this robot. Currently used for module logging. + virtual void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, std::function) = 0; + virtual void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetCloudMetadata returns app-related information about the robot. + virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function) = 0; + virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -235,6 +257,10 @@ class RobotService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::StartSessionResponse>* PrepareAsyncStartSessionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::SendSessionHeartbeatResponse>* AsyncSendSessionHeartbeatRaw(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::SendSessionHeartbeatResponse>* PrepareAsyncSendSessionHeartbeatRaw(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::LogResponse>* AsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::LogResponse>* PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetCloudMetadataResponse>* AsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetCloudMetadataResponse>* PrepareAsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -346,6 +372,20 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatResponse>> PrepareAsyncSendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatResponse>>(PrepareAsyncSendSessionHeartbeatRaw(context, request, cq)); } + ::grpc::Status Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::viam::robot::v1::LogResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>> AsyncLog(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>>(AsyncLogRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>> PrepareAsyncLog(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>>(PrepareAsyncLogRaw(context, request, cq)); + } + ::grpc::Status GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::viam::robot::v1::GetCloudMetadataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>> AsyncGetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>>(AsyncGetCloudMetadataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>> PrepareAsyncGetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>>(PrepareAsyncGetCloudMetadataRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -378,6 +418,10 @@ class RobotService final { void StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function) override; void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, std::function) override; + void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function) override; + void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -420,6 +464,10 @@ class RobotService final { ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StartSessionResponse>* PrepareAsyncStartSessionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatResponse>* AsyncSendSessionHeartbeatRaw(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatResponse>* PrepareAsyncSendSessionHeartbeatRaw(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>* AsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>* PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* AsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* PrepareAsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetOperations_; const ::grpc::internal::RpcMethod rpcmethod_GetSessions_; const ::grpc::internal::RpcMethod rpcmethod_ResourceNames_; @@ -435,6 +483,8 @@ class RobotService final { const ::grpc::internal::RpcMethod rpcmethod_StopAll_; const ::grpc::internal::RpcMethod rpcmethod_StartSession_; const ::grpc::internal::RpcMethod rpcmethod_SendSessionHeartbeat_; + const ::grpc::internal::RpcMethod rpcmethod_Log_; + const ::grpc::internal::RpcMethod rpcmethod_GetCloudMetadata_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -468,6 +518,10 @@ class RobotService final { // SendSessionHeartbeat sends a heartbeat to the given session. If the session has expired, a // SESSION_EXPIRED error will be returned. virtual ::grpc::Status SendSessionHeartbeat(::grpc::ServerContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response); + // Log sends logs to be logged by this robot. Currently used for module logging. + virtual ::grpc::Status Log(::grpc::ServerContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response); + // GetCloudMetadata returns app-related information about the robot. + virtual ::grpc::Status GetCloudMetadata(::grpc::ServerContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response); }; template class WithAsyncMethod_GetOperations : public BaseClass { @@ -769,7 +823,47 @@ class RobotService final { ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetOperations > > > > > > > > > > > > > > AsyncService; + template + class WithAsyncMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Log() { + ::grpc::Service::MarkMethodAsync(15); + } + ~WithAsyncMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestLog(::grpc::ServerContext* context, ::viam::robot::v1::LogRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::LogResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetCloudMetadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetCloudMetadata() { + ::grpc::Service::MarkMethodAsync(16); + } + ~WithAsyncMethod_GetCloudMetadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCloudMetadata(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCloudMetadata(::grpc::ServerContext* context, ::viam::robot::v1::GetCloudMetadataRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetCloudMetadataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetOperations > > > > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_GetOperations : public BaseClass { private: @@ -1170,7 +1264,61 @@ class RobotService final { virtual ::grpc::ServerUnaryReactor* SendSessionHeartbeat( ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::SendSessionHeartbeatRequest* /*request*/, ::viam::robot::v1::SendSessionHeartbeatResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_GetOperations > > > > > > > > > > > > > > CallbackService; + template + class WithCallbackMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Log() { + ::grpc::Service::MarkMethodCallback(15, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response) { return this->Log(context, request, response); }));} + void SetMessageAllocatorFor_Log( + ::grpc::MessageAllocator< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Log( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetCloudMetadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetCloudMetadata() { + ::grpc::Service::MarkMethodCallback(16, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response) { return this->GetCloudMetadata(context, request, response); }));} + void SetMessageAllocatorFor_GetCloudMetadata( + ::grpc::MessageAllocator< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetCloudMetadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCloudMetadata(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCloudMetadata( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetOperations > > > > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_GetOperations : public BaseClass { @@ -1428,6 +1576,40 @@ class RobotService final { } }; template + class WithGenericMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Log() { + ::grpc::Service::MarkMethodGeneric(15); + } + ~WithGenericMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetCloudMetadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetCloudMetadata() { + ::grpc::Service::MarkMethodGeneric(16); + } + ~WithGenericMethod_GetCloudMetadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCloudMetadata(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1728,6 +1910,46 @@ class RobotService final { } }; template + class WithRawMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Log() { + ::grpc::Service::MarkMethodRaw(15); + } + ~WithRawMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestLog(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetCloudMetadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetCloudMetadata() { + ::grpc::Service::MarkMethodRaw(16); + } + ~WithRawMethod_GetCloudMetadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCloudMetadata(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCloudMetadata(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawCallbackMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -2058,6 +2280,50 @@ class RobotService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Log() { + ::grpc::Service::MarkMethodRawCallback(15, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Log(context, request, response); })); + } + ~WithRawCallbackMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Log( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetCloudMetadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetCloudMetadata() { + ::grpc::Service::MarkMethodRawCallback(16, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCloudMetadata(context, request, response); })); + } + ~WithRawCallbackMethod_GetCloudMetadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCloudMetadata(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCloudMetadata( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -2435,7 +2701,61 @@ class RobotService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedSendSessionHeartbeat(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::SendSessionHeartbeatRequest,::viam::robot::v1::SendSessionHeartbeatResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_Log : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Log() { + ::grpc::Service::MarkMethodStreamed(15, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>* streamer) { + return this->StreamedLog(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Log() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Log(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedLog(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::LogRequest,::viam::robot::v1::LogResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetCloudMetadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetCloudMetadata() { + ::grpc::Service::MarkMethodStreamed(16, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>* streamer) { + return this->StreamedGetCloudMetadata(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetCloudMetadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetCloudMetadata(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetCloudMetadata(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::GetCloudMetadataRequest,::viam::robot::v1::GetCloudMetadataResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_StreamStatus : public BaseClass { private: @@ -2464,7 +2784,7 @@ class RobotService final { virtual ::grpc::Status StreamedStreamStatus(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::robot::v1::StreamStatusRequest,::viam::robot::v1::StreamStatusResponse>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_StreamStatus SplitStreamedService; - typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/robot/v1/robot.pb.cc b/src/viam/api/robot/v1/robot.pb.cc index 9cdce02d3..af90ba152 100644 --- a/src/viam/api/robot/v1/robot.pb.cc +++ b/src/viam/api/robot/v1/robot.pb.cc @@ -504,10 +504,58 @@ struct SendSessionHeartbeatResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendSessionHeartbeatResponseDefaultTypeInternal _SendSessionHeartbeatResponse_default_instance_; +PROTOBUF_CONSTEXPR LogRequest::LogRequest( + ::_pbi::ConstantInitialized) + : logs_(){} +struct LogRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogRequestDefaultTypeInternal() {} + union { + LogRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogRequestDefaultTypeInternal _LogRequest_default_instance_; +PROTOBUF_CONSTEXPR LogResponse::LogResponse( + ::_pbi::ConstantInitialized){} +struct LogResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogResponseDefaultTypeInternal() {} + union { + LogResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogResponseDefaultTypeInternal _LogResponse_default_instance_; +PROTOBUF_CONSTEXPR GetCloudMetadataRequest::GetCloudMetadataRequest( + ::_pbi::ConstantInitialized){} +struct GetCloudMetadataRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCloudMetadataRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCloudMetadataRequestDefaultTypeInternal() {} + union { + GetCloudMetadataRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataRequestDefaultTypeInternal _GetCloudMetadataRequest_default_instance_; +PROTOBUF_CONSTEXPR GetCloudMetadataResponse::GetCloudMetadataResponse( + ::_pbi::ConstantInitialized) + : robot_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , primary_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetCloudMetadataResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCloudMetadataResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCloudMetadataResponseDefaultTypeInternal() {} + union { + GetCloudMetadataResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataResponseDefaultTypeInternal _GetCloudMetadataResponse_default_instance_; } // namespace v1 } // namespace robot } // namespace viam -static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[39]; +static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[43]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_robot_2fv1_2frobot_2eproto = nullptr; @@ -807,6 +855,34 @@ const uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTIO ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogRequest, logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, robot_part_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, primary_org_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, location_id_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfig)}, @@ -848,6 +924,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 274, -1, -1, sizeof(::viam::robot::v1::StartSessionResponse)}, { 282, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatRequest)}, { 289, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatResponse)}, + { 295, -1, -1, sizeof(::viam::robot::v1::LogRequest)}, + { 302, -1, -1, sizeof(::viam::robot::v1::LogResponse)}, + { 308, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataRequest)}, + { 314, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -890,6 +970,10 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::robot::v1::_StartSessionResponse_default_instance_._instance, &::viam::robot::v1::_SendSessionHeartbeatRequest_default_instance_._instance, &::viam::robot::v1::_SendSessionHeartbeatResponse_default_instance_._instance, + &::viam::robot::v1::_LogRequest_default_instance_._instance, + &::viam::robot::v1::_LogResponse_default_instance_._instance, + &::viam::robot::v1::_GetCloudMetadataRequest_default_instance_._instance, + &::viam::robot::v1::_GetCloudMetadataResponse_default_instance_._instance, }; const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -983,63 +1067,74 @@ const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTI "d\022D\n\020heartbeat_window\030\002 \001(\0132\031.google.pro" "tobuf.DurationR\017heartbeatWindow\"-\n\033SendS" "essionHeartbeatRequest\022\016\n\002id\030\001 \001(\tR\002id\"\036" - "\n\034SendSessionHeartbeatResponse*z\n\022PeerCo" - "nnectionType\022$\n PEER_CONNECTION_TYPE_UNS" - "PECIFIED\020\000\022\035\n\031PEER_CONNECTION_TYPE_GRPC\020" - "\001\022\037\n\033PEER_CONNECTION_TYPE_WEBRTC\020\0022\370\017\n\014R" - "obotService\022\200\001\n\rGetOperations\022#.viam.rob" - "ot.v1.GetOperationsRequest\032$.viam.robot." - "v1.GetOperationsResponse\"$\202\323\344\223\002\036\022\034/viam/" - "api/v1/operations/list\022x\n\013GetSessions\022!." - "viam.robot.v1.GetSessionsRequest\032\".viam." - "robot.v1.GetSessionsResponse\"\"\202\323\344\223\002\034\022\032/v" - "iam/api/v1/sessions/list\022\177\n\rResourceName" - "s\022#.viam.robot.v1.ResourceNamesRequest\032$" - ".viam.robot.v1.ResourceNamesResponse\"#\202\323" - "\344\223\002\035\022\033/viam/api/v1/resources/list\022\235\001\n\023Re" - "sourceRPCSubtypes\022).viam.robot.v1.Resour" - "ceRPCSubtypesRequest\032*.viam.robot.v1.Res" - "ourceRPCSubtypesResponse\"/\202\323\344\223\002)\022\'/viam/" - "api/v1/resource_rpc_subtypes/list\022\210\001\n\017Ca" - "ncelOperation\022%.viam.robot.v1.CancelOper" - "ationRequest\032&.viam.robot.v1.CancelOpera" - "tionResponse\"&\202\323\344\223\002 \"\036/viam/api/v1/opera" - "tions/cancel\022\215\001\n\021BlockForOperation\022\'.via" - "m.robot.v1.BlockForOperationRequest\032(.vi" - "am.robot.v1.BlockForOperationResponse\"%\202" - "\323\344\223\002\037\"\035/viam/api/v1/operations/block\022\224\001\n" - "\022DiscoverComponents\022(.viam.robot.v1.Disc" - "overComponentsRequest\032).viam.robot.v1.Di" - "scoverComponentsResponse\")\202\323\344\223\002#\022!/viam/" - "api/v1/discovery/components\022\220\001\n\021FrameSys" - "temConfig\022\'.viam.robot.v1.FrameSystemCon" - "figRequest\032(.viam.robot.v1.FrameSystemCo" - "nfigResponse\"(\202\323\344\223\002\"\022 /viam/api/v1/frame" - "_system/config\022\214\001\n\rTransformPose\022#.viam." - "robot.v1.TransformPoseRequest\032$.viam.rob" - "ot.v1.TransformPoseResponse\"0\202\323\344\223\002*\022(/vi" - "am/api/v1/frame_system/transform_pose\022\210\001" - "\n\014TransformPCD\022\".viam.robot.v1.Transform" - "PCDRequest\032#.viam.robot.v1.TransformPCDR" - "esponse\"/\202\323\344\223\002)\022\'/viam/api/v1/frame_syst" - "em/transform_pcd\022k\n\tGetStatus\022\037.viam.rob" - "ot.v1.GetStatusRequest\032 .viam.robot.v1.G" - "etStatusResponse\"\033\202\323\344\223\002\025\022\023/viam/api/v1/s" - "tatus\022}\n\014StreamStatus\022\".viam.robot.v1.St" - "reamStatusRequest\032#.viam.robot.v1.Stream" - "StatusResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/sta" - "tus/stream0\001\022g\n\007StopAll\022\035.viam.robot.v1." - "StopAllRequest\032\036.viam.robot.v1.StopAllRe" - "sponse\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_all\022v\n" - "\014StartSession\022\".viam.robot.v1.StartSessi" - "onRequest\032#.viam.robot.v1.StartSessionRe" - "sponse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessions\022\235\001" - "\n\024SendSessionHeartbeat\022*.viam.robot.v1.S" - "endSessionHeartbeatRequest\032+.viam.robot." - "v1.SendSessionHeartbeatResponse\",\202\323\344\223\002&\"" - "$/viam/api/v1/sessions/{id}/heartbeatB-\n" - "\021com.viam.robot.v1Z\030go.viam.com/api/robo" - "t/v1b\006proto3" + "\n\034SendSessionHeartbeatResponse\":\n\nLogReq" + "uest\022,\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogE" + "ntryR\004logs\"\r\n\013LogResponse\"\031\n\027GetCloudMet" + "adataRequest\"\205\001\n\030GetCloudMetadataRespons" + "e\022\"\n\rrobot_part_id\030\001 \001(\tR\013robotPartId\022$\n" + "\016primary_org_id\030\002 \001(\tR\014primaryOrgId\022\037\n\013l" + "ocation_id\030\003 \001(\tR\nlocationId*z\n\022PeerConn" + "ectionType\022$\n PEER_CONNECTION_TYPE_UNSPE" + "CIFIED\020\000\022\035\n\031PEER_CONNECTION_TYPE_GRPC\020\001\022" + "\037\n\033PEER_CONNECTION_TYPE_WEBRTC\020\0022\333\021\n\014Rob" + "otService\022\200\001\n\rGetOperations\022#.viam.robot" + ".v1.GetOperationsRequest\032$.viam.robot.v1" + ".GetOperationsResponse\"$\202\323\344\223\002\036\022\034/viam/ap" + "i/v1/operations/list\022x\n\013GetSessions\022!.vi" + "am.robot.v1.GetSessionsRequest\032\".viam.ro" + "bot.v1.GetSessionsResponse\"\"\202\323\344\223\002\034\022\032/via" + "m/api/v1/sessions/list\022\177\n\rResourceNames\022" + "#.viam.robot.v1.ResourceNamesRequest\032$.v" + "iam.robot.v1.ResourceNamesResponse\"#\202\323\344\223" + "\002\035\022\033/viam/api/v1/resources/list\022\235\001\n\023Reso" + "urceRPCSubtypes\022).viam.robot.v1.Resource" + "RPCSubtypesRequest\032*.viam.robot.v1.Resou" + "rceRPCSubtypesResponse\"/\202\323\344\223\002)\022\'/viam/ap" + "i/v1/resource_rpc_subtypes/list\022\210\001\n\017Canc" + "elOperation\022%.viam.robot.v1.CancelOperat" + "ionRequest\032&.viam.robot.v1.CancelOperati" + "onResponse\"&\202\323\344\223\002 \"\036/viam/api/v1/operati" + "ons/cancel\022\215\001\n\021BlockForOperation\022\'.viam." + "robot.v1.BlockForOperationRequest\032(.viam" + ".robot.v1.BlockForOperationResponse\"%\202\323\344" + "\223\002\037\"\035/viam/api/v1/operations/block\022\224\001\n\022D" + "iscoverComponents\022(.viam.robot.v1.Discov" + "erComponentsRequest\032).viam.robot.v1.Disc" + "overComponentsResponse\")\202\323\344\223\002#\022!/viam/ap" + "i/v1/discovery/components\022\220\001\n\021FrameSyste" + "mConfig\022\'.viam.robot.v1.FrameSystemConfi" + "gRequest\032(.viam.robot.v1.FrameSystemConf" + "igResponse\"(\202\323\344\223\002\"\022 /viam/api/v1/frame_s" + "ystem/config\022\214\001\n\rTransformPose\022#.viam.ro" + "bot.v1.TransformPoseRequest\032$.viam.robot" + ".v1.TransformPoseResponse\"0\202\323\344\223\002*\022(/viam" + "/api/v1/frame_system/transform_pose\022\210\001\n\014" + "TransformPCD\022\".viam.robot.v1.TransformPC" + "DRequest\032#.viam.robot.v1.TransformPCDRes" + "ponse\"/\202\323\344\223\002)\022\'/viam/api/v1/frame_system" + "/transform_pcd\022k\n\tGetStatus\022\037.viam.robot" + ".v1.GetStatusRequest\032 .viam.robot.v1.Get" + "StatusResponse\"\033\202\323\344\223\002\025\022\023/viam/api/v1/sta" + "tus\022}\n\014StreamStatus\022\".viam.robot.v1.Stre" + "amStatusRequest\032#.viam.robot.v1.StreamSt" + "atusResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/statu" + "s/stream0\001\022g\n\007StopAll\022\035.viam.robot.v1.St" + "opAllRequest\032\036.viam.robot.v1.StopAllResp" + "onse\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_all\022v\n\014S" + "tartSession\022\".viam.robot.v1.StartSession" + "Request\032#.viam.robot.v1.StartSessionResp" + "onse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessions\022\235\001\n\024" + "SendSessionHeartbeat\022*.viam.robot.v1.Sen" + "dSessionHeartbeatRequest\032+.viam.robot.v1" + ".SendSessionHeartbeatResponse\",\202\323\344\223\002&\"$/" + "viam/api/v1/sessions/{id}/heartbeat\022V\n\003L" + "og\022\031.viam.robot.v1.LogRequest\032\032.viam.rob" + "ot.v1.LogResponse\"\030\202\323\344\223\002\022\"\020/viam/api/v1/" + "log\022\210\001\n\020GetCloudMetadata\022&.viam.robot.v1" + ".GetCloudMetadataRequest\032\'.viam.robot.v1" + ".GetCloudMetadataResponse\"#\202\323\344\223\002\035\022\033/viam" + "/api/v1/cloud_metadataB-\n\021com.viam.robot" + ".v1Z\030go.viam.com/api/robot/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -1050,9 +1145,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_ }; static ::_pbi::once_flag descriptor_table_robot_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto = { - false, false, 5852, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, + false, false, 6317, 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, 39, + &descriptor_table_robot_2fv1_2frobot_2eproto_once, descriptor_table_robot_2fv1_2frobot_2eproto_deps, 5, 43, schemas, file_default_instances, TableStruct_robot_2fv1_2frobot_2eproto::offsets, file_level_metadata_robot_2fv1_2frobot_2eproto, file_level_enum_descriptors_robot_2fv1_2frobot_2eproto, file_level_service_descriptors_robot_2fv1_2frobot_2eproto, @@ -8204,6 +8299,556 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SendSessionHeartbeatResponse::GetMetadata() co file_level_metadata_robot_2fv1_2frobot_2eproto[38]); } +// =================================================================== + +class LogRequest::_Internal { + public: +}; + +void LogRequest::clear_logs() { + logs_.Clear(); +} +LogRequest::LogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + logs_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.LogRequest) +} +LogRequest::LogRequest(const LogRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + logs_(from.logs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.LogRequest) +} + +inline void LogRequest::SharedCtor() { +} + +LogRequest::~LogRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.LogRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void LogRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void LogRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void LogRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.LogRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* LogRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.LogRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_logs_size()); i < n; i++) { + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.LogRequest) + return target; +} + +size_t LogRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.LogRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + total_size += 1UL * this->_internal_logs_size(); + for (const auto& msg : this->logs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LogRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogRequest::GetClassData() const { return &_class_data_; } + +void LogRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void LogRequest::MergeFrom(const LogRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.LogRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + logs_.MergeFrom(from.logs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void LogRequest::CopyFrom(const LogRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.LogRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LogRequest::IsInitialized() const { + return true; +} + +void LogRequest::InternalSwap(LogRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + logs_.InternalSwap(&other->logs_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LogRequest::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[39]); +} + +// =================================================================== + +class LogResponse::_Internal { + public: +}; + +LogResponse::LogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.LogResponse) +} +LogResponse::LogResponse(const LogResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.LogResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata LogResponse::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[40]); +} + +// =================================================================== + +class GetCloudMetadataRequest::_Internal { + public: +}; + +GetCloudMetadataRequest::GetCloudMetadataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetCloudMetadataRequest) +} +GetCloudMetadataRequest::GetCloudMetadataRequest(const GetCloudMetadataRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetCloudMetadataRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCloudMetadataRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCloudMetadataRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata GetCloudMetadataRequest::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[41]); +} + +// =================================================================== + +class GetCloudMetadataResponse::_Internal { + public: +}; + +GetCloudMetadataResponse::GetCloudMetadataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetCloudMetadataResponse) +} +GetCloudMetadataResponse::GetCloudMetadataResponse(const GetCloudMetadataResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + robot_part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_part_id().empty()) { + robot_part_id_.Set(from._internal_robot_part_id(), + GetArenaForAllocation()); + } + primary_org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_primary_org_id().empty()) { + primary_org_id_.Set(from._internal_primary_org_id(), + GetArenaForAllocation()); + } + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetCloudMetadataResponse) +} + +inline void GetCloudMetadataResponse::SharedCtor() { +robot_part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +primary_org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetCloudMetadataResponse::~GetCloudMetadataResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.GetCloudMetadataResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetCloudMetadataResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + robot_part_id_.Destroy(); + primary_org_id_.Destroy(); + location_id_.Destroy(); +} + +void GetCloudMetadataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetCloudMetadataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetCloudMetadataResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + robot_part_id_.ClearToEmpty(); + primary_org_id_.ClearToEmpty(); + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCloudMetadataResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string robot_part_id = 1 [json_name = "robotPartId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.robot_part_id")); + } else + goto handle_unusual; + continue; + // string primary_org_id = 2 [json_name = "primaryOrgId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_primary_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.primary_org_id")); + } else + goto handle_unusual; + continue; + // string location_id = 3 [json_name = "locationId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.location_id")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetCloudMetadataResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetCloudMetadataResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string robot_part_id = 1 [json_name = "robotPartId"]; + if (!this->_internal_robot_part_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_part_id().data(), static_cast(this->_internal_robot_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.robot_part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_part_id(), target); + } + + // string primary_org_id = 2 [json_name = "primaryOrgId"]; + if (!this->_internal_primary_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_primary_org_id().data(), static_cast(this->_internal_primary_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.primary_org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_primary_org_id(), target); + } + + // string location_id = 3 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.location_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_location_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.GetCloudMetadataResponse) + return target; +} + +size_t GetCloudMetadataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetCloudMetadataResponse) + 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 robot_part_id = 1 [json_name = "robotPartId"]; + if (!this->_internal_robot_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_part_id()); + } + + // string primary_org_id = 2 [json_name = "primaryOrgId"]; + if (!this->_internal_primary_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_primary_org_id()); + } + + // string location_id = 3 [json_name = "locationId"]; + if (!this->_internal_location_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCloudMetadataResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCloudMetadataResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCloudMetadataResponse::GetClassData() const { return &_class_data_; } + +void GetCloudMetadataResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetCloudMetadataResponse::MergeFrom(const GetCloudMetadataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetCloudMetadataResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_robot_part_id().empty()) { + _internal_set_robot_part_id(from._internal_robot_part_id()); + } + if (!from._internal_primary_org_id().empty()) { + _internal_set_primary_org_id(from._internal_primary_org_id()); + } + if (!from._internal_location_id().empty()) { + _internal_set_location_id(from._internal_location_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetCloudMetadataResponse::CopyFrom(const GetCloudMetadataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetCloudMetadataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCloudMetadataResponse::IsInitialized() const { + return true; +} + +void GetCloudMetadataResponse::InternalSwap(GetCloudMetadataResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_part_id_, lhs_arena, + &other->robot_part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &primary_org_id_, lhs_arena, + &other->primary_org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCloudMetadataResponse::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[42]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace robot @@ -8365,6 +9010,22 @@ template<> PROTOBUF_NOINLINE ::viam::robot::v1::SendSessionHeartbeatResponse* Arena::CreateMaybeMessage< ::viam::robot::v1::SendSessionHeartbeatResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::robot::v1::SendSessionHeartbeatResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::robot::v1::LogRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::LogRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::LogRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::LogResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::LogResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::LogResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetCloudMetadataRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetCloudMetadataRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetCloudMetadataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetCloudMetadataResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetCloudMetadataResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetCloudMetadataResponse >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/src/viam/api/robot/v1/robot.pb.h b/src/viam/api/robot/v1/robot.pb.h index bc1ec3201..6b1254ad1 100644 --- a/src/viam/api/robot/v1/robot.pb.h +++ b/src/viam/api/robot/v1/robot.pb.h @@ -87,6 +87,12 @@ extern FrameSystemConfigRequestDefaultTypeInternal _FrameSystemConfigRequest_def class FrameSystemConfigResponse; struct FrameSystemConfigResponseDefaultTypeInternal; extern FrameSystemConfigResponseDefaultTypeInternal _FrameSystemConfigResponse_default_instance_; +class GetCloudMetadataRequest; +struct GetCloudMetadataRequestDefaultTypeInternal; +extern GetCloudMetadataRequestDefaultTypeInternal _GetCloudMetadataRequest_default_instance_; +class GetCloudMetadataResponse; +struct GetCloudMetadataResponseDefaultTypeInternal; +extern GetCloudMetadataResponseDefaultTypeInternal _GetCloudMetadataResponse_default_instance_; class GetOperationsRequest; struct GetOperationsRequestDefaultTypeInternal; extern GetOperationsRequestDefaultTypeInternal _GetOperationsRequest_default_instance_; @@ -105,6 +111,12 @@ extern GetStatusRequestDefaultTypeInternal _GetStatusRequest_default_instance_; class GetStatusResponse; struct GetStatusResponseDefaultTypeInternal; extern GetStatusResponseDefaultTypeInternal _GetStatusResponse_default_instance_; +class LogRequest; +struct LogRequestDefaultTypeInternal; +extern LogRequestDefaultTypeInternal _LogRequest_default_instance_; +class LogResponse; +struct LogResponseDefaultTypeInternal; +extern LogResponseDefaultTypeInternal _LogResponse_default_instance_; class Operation; struct OperationDefaultTypeInternal; extern OperationDefaultTypeInternal _Operation_default_instance_; @@ -186,12 +198,16 @@ template<> ::viam::robot::v1::DiscoveryQuery* Arena::CreateMaybeMessage<::viam:: template<> ::viam::robot::v1::FrameSystemConfig* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfig>(Arena*); template<> ::viam::robot::v1::FrameSystemConfigRequest* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfigRequest>(Arena*); template<> ::viam::robot::v1::FrameSystemConfigResponse* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfigResponse>(Arena*); +template<> ::viam::robot::v1::GetCloudMetadataRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetCloudMetadataRequest>(Arena*); +template<> ::viam::robot::v1::GetCloudMetadataResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetCloudMetadataResponse>(Arena*); template<> ::viam::robot::v1::GetOperationsRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetOperationsRequest>(Arena*); template<> ::viam::robot::v1::GetOperationsResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetOperationsResponse>(Arena*); template<> ::viam::robot::v1::GetSessionsRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetSessionsRequest>(Arena*); template<> ::viam::robot::v1::GetSessionsResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetSessionsResponse>(Arena*); template<> ::viam::robot::v1::GetStatusRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetStatusRequest>(Arena*); template<> ::viam::robot::v1::GetStatusResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetStatusResponse>(Arena*); +template<> ::viam::robot::v1::LogRequest* Arena::CreateMaybeMessage<::viam::robot::v1::LogRequest>(Arena*); +template<> ::viam::robot::v1::LogResponse* Arena::CreateMaybeMessage<::viam::robot::v1::LogResponse>(Arena*); template<> ::viam::robot::v1::Operation* Arena::CreateMaybeMessage<::viam::robot::v1::Operation>(Arena*); template<> ::viam::robot::v1::PeerConnectionInfo* Arena::CreateMaybeMessage<::viam::robot::v1::PeerConnectionInfo>(Arena*); template<> ::viam::robot::v1::ResourceNamesRequest* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceNamesRequest>(Arena*); @@ -6215,6 +6231,570 @@ class SendSessionHeartbeatResponse final : typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; }; +// ------------------------------------------------------------------- + +class LogRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.LogRequest) */ { + public: + inline LogRequest() : LogRequest(nullptr) {} + ~LogRequest() override; + explicit PROTOBUF_CONSTEXPR LogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogRequest(const LogRequest& from); + LogRequest(LogRequest&& from) noexcept + : LogRequest() { + *this = ::std::move(from); + } + + inline LogRequest& operator=(const LogRequest& from) { + CopyFrom(from); + return *this; + } + inline LogRequest& operator=(LogRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const LogRequest& default_instance() { + return *internal_default_instance(); + } + static inline const LogRequest* internal_default_instance() { + return reinterpret_cast( + &_LogRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 39; + + friend void swap(LogRequest& a, LogRequest& b) { + a.Swap(&b); + } + inline void Swap(LogRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LogRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LogRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.LogRequest"; + } + protected: + explicit LogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kLogsFieldNumber = 1, + }; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + int logs_size() const; + private: + int _internal_logs_size() const; + public: + void clear_logs(); + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* + mutable_logs(); + private: + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); + public: + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& + logs() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.LogRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class LogResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.LogResponse) */ { + public: + inline LogResponse() : LogResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR LogResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogResponse(const LogResponse& from); + LogResponse(LogResponse&& from) noexcept + : LogResponse() { + *this = ::std::move(from); + } + + inline LogResponse& operator=(const LogResponse& from) { + CopyFrom(from); + return *this; + } + inline LogResponse& operator=(LogResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const LogResponse& default_instance() { + return *internal_default_instance(); + } + static inline const LogResponse* internal_default_instance() { + return reinterpret_cast( + &_LogResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + friend void swap(LogResponse& a, LogResponse& b) { + a.Swap(&b); + } + inline void Swap(LogResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LogResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.LogResponse"; + } + protected: + explicit LogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.LogResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCloudMetadataRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetCloudMetadataRequest) */ { + public: + inline GetCloudMetadataRequest() : GetCloudMetadataRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetCloudMetadataRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetCloudMetadataRequest(const GetCloudMetadataRequest& from); + GetCloudMetadataRequest(GetCloudMetadataRequest&& from) noexcept + : GetCloudMetadataRequest() { + *this = ::std::move(from); + } + + inline GetCloudMetadataRequest& operator=(const GetCloudMetadataRequest& from) { + CopyFrom(from); + return *this; + } + inline GetCloudMetadataRequest& operator=(GetCloudMetadataRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetCloudMetadataRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetCloudMetadataRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCloudMetadataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + friend void swap(GetCloudMetadataRequest& a, GetCloudMetadataRequest& b) { + a.Swap(&b); + } + inline void Swap(GetCloudMetadataRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetCloudMetadataRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetCloudMetadataRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetCloudMetadataRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetCloudMetadataRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetCloudMetadataRequest"; + } + protected: + explicit GetCloudMetadataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetCloudMetadataRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCloudMetadataResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetCloudMetadataResponse) */ { + public: + inline GetCloudMetadataResponse() : GetCloudMetadataResponse(nullptr) {} + ~GetCloudMetadataResponse() override; + explicit PROTOBUF_CONSTEXPR GetCloudMetadataResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetCloudMetadataResponse(const GetCloudMetadataResponse& from); + GetCloudMetadataResponse(GetCloudMetadataResponse&& from) noexcept + : GetCloudMetadataResponse() { + *this = ::std::move(from); + } + + inline GetCloudMetadataResponse& operator=(const GetCloudMetadataResponse& from) { + CopyFrom(from); + return *this; + } + inline GetCloudMetadataResponse& operator=(GetCloudMetadataResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetCloudMetadataResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetCloudMetadataResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCloudMetadataResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 42; + + friend void swap(GetCloudMetadataResponse& a, GetCloudMetadataResponse& b) { + a.Swap(&b); + } + inline void Swap(GetCloudMetadataResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetCloudMetadataResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetCloudMetadataResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCloudMetadataResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCloudMetadataResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCloudMetadataResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetCloudMetadataResponse"; + } + protected: + explicit GetCloudMetadataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRobotPartIdFieldNumber = 1, + kPrimaryOrgIdFieldNumber = 2, + kLocationIdFieldNumber = 3, + }; + // string robot_part_id = 1 [json_name = "robotPartId"]; + void clear_robot_part_id(); + const std::string& robot_part_id() const; + template + void set_robot_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_part_id(); + PROTOBUF_NODISCARD std::string* release_robot_part_id(); + void set_allocated_robot_part_id(std::string* robot_part_id); + private: + const std::string& _internal_robot_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_part_id(const std::string& value); + std::string* _internal_mutable_robot_part_id(); + public: + + // string primary_org_id = 2 [json_name = "primaryOrgId"]; + void clear_primary_org_id(); + const std::string& primary_org_id() const; + template + void set_primary_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_primary_org_id(); + PROTOBUF_NODISCARD std::string* release_primary_org_id(); + void set_allocated_primary_org_id(std::string* primary_org_id); + private: + const std::string& _internal_primary_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_org_id(const std::string& value); + std::string* _internal_mutable_primary_org_id(); + public: + + // string location_id = 3 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetCloudMetadataResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; // =================================================================== @@ -9402,6 +9982,209 @@ inline void SendSessionHeartbeatRequest::set_allocated_id(std::string* id) { // SendSessionHeartbeatResponse +// ------------------------------------------------------------------- + +// LogRequest + +// repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; +inline int LogRequest::_internal_logs_size() const { + return logs_.size(); +} +inline int LogRequest::logs_size() const { + return _internal_logs_size(); +} +inline ::viam::common::v1::LogEntry* LogRequest::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.LogRequest.logs) + return logs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* +LogRequest::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.LogRequest.logs) + return &logs_; +} +inline const ::viam::common::v1::LogEntry& LogRequest::_internal_logs(int index) const { + return logs_.Get(index); +} +inline const ::viam::common::v1::LogEntry& LogRequest::logs(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.LogRequest.logs) + return _internal_logs(index); +} +inline ::viam::common::v1::LogEntry* LogRequest::_internal_add_logs() { + return logs_.Add(); +} +inline ::viam::common::v1::LogEntry* LogRequest::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); + // @@protoc_insertion_point(field_add:viam.robot.v1.LogRequest.logs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& +LogRequest::logs() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.LogRequest.logs) + return logs_; +} + +// ------------------------------------------------------------------- + +// LogResponse + +// ------------------------------------------------------------------- + +// GetCloudMetadataRequest + +// ------------------------------------------------------------------- + +// GetCloudMetadataResponse + +// string robot_part_id = 1 [json_name = "robotPartId"]; +inline void GetCloudMetadataResponse::clear_robot_part_id() { + robot_part_id_.ClearToEmpty(); +} +inline const std::string& GetCloudMetadataResponse::robot_part_id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) + return _internal_robot_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_robot_part_id(ArgT0&& arg0, ArgT... args) { + + robot_part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) +} +inline std::string* GetCloudMetadataResponse::mutable_robot_part_id() { + std::string* _s = _internal_mutable_robot_part_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) + return _s; +} +inline const std::string& GetCloudMetadataResponse::_internal_robot_part_id() const { + return robot_part_id_.Get(); +} +inline void GetCloudMetadataResponse::_internal_set_robot_part_id(const std::string& value) { + + robot_part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::_internal_mutable_robot_part_id() { + + return robot_part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::release_robot_part_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) + return robot_part_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_robot_part_id(std::string* robot_part_id) { + if (robot_part_id != nullptr) { + + } else { + + } + robot_part_id_.SetAllocated(robot_part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_part_id_.IsDefault()) { + robot_part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) +} + +// string primary_org_id = 2 [json_name = "primaryOrgId"]; +inline void GetCloudMetadataResponse::clear_primary_org_id() { + primary_org_id_.ClearToEmpty(); +} +inline const std::string& GetCloudMetadataResponse::primary_org_id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) + return _internal_primary_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_primary_org_id(ArgT0&& arg0, ArgT... args) { + + primary_org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) +} +inline std::string* GetCloudMetadataResponse::mutable_primary_org_id() { + std::string* _s = _internal_mutable_primary_org_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) + return _s; +} +inline const std::string& GetCloudMetadataResponse::_internal_primary_org_id() const { + return primary_org_id_.Get(); +} +inline void GetCloudMetadataResponse::_internal_set_primary_org_id(const std::string& value) { + + primary_org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::_internal_mutable_primary_org_id() { + + return primary_org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::release_primary_org_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) + return primary_org_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_primary_org_id(std::string* primary_org_id) { + if (primary_org_id != nullptr) { + + } else { + + } + primary_org_id_.SetAllocated(primary_org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (primary_org_id_.IsDefault()) { + primary_org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) +} + +// string location_id = 3 [json_name = "locationId"]; +inline void GetCloudMetadataResponse::clear_location_id() { + location_id_.ClearToEmpty(); +} +inline const std::string& GetCloudMetadataResponse::location_id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.location_id) +} +inline std::string* GetCloudMetadataResponse::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.location_id) + return _s; +} +inline const std::string& GetCloudMetadataResponse::_internal_location_id() const { + return location_id_.Get(); +} +inline void GetCloudMetadataResponse::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::release_location_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.location_id) + return location_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.location_id) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -9481,6 +10264,14 @@ inline void SendSessionHeartbeatRequest::set_allocated_id(std::string* id) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/service/motion/v1/motion.grpc.pb.cc b/src/viam/api/service/motion/v1/motion.grpc.pb.cc index 6730dbe92..68a813a62 100644 --- a/src/viam/api/service/motion/v1/motion.grpc.pb.cc +++ b/src/viam/api/service/motion/v1/motion.grpc.pb.cc @@ -27,7 +27,6 @@ namespace v1 { static const char* MotionService_method_names[] = { "/viam.service.motion.v1.MotionService/Move", "/viam.service.motion.v1.MotionService/MoveOnMap", - "/viam.service.motion.v1.MotionService/MoveOnMapNew", "/viam.service.motion.v1.MotionService/MoveOnGlobe", "/viam.service.motion.v1.MotionService/GetPose", "/viam.service.motion.v1.MotionService/StopPlan", @@ -45,13 +44,12 @@ std::unique_ptr< MotionService::Stub> MotionService::NewStub(const std::shared_p MotionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) : channel_(channel), rpcmethod_Move_(MotionService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_MoveOnMap_(MotionService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveOnMapNew_(MotionService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveOnGlobe_(MotionService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPose_(MotionService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StopPlan_(MotionService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListPlanStatuses_(MotionService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPlan_(MotionService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(MotionService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveOnGlobe_(MotionService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPose_(MotionService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StopPlan_(MotionService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListPlanStatuses_(MotionService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPlan_(MotionService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(MotionService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MotionService::Stub::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::viam::service::motion::v1::MoveResponse* response) { @@ -100,29 +98,6 @@ ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapRespons return result; } -::grpc::Status MotionService::Stub::MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::viam::service::motion::v1::MoveOnMapNewResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveOnMapNew_, context, request, response); -} - -void MotionService::Stub::async::MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveOnMapNew_, context, request, response, std::move(f)); -} - -void MotionService::Stub::async::MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveOnMapNew_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>* MotionService::Stub::PrepareAsyncMoveOnMapNewRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::MoveOnMapNewResponse, ::viam::service::motion::v1::MoveOnMapNewRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveOnMapNew_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>* MotionService::Stub::AsyncMoveOnMapNewRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveOnMapNewRaw(context, request, cq); - result->StartCall(); - return result; -} - ::grpc::Status MotionService::Stub::MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::viam::service::motion::v1::MoveOnGlobeResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveOnGlobe_, context, request, response); } @@ -285,16 +260,6 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](MotionService::Service* service, - ::grpc::ServerContext* ctx, - const ::viam::service::motion::v1::MoveOnMapNewRequest* req, - ::viam::service::motion::v1::MoveOnMapNewResponse* resp) { - return service->MoveOnMapNew(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - MotionService_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MotionService::Service* service, ::grpc::ServerContext* ctx, @@ -303,7 +268,7 @@ MotionService::Service::Service() { return service->MoveOnGlobe(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MotionService_method_names[4], + MotionService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MotionService::Service* service, @@ -313,7 +278,7 @@ MotionService::Service::Service() { return service->GetPose(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MotionService_method_names[5], + MotionService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MotionService::Service* service, @@ -323,7 +288,7 @@ MotionService::Service::Service() { return service->StopPlan(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MotionService_method_names[6], + MotionService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MotionService::Service* service, @@ -333,7 +298,7 @@ MotionService::Service::Service() { return service->ListPlanStatuses(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MotionService_method_names[7], + MotionService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MotionService::Service* service, @@ -343,7 +308,7 @@ MotionService::Service::Service() { return service->GetPlan(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MotionService_method_names[8], + MotionService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MotionService::Service* service, @@ -371,13 +336,6 @@ ::grpc::Status MotionService::Service::MoveOnMap(::grpc::ServerContext* context, return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MotionService::Service::MoveOnMapNew(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status MotionService::Service::MoveOnGlobe(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response) { (void) context; (void) request; diff --git a/src/viam/api/service/motion/v1/motion.grpc.pb.h b/src/viam/api/service/motion/v1/motion.grpc.pb.h index c2ff7e39c..16762a664 100644 --- a/src/viam/api/service/motion/v1/motion.grpc.pb.h +++ b/src/viam/api/service/motion/v1/motion.grpc.pb.h @@ -46,6 +46,9 @@ class MotionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>> PrepareAsyncMove(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>>(PrepareAsyncMoveRaw(context, request, cq)); } + // Generate a plan and move a component to a specific pose + // with respect to the SLAM map's origin. + // May replan to avoid obstacles virtual ::grpc::Status MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::viam::service::motion::v1::MoveOnMapResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapResponse>> AsyncMoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapResponse>>(AsyncMoveOnMapRaw(context, request, cq)); @@ -53,16 +56,6 @@ class MotionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapResponse>> PrepareAsyncMoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapResponse>>(PrepareAsyncMoveOnMapRaw(context, request, cq)); } - // Generate a plan and move a component to a specific pose - // with respect to the SLAM map's origin. - // May replan to avoid obstacles - virtual ::grpc::Status MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::viam::service::motion::v1::MoveOnMapNewResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapNewResponse>> AsyncMoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapNewResponse>>(AsyncMoveOnMapNewRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapNewResponse>> PrepareAsyncMoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapNewResponse>>(PrepareAsyncMoveOnMapNewRaw(context, request, cq)); - } // Generate and begin executing an execution to move a component // to a specific GPS coordinate. // May replan to avoid obstacles & account for location drift. @@ -127,13 +120,11 @@ class MotionService final { virtual ~async_interface() {} virtual void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function) = 0; virtual void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function) = 0; - virtual void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Generate a plan and move a component to a specific pose // with respect to the SLAM map's origin. // May replan to avoid obstacles - virtual void MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response, std::function) = 0; - virtual void MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function) = 0; + virtual void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Generate and begin executing an execution to move a component // to a specific GPS coordinate. // May replan to avoid obstacles & account for location drift. @@ -172,8 +163,6 @@ class MotionService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapResponse>* AsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapResponse>* PrepareAsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapNewResponse>* AsyncMoveOnMapNewRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapNewResponse>* PrepareAsyncMoveOnMapNewRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnGlobeResponse>* AsyncMoveOnGlobeRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnGlobeResponse>* PrepareAsyncMoveOnGlobeRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::GetPoseResponse>* AsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -204,13 +193,6 @@ class MotionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>> PrepareAsyncMoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>>(PrepareAsyncMoveOnMapRaw(context, request, cq)); } - ::grpc::Status MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::viam::service::motion::v1::MoveOnMapNewResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>> AsyncMoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>>(AsyncMoveOnMapNewRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>> PrepareAsyncMoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>>(PrepareAsyncMoveOnMapNewRaw(context, request, cq)); - } ::grpc::Status MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::viam::service::motion::v1::MoveOnGlobeResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnGlobeResponse>> AsyncMoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnGlobeResponse>>(AsyncMoveOnGlobeRaw(context, request, cq)); @@ -260,8 +242,6 @@ class MotionService final { void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function) override; void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response, std::function) override; - void MoveOnMapNew(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function) override; void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function) override; @@ -289,8 +269,6 @@ class MotionService final { ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>* AsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>* PrepareAsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>* AsyncMoveOnMapNewRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapNewResponse>* PrepareAsyncMoveOnMapNewRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnGlobeResponse>* AsyncMoveOnGlobeRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnGlobeResponse>* PrepareAsyncMoveOnGlobeRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* AsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) override; @@ -305,7 +283,6 @@ class MotionService final { ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_Move_; const ::grpc::internal::RpcMethod rpcmethod_MoveOnMap_; - const ::grpc::internal::RpcMethod rpcmethod_MoveOnMapNew_; const ::grpc::internal::RpcMethod rpcmethod_MoveOnGlobe_; const ::grpc::internal::RpcMethod rpcmethod_GetPose_; const ::grpc::internal::RpcMethod rpcmethod_StopPlan_; @@ -320,11 +297,10 @@ class MotionService final { Service(); virtual ~Service(); virtual ::grpc::Status Move(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response); - virtual ::grpc::Status MoveOnMap(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response); // Generate a plan and move a component to a specific pose // with respect to the SLAM map's origin. // May replan to avoid obstacles - virtual ::grpc::Status MoveOnMapNew(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response); + virtual ::grpc::Status MoveOnMap(::grpc::ServerContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response); // Generate and begin executing an execution to move a component // to a specific GPS coordinate. // May replan to avoid obstacles & account for location drift. @@ -390,32 +366,12 @@ class MotionService final { } }; template - class WithAsyncMethod_MoveOnMapNew : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MoveOnMapNew() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_MoveOnMapNew() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveOnMapNew(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapNewRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapNewResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMoveOnMapNew(::grpc::ServerContext* context, ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::MoveOnMapNewResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithAsyncMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodAsync(3); + ::grpc::Service::MarkMethodAsync(2); } ~WithAsyncMethod_MoveOnGlobe() override { BaseClassMustBeDerivedFromService(this); @@ -426,7 +382,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMoveOnGlobe(::grpc::ServerContext* context, ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::MoveOnGlobeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -435,7 +391,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetPose() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(3); } ~WithAsyncMethod_GetPose() override { BaseClassMustBeDerivedFromService(this); @@ -446,7 +402,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetPose(::grpc::ServerContext* context, ::viam::service::motion::v1::GetPoseRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::GetPoseResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -455,7 +411,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_StopPlan() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(4); } ~WithAsyncMethod_StopPlan() override { BaseClassMustBeDerivedFromService(this); @@ -466,7 +422,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStopPlan(::grpc::ServerContext* context, ::viam::service::motion::v1::StopPlanRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::StopPlanResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -475,7 +431,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(5); } ~WithAsyncMethod_ListPlanStatuses() override { BaseClassMustBeDerivedFromService(this); @@ -486,7 +442,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListPlanStatuses(::grpc::ServerContext* context, ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::ListPlanStatusesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -495,7 +451,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetPlan() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_GetPlan() override { BaseClassMustBeDerivedFromService(this); @@ -506,7 +462,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetPlan(::grpc::ServerContext* context, ::viam::service::motion::v1::GetPlanRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::motion::v1::GetPlanResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -515,7 +471,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DoCommand() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -526,10 +482,10 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDoCommand(::grpc::ServerContext* context, ::viam::common::v1::DoCommandRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::DoCommandResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_Move > > > > > > > > AsyncService; + typedef WithAsyncMethod_Move > > > > > > > AsyncService; template class WithCallbackMethod_Move : public BaseClass { private: @@ -585,45 +541,18 @@ class MotionService final { ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapResponse* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_MoveOnMapNew : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_MoveOnMapNew() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::MoveOnMapNewRequest* request, ::viam::service::motion::v1::MoveOnMapNewResponse* response) { return this->MoveOnMapNew(context, request, response); }));} - void SetMessageAllocatorFor_MoveOnMapNew( - ::grpc::MessageAllocator< ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_MoveOnMapNew() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveOnMapNew(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapNewRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapNewResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* MoveOnMapNew( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapNewRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapNewResponse* /*response*/) { return nullptr; } - }; - template class WithCallbackMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodCallback(3, + ::grpc::Service::MarkMethodCallback(2, new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response) { return this->MoveOnGlobe(context, request, response); }));} void SetMessageAllocatorFor_MoveOnGlobe( ::grpc::MessageAllocator< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -644,13 +573,13 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetPose() { - ::grpc::Service::MarkMethodCallback(4, + ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response) { return this->GetPose(context, request, response); }));} void SetMessageAllocatorFor_GetPose( ::grpc::MessageAllocator< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -671,13 +600,13 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_StopPlan() { - ::grpc::Service::MarkMethodCallback(5, + ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response) { return this->StopPlan(context, request, response); }));} void SetMessageAllocatorFor_StopPlan( ::grpc::MessageAllocator< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -698,13 +627,13 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodCallback(6, + ::grpc::Service::MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response) { return this->ListPlanStatuses(context, request, response); }));} void SetMessageAllocatorFor_ListPlanStatuses( ::grpc::MessageAllocator< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -725,13 +654,13 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetPlan() { - ::grpc::Service::MarkMethodCallback(7, + ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response) { return this->GetPlan(context, request, response); }));} void SetMessageAllocatorFor_GetPlan( ::grpc::MessageAllocator< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -752,13 +681,13 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(8, + ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { return this->DoCommand(context, request, response); }));} void SetMessageAllocatorFor_DoCommand( ::grpc::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -773,7 +702,7 @@ class MotionService final { virtual ::grpc::ServerUnaryReactor* DoCommand( ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Move > > > > > > > > CallbackService; + typedef WithCallbackMethod_Move > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Move : public BaseClass { @@ -810,29 +739,12 @@ class MotionService final { } }; template - class WithGenericMethod_MoveOnMapNew : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MoveOnMapNew() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_MoveOnMapNew() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveOnMapNew(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapNewRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapNewResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodGeneric(3); + ::grpc::Service::MarkMethodGeneric(2); } ~WithGenericMethod_MoveOnGlobe() override { BaseClassMustBeDerivedFromService(this); @@ -849,7 +761,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetPose() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(3); } ~WithGenericMethod_GetPose() override { BaseClassMustBeDerivedFromService(this); @@ -866,7 +778,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_StopPlan() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(4); } ~WithGenericMethod_StopPlan() override { BaseClassMustBeDerivedFromService(this); @@ -883,7 +795,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(5); } ~WithGenericMethod_ListPlanStatuses() override { BaseClassMustBeDerivedFromService(this); @@ -900,7 +812,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetPlan() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_GetPlan() override { BaseClassMustBeDerivedFromService(this); @@ -917,7 +829,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DoCommand() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -969,32 +881,12 @@ class MotionService final { } }; template - class WithRawMethod_MoveOnMapNew : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MoveOnMapNew() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_MoveOnMapNew() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveOnMapNew(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapNewRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapNewResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMoveOnMapNew(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodRaw(3); + ::grpc::Service::MarkMethodRaw(2); } ~WithRawMethod_MoveOnGlobe() override { BaseClassMustBeDerivedFromService(this); @@ -1005,7 +897,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMoveOnGlobe(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1014,7 +906,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetPose() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(3); } ~WithRawMethod_GetPose() override { BaseClassMustBeDerivedFromService(this); @@ -1025,7 +917,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetPose(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1034,7 +926,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_StopPlan() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(4); } ~WithRawMethod_StopPlan() override { BaseClassMustBeDerivedFromService(this); @@ -1045,7 +937,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStopPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1054,7 +946,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(5); } ~WithRawMethod_ListPlanStatuses() override { BaseClassMustBeDerivedFromService(this); @@ -1065,7 +957,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListPlanStatuses(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1074,7 +966,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetPlan() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_GetPlan() override { BaseClassMustBeDerivedFromService(this); @@ -1085,7 +977,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1094,7 +986,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DoCommand() { - ::grpc::Service::MarkMethodRaw(8); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -1105,7 +997,7 @@ class MotionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDoCommand(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1153,34 +1045,12 @@ class MotionService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_MoveOnMapNew : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_MoveOnMapNew() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveOnMapNew(context, request, response); })); - } - ~WithRawCallbackMethod_MoveOnMapNew() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveOnMapNew(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapNewRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapNewResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* MoveOnMapNew( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template class WithRawCallbackMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodRawCallback(3, + ::grpc::Service::MarkMethodRawCallback(2, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveOnGlobe(context, request, response); })); @@ -1202,7 +1072,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetPose() { - ::grpc::Service::MarkMethodRawCallback(4, + ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPose(context, request, response); })); @@ -1224,7 +1094,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_StopPlan() { - ::grpc::Service::MarkMethodRawCallback(5, + ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StopPlan(context, request, response); })); @@ -1246,7 +1116,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodRawCallback(6, + ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListPlanStatuses(context, request, response); })); @@ -1268,7 +1138,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetPlan() { - ::grpc::Service::MarkMethodRawCallback(7, + ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPlan(context, request, response); })); @@ -1290,7 +1160,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(8, + ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); @@ -1361,39 +1231,12 @@ class MotionService final { virtual ::grpc::Status StreamedMoveOnMap(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::motion::v1::MoveOnMapRequest,::viam::service::motion::v1::MoveOnMapResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_MoveOnMapNew : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MoveOnMapNew() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< - ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::service::motion::v1::MoveOnMapNewRequest, ::viam::service::motion::v1::MoveOnMapNewResponse>* streamer) { - return this->StreamedMoveOnMapNew(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MoveOnMapNew() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MoveOnMapNew(::grpc::ServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapNewRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapNewResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMoveOnMapNew(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::motion::v1::MoveOnMapNewRequest,::viam::service::motion::v1::MoveOnMapNewResponse>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodStreamed(3, + ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>( [this](::grpc::ServerContext* context, @@ -1420,7 +1263,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetPose() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( [this](::grpc::ServerContext* context, @@ -1447,7 +1290,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_StopPlan() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>( [this](::grpc::ServerContext* context, @@ -1474,7 +1317,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>( [this](::grpc::ServerContext* context, @@ -1501,7 +1344,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetPlan() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>( [this](::grpc::ServerContext* context, @@ -1528,7 +1371,7 @@ class MotionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DoCommand() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [this](::grpc::ServerContext* context, @@ -1549,9 +1392,9 @@ class MotionService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedDoCommand(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest,::viam::common::v1::DoCommandResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Move > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_Move > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_Move > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_Move > > > > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/service/motion/v1/motion.pb.cc b/src/viam/api/service/motion/v1/motion.pb.cc index c5472471e..23299d2bb 100644 --- a/src/viam/api/service/motion/v1/motion.pb.cc +++ b/src/viam/api/service/motion/v1/motion.pb.cc @@ -53,41 +53,14 @@ struct MoveResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; -PROTOBUF_CONSTEXPR MoveOnMapNewRequest::MoveOnMapNewRequest( - ::_pbi::ConstantInitialized) - : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , destination_(nullptr) - , component_name_(nullptr) - , slam_service_name_(nullptr) - , motion_configuration_(nullptr) - , extra_(nullptr){} -struct MoveOnMapNewRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveOnMapNewRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveOnMapNewRequestDefaultTypeInternal() {} - union { - MoveOnMapNewRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapNewRequestDefaultTypeInternal _MoveOnMapNewRequest_default_instance_; -PROTOBUF_CONSTEXPR MoveOnMapNewResponse::MoveOnMapNewResponse( - ::_pbi::ConstantInitialized) - : execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} -struct MoveOnMapNewResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveOnMapNewResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveOnMapNewResponseDefaultTypeInternal() {} - union { - MoveOnMapNewResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapNewResponseDefaultTypeInternal _MoveOnMapNewResponse_default_instance_; PROTOBUF_CONSTEXPR MoveOnMapRequest::MoveOnMapRequest( ::_pbi::ConstantInitialized) - : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + : obstacles_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , destination_(nullptr) , component_name_(nullptr) , slam_service_name_(nullptr) + , motion_configuration_(nullptr) , extra_(nullptr){} struct MoveOnMapRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR MoveOnMapRequestDefaultTypeInternal() @@ -100,7 +73,7 @@ struct MoveOnMapRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapRequestDefaultTypeInternal _MoveOnMapRequest_default_instance_; PROTOBUF_CONSTEXPR MoveOnMapResponse::MoveOnMapResponse( ::_pbi::ConstantInitialized) - : success_(false){} + : execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct MoveOnMapResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR MoveOnMapResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -441,7 +414,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace motion } // namespace service } // namespace viam -static ::_pb::Metadata file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[30]; +static ::_pb::Metadata file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[28]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto = nullptr; @@ -471,32 +444,7 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveResponse, success_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, destination_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, slam_service_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, motion_configuration_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewRequest, extra_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapNewResponse, execution_id_), - ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -506,14 +454,23 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, destination_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, component_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, slam_service_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, motion_configuration_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, obstacles_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, extra_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, success_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, execution_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, _internal_metadata_), ~0u, // no _extensions_ @@ -753,41 +710,37 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 12, -1, sizeof(::viam::service::motion::v1::MoveRequest)}, { 18, -1, -1, sizeof(::viam::service::motion::v1::MoveResponse)}, - { 25, 37, -1, sizeof(::viam::service::motion::v1::MoveOnMapNewRequest)}, - { 43, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapNewResponse)}, - { 50, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapRequest)}, - { 61, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapResponse)}, - { 68, -1, -1, sizeof(::viam::service::motion::v1::ObstacleDetector)}, - { 76, 88, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, - { 94, 108, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, - { 116, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, - { 123, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, - { 134, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, - { 141, -1, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, - { 150, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, - { 156, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, - { 165, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, - { 172, 183, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, - { 188, -1, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, - { 196, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, - { 205, 213, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, - { 215, 222, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, - { 223, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, - { 231, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, - { 238, -1, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, - { 247, -1, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, - { 257, 266, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, - { 269, -1, -1, sizeof(::viam::service::motion::v1::Plan)}, - { 279, 287, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, - { 289, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, - { 296, -1, -1, sizeof(::viam::service::motion::v1::ComponentState)}, + { 25, 38, -1, sizeof(::viam::service::motion::v1::MoveOnMapRequest)}, + { 45, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapResponse)}, + { 52, -1, -1, sizeof(::viam::service::motion::v1::ObstacleDetector)}, + { 60, 72, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, + { 78, 92, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, + { 100, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, + { 107, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, + { 118, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, + { 125, -1, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, + { 134, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, + { 140, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, + { 149, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, + { 156, 167, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, + { 172, -1, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, + { 180, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, + { 189, 197, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, + { 199, 206, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, + { 207, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, + { 215, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, + { 222, -1, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, + { 231, -1, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, + { 241, 250, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, + { 253, -1, -1, sizeof(::viam::service::motion::v1::Plan)}, + { 263, 271, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, + { 273, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, + { 280, -1, -1, sizeof(::viam::service::motion::v1::ComponentState)}, }; static const ::_pb::Message* const file_default_instances[] = { &::viam::service::motion::v1::_MoveRequest_default_instance_._instance, &::viam::service::motion::v1::_MoveResponse_default_instance_._instance, - &::viam::service::motion::v1::_MoveOnMapNewRequest_default_instance_._instance, - &::viam::service::motion::v1::_MoveOnMapNewResponse_default_instance_._instance, &::viam::service::motion::v1::_MoveOnMapRequest_default_instance_._instance, &::viam::service::motion::v1::_MoveOnMapResponse_default_instance_._instance, &::viam::service::motion::v1::_ObstacleDetector_default_instance_._instance, @@ -832,175 +785,164 @@ const char descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto[] PR "\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" "uctR\005extraB\016\n\014_world_stateB\016\n\014_constrain" "ts\"(\n\014MoveResponse\022\030\n\007success\030\001 \001(\010R\007suc" - "cess\"\235\003\n\023MoveOnMapNewRequest\022\022\n\004name\030\001 \001" - "(\tR\004name\0226\n\013destination\030\002 \001(\0132\024.viam.com" - "mon.v1.PoseR\013destination\022C\n\016component_na" - "me\030\003 \001(\0132\034.viam.common.v1.ResourceNameR\r" - "componentName\022H\n\021slam_service_name\030\004 \001(\013" - "2\034.viam.common.v1.ResourceNameR\017slamServ" - "iceName\022c\n\024motion_configuration\030\005 \001(\0132+." - "viam.service.motion.v1.MotionConfigurati" - "onH\000R\023motionConfiguration\210\001\001\022-\n\005extra\030c " - "\001(\0132\027.google.protobuf.StructR\005extraB\027\n\025_" - "motion_configuration\"9\n\024MoveOnMapNewResp" - "onse\022!\n\014execution_id\030\001 \001(\tR\013executionId\"" - "\234\002\n\020MoveOnMapRequest\022\022\n\004name\030\001 \001(\tR\004name" - "\0226\n\013destination\030\002 \001(\0132\024.viam.common.v1.P" - "oseR\013destination\022C\n\016component_name\030\003 \001(\013" - "2\034.viam.common.v1.ResourceNameR\rcomponen" - "tName\022H\n\021slam_service_name\030\004 \001(\0132\034.viam." - "common.v1.ResourceNameR\017slamServiceName\022" - "-\n\005extra\030c \001(\0132\027.google.protobuf.StructR" - "\005extra\"-\n\021MoveOnMapResponse\022\030\n\007success\030\001" - " \001(\010R\007success\"\215\001\n\020ObstacleDetector\022C\n\016vi" - "sion_service\030\001 \001(\0132\034.viam.common.v1.Reso" - "urceNameR\rvisionService\0224\n\006camera\030\002 \001(\0132" - "\034.viam.common.v1.ResourceNameR\006camera\"\230\004" - "\n\023MotionConfiguration\022W\n\022obstacle_detect" - "ors\030\001 \003(\0132(.viam.service.motion.v1.Obsta" - "cleDetectorR\021obstacleDetectors\022F\n\035positi" - "on_polling_frequency_hz\030\002 \001(\001H\000R\032positio" - "nPollingFrequencyHz\210\001\001\022F\n\035obstacle_polli" - "ng_frequency_hz\030\003 \001(\001H\001R\032obstaclePolling" - "FrequencyHz\210\001\001\022-\n\020plan_deviation_m\030\004 \001(\001" - "H\002R\016planDeviationM\210\001\001\022,\n\020linear_m_per_se" - "c\030\005 \001(\001H\003R\rlinearMPerSec\210\001\001\0224\n\024angular_d" - "egs_per_sec\030\006 \001(\001H\004R\021angularDegsPerSec\210\001" - "\001B \n\036_position_polling_frequency_hzB \n\036_" - "obstacle_polling_frequency_hzB\023\n\021_plan_d" - "eviation_mB\023\n\021_linear_m_per_secB\027\n\025_angu" - "lar_degs_per_sec\"\214\004\n\022MoveOnGlobeRequest\022" - "\022\n\004name\030\001 \001(\tR\004name\022:\n\013destination\030\002 \001(\013" - "2\030.viam.common.v1.GeoPointR\013destination\022" - "\035\n\007heading\030\003 \001(\001H\000R\007heading\210\001\001\022C\n\016compon" - "ent_name\030\004 \001(\0132\034.viam.common.v1.Resource" - "NameR\rcomponentName\022N\n\024movement_sensor_n" - "ame\030\005 \001(\0132\034.viam.common.v1.ResourceNameR" - "\022movementSensorName\0229\n\tobstacles\030\006 \003(\0132\033" - ".viam.common.v1.GeoObstacleR\tobstacles\022c" - "\n\024motion_configuration\030\007 \001(\0132+.viam.serv" - "ice.motion.v1.MotionConfigurationH\001R\023mot" - "ionConfiguration\210\001\001\022-\n\005extra\030c \001(\0132\027.goo" - "gle.protobuf.StructR\005extraB\n\n\010_headingB\027" - "\n\025_motion_configuration\"8\n\023MoveOnGlobeRe" - "sponse\022!\n\014execution_id\030\001 \001(\tR\013executionI" - "d\"\231\002\n\016GetPoseRequest\022\022\n\004name\030\001 \001(\tR\004name" - "\022C\n\016component_name\030\002 \001(\0132\034.viam.common.v" - "1.ResourceNameR\rcomponentName\022+\n\021destina" - "tion_frame\030\003 \001(\tR\020destinationFrame\022R\n\027su" - "pplemental_transforms\030\004 \003(\0132\031.viam.commo" - "n.v1.TransformR\026supplementalTransforms\022-" - "\n\005extra\030c \001(\0132\027.google.protobuf.StructR\005" - "extra\"B\n\017GetPoseResponse\022/\n\004pose\030\001 \001(\0132\033" - ".viam.common.v1.PoseInFrameR\004pose\"\231\001\n\017St" - "opPlanRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016com" - "ponent_name\030\002 \001(\0132\034.viam.common.v1.Resou" - "rceNameR\rcomponentName\022-\n\005extra\030c \001(\0132\027." - "google.protobuf.StructR\005extra\"\022\n\020StopPla" - "nResponse\"\210\001\n\027ListPlanStatusesRequest\022\022\n" - "\004name\030\001 \001(\tR\004name\022*\n\021only_active_plans\030\002" - " \001(\010R\017onlyActivePlans\022-\n\005extra\030c \001(\0132\027.g" - "oogle.protobuf.StructR\005extra\"y\n\030ListPlan" - "StatusesResponse\022]\n\026plan_statuses_with_i" - "ds\030\001 \003(\0132(.viam.service.motion.v1.PlanSt" - "atusWithIDR\023planStatusesWithIds\"\367\001\n\016GetP" - "lanRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016compon" - "ent_name\030\002 \001(\0132\034.viam.common.v1.Resource" - "NameR\rcomponentName\022$\n\016last_plan_only\030\003 " - "\001(\010R\014lastPlanOnly\022&\n\014execution_id\030\004 \001(\tH" - "\000R\013executionId\210\001\001\022-\n\005extra\030c \001(\0132\027.googl" - "e.protobuf.StructR\005extraB\017\n\r_execution_i" - "d\"\301\001\n\017GetPlanResponse\022_\n\030current_plan_wi" - "th_status\030\001 \001(\0132&.viam.service.motion.v1" - ".PlanWithStatusR\025currentPlanWithStatus\022M" - "\n\016replan_history\030\002 \003(\0132&.viam.service.mo" - "tion.v1.PlanWithStatusR\rreplanHistory\"\263\002" - "\n\013Constraints\022U\n\021linear_constraint\030\001 \003(\013" - "2(.viam.service.motion.v1.LinearConstrai" - "ntR\020linearConstraint\022d\n\026orientation_cons" - "traint\030\002 \003(\0132-.viam.service.motion.v1.Or" - "ientationConstraintR\025orientationConstrai" - "nt\022g\n\027collision_specification\030\003 \003(\0132..vi" - "am.service.motion.v1.CollisionSpecificat" - "ionR\026collisionSpecification\"\273\001\n\020LinearCo" - "nstraint\022/\n\021line_tolerance_mm\030\001 \001(\002H\000R\017l" - "ineToleranceMm\210\001\001\022A\n\032orientation_toleran" - "ce_degs\030\002 \001(\002H\001R\030orientationToleranceDeg" - "s\210\001\001B\024\n\022_line_tolerance_mmB\035\n\033_orientati" - "on_tolerance_degs\"y\n\025OrientationConstrai" - "nt\022A\n\032orientation_tolerance_degs\030\001 \001(\002H\000" - "R\030orientationToleranceDegs\210\001\001B\035\n\033_orient" - "ation_tolerance_degs\"\301\001\n\026CollisionSpecif" - "ication\022]\n\006allows\030\001 \003(\0132E.viam.service.m" - "otion.v1.CollisionSpecification.AllowedF" - "rameCollisionsR\006allows\032H\n\026AllowedFrameCo" - "llisions\022\026\n\006frame1\030\001 \001(\tR\006frame1\022\026\n\006fram" - "e2\030\002 \001(\tR\006frame2\"\311\001\n\016PlanWithStatus\0220\n\004p" - "lan\030\001 \001(\0132\034.viam.service.motion.v1.PlanR" - "\004plan\022:\n\006status\030\002 \001(\0132\".viam.service.mot" - "ion.v1.PlanStatusR\006status\022I\n\016status_hist" - "ory\030\003 \003(\0132\".viam.service.motion.v1.PlanS" - "tatusR\rstatusHistory\"\317\001\n\020PlanStatusWithI" - "D\022\027\n\007plan_id\030\001 \001(\tR\006planId\022C\n\016component_" + "cess\"\322\003\n\020MoveOnMapRequest\022\022\n\004name\030\001 \001(\tR" + "\004name\0226\n\013destination\030\002 \001(\0132\024.viam.common" + ".v1.PoseR\013destination\022C\n\016component_name\030" + "\003 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" + "ponentName\022H\n\021slam_service_name\030\004 \001(\0132\034." + "viam.common.v1.ResourceNameR\017slamService" + "Name\022c\n\024motion_configuration\030\005 \001(\0132+.via" + "m.service.motion.v1.MotionConfigurationH" + "\000R\023motionConfiguration\210\001\001\0226\n\tobstacles\030\006" + " \003(\0132\030.viam.common.v1.GeometryR\tobstacle" + "s\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" + "tR\005extraB\027\n\025_motion_configuration\"6\n\021Mov" + "eOnMapResponse\022!\n\014execution_id\030\001 \001(\tR\013ex" + "ecutionId\"\215\001\n\020ObstacleDetector\022C\n\016vision" + "_service\030\001 \001(\0132\034.viam.common.v1.Resource" + "NameR\rvisionService\0224\n\006camera\030\002 \001(\0132\034.vi" + "am.common.v1.ResourceNameR\006camera\"\230\004\n\023Mo" + "tionConfiguration\022W\n\022obstacle_detectors\030" + "\001 \003(\0132(.viam.service.motion.v1.ObstacleD" + "etectorR\021obstacleDetectors\022F\n\035position_p" + "olling_frequency_hz\030\002 \001(\001H\000R\032positionPol" + "lingFrequencyHz\210\001\001\022F\n\035obstacle_polling_f" + "requency_hz\030\003 \001(\001H\001R\032obstaclePollingFreq" + "uencyHz\210\001\001\022-\n\020plan_deviation_m\030\004 \001(\001H\002R\016" + "planDeviationM\210\001\001\022,\n\020linear_m_per_sec\030\005 " + "\001(\001H\003R\rlinearMPerSec\210\001\001\0224\n\024angular_degs_" + "per_sec\030\006 \001(\001H\004R\021angularDegsPerSec\210\001\001B \n" + "\036_position_polling_frequency_hzB \n\036_obst" + "acle_polling_frequency_hzB\023\n\021_plan_devia" + "tion_mB\023\n\021_linear_m_per_secB\027\n\025_angular_" + "degs_per_sec\"\214\004\n\022MoveOnGlobeRequest\022\022\n\004n" + "ame\030\001 \001(\tR\004name\022:\n\013destination\030\002 \001(\0132\030.v" + "iam.common.v1.GeoPointR\013destination\022\035\n\007h" + "eading\030\003 \001(\001H\000R\007heading\210\001\001\022C\n\016component_" + "name\030\004 \001(\0132\034.viam.common.v1.ResourceName" + "R\rcomponentName\022N\n\024movement_sensor_name\030" + "\005 \001(\0132\034.viam.common.v1.ResourceNameR\022mov" + "ementSensorName\0229\n\tobstacles\030\006 \003(\0132\033.via" + "m.common.v1.GeoObstacleR\tobstacles\022c\n\024mo" + "tion_configuration\030\007 \001(\0132+.viam.service." + "motion.v1.MotionConfigurationH\001R\023motionC" + "onfiguration\210\001\001\022-\n\005extra\030c \001(\0132\027.google." + "protobuf.StructR\005extraB\n\n\010_headingB\027\n\025_m" + "otion_configuration\"8\n\023MoveOnGlobeRespon" + "se\022!\n\014execution_id\030\001 \001(\tR\013executionId\"\231\002" + "\n\016GetPoseRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016" + "component_name\030\002 \001(\0132\034.viam.common.v1.Re" + "sourceNameR\rcomponentName\022+\n\021destination" + "_frame\030\003 \001(\tR\020destinationFrame\022R\n\027supple" + "mental_transforms\030\004 \003(\0132\031.viam.common.v1" + ".TransformR\026supplementalTransforms\022-\n\005ex" + "tra\030c \001(\0132\027.google.protobuf.StructR\005extr" + "a\"B\n\017GetPoseResponse\022/\n\004pose\030\001 \001(\0132\033.via" + "m.common.v1.PoseInFrameR\004pose\"\231\001\n\017StopPl" + "anRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016compone" + "nt_name\030\002 \001(\0132\034.viam.common.v1.ResourceN" + "ameR\rcomponentName\022-\n\005extra\030c \001(\0132\027.goog" + "le.protobuf.StructR\005extra\"\022\n\020StopPlanRes" + "ponse\"\210\001\n\027ListPlanStatusesRequest\022\022\n\004nam" + "e\030\001 \001(\tR\004name\022*\n\021only_active_plans\030\002 \001(\010" + "R\017onlyActivePlans\022-\n\005extra\030c \001(\0132\027.googl" + "e.protobuf.StructR\005extra\"y\n\030ListPlanStat" + "usesResponse\022]\n\026plan_statuses_with_ids\030\001" + " \003(\0132(.viam.service.motion.v1.PlanStatus" + "WithIDR\023planStatusesWithIds\"\367\001\n\016GetPlanR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016component_" "name\030\002 \001(\0132\034.viam.common.v1.ResourceName" - "R\rcomponentName\022!\n\014execution_id\030\003 \001(\tR\013e" - "xecutionId\022:\n\006status\030\004 \001(\0132\".viam.servic" - "e.motion.v1.PlanStatusR\006status\"\247\001\n\nPlanS" - "tatus\0227\n\005state\030\001 \001(\0162!.viam.service.moti" - "on.v1.PlanStateR\005state\0228\n\ttimestamp\030\002 \001(" - "\0132\032.google.protobuf.TimestampR\ttimestamp" - "\022\033\n\006reason\030\003 \001(\tH\000R\006reason\210\001\001B\t\n\007_reason" - "\"\266\001\n\004Plan\022\016\n\002id\030\001 \001(\tR\002id\022C\n\016component_n" - "ame\030\002 \001(\0132\034.viam.common.v1.ResourceNameR" - "\rcomponentName\022!\n\014execution_id\030\003 \001(\tR\013ex" - "ecutionId\0226\n\005steps\030\004 \003(\0132 .viam.service." - "motion.v1.PlanStepR\005steps\"\253\001\n\010PlanStep\022>" - "\n\004step\030\001 \003(\0132*.viam.service.motion.v1.Pl" - "anStep.StepEntryR\004step\032_\n\tStepEntry\022\020\n\003k" - "ey\030\001 \001(\tR\003key\022<\n\005value\030\002 \001(\0132&.viam.serv" - "ice.motion.v1.ComponentStateR\005value:\0028\001\"" - ":\n\016ComponentState\022(\n\004pose\030\001 \001(\0132\024.viam.c" - "ommon.v1.PoseR\004pose*\214\001\n\tPlanState\022\032\n\026PLA" - "N_STATE_UNSPECIFIED\020\000\022\032\n\026PLAN_STATE_IN_P" - "ROGRESS\020\001\022\026\n\022PLAN_STATE_STOPPED\020\002\022\030\n\024PLA" - "N_STATE_SUCCEEDED\020\003\022\025\n\021PLAN_STATE_FAILED" - "\020\0042\361\n\n\rMotionService\022\202\001\n\004Move\022#.viam.ser" - "vice.motion.v1.MoveRequest\032$.viam.servic" - "e.motion.v1.MoveResponse\"/\202\323\344\223\002)\"\'/viam/" - "api/v1/service/motion/{name}/move\022\230\001\n\tMo" - "veOnMap\022(.viam.service.motion.v1.MoveOnM" - "apRequest\032).viam.service.motion.v1.MoveO" - "nMapResponse\"6\202\323\344\223\0020\"./viam/api/v1/servi" - "ce/motion/{name}/move_on_map\022\245\001\n\014MoveOnM" - "apNew\022+.viam.service.motion.v1.MoveOnMap" - "NewRequest\032,.viam.service.motion.v1.Move" - "OnMapNewResponse\":\202\323\344\223\0024\0222/viam/api/v1/s" - "ervice/motion/{name}/move_on_map_new\022\240\001\n" - "\013MoveOnGlobe\022*.viam.service.motion.v1.Mo" - "veOnGlobeRequest\032+.viam.service.motion.v" - "1.MoveOnGlobeResponse\"8\202\323\344\223\0022\"0/viam/api" - "/v1/service/motion/{name}/move_on_globe\022" - "\213\001\n\007GetPose\022&.viam.service.motion.v1.Get" - "PoseRequest\032\'.viam.service.motion.v1.Get" - "PoseResponse\"/\202\323\344\223\002)\022\'/viam/api/v1/servi" - "ce/motion/{name}/pose\022\223\001\n\010StopPlan\022\'.via" - "m.service.motion.v1.StopPlanRequest\032(.vi" - "am.service.motion.v1.StopPlanResponse\"4\202" - "\323\344\223\002.\032,/viam/api/v1/service/motion/{name" - "}/stop_plan\022\264\001\n\020ListPlanStatuses\022/.viam." - "service.motion.v1.ListPlanStatusesReques" - "t\0320.viam.service.motion.v1.ListPlanStatu" - "sesResponse\"=\202\323\344\223\0027\0225/viam/api/v1/servic" - "e/motion/{name}/list_plan_statuses\022\217\001\n\007G" - "etPlan\022&.viam.service.motion.v1.GetPlanR" - "equest\032\'.viam.service.motion.v1.GetPlanR" - "esponse\"3\202\323\344\223\002-\022+/viam/api/v1/service/mo" - "tion/{name}/get_plan\022\207\001\n\tDoCommand\022 .via" - "m.common.v1.DoCommandRequest\032!.viam.comm" - "on.v1.DoCommandResponse\"5\202\323\344\223\002/\"-/viam/a" - "pi/v1/service/motion/{name}/do_commandB\?" - "\n\032com.viam.service.motion.v1Z!go.viam.co" - "m/api/service/motion/v1b\006proto3" + "R\rcomponentName\022$\n\016last_plan_only\030\003 \001(\010R" + "\014lastPlanOnly\022&\n\014execution_id\030\004 \001(\tH\000R\013e" + "xecutionId\210\001\001\022-\n\005extra\030c \001(\0132\027.google.pr" + "otobuf.StructR\005extraB\017\n\r_execution_id\"\301\001" + "\n\017GetPlanResponse\022_\n\030current_plan_with_s" + "tatus\030\001 \001(\0132&.viam.service.motion.v1.Pla" + "nWithStatusR\025currentPlanWithStatus\022M\n\016re" + "plan_history\030\002 \003(\0132&.viam.service.motion" + ".v1.PlanWithStatusR\rreplanHistory\"\263\002\n\013Co" + "nstraints\022U\n\021linear_constraint\030\001 \003(\0132(.v" + "iam.service.motion.v1.LinearConstraintR\020" + "linearConstraint\022d\n\026orientation_constrai" + "nt\030\002 \003(\0132-.viam.service.motion.v1.Orient" + "ationConstraintR\025orientationConstraint\022g" + "\n\027collision_specification\030\003 \003(\0132..viam.s" + "ervice.motion.v1.CollisionSpecificationR" + "\026collisionSpecification\"\273\001\n\020LinearConstr" + "aint\022/\n\021line_tolerance_mm\030\001 \001(\002H\000R\017lineT" + "oleranceMm\210\001\001\022A\n\032orientation_tolerance_d" + "egs\030\002 \001(\002H\001R\030orientationToleranceDegs\210\001\001" + "B\024\n\022_line_tolerance_mmB\035\n\033_orientation_t" + "olerance_degs\"y\n\025OrientationConstraint\022A" + "\n\032orientation_tolerance_degs\030\001 \001(\002H\000R\030or" + "ientationToleranceDegs\210\001\001B\035\n\033_orientatio" + "n_tolerance_degs\"\301\001\n\026CollisionSpecificat" + "ion\022]\n\006allows\030\001 \003(\0132E.viam.service.motio" + "n.v1.CollisionSpecification.AllowedFrame" + "CollisionsR\006allows\032H\n\026AllowedFrameCollis" + "ions\022\026\n\006frame1\030\001 \001(\tR\006frame1\022\026\n\006frame2\030\002" + " \001(\tR\006frame2\"\311\001\n\016PlanWithStatus\0220\n\004plan\030" + "\001 \001(\0132\034.viam.service.motion.v1.PlanR\004pla" + "n\022:\n\006status\030\002 \001(\0132\".viam.service.motion." + "v1.PlanStatusR\006status\022I\n\016status_history\030" + "\003 \003(\0132\".viam.service.motion.v1.PlanStatu" + "sR\rstatusHistory\"\317\001\n\020PlanStatusWithID\022\027\n" + "\007plan_id\030\001 \001(\tR\006planId\022C\n\016component_name" + "\030\002 \001(\0132\034.viam.common.v1.ResourceNameR\rco" + "mponentName\022!\n\014execution_id\030\003 \001(\tR\013execu" + "tionId\022:\n\006status\030\004 \001(\0132\".viam.service.mo" + "tion.v1.PlanStatusR\006status\"\247\001\n\nPlanStatu" + "s\0227\n\005state\030\001 \001(\0162!.viam.service.motion.v" + "1.PlanStateR\005state\0228\n\ttimestamp\030\002 \001(\0132\032." + "google.protobuf.TimestampR\ttimestamp\022\033\n\006" + "reason\030\003 \001(\tH\000R\006reason\210\001\001B\t\n\007_reason\"\266\001\n" + "\004Plan\022\016\n\002id\030\001 \001(\tR\002id\022C\n\016component_name\030" + "\002 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" + "ponentName\022!\n\014execution_id\030\003 \001(\tR\013execut" + "ionId\0226\n\005steps\030\004 \003(\0132 .viam.service.moti" + "on.v1.PlanStepR\005steps\"\253\001\n\010PlanStep\022>\n\004st" + "ep\030\001 \003(\0132*.viam.service.motion.v1.PlanSt" + "ep.StepEntryR\004step\032_\n\tStepEntry\022\020\n\003key\030\001" + " \001(\tR\003key\022<\n\005value\030\002 \001(\0132&.viam.service." + "motion.v1.ComponentStateR\005value:\0028\001\":\n\016C" + "omponentState\022(\n\004pose\030\001 \001(\0132\024.viam.commo" + "n.v1.PoseR\004pose*\214\001\n\tPlanState\022\032\n\026PLAN_ST" + "ATE_UNSPECIFIED\020\000\022\032\n\026PLAN_STATE_IN_PROGR" + "ESS\020\001\022\026\n\022PLAN_STATE_STOPPED\020\002\022\030\n\024PLAN_ST" + "ATE_SUCCEEDED\020\003\022\025\n\021PLAN_STATE_FAILED\020\0042\311" + "\t\n\rMotionService\022\202\001\n\004Move\022#.viam.service" + ".motion.v1.MoveRequest\032$.viam.service.mo" + "tion.v1.MoveResponse\"/\202\323\344\223\002)\"\'/viam/api/" + "v1/service/motion/{name}/move\022\230\001\n\tMoveOn" + "Map\022(.viam.service.motion.v1.MoveOnMapRe" + "quest\032).viam.service.motion.v1.MoveOnMap" + "Response\"6\202\323\344\223\0020\"./viam/api/v1/service/m" + "otion/{name}/move_on_map\022\240\001\n\013MoveOnGlobe" + "\022*.viam.service.motion.v1.MoveOnGlobeReq" + "uest\032+.viam.service.motion.v1.MoveOnGlob" + "eResponse\"8\202\323\344\223\0022\"0/viam/api/v1/service/" + "motion/{name}/move_on_globe\022\213\001\n\007GetPose\022" + "&.viam.service.motion.v1.GetPoseRequest\032" + "\'.viam.service.motion.v1.GetPoseResponse" + "\"/\202\323\344\223\002)\022\'/viam/api/v1/service/motion/{n" + "ame}/pose\022\223\001\n\010StopPlan\022\'.viam.service.mo" + "tion.v1.StopPlanRequest\032(.viam.service.m" + "otion.v1.StopPlanResponse\"4\202\323\344\223\002.\032,/viam" + "/api/v1/service/motion/{name}/stop_plan\022" + "\264\001\n\020ListPlanStatuses\022/.viam.service.moti" + "on.v1.ListPlanStatusesRequest\0320.viam.ser" + "vice.motion.v1.ListPlanStatusesResponse\"" + "=\202\323\344\223\0027\0225/viam/api/v1/service/motion/{na" + "me}/list_plan_statuses\022\217\001\n\007GetPlan\022&.via" + "m.service.motion.v1.GetPlanRequest\032\'.via" + "m.service.motion.v1.GetPlanResponse\"3\202\323\344" + "\223\002-\022+/viam/api/v1/service/motion/{name}/" + "get_plan\022\207\001\n\tDoCommand\022 .viam.common.v1." + "DoCommandRequest\032!.viam.common.v1.DoComm" + "andResponse\"5\202\323\344\223\002/\"-/viam/api/v1/servic" + "e/motion/{name}/do_commandB\?\n\032com.viam.s" + "ervice.motion.v1Z!go.viam.com/api/servic" + "e/motion/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -1010,9 +952,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2f }; static ::_pbi::once_flag descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto = { - false, false, 7351, descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, + false, false, 6899, descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, "service/motion/v1/motion.proto", - &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps, 4, 30, + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps, 4, 28, schemas, file_default_instances, TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets, file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto, file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto, file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto, @@ -1517,628 +1459,7 @@ success_ = false; } MoveResponse::~MoveResponse() { - // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void MoveResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void MoveResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void MoveResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveResponse) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - success_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MoveResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool success = 1 [json_name = "success"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MoveResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveResponse) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->_internal_success() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:viam.service.motion.v1.MoveResponse) - return target; -} - -size_t MoveResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveResponse) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool success = 1 [json_name = "success"]; - if (this->_internal_success() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - MoveResponse::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveResponse::GetClassData() const { return &_class_data_; } - -void MoveResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void MoveResponse::MergeFrom(const MoveResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_success() != 0) { - _internal_set_success(from._internal_success()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void MoveResponse::CopyFrom(const MoveResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MoveResponse::IsInitialized() const { - return true; -} - -void MoveResponse::InternalSwap(MoveResponse* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(success_, other->success_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MoveResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[1]); -} - -// =================================================================== - -class MoveOnMapNewRequest::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::viam::common::v1::Pose& destination(const MoveOnMapNewRequest* msg); - static const ::viam::common::v1::ResourceName& component_name(const MoveOnMapNewRequest* msg); - static const ::viam::common::v1::ResourceName& slam_service_name(const MoveOnMapNewRequest* msg); - static const ::viam::service::motion::v1::MotionConfiguration& motion_configuration(const MoveOnMapNewRequest* msg); - static void set_has_motion_configuration(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveOnMapNewRequest* msg); -}; - -const ::viam::common::v1::Pose& -MoveOnMapNewRequest::_Internal::destination(const MoveOnMapNewRequest* msg) { - return *msg->destination_; -} -const ::viam::common::v1::ResourceName& -MoveOnMapNewRequest::_Internal::component_name(const MoveOnMapNewRequest* msg) { - return *msg->component_name_; -} -const ::viam::common::v1::ResourceName& -MoveOnMapNewRequest::_Internal::slam_service_name(const MoveOnMapNewRequest* msg) { - return *msg->slam_service_name_; -} -const ::viam::service::motion::v1::MotionConfiguration& -MoveOnMapNewRequest::_Internal::motion_configuration(const MoveOnMapNewRequest* msg) { - return *msg->motion_configuration_; -} -const ::PROTOBUF_NAMESPACE_ID::Struct& -MoveOnMapNewRequest::_Internal::extra(const MoveOnMapNewRequest* msg) { - return *msg->extra_; -} -void MoveOnMapNewRequest::clear_destination() { - if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { - delete destination_; - } - destination_ = nullptr; -} -void MoveOnMapNewRequest::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; - } - component_name_ = nullptr; -} -void MoveOnMapNewRequest::clear_slam_service_name() { - if (GetArenaForAllocation() == nullptr && slam_service_name_ != nullptr) { - delete slam_service_name_; - } - slam_service_name_ = nullptr; -} -void MoveOnMapNewRequest::clear_extra() { - if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { - delete extra_; - } - extra_ = nullptr; -} -MoveOnMapNewRequest::MoveOnMapNewRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveOnMapNewRequest) -} -MoveOnMapNewRequest::MoveOnMapNewRequest(const MoveOnMapNewRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - name_.Set(from._internal_name(), - GetArenaForAllocation()); - } - if (from._internal_has_destination()) { - destination_ = new ::viam::common::v1::Pose(*from.destination_); - } else { - destination_ = nullptr; - } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); - } else { - component_name_ = nullptr; - } - if (from._internal_has_slam_service_name()) { - slam_service_name_ = new ::viam::common::v1::ResourceName(*from.slam_service_name_); - } else { - slam_service_name_ = nullptr; - } - if (from._internal_has_motion_configuration()) { - motion_configuration_ = new ::viam::service::motion::v1::MotionConfiguration(*from.motion_configuration_); - } else { - motion_configuration_ = nullptr; - } - if (from._internal_has_extra()) { - extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); - } else { - extra_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveOnMapNewRequest) -} - -inline void MoveOnMapNewRequest::SharedCtor() { -name_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - name_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&destination_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&extra_) - - reinterpret_cast(&destination_)) + sizeof(extra_)); -} - -MoveOnMapNewRequest::~MoveOnMapNewRequest() { - // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveOnMapNewRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void MoveOnMapNewRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - name_.Destroy(); - if (this != internal_default_instance()) delete destination_; - if (this != internal_default_instance()) delete component_name_; - if (this != internal_default_instance()) delete slam_service_name_; - if (this != internal_default_instance()) delete motion_configuration_; - if (this != internal_default_instance()) delete extra_; -} - -void MoveOnMapNewRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void MoveOnMapNewRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveOnMapNewRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { - delete destination_; - } - destination_ = nullptr; - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; - } - component_name_ = nullptr; - if (GetArenaForAllocation() == nullptr && slam_service_name_ != nullptr) { - delete slam_service_name_; - } - slam_service_name_ = nullptr; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(motion_configuration_ != nullptr); - motion_configuration_->Clear(); - } - if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { - delete extra_; - } - extra_ = nullptr; - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MoveOnMapNewRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1 [json_name = "name"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnMapNewRequest.name")); - } else - goto handle_unusual; - continue; - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_slam_service_name(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_motion_configuration(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - case 99: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MoveOnMapNewRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveOnMapNewRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1 [json_name = "name"]; - if (!this->_internal_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.service.motion.v1.MoveOnMapNewRequest.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - if (this->_internal_has_destination()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::destination(this), - _Internal::destination(this).GetCachedSize(), target, stream); - } - - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); - } - - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - if (this->_internal_has_slam_service_name()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::slam_service_name(this), - _Internal::slam_service_name(this).GetCachedSize(), target, stream); - } - - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - if (_internal_has_motion_configuration()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::motion_configuration(this), - _Internal::motion_configuration(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (this->_internal_has_extra()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(99, _Internal::extra(this), - _Internal::extra(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:viam.service.motion.v1.MoveOnMapNewRequest) - return target; -} - -size_t MoveOnMapNewRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveOnMapNewRequest) - 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 name = 1 [json_name = "name"]; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - if (this->_internal_has_destination()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *destination_); - } - - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); - } - - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - if (this->_internal_has_slam_service_name()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *slam_service_name_); - } - - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *motion_configuration_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (this->_internal_has_extra()) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *extra_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveOnMapNewRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - MoveOnMapNewRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveOnMapNewRequest::GetClassData() const { return &_class_data_; } - -void MoveOnMapNewRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void MoveOnMapNewRequest::MergeFrom(const MoveOnMapNewRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnMapNewRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _internal_set_name(from._internal_name()); - } - if (from._internal_has_destination()) { - _internal_mutable_destination()->::viam::common::v1::Pose::MergeFrom(from._internal_destination()); - } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); - } - if (from._internal_has_slam_service_name()) { - _internal_mutable_slam_service_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_slam_service_name()); - } - if (from._internal_has_motion_configuration()) { - _internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom(from._internal_motion_configuration()); - } - if (from._internal_has_extra()) { - _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void MoveOnMapNewRequest::CopyFrom(const MoveOnMapNewRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveOnMapNewRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MoveOnMapNewRequest::IsInitialized() const { - return true; -} - -void MoveOnMapNewRequest::InternalSwap(MoveOnMapNewRequest* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &name_, lhs_arena, - &other->name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveOnMapNewRequest, extra_) - + sizeof(MoveOnMapNewRequest::extra_) - - PROTOBUF_FIELD_OFFSET(MoveOnMapNewRequest, destination_)>( - reinterpret_cast(&destination_), - reinterpret_cast(&other->destination_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapNewRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[2]); -} - -// =================================================================== - -class MoveOnMapNewResponse::_Internal { - public: -}; - -MoveOnMapNewResponse::MoveOnMapNewResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveOnMapNewResponse) -} -MoveOnMapNewResponse::MoveOnMapNewResponse(const MoveOnMapNewResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - execution_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - execution_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_execution_id().empty()) { - execution_id_.Set(from._internal_execution_id(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveOnMapNewResponse) -} - -inline void MoveOnMapNewResponse::SharedCtor() { -execution_id_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - execution_id_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -MoveOnMapNewResponse::~MoveOnMapNewResponse() { - // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveOnMapNewResponse) + // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2146,38 +1467,35 @@ MoveOnMapNewResponse::~MoveOnMapNewResponse() { SharedDtor(); } -inline void MoveOnMapNewResponse::SharedDtor() { +inline void MoveResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - execution_id_.Destroy(); } -void MoveOnMapNewResponse::SetCachedSize(int size) const { +void MoveResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void MoveOnMapNewResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveOnMapNewResponse) +void MoveResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - execution_id_.ClearToEmpty(); + success_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MoveOnMapNewResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* MoveResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string execution_id = 1 [json_name = "executionId"]; + // bool success = 1 [json_name = "success"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_execution_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnMapNewResponse.execution_id")); } else goto handle_unusual; continue; @@ -2204,108 +1522,102 @@ const char* MoveOnMapNewResponse::_InternalParse(const char* ptr, ::_pbi::ParseC #undef CHK_ } -uint8_t* MoveOnMapNewResponse::_InternalSerialize( +uint8_t* MoveResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveOnMapNewResponse) + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string execution_id = 1 [json_name = "executionId"]; - if (!this->_internal_execution_id().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_execution_id().data(), static_cast(this->_internal_execution_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.service.motion.v1.MoveOnMapNewResponse.execution_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_execution_id(), target); + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:viam.service.motion.v1.MoveOnMapNewResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.service.motion.v1.MoveResponse) return target; } -size_t MoveOnMapNewResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveOnMapNewResponse) +size_t MoveResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveResponse) 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 execution_id = 1 [json_name = "executionId"]; - if (!this->_internal_execution_id().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_execution_id()); + // bool success = 1 [json_name = "success"]; + if (this->_internal_success() != 0) { + total_size += 1 + 1; } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveOnMapNewResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - MoveOnMapNewResponse::MergeImpl + MoveResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveOnMapNewResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveResponse::GetClassData() const { return &_class_data_; } -void MoveOnMapNewResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void MoveResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveOnMapNewResponse::MergeFrom(const MoveOnMapNewResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnMapNewResponse) +void MoveResponse::MergeFrom(const MoveResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveResponse) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_execution_id().empty()) { - _internal_set_execution_id(from._internal_execution_id()); + if (from._internal_success() != 0) { + _internal_set_success(from._internal_success()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void MoveOnMapNewResponse::CopyFrom(const MoveOnMapNewResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveOnMapNewResponse) +void MoveResponse::CopyFrom(const MoveResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.MoveResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool MoveOnMapNewResponse::IsInitialized() const { +bool MoveResponse::IsInitialized() const { return true; } -void MoveOnMapNewResponse::InternalSwap(MoveOnMapNewResponse* other) { +void MoveResponse::InternalSwap(MoveResponse* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &execution_id_, lhs_arena, - &other->execution_id_, rhs_arena - ); + swap(success_, other->success_); } -::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapNewResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[3]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[1]); } // =================================================================== class MoveOnMapRequest::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::Pose& destination(const MoveOnMapRequest* msg); static const ::viam::common::v1::ResourceName& component_name(const MoveOnMapRequest* msg); static const ::viam::common::v1::ResourceName& slam_service_name(const MoveOnMapRequest* msg); + static const ::viam::service::motion::v1::MotionConfiguration& motion_configuration(const MoveOnMapRequest* msg); + static void set_has_motion_configuration(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveOnMapRequest* msg); }; @@ -2321,6 +1633,10 @@ const ::viam::common::v1::ResourceName& MoveOnMapRequest::_Internal::slam_service_name(const MoveOnMapRequest* msg) { return *msg->slam_service_name_; } +const ::viam::service::motion::v1::MotionConfiguration& +MoveOnMapRequest::_Internal::motion_configuration(const MoveOnMapRequest* msg) { + return *msg->motion_configuration_; +} const ::PROTOBUF_NAMESPACE_ID::Struct& MoveOnMapRequest::_Internal::extra(const MoveOnMapRequest* msg) { return *msg->extra_; @@ -2343,6 +1659,9 @@ void MoveOnMapRequest::clear_slam_service_name() { } slam_service_name_ = nullptr; } +void MoveOnMapRequest::clear_obstacles() { + obstacles_.Clear(); +} void MoveOnMapRequest::clear_extra() { if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { delete extra_; @@ -2351,12 +1670,15 @@ void MoveOnMapRequest::clear_extra() { } MoveOnMapRequest::MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + obstacles_(arena) { SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveOnMapRequest) } MoveOnMapRequest::MoveOnMapRequest(const MoveOnMapRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + obstacles_(from.obstacles_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -2381,6 +1703,11 @@ MoveOnMapRequest::MoveOnMapRequest(const MoveOnMapRequest& from) } else { slam_service_name_ = nullptr; } + if (from._internal_has_motion_configuration()) { + motion_configuration_ = new ::viam::service::motion::v1::MotionConfiguration(*from.motion_configuration_); + } else { + motion_configuration_ = nullptr; + } if (from._internal_has_extra()) { extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); } else { @@ -2415,6 +1742,7 @@ inline void MoveOnMapRequest::SharedDtor() { if (this != internal_default_instance()) delete destination_; if (this != internal_default_instance()) delete component_name_; if (this != internal_default_instance()) delete slam_service_name_; + if (this != internal_default_instance()) delete motion_configuration_; if (this != internal_default_instance()) delete extra_; } @@ -2428,6 +1756,7 @@ void MoveOnMapRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + obstacles_.Clear(); name_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { delete destination_; @@ -2441,15 +1770,22 @@ void MoveOnMapRequest::Clear() { delete slam_service_name_; } slam_service_name_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(motion_configuration_ != nullptr); + motion_configuration_->Clear(); + } if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { delete extra_; } extra_ = nullptr; + _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* MoveOnMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); @@ -2488,6 +1824,27 @@ const char* MoveOnMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte } else goto handle_unusual; continue; + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_motion_configuration(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_obstacles(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; case 99: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { @@ -2512,6 +1869,7 @@ const char* MoveOnMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte CHK_(ptr != nullptr); } // while message_done: + _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2556,6 +1914,21 @@ uint8_t* MoveOnMapRequest::_InternalSerialize( _Internal::slam_service_name(this).GetCachedSize(), target, stream); } + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; + if (_internal_has_motion_configuration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::motion_configuration(this), + _Internal::motion_configuration(this).GetCachedSize(), target, stream); + } + + // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; + for (unsigned i = 0, + n = static_cast(this->_internal_obstacles_size()); i < n; i++) { + const auto& repfield = this->_internal_obstacles(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; if (this->_internal_has_extra()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -2579,6 +1952,13 @@ size_t MoveOnMapRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; + total_size += 1UL * this->_internal_obstacles_size(); + for (const auto& msg : this->obstacles_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { total_size += 1 + @@ -2607,6 +1987,14 @@ size_t MoveOnMapRequest::ByteSizeLong() const { *slam_service_name_); } + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *motion_configuration_); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; if (this->_internal_has_extra()) { total_size += 2 + @@ -2636,6 +2024,7 @@ void MoveOnMapRequest::MergeFrom(const MoveOnMapRequest& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; + obstacles_.MergeFrom(from.obstacles_); if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } @@ -2648,6 +2037,9 @@ void MoveOnMapRequest::MergeFrom(const MoveOnMapRequest& from) { if (from._internal_has_slam_service_name()) { _internal_mutable_slam_service_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_slam_service_name()); } + if (from._internal_has_motion_configuration()) { + _internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom(from._internal_motion_configuration()); + } if (from._internal_has_extra()) { _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } @@ -2670,6 +2062,8 @@ void MoveOnMapRequest::InternalSwap(MoveOnMapRequest* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + obstacles_.InternalSwap(&other->obstacles_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &name_, lhs_arena, &other->name_, rhs_arena @@ -2685,7 +2079,7 @@ void MoveOnMapRequest::InternalSwap(MoveOnMapRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[4]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[2]); } // =================================================================== @@ -2703,12 +2097,22 @@ MoveOnMapResponse::MoveOnMapResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, MoveOnMapResponse::MoveOnMapResponse(const MoveOnMapResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - success_ = from.success_; + execution_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_execution_id().empty()) { + execution_id_.Set(from._internal_execution_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveOnMapResponse) } inline void MoveOnMapResponse::SharedCtor() { -success_ = false; +execution_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } MoveOnMapResponse::~MoveOnMapResponse() { @@ -2722,6 +2126,7 @@ MoveOnMapResponse::~MoveOnMapResponse() { inline void MoveOnMapResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + execution_id_.Destroy(); } void MoveOnMapResponse::SetCachedSize(int size) const { @@ -2734,7 +2139,7 @@ void MoveOnMapResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - success_ = false; + execution_id_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2744,11 +2149,13 @@ const char* MoveOnMapResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // bool success = 1 [json_name = "success"]; + // string execution_id = 1 [json_name = "executionId"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_execution_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnMapResponse.execution_id")); } else goto handle_unusual; continue; @@ -2781,10 +2188,14 @@ uint8_t* MoveOnMapResponse::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // bool success = 1 [json_name = "success"]; - if (this->_internal_success() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); + // string execution_id = 1 [json_name = "executionId"]; + if (!this->_internal_execution_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_execution_id().data(), static_cast(this->_internal_execution_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnMapResponse.execution_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_execution_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2803,9 +2214,11 @@ size_t MoveOnMapResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bool success = 1 [json_name = "success"]; - if (this->_internal_success() != 0) { - total_size += 1 + 1; + // string execution_id = 1 [json_name = "executionId"]; + if (!this->_internal_execution_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_execution_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); @@ -2830,8 +2243,8 @@ void MoveOnMapResponse::MergeFrom(const MoveOnMapResponse& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_success() != 0) { - _internal_set_success(from._internal_success()); + if (!from._internal_execution_id().empty()) { + _internal_set_execution_id(from._internal_execution_id()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -2849,14 +2262,19 @@ bool MoveOnMapResponse::IsInitialized() const { void MoveOnMapResponse::InternalSwap(MoveOnMapResponse* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(success_, other->success_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &execution_id_, lhs_arena, + &other->execution_id_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[5]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[3]); } // =================================================================== @@ -3103,7 +2521,7 @@ void ObstacleDetector::InternalSwap(ObstacleDetector* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ObstacleDetector::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[6]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[4]); } // =================================================================== @@ -3443,7 +2861,7 @@ void MotionConfiguration::InternalSwap(MotionConfiguration* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MotionConfiguration::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[7]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[5]); } // =================================================================== @@ -3947,7 +3365,7 @@ void MoveOnGlobeRequest::InternalSwap(MoveOnGlobeRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnGlobeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[8]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[6]); } // =================================================================== @@ -4142,7 +3560,7 @@ void MoveOnGlobeResponse::InternalSwap(MoveOnGlobeResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnGlobeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[9]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[7]); } // =================================================================== @@ -4523,7 +3941,7 @@ void GetPoseRequest::InternalSwap(GetPoseRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPoseRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[10]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[8]); } // =================================================================== @@ -4716,7 +4134,7 @@ void GetPoseResponse::InternalSwap(GetPoseResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPoseResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[11]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[9]); } // =================================================================== @@ -5013,7 +4431,7 @@ void StopPlanRequest::InternalSwap(StopPlanRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StopPlanRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[12]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[10]); } // =================================================================== @@ -5052,7 +4470,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopPlanResponse::GetClassData ::PROTOBUF_NAMESPACE_ID::Metadata StopPlanResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[13]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[11]); } // =================================================================== @@ -5327,7 +4745,7 @@ void ListPlanStatusesRequest::InternalSwap(ListPlanStatusesRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListPlanStatusesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[14]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[12]); } // =================================================================== @@ -5505,7 +4923,7 @@ void ListPlanStatusesResponse::InternalSwap(ListPlanStatusesResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListPlanStatusesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[15]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[13]); } // =================================================================== @@ -5887,7 +5305,7 @@ void GetPlanRequest::InternalSwap(GetPlanRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPlanRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[16]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[14]); } // =================================================================== @@ -6107,7 +5525,7 @@ void GetPlanResponse::InternalSwap(GetPlanResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPlanResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[17]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[15]); } // =================================================================== @@ -6351,7 +5769,7 @@ void Constraints::InternalSwap(Constraints* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Constraints::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[18]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[16]); } // =================================================================== @@ -6580,7 +5998,7 @@ void LinearConstraint::InternalSwap(LinearConstraint* other) { ::PROTOBUF_NAMESPACE_ID::Metadata LinearConstraint::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[19]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[17]); } // =================================================================== @@ -6762,7 +6180,7 @@ void OrientationConstraint::InternalSwap(OrientationConstraint* other) { ::PROTOBUF_NAMESPACE_ID::Metadata OrientationConstraint::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[20]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[18]); } // =================================================================== @@ -7005,7 +6423,7 @@ void CollisionSpecification_AllowedFrameCollisions::InternalSwap(CollisionSpecif ::PROTOBUF_NAMESPACE_ID::Metadata CollisionSpecification_AllowedFrameCollisions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[21]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[19]); } // =================================================================== @@ -7183,7 +6601,7 @@ void CollisionSpecification::InternalSwap(CollisionSpecification* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CollisionSpecification::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[22]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[20]); } // =================================================================== @@ -7451,7 +6869,7 @@ void PlanWithStatus::InternalSwap(PlanWithStatus* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanWithStatus::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[23]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[21]); } // =================================================================== @@ -7790,7 +7208,7 @@ void PlanStatusWithID::InternalSwap(PlanStatusWithID* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanStatusWithID::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[24]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[22]); } // =================================================================== @@ -8081,7 +7499,7 @@ void PlanStatus::InternalSwap(PlanStatus* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanStatus::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[25]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[23]); } // =================================================================== @@ -8405,7 +7823,7 @@ void Plan::InternalSwap(Plan* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Plan::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[26]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[24]); } // =================================================================== @@ -8419,7 +7837,7 @@ void PlanStep_StepEntry_DoNotUse::MergeFrom(const PlanStep_StepEntry_DoNotUse& o ::PROTOBUF_NAMESPACE_ID::Metadata PlanStep_StepEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[27]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[25]); } // =================================================================== @@ -8626,7 +8044,7 @@ void PlanStep::InternalSwap(PlanStep* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanStep::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[28]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[26]); } // =================================================================== @@ -8819,7 +8237,7 @@ void ComponentState::InternalSwap(ComponentState* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ComponentState::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[29]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[27]); } // @@protoc_insertion_point(namespace_scope) @@ -8836,14 +8254,6 @@ template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveResponse* Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveResponse >(arena); } -template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveOnMapNewRequest* -Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveOnMapNewRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveOnMapNewRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveOnMapNewResponse* -Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveOnMapNewResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveOnMapNewResponse >(arena); -} template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveOnMapRequest* Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveOnMapRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveOnMapRequest >(arena); diff --git a/src/viam/api/service/motion/v1/motion.pb.h b/src/viam/api/service/motion/v1/motion.pb.h index 5ad93ea63..d7b5ec297 100644 --- a/src/viam/api/service/motion/v1/motion.pb.h +++ b/src/viam/api/service/motion/v1/motion.pb.h @@ -99,12 +99,6 @@ extern MoveOnGlobeRequestDefaultTypeInternal _MoveOnGlobeRequest_default_instanc class MoveOnGlobeResponse; struct MoveOnGlobeResponseDefaultTypeInternal; extern MoveOnGlobeResponseDefaultTypeInternal _MoveOnGlobeResponse_default_instance_; -class MoveOnMapNewRequest; -struct MoveOnMapNewRequestDefaultTypeInternal; -extern MoveOnMapNewRequestDefaultTypeInternal _MoveOnMapNewRequest_default_instance_; -class MoveOnMapNewResponse; -struct MoveOnMapNewResponseDefaultTypeInternal; -extern MoveOnMapNewResponseDefaultTypeInternal _MoveOnMapNewResponse_default_instance_; class MoveOnMapRequest; struct MoveOnMapRequestDefaultTypeInternal; extern MoveOnMapRequestDefaultTypeInternal _MoveOnMapRequest_default_instance_; @@ -166,8 +160,6 @@ template<> ::viam::service::motion::v1::ListPlanStatusesResponse* Arena::CreateM template<> ::viam::service::motion::v1::MotionConfiguration* Arena::CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(Arena*); template<> ::viam::service::motion::v1::MoveOnGlobeRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnGlobeRequest>(Arena*); template<> ::viam::service::motion::v1::MoveOnGlobeResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnGlobeResponse>(Arena*); -template<> ::viam::service::motion::v1::MoveOnMapNewRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnMapNewRequest>(Arena*); -template<> ::viam::service::motion::v1::MoveOnMapNewResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnMapNewResponse>(Arena*); template<> ::viam::service::motion::v1::MoveOnMapRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnMapRequest>(Arena*); template<> ::viam::service::motion::v1::MoveOnMapResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnMapResponse>(Arena*); template<> ::viam::service::motion::v1::MoveRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveRequest>(Arena*); @@ -610,24 +602,24 @@ class MoveResponse final : }; // ------------------------------------------------------------------- -class MoveOnMapNewRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapNewRequest) */ { +class MoveOnMapRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapRequest) */ { public: - inline MoveOnMapNewRequest() : MoveOnMapNewRequest(nullptr) {} - ~MoveOnMapNewRequest() override; - explicit PROTOBUF_CONSTEXPR MoveOnMapNewRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MoveOnMapRequest() : MoveOnMapRequest(nullptr) {} + ~MoveOnMapRequest() override; + explicit PROTOBUF_CONSTEXPR MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MoveOnMapNewRequest(const MoveOnMapNewRequest& from); - MoveOnMapNewRequest(MoveOnMapNewRequest&& from) noexcept - : MoveOnMapNewRequest() { + MoveOnMapRequest(const MoveOnMapRequest& from); + MoveOnMapRequest(MoveOnMapRequest&& from) noexcept + : MoveOnMapRequest() { *this = ::std::move(from); } - inline MoveOnMapNewRequest& operator=(const MoveOnMapNewRequest& from) { + inline MoveOnMapRequest& operator=(const MoveOnMapRequest& from) { CopyFrom(from); return *this; } - inline MoveOnMapNewRequest& operator=(MoveOnMapNewRequest&& from) noexcept { + inline MoveOnMapRequest& operator=(MoveOnMapRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -650,20 +642,20 @@ class MoveOnMapNewRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnMapNewRequest& default_instance() { + static const MoveOnMapRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveOnMapNewRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveOnMapNewRequest_default_instance_); + static inline const MoveOnMapRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveOnMapRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; - friend void swap(MoveOnMapNewRequest& a, MoveOnMapNewRequest& b) { + friend void swap(MoveOnMapRequest& a, MoveOnMapRequest& b) { a.Swap(&b); } - inline void Swap(MoveOnMapNewRequest* other) { + inline void Swap(MoveOnMapRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -676,7 +668,7 @@ class MoveOnMapNewRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnMapNewRequest* other) { + void UnsafeArenaSwap(MoveOnMapRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -684,13 +676,13 @@ class MoveOnMapNewRequest final : // implements Message ---------------------------------------------- - MoveOnMapNewRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveOnMapRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveOnMapNewRequest& from); + void CopyFrom(const MoveOnMapRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveOnMapNewRequest& from); + void MergeFrom(const MoveOnMapRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -707,15 +699,15 @@ class MoveOnMapNewRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MoveOnMapNewRequest* other); + void InternalSwap(MoveOnMapRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.MoveOnMapNewRequest"; + return "viam.service.motion.v1.MoveOnMapRequest"; } protected: - explicit MoveOnMapNewRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -729,6 +721,7 @@ class MoveOnMapNewRequest final : // accessors ------------------------------------------------------- enum : int { + kObstaclesFieldNumber = 6, kNameFieldNumber = 1, kDestinationFieldNumber = 2, kComponentNameFieldNumber = 3, @@ -736,6 +729,24 @@ class MoveOnMapNewRequest final : kMotionConfigurationFieldNumber = 5, kExtraFieldNumber = 99, }; + // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; + int obstacles_size() const; + private: + int _internal_obstacles_size() const; + public: + void clear_obstacles(); + ::viam::common::v1::Geometry* mutable_obstacles(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* + mutable_obstacles(); + private: + const ::viam::common::v1::Geometry& _internal_obstacles(int index) const; + ::viam::common::v1::Geometry* _internal_add_obstacles(); + public: + const ::viam::common::v1::Geometry& obstacles(int index) const; + ::viam::common::v1::Geometry* add_obstacles(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& + obstacles() const; + // string name = 1 [json_name = "name"]; void clear_name(); const std::string& name() const; @@ -840,7 +851,7 @@ class MoveOnMapNewRequest final : ::PROTOBUF_NAMESPACE_ID::Struct* extra); ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapNewRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapRequest) private: class _Internal; @@ -849,6 +860,7 @@ class MoveOnMapNewRequest final : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry > obstacles_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::viam::common::v1::Pose* destination_; ::viam::common::v1::ResourceName* component_name_; @@ -859,24 +871,24 @@ class MoveOnMapNewRequest final : }; // ------------------------------------------------------------------- -class MoveOnMapNewResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapNewResponse) */ { +class MoveOnMapResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapResponse) */ { public: - inline MoveOnMapNewResponse() : MoveOnMapNewResponse(nullptr) {} - ~MoveOnMapNewResponse() override; - explicit PROTOBUF_CONSTEXPR MoveOnMapNewResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MoveOnMapResponse() : MoveOnMapResponse(nullptr) {} + ~MoveOnMapResponse() override; + explicit PROTOBUF_CONSTEXPR MoveOnMapResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MoveOnMapNewResponse(const MoveOnMapNewResponse& from); - MoveOnMapNewResponse(MoveOnMapNewResponse&& from) noexcept - : MoveOnMapNewResponse() { + MoveOnMapResponse(const MoveOnMapResponse& from); + MoveOnMapResponse(MoveOnMapResponse&& from) noexcept + : MoveOnMapResponse() { *this = ::std::move(from); } - inline MoveOnMapNewResponse& operator=(const MoveOnMapNewResponse& from) { + inline MoveOnMapResponse& operator=(const MoveOnMapResponse& from) { CopyFrom(from); return *this; } - inline MoveOnMapNewResponse& operator=(MoveOnMapNewResponse&& from) noexcept { + inline MoveOnMapResponse& operator=(MoveOnMapResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -899,20 +911,20 @@ class MoveOnMapNewResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnMapNewResponse& default_instance() { + static const MoveOnMapResponse& default_instance() { return *internal_default_instance(); } - static inline const MoveOnMapNewResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveOnMapNewResponse_default_instance_); + static inline const MoveOnMapResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveOnMapResponse_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(MoveOnMapNewResponse& a, MoveOnMapNewResponse& b) { + friend void swap(MoveOnMapResponse& a, MoveOnMapResponse& b) { a.Swap(&b); } - inline void Swap(MoveOnMapNewResponse* other) { + inline void Swap(MoveOnMapResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -925,7 +937,7 @@ class MoveOnMapNewResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnMapNewResponse* other) { + void UnsafeArenaSwap(MoveOnMapResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -933,13 +945,13 @@ class MoveOnMapNewResponse final : // implements Message ---------------------------------------------- - MoveOnMapNewResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveOnMapResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveOnMapNewResponse& from); + void CopyFrom(const MoveOnMapResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveOnMapNewResponse& from); + void MergeFrom(const MoveOnMapResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -956,15 +968,15 @@ class MoveOnMapNewResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MoveOnMapNewResponse* other); + void InternalSwap(MoveOnMapResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.MoveOnMapNewResponse"; + return "viam.service.motion.v1.MoveOnMapResponse"; } protected: - explicit MoveOnMapNewResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit MoveOnMapResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -994,7 +1006,7 @@ class MoveOnMapNewResponse final : std::string* _internal_mutable_execution_id(); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapNewResponse) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapResponse) private: class _Internal; @@ -1007,24 +1019,24 @@ class MoveOnMapNewResponse final : }; // ------------------------------------------------------------------- -class MoveOnMapRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapRequest) */ { +class ObstacleDetector final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ObstacleDetector) */ { public: - inline MoveOnMapRequest() : MoveOnMapRequest(nullptr) {} - ~MoveOnMapRequest() override; - explicit PROTOBUF_CONSTEXPR MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ObstacleDetector() : ObstacleDetector(nullptr) {} + ~ObstacleDetector() override; + explicit PROTOBUF_CONSTEXPR ObstacleDetector(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MoveOnMapRequest(const MoveOnMapRequest& from); - MoveOnMapRequest(MoveOnMapRequest&& from) noexcept - : MoveOnMapRequest() { + ObstacleDetector(const ObstacleDetector& from); + ObstacleDetector(ObstacleDetector&& from) noexcept + : ObstacleDetector() { *this = ::std::move(from); } - inline MoveOnMapRequest& operator=(const MoveOnMapRequest& from) { + inline ObstacleDetector& operator=(const ObstacleDetector& from) { CopyFrom(from); return *this; } - inline MoveOnMapRequest& operator=(MoveOnMapRequest&& from) noexcept { + inline ObstacleDetector& operator=(ObstacleDetector&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1047,20 +1059,20 @@ class MoveOnMapRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnMapRequest& default_instance() { + static const ObstacleDetector& default_instance() { return *internal_default_instance(); } - static inline const MoveOnMapRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveOnMapRequest_default_instance_); + static inline const ObstacleDetector* internal_default_instance() { + return reinterpret_cast( + &_ObstacleDetector_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(MoveOnMapRequest& a, MoveOnMapRequest& b) { + friend void swap(ObstacleDetector& a, ObstacleDetector& b) { a.Swap(&b); } - inline void Swap(MoveOnMapRequest* other) { + inline void Swap(ObstacleDetector* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1073,7 +1085,7 @@ class MoveOnMapRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnMapRequest* other) { + void UnsafeArenaSwap(ObstacleDetector* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1081,13 +1093,13 @@ class MoveOnMapRequest final : // implements Message ---------------------------------------------- - MoveOnMapRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ObstacleDetector* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveOnMapRequest& from); + void CopyFrom(const ObstacleDetector& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveOnMapRequest& from); + void MergeFrom(const ObstacleDetector& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1104,15 +1116,15 @@ class MoveOnMapRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MoveOnMapRequest* other); + void InternalSwap(ObstacleDetector* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.MoveOnMapRequest"; + return "viam.service.motion.v1.ObstacleDetector"; } protected: - explicit MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ObstacleDetector(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1126,133 +1138,77 @@ class MoveOnMapRequest final : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 3, - kSlamServiceNameFieldNumber = 4, - kExtraFieldNumber = 99, + kVisionServiceFieldNumber = 1, + kCameraFieldNumber = 2, }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - bool has_destination() const; - private: - bool _internal_has_destination() const; - public: - void clear_destination(); - const ::viam::common::v1::Pose& destination() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_destination(); - ::viam::common::v1::Pose* mutable_destination(); - void set_allocated_destination(::viam::common::v1::Pose* destination); - private: - const ::viam::common::v1::Pose& _internal_destination() const; - ::viam::common::v1::Pose* _internal_mutable_destination(); - public: - void unsafe_arena_set_allocated_destination( - ::viam::common::v1::Pose* destination); - ::viam::common::v1::Pose* unsafe_arena_release_destination(); - - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - bool has_component_name() const; - private: - bool _internal_has_component_name() const; - public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); - private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - bool has_slam_service_name() const; + // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; + bool has_vision_service() const; private: - bool _internal_has_slam_service_name() const; + bool _internal_has_vision_service() const; public: - void clear_slam_service_name(); - const ::viam::common::v1::ResourceName& slam_service_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_slam_service_name(); - ::viam::common::v1::ResourceName* mutable_slam_service_name(); - void set_allocated_slam_service_name(::viam::common::v1::ResourceName* slam_service_name); + void clear_vision_service(); + const ::viam::common::v1::ResourceName& vision_service() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_vision_service(); + ::viam::common::v1::ResourceName* mutable_vision_service(); + void set_allocated_vision_service(::viam::common::v1::ResourceName* vision_service); private: - const ::viam::common::v1::ResourceName& _internal_slam_service_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_slam_service_name(); + const ::viam::common::v1::ResourceName& _internal_vision_service() const; + ::viam::common::v1::ResourceName* _internal_mutable_vision_service(); public: - void unsafe_arena_set_allocated_slam_service_name( - ::viam::common::v1::ResourceName* slam_service_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_slam_service_name(); + void unsafe_arena_set_allocated_vision_service( + ::viam::common::v1::ResourceName* vision_service); + ::viam::common::v1::ResourceName* unsafe_arena_release_vision_service(); - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; + // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; + bool has_camera() const; private: - bool _internal_has_extra() const; + bool _internal_has_camera() const; public: - void clear_extra(); - const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); - ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); - void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + void clear_camera(); + const ::viam::common::v1::ResourceName& camera() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_camera(); + ::viam::common::v1::ResourceName* mutable_camera(); + void set_allocated_camera(::viam::common::v1::ResourceName* camera); private: - const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; - ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + const ::viam::common::v1::ResourceName& _internal_camera() const; + ::viam::common::v1::ResourceName* _internal_mutable_camera(); public: - void unsafe_arena_set_allocated_extra( - ::PROTOBUF_NAMESPACE_ID::Struct* extra); - ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + void unsafe_arena_set_allocated_camera( + ::viam::common::v1::ResourceName* camera); + ::viam::common::v1::ResourceName* unsafe_arena_release_camera(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ObstacleDetector) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::viam::common::v1::Pose* destination_; - ::viam::common::v1::ResourceName* component_name_; - ::viam::common::v1::ResourceName* slam_service_name_; - ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + ::viam::common::v1::ResourceName* vision_service_; + ::viam::common::v1::ResourceName* camera_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class MoveOnMapResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapResponse) */ { +class MotionConfiguration final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MotionConfiguration) */ { public: - inline MoveOnMapResponse() : MoveOnMapResponse(nullptr) {} - ~MoveOnMapResponse() override; - explicit PROTOBUF_CONSTEXPR MoveOnMapResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MotionConfiguration() : MotionConfiguration(nullptr) {} + ~MotionConfiguration() override; + explicit PROTOBUF_CONSTEXPR MotionConfiguration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MoveOnMapResponse(const MoveOnMapResponse& from); - MoveOnMapResponse(MoveOnMapResponse&& from) noexcept - : MoveOnMapResponse() { + MotionConfiguration(const MotionConfiguration& from); + MotionConfiguration(MotionConfiguration&& from) noexcept + : MotionConfiguration() { *this = ::std::move(from); } - inline MoveOnMapResponse& operator=(const MoveOnMapResponse& from) { + inline MotionConfiguration& operator=(const MotionConfiguration& from) { CopyFrom(from); return *this; } - inline MoveOnMapResponse& operator=(MoveOnMapResponse&& from) noexcept { + inline MotionConfiguration& operator=(MotionConfiguration&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1275,20 +1231,20 @@ class MoveOnMapResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnMapResponse& default_instance() { + static const MotionConfiguration& default_instance() { return *internal_default_instance(); } - static inline const MoveOnMapResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveOnMapResponse_default_instance_); + static inline const MotionConfiguration* internal_default_instance() { + return reinterpret_cast( + &_MotionConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = 5; - friend void swap(MoveOnMapResponse& a, MoveOnMapResponse& b) { + friend void swap(MotionConfiguration& a, MotionConfiguration& b) { a.Swap(&b); } - inline void Swap(MoveOnMapResponse* other) { + inline void Swap(MotionConfiguration* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1301,7 +1257,7 @@ class MoveOnMapResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnMapResponse* other) { + void UnsafeArenaSwap(MotionConfiguration* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1309,13 +1265,13 @@ class MoveOnMapResponse final : // implements Message ---------------------------------------------- - MoveOnMapResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MotionConfiguration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveOnMapResponse& from); + void CopyFrom(const MotionConfiguration& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveOnMapResponse& from); + void MergeFrom(const MotionConfiguration& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1332,15 +1288,15 @@ class MoveOnMapResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MoveOnMapResponse* other); + void InternalSwap(MotionConfiguration* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.MoveOnMapResponse"; + return "viam.service.motion.v1.MotionConfiguration"; } protected: - explicit MoveOnMapResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit MotionConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1354,48 +1310,133 @@ class MoveOnMapResponse final : // accessors ------------------------------------------------------- enum : int { - kSuccessFieldNumber = 1, + kObstacleDetectorsFieldNumber = 1, + kPositionPollingFrequencyHzFieldNumber = 2, + kObstaclePollingFrequencyHzFieldNumber = 3, + kPlanDeviationMFieldNumber = 4, + kLinearMPerSecFieldNumber = 5, + kAngularDegsPerSecFieldNumber = 6, }; - // bool success = 1 [json_name = "success"]; - void clear_success(); - bool success() const; - void set_success(bool value); + // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; + int obstacle_detectors_size() const; private: - bool _internal_success() const; - void _internal_set_success(bool value); + int _internal_obstacle_detectors_size() const; + public: + void clear_obstacle_detectors(); + ::viam::service::motion::v1::ObstacleDetector* mutable_obstacle_detectors(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >* + mutable_obstacle_detectors(); + private: + const ::viam::service::motion::v1::ObstacleDetector& _internal_obstacle_detectors(int index) const; + ::viam::service::motion::v1::ObstacleDetector* _internal_add_obstacle_detectors(); public: + const ::viam::service::motion::v1::ObstacleDetector& obstacle_detectors(int index) const; + ::viam::service::motion::v1::ObstacleDetector* add_obstacle_detectors(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >& + obstacle_detectors() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapResponse) + // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; + bool has_position_polling_frequency_hz() const; + private: + bool _internal_has_position_polling_frequency_hz() const; + public: + void clear_position_polling_frequency_hz(); + double position_polling_frequency_hz() const; + void set_position_polling_frequency_hz(double value); + private: + double _internal_position_polling_frequency_hz() const; + void _internal_set_position_polling_frequency_hz(double value); + public: + + // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; + bool has_obstacle_polling_frequency_hz() const; + private: + bool _internal_has_obstacle_polling_frequency_hz() const; + public: + void clear_obstacle_polling_frequency_hz(); + double obstacle_polling_frequency_hz() const; + void set_obstacle_polling_frequency_hz(double value); + private: + double _internal_obstacle_polling_frequency_hz() const; + void _internal_set_obstacle_polling_frequency_hz(double value); + public: + + // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; + bool has_plan_deviation_m() const; + private: + bool _internal_has_plan_deviation_m() const; + public: + void clear_plan_deviation_m(); + double plan_deviation_m() const; + void set_plan_deviation_m(double value); + private: + double _internal_plan_deviation_m() const; + void _internal_set_plan_deviation_m(double value); + public: + + // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; + bool has_linear_m_per_sec() const; + private: + bool _internal_has_linear_m_per_sec() const; + public: + void clear_linear_m_per_sec(); + double linear_m_per_sec() const; + void set_linear_m_per_sec(double value); + private: + double _internal_linear_m_per_sec() const; + void _internal_set_linear_m_per_sec(double value); + public: + + // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; + bool has_angular_degs_per_sec() const; + private: + bool _internal_has_angular_degs_per_sec() const; + public: + void clear_angular_degs_per_sec(); + double angular_degs_per_sec() const; + void set_angular_degs_per_sec(double value); + private: + double _internal_angular_degs_per_sec() const; + void _internal_set_angular_degs_per_sec(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MotionConfiguration) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool success_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector > obstacle_detectors_; + double position_polling_frequency_hz_; + double obstacle_polling_frequency_hz_; + double plan_deviation_m_; + double linear_m_per_sec_; + double angular_degs_per_sec_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class ObstacleDetector final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ObstacleDetector) */ { +class MoveOnGlobeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeRequest) */ { public: - inline ObstacleDetector() : ObstacleDetector(nullptr) {} - ~ObstacleDetector() override; - explicit PROTOBUF_CONSTEXPR ObstacleDetector(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MoveOnGlobeRequest() : MoveOnGlobeRequest(nullptr) {} + ~MoveOnGlobeRequest() override; + explicit PROTOBUF_CONSTEXPR MoveOnGlobeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ObstacleDetector(const ObstacleDetector& from); - ObstacleDetector(ObstacleDetector&& from) noexcept - : ObstacleDetector() { + MoveOnGlobeRequest(const MoveOnGlobeRequest& from); + MoveOnGlobeRequest(MoveOnGlobeRequest&& from) noexcept + : MoveOnGlobeRequest() { *this = ::std::move(from); } - inline ObstacleDetector& operator=(const ObstacleDetector& from) { + inline MoveOnGlobeRequest& operator=(const MoveOnGlobeRequest& from) { CopyFrom(from); return *this; } - inline ObstacleDetector& operator=(ObstacleDetector&& from) noexcept { + inline MoveOnGlobeRequest& operator=(MoveOnGlobeRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1418,20 +1459,20 @@ class ObstacleDetector final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ObstacleDetector& default_instance() { + static const MoveOnGlobeRequest& default_instance() { return *internal_default_instance(); } - static inline const ObstacleDetector* internal_default_instance() { - return reinterpret_cast( - &_ObstacleDetector_default_instance_); + static inline const MoveOnGlobeRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveOnGlobeRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(ObstacleDetector& a, ObstacleDetector& b) { + friend void swap(MoveOnGlobeRequest& a, MoveOnGlobeRequest& b) { a.Swap(&b); } - inline void Swap(ObstacleDetector* other) { + inline void Swap(MoveOnGlobeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1444,7 +1485,7 @@ class ObstacleDetector final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ObstacleDetector* other) { + void UnsafeArenaSwap(MoveOnGlobeRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1452,13 +1493,13 @@ class ObstacleDetector final : // implements Message ---------------------------------------------- - ObstacleDetector* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveOnGlobeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ObstacleDetector& from); + void CopyFrom(const MoveOnGlobeRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ObstacleDetector& from); + void MergeFrom(const MoveOnGlobeRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1475,15 +1516,15 @@ class ObstacleDetector final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ObstacleDetector* other); + void InternalSwap(MoveOnGlobeRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.ObstacleDetector"; + return "viam.service.motion.v1.MoveOnGlobeRequest"; } protected: - explicit ObstacleDetector(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit MoveOnGlobeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1497,77 +1538,189 @@ class ObstacleDetector final : // accessors ------------------------------------------------------- enum : int { - kVisionServiceFieldNumber = 1, - kCameraFieldNumber = 2, + kObstaclesFieldNumber = 6, + kNameFieldNumber = 1, + kDestinationFieldNumber = 2, + kComponentNameFieldNumber = 4, + kMovementSensorNameFieldNumber = 5, + kMotionConfigurationFieldNumber = 7, + kExtraFieldNumber = 99, + kHeadingFieldNumber = 3, }; - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - bool has_vision_service() const; + // repeated .viam.common.v1.GeoObstacle obstacles = 6 [json_name = "obstacles"]; + int obstacles_size() const; private: - bool _internal_has_vision_service() const; + int _internal_obstacles_size() const; public: - void clear_vision_service(); - const ::viam::common::v1::ResourceName& vision_service() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_vision_service(); - ::viam::common::v1::ResourceName* mutable_vision_service(); - void set_allocated_vision_service(::viam::common::v1::ResourceName* vision_service); + void clear_obstacles(); + ::viam::common::v1::GeoObstacle* mutable_obstacles(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoObstacle >* + mutable_obstacles(); private: - const ::viam::common::v1::ResourceName& _internal_vision_service() const; - ::viam::common::v1::ResourceName* _internal_mutable_vision_service(); + const ::viam::common::v1::GeoObstacle& _internal_obstacles(int index) const; + ::viam::common::v1::GeoObstacle* _internal_add_obstacles(); public: - void unsafe_arena_set_allocated_vision_service( - ::viam::common::v1::ResourceName* vision_service); - ::viam::common::v1::ResourceName* unsafe_arena_release_vision_service(); + const ::viam::common::v1::GeoObstacle& obstacles(int index) const; + ::viam::common::v1::GeoObstacle* add_obstacles(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoObstacle >& + obstacles() const; - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - bool has_camera() const; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); private: - bool _internal_has_camera() const; + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_camera(); - const ::viam::common::v1::ResourceName& camera() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_camera(); - ::viam::common::v1::ResourceName* mutable_camera(); - void set_allocated_camera(::viam::common::v1::ResourceName* camera); + + // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; + bool has_destination() const; private: - const ::viam::common::v1::ResourceName& _internal_camera() const; - ::viam::common::v1::ResourceName* _internal_mutable_camera(); + bool _internal_has_destination() const; public: - void unsafe_arena_set_allocated_camera( - ::viam::common::v1::ResourceName* camera); - ::viam::common::v1::ResourceName* unsafe_arena_release_camera(); - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ObstacleDetector) - private: - class _Internal; + void clear_destination(); + const ::viam::common::v1::GeoPoint& destination() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_destination(); + ::viam::common::v1::GeoPoint* mutable_destination(); + void set_allocated_destination(::viam::common::v1::GeoPoint* destination); + private: + const ::viam::common::v1::GeoPoint& _internal_destination() const; + ::viam::common::v1::GeoPoint* _internal_mutable_destination(); + public: + void unsafe_arena_set_allocated_destination( + ::viam::common::v1::GeoPoint* destination); + ::viam::common::v1::GeoPoint* unsafe_arena_release_destination(); - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::viam::common::v1::ResourceName* vision_service_; - ::viam::common::v1::ResourceName* camera_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; + bool has_movement_sensor_name() const; + private: + bool _internal_has_movement_sensor_name() const; + public: + void clear_movement_sensor_name(); + const ::viam::common::v1::ResourceName& movement_sensor_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_movement_sensor_name(); + ::viam::common::v1::ResourceName* mutable_movement_sensor_name(); + void set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* movement_sensor_name); + private: + const ::viam::common::v1::ResourceName& _internal_movement_sensor_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_movement_sensor_name(); + public: + void unsafe_arena_set_allocated_movement_sensor_name( + ::viam::common::v1::ResourceName* movement_sensor_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_movement_sensor_name(); + + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; + bool has_motion_configuration() const; + private: + bool _internal_has_motion_configuration() const; + public: + void clear_motion_configuration(); + const ::viam::service::motion::v1::MotionConfiguration& motion_configuration() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::MotionConfiguration* release_motion_configuration(); + ::viam::service::motion::v1::MotionConfiguration* mutable_motion_configuration(); + void set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration); + private: + const ::viam::service::motion::v1::MotionConfiguration& _internal_motion_configuration() const; + ::viam::service::motion::v1::MotionConfiguration* _internal_mutable_motion_configuration(); + public: + void unsafe_arena_set_allocated_motion_configuration( + ::viam::service::motion::v1::MotionConfiguration* motion_configuration); + ::viam::service::motion::v1::MotionConfiguration* unsafe_arena_release_motion_configuration(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // optional double heading = 3 [json_name = "heading"]; + bool has_heading() const; + private: + bool _internal_has_heading() const; + public: + void clear_heading(); + double heading() const; + void set_heading(double value); + private: + double _internal_heading() const; + void _internal_set_heading(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoObstacle > obstacles_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::GeoPoint* destination_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::common::v1::ResourceName* movement_sensor_name_; + ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double heading_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class MotionConfiguration final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MotionConfiguration) */ { +class MoveOnGlobeResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeResponse) */ { public: - inline MotionConfiguration() : MotionConfiguration(nullptr) {} - ~MotionConfiguration() override; - explicit PROTOBUF_CONSTEXPR MotionConfiguration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MoveOnGlobeResponse() : MoveOnGlobeResponse(nullptr) {} + ~MoveOnGlobeResponse() override; + explicit PROTOBUF_CONSTEXPR MoveOnGlobeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MotionConfiguration(const MotionConfiguration& from); - MotionConfiguration(MotionConfiguration&& from) noexcept - : MotionConfiguration() { + MoveOnGlobeResponse(const MoveOnGlobeResponse& from); + MoveOnGlobeResponse(MoveOnGlobeResponse&& from) noexcept + : MoveOnGlobeResponse() { *this = ::std::move(from); } - inline MotionConfiguration& operator=(const MotionConfiguration& from) { + inline MoveOnGlobeResponse& operator=(const MoveOnGlobeResponse& from) { CopyFrom(from); return *this; } - inline MotionConfiguration& operator=(MotionConfiguration&& from) noexcept { + inline MoveOnGlobeResponse& operator=(MoveOnGlobeResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1590,20 +1743,20 @@ class MotionConfiguration final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MotionConfiguration& default_instance() { + static const MoveOnGlobeResponse& default_instance() { return *internal_default_instance(); } - static inline const MotionConfiguration* internal_default_instance() { - return reinterpret_cast( - &_MotionConfiguration_default_instance_); + static inline const MoveOnGlobeResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveOnGlobeResponse_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(MotionConfiguration& a, MotionConfiguration& b) { + friend void swap(MoveOnGlobeResponse& a, MoveOnGlobeResponse& b) { a.Swap(&b); } - inline void Swap(MotionConfiguration* other) { + inline void Swap(MoveOnGlobeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1616,7 +1769,7 @@ class MotionConfiguration final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MotionConfiguration* other) { + void UnsafeArenaSwap(MoveOnGlobeResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1624,13 +1777,13 @@ class MotionConfiguration final : // implements Message ---------------------------------------------- - MotionConfiguration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveOnGlobeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MotionConfiguration& from); + void CopyFrom(const MoveOnGlobeResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MotionConfiguration& from); + void MergeFrom(const MoveOnGlobeResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1647,15 +1800,15 @@ class MotionConfiguration final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MotionConfiguration* other); + void InternalSwap(MoveOnGlobeResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.MotionConfiguration"; + return "viam.service.motion.v1.MoveOnGlobeResponse"; } protected: - explicit MotionConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit MoveOnGlobeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1669,133 +1822,53 @@ class MotionConfiguration final : // accessors ------------------------------------------------------- enum : int { - kObstacleDetectorsFieldNumber = 1, - kPositionPollingFrequencyHzFieldNumber = 2, - kObstaclePollingFrequencyHzFieldNumber = 3, - kPlanDeviationMFieldNumber = 4, - kLinearMPerSecFieldNumber = 5, - kAngularDegsPerSecFieldNumber = 6, + kExecutionIdFieldNumber = 1, }; - // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; - int obstacle_detectors_size() const; - private: - int _internal_obstacle_detectors_size() const; - public: - void clear_obstacle_detectors(); - ::viam::service::motion::v1::ObstacleDetector* mutable_obstacle_detectors(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >* - mutable_obstacle_detectors(); - private: - const ::viam::service::motion::v1::ObstacleDetector& _internal_obstacle_detectors(int index) const; - ::viam::service::motion::v1::ObstacleDetector* _internal_add_obstacle_detectors(); - public: - const ::viam::service::motion::v1::ObstacleDetector& obstacle_detectors(int index) const; - ::viam::service::motion::v1::ObstacleDetector* add_obstacle_detectors(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >& - obstacle_detectors() const; - - // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; - bool has_position_polling_frequency_hz() const; - private: - bool _internal_has_position_polling_frequency_hz() const; - public: - void clear_position_polling_frequency_hz(); - double position_polling_frequency_hz() const; - void set_position_polling_frequency_hz(double value); - private: - double _internal_position_polling_frequency_hz() const; - void _internal_set_position_polling_frequency_hz(double value); - public: - - // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; - bool has_obstacle_polling_frequency_hz() const; - private: - bool _internal_has_obstacle_polling_frequency_hz() const; - public: - void clear_obstacle_polling_frequency_hz(); - double obstacle_polling_frequency_hz() const; - void set_obstacle_polling_frequency_hz(double value); - private: - double _internal_obstacle_polling_frequency_hz() const; - void _internal_set_obstacle_polling_frequency_hz(double value); - public: - - // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; - bool has_plan_deviation_m() const; - private: - bool _internal_has_plan_deviation_m() const; - public: - void clear_plan_deviation_m(); - double plan_deviation_m() const; - void set_plan_deviation_m(double value); - private: - double _internal_plan_deviation_m() const; - void _internal_set_plan_deviation_m(double value); - public: - - // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; - bool has_linear_m_per_sec() const; - private: - bool _internal_has_linear_m_per_sec() const; - public: - void clear_linear_m_per_sec(); - double linear_m_per_sec() const; - void set_linear_m_per_sec(double value); - private: - double _internal_linear_m_per_sec() const; - void _internal_set_linear_m_per_sec(double value); - public: - - // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; - bool has_angular_degs_per_sec() const; - private: - bool _internal_has_angular_degs_per_sec() const; - public: - void clear_angular_degs_per_sec(); - double angular_degs_per_sec() const; - void set_angular_degs_per_sec(double value); + // string execution_id = 1 [json_name = "executionId"]; + void clear_execution_id(); + const std::string& execution_id() const; + template + void set_execution_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_execution_id(); + PROTOBUF_NODISCARD std::string* release_execution_id(); + void set_allocated_execution_id(std::string* execution_id); private: - double _internal_angular_degs_per_sec() const; - void _internal_set_angular_degs_per_sec(double value); + const std::string& _internal_execution_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); + std::string* _internal_mutable_execution_id(); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MotionConfiguration) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector > obstacle_detectors_; - double position_polling_frequency_hz_; - double obstacle_polling_frequency_hz_; - double plan_deviation_m_; - double linear_m_per_sec_; - double angular_degs_per_sec_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class MoveOnGlobeRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeRequest) */ { +class GetPoseRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseRequest) */ { public: - inline MoveOnGlobeRequest() : MoveOnGlobeRequest(nullptr) {} - ~MoveOnGlobeRequest() override; - explicit PROTOBUF_CONSTEXPR MoveOnGlobeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline GetPoseRequest() : GetPoseRequest(nullptr) {} + ~GetPoseRequest() override; + explicit PROTOBUF_CONSTEXPR GetPoseRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MoveOnGlobeRequest(const MoveOnGlobeRequest& from); - MoveOnGlobeRequest(MoveOnGlobeRequest&& from) noexcept - : MoveOnGlobeRequest() { + GetPoseRequest(const GetPoseRequest& from); + GetPoseRequest(GetPoseRequest&& from) noexcept + : GetPoseRequest() { *this = ::std::move(from); } - inline MoveOnGlobeRequest& operator=(const MoveOnGlobeRequest& from) { + inline GetPoseRequest& operator=(const GetPoseRequest& from) { CopyFrom(from); return *this; } - inline MoveOnGlobeRequest& operator=(MoveOnGlobeRequest&& from) noexcept { + inline GetPoseRequest& operator=(GetPoseRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1818,20 +1891,20 @@ class MoveOnGlobeRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnGlobeRequest& default_instance() { + static const GetPoseRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveOnGlobeRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveOnGlobeRequest_default_instance_); + static inline const GetPoseRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPoseRequest_default_instance_); } static constexpr int kIndexInFileMessages = 8; - friend void swap(MoveOnGlobeRequest& a, MoveOnGlobeRequest& b) { + friend void swap(GetPoseRequest& a, GetPoseRequest& b) { a.Swap(&b); } - inline void Swap(MoveOnGlobeRequest* other) { + inline void Swap(GetPoseRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1844,7 +1917,7 @@ class MoveOnGlobeRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnGlobeRequest* other) { + void UnsafeArenaSwap(GetPoseRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1852,13 +1925,13 @@ class MoveOnGlobeRequest final : // implements Message ---------------------------------------------- - MoveOnGlobeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetPoseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveOnGlobeRequest& from); + void CopyFrom(const GetPoseRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveOnGlobeRequest& from); + void MergeFrom(const GetPoseRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1875,15 +1948,15 @@ class MoveOnGlobeRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MoveOnGlobeRequest* other); + void InternalSwap(GetPoseRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.MoveOnGlobeRequest"; + return "viam.service.motion.v1.GetPoseRequest"; } protected: - explicit MoveOnGlobeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit GetPoseRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1897,32 +1970,29 @@ class MoveOnGlobeRequest final : // accessors ------------------------------------------------------- enum : int { - kObstaclesFieldNumber = 6, + kSupplementalTransformsFieldNumber = 4, kNameFieldNumber = 1, - kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 4, - kMovementSensorNameFieldNumber = 5, - kMotionConfigurationFieldNumber = 7, + kDestinationFrameFieldNumber = 3, + kComponentNameFieldNumber = 2, kExtraFieldNumber = 99, - kHeadingFieldNumber = 3, }; - // repeated .viam.common.v1.GeoObstacle obstacles = 6 [json_name = "obstacles"]; - int obstacles_size() const; + // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; + int supplemental_transforms_size() const; private: - int _internal_obstacles_size() const; + int _internal_supplemental_transforms_size() const; public: - void clear_obstacles(); - ::viam::common::v1::GeoObstacle* mutable_obstacles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoObstacle >* - mutable_obstacles(); + void clear_supplemental_transforms(); + ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_supplemental_transforms(); private: - const ::viam::common::v1::GeoObstacle& _internal_obstacles(int index) const; - ::viam::common::v1::GeoObstacle* _internal_add_obstacles(); + const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); public: - const ::viam::common::v1::GeoObstacle& obstacles(int index) const; - ::viam::common::v1::GeoObstacle* add_obstacles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoObstacle >& - obstacles() const; + const ::viam::common::v1::Transform& supplemental_transforms(int index) const; + ::viam::common::v1::Transform* add_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + supplemental_transforms() const; // string name = 1 [json_name = "name"]; void clear_name(); @@ -1938,25 +2008,21 @@ class MoveOnGlobeRequest final : std::string* _internal_mutable_name(); public: - // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; - bool has_destination() const; - private: - bool _internal_has_destination() const; - public: - void clear_destination(); - const ::viam::common::v1::GeoPoint& destination() const; - PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_destination(); - ::viam::common::v1::GeoPoint* mutable_destination(); - void set_allocated_destination(::viam::common::v1::GeoPoint* destination); + // string destination_frame = 3 [json_name = "destinationFrame"]; + void clear_destination_frame(); + const std::string& destination_frame() const; + template + void set_destination_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination_frame(); + PROTOBUF_NODISCARD std::string* release_destination_frame(); + void set_allocated_destination_frame(std::string* destination_frame); private: - const ::viam::common::v1::GeoPoint& _internal_destination() const; - ::viam::common::v1::GeoPoint* _internal_mutable_destination(); + const std::string& _internal_destination_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination_frame(const std::string& value); + std::string* _internal_mutable_destination_frame(); public: - void unsafe_arena_set_allocated_destination( - ::viam::common::v1::GeoPoint* destination); - ::viam::common::v1::GeoPoint* unsafe_arena_release_destination(); - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; bool has_component_name() const; private: bool _internal_has_component_name() const; @@ -1974,42 +2040,6 @@ class MoveOnGlobeRequest final : ::viam::common::v1::ResourceName* component_name); ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - bool has_movement_sensor_name() const; - private: - bool _internal_has_movement_sensor_name() const; - public: - void clear_movement_sensor_name(); - const ::viam::common::v1::ResourceName& movement_sensor_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_movement_sensor_name(); - ::viam::common::v1::ResourceName* mutable_movement_sensor_name(); - void set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* movement_sensor_name); - private: - const ::viam::common::v1::ResourceName& _internal_movement_sensor_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_movement_sensor_name(); - public: - void unsafe_arena_set_allocated_movement_sensor_name( - ::viam::common::v1::ResourceName* movement_sensor_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_movement_sensor_name(); - - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; - bool has_motion_configuration() const; - private: - bool _internal_has_motion_configuration() const; - public: - void clear_motion_configuration(); - const ::viam::service::motion::v1::MotionConfiguration& motion_configuration() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::MotionConfiguration* release_motion_configuration(); - ::viam::service::motion::v1::MotionConfiguration* mutable_motion_configuration(); - void set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration); - private: - const ::viam::service::motion::v1::MotionConfiguration& _internal_motion_configuration() const; - ::viam::service::motion::v1::MotionConfiguration* _internal_mutable_motion_configuration(); - public: - void unsafe_arena_set_allocated_motion_configuration( - ::viam::service::motion::v1::MotionConfiguration* motion_configuration); - ::viam::service::motion::v1::MotionConfiguration* unsafe_arena_release_motion_configuration(); - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; private: @@ -2028,58 +2058,41 @@ class MoveOnGlobeRequest final : ::PROTOBUF_NAMESPACE_ID::Struct* extra); ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - // optional double heading = 3 [json_name = "heading"]; - bool has_heading() const; - private: - bool _internal_has_heading() const; - public: - void clear_heading(); - double heading() const; - void set_heading(double value); - private: - double _internal_heading() const; - void _internal_set_heading(double value); - public: - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoObstacle > obstacles_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::viam::common::v1::GeoPoint* destination_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_frame_; ::viam::common::v1::ResourceName* component_name_; - ::viam::common::v1::ResourceName* movement_sensor_name_; - ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; - double heading_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class MoveOnGlobeResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeResponse) */ { +class GetPoseResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseResponse) */ { public: - inline MoveOnGlobeResponse() : MoveOnGlobeResponse(nullptr) {} - ~MoveOnGlobeResponse() override; - explicit PROTOBUF_CONSTEXPR MoveOnGlobeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline GetPoseResponse() : GetPoseResponse(nullptr) {} + ~GetPoseResponse() override; + explicit PROTOBUF_CONSTEXPR GetPoseResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - MoveOnGlobeResponse(const MoveOnGlobeResponse& from); - MoveOnGlobeResponse(MoveOnGlobeResponse&& from) noexcept - : MoveOnGlobeResponse() { + GetPoseResponse(const GetPoseResponse& from); + GetPoseResponse(GetPoseResponse&& from) noexcept + : GetPoseResponse() { *this = ::std::move(from); } - inline MoveOnGlobeResponse& operator=(const MoveOnGlobeResponse& from) { + inline GetPoseResponse& operator=(const GetPoseResponse& from) { CopyFrom(from); return *this; } - inline MoveOnGlobeResponse& operator=(MoveOnGlobeResponse&& from) noexcept { + inline GetPoseResponse& operator=(GetPoseResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2102,20 +2115,20 @@ class MoveOnGlobeResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnGlobeResponse& default_instance() { + static const GetPoseResponse& default_instance() { return *internal_default_instance(); } - static inline const MoveOnGlobeResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveOnGlobeResponse_default_instance_); + static inline const GetPoseResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPoseResponse_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(MoveOnGlobeResponse& a, MoveOnGlobeResponse& b) { + friend void swap(GetPoseResponse& a, GetPoseResponse& b) { a.Swap(&b); } - inline void Swap(MoveOnGlobeResponse* other) { + inline void Swap(GetPoseResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2128,7 +2141,7 @@ class MoveOnGlobeResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnGlobeResponse* other) { + void UnsafeArenaSwap(GetPoseResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2136,13 +2149,13 @@ class MoveOnGlobeResponse final : // implements Message ---------------------------------------------- - MoveOnGlobeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetPoseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveOnGlobeResponse& from); + void CopyFrom(const GetPoseResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const MoveOnGlobeResponse& from); + void MergeFrom(const GetPoseResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2159,15 +2172,15 @@ class MoveOnGlobeResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(MoveOnGlobeResponse* other); + void InternalSwap(GetPoseResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.MoveOnGlobeResponse"; + return "viam.service.motion.v1.GetPoseResponse"; } protected: - explicit MoveOnGlobeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit GetPoseResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2181,53 +2194,57 @@ class MoveOnGlobeResponse final : // accessors ------------------------------------------------------- enum : int { - kExecutionIdFieldNumber = 1, + kPoseFieldNumber = 1, }; - // string execution_id = 1 [json_name = "executionId"]; - void clear_execution_id(); - const std::string& execution_id() const; - template - void set_execution_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_execution_id(); - PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* execution_id); + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + bool has_pose() const; private: - const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); - std::string* _internal_mutable_execution_id(); + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::PoseInFrame& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); + ::viam::common::v1::PoseInFrame* mutable_pose(); + void set_allocated_pose(::viam::common::v1::PoseInFrame* pose); + private: + const ::viam::common::v1::PoseInFrame& _internal_pose() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeResponse) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + ::viam::common::v1::PoseInFrame* pose_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class GetPoseRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseRequest) */ { +class StopPlanRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanRequest) */ { public: - inline GetPoseRequest() : GetPoseRequest(nullptr) {} - ~GetPoseRequest() override; - explicit PROTOBUF_CONSTEXPR GetPoseRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline StopPlanRequest() : StopPlanRequest(nullptr) {} + ~StopPlanRequest() override; + explicit PROTOBUF_CONSTEXPR StopPlanRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - GetPoseRequest(const GetPoseRequest& from); - GetPoseRequest(GetPoseRequest&& from) noexcept - : GetPoseRequest() { + StopPlanRequest(const StopPlanRequest& from); + StopPlanRequest(StopPlanRequest&& from) noexcept + : StopPlanRequest() { *this = ::std::move(from); } - inline GetPoseRequest& operator=(const GetPoseRequest& from) { + inline StopPlanRequest& operator=(const StopPlanRequest& from) { CopyFrom(from); return *this; } - inline GetPoseRequest& operator=(GetPoseRequest&& from) noexcept { + inline StopPlanRequest& operator=(StopPlanRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2250,20 +2267,20 @@ class GetPoseRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPoseRequest& default_instance() { + static const StopPlanRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPoseRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPoseRequest_default_instance_); + static inline const StopPlanRequest* internal_default_instance() { + return reinterpret_cast( + &_StopPlanRequest_default_instance_); } static constexpr int kIndexInFileMessages = 10; - friend void swap(GetPoseRequest& a, GetPoseRequest& b) { + friend void swap(StopPlanRequest& a, StopPlanRequest& b) { a.Swap(&b); } - inline void Swap(GetPoseRequest* other) { + inline void Swap(StopPlanRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2276,7 +2293,7 @@ class GetPoseRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPoseRequest* other) { + void UnsafeArenaSwap(StopPlanRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2284,13 +2301,13 @@ class GetPoseRequest final : // implements Message ---------------------------------------------- - GetPoseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopPlanRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetPoseRequest& from); + void CopyFrom(const StopPlanRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetPoseRequest& from); + void MergeFrom(const StopPlanRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2307,15 +2324,15 @@ class GetPoseRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetPoseRequest* other); + void InternalSwap(StopPlanRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.GetPoseRequest"; + return "viam.service.motion.v1.StopPlanRequest"; } protected: - explicit GetPoseRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit StopPlanRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2329,30 +2346,10 @@ class GetPoseRequest final : // accessors ------------------------------------------------------- enum : int { - kSupplementalTransformsFieldNumber = 4, kNameFieldNumber = 1, - kDestinationFrameFieldNumber = 3, kComponentNameFieldNumber = 2, kExtraFieldNumber = 99, }; - // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; - int supplemental_transforms_size() const; - private: - int _internal_supplemental_transforms_size() const; - public: - void clear_supplemental_transforms(); - ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* - mutable_supplemental_transforms(); - private: - const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; - ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); - public: - const ::viam::common::v1::Transform& supplemental_transforms(int index) const; - ::viam::common::v1::Transform* add_supplemental_transforms(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& - supplemental_transforms() const; - // string name = 1 [json_name = "name"]; void clear_name(); const std::string& name() const; @@ -2367,20 +2364,6 @@ class GetPoseRequest final : std::string* _internal_mutable_name(); public: - // string destination_frame = 3 [json_name = "destinationFrame"]; - void clear_destination_frame(); - const std::string& destination_frame() const; - template - void set_destination_frame(ArgT0&& arg0, ArgT... args); - std::string* mutable_destination_frame(); - PROTOBUF_NODISCARD std::string* release_destination_frame(); - void set_allocated_destination_frame(std::string* destination_frame); - private: - const std::string& _internal_destination_frame() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination_frame(const std::string& value); - std::string* _internal_mutable_destination_frame(); - public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; bool has_component_name() const; private: @@ -2417,16 +2400,14 @@ class GetPoseRequest final : ::PROTOBUF_NAMESPACE_ID::Struct* extra); ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.StopPlanRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_frame_; ::viam::common::v1::ResourceName* component_name_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -2434,24 +2415,23 @@ class GetPoseRequest final : }; // ------------------------------------------------------------------- -class GetPoseResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseResponse) */ { +class StopPlanResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanResponse) */ { public: - inline GetPoseResponse() : GetPoseResponse(nullptr) {} - ~GetPoseResponse() override; - explicit PROTOBUF_CONSTEXPR GetPoseResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline StopPlanResponse() : StopPlanResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopPlanResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - GetPoseResponse(const GetPoseResponse& from); - GetPoseResponse(GetPoseResponse&& from) noexcept - : GetPoseResponse() { + StopPlanResponse(const StopPlanResponse& from); + StopPlanResponse(StopPlanResponse&& from) noexcept + : StopPlanResponse() { *this = ::std::move(from); } - inline GetPoseResponse& operator=(const GetPoseResponse& from) { + inline StopPlanResponse& operator=(const StopPlanResponse& from) { CopyFrom(from); return *this; } - inline GetPoseResponse& operator=(GetPoseResponse&& from) noexcept { + inline StopPlanResponse& operator=(StopPlanResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2474,20 +2454,20 @@ class GetPoseResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPoseResponse& default_instance() { + static const StopPlanResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPoseResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPoseResponse_default_instance_); + static inline const StopPlanResponse* internal_default_instance() { + return reinterpret_cast( + &_StopPlanResponse_default_instance_); } static constexpr int kIndexInFileMessages = 11; - friend void swap(GetPoseResponse& a, GetPoseResponse& b) { + friend void swap(StopPlanResponse& a, StopPlanResponse& b) { a.Swap(&b); } - inline void Swap(GetPoseResponse* other) { + inline void Swap(StopPlanResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2500,7 +2480,7 @@ class GetPoseResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPoseResponse* other) { + void UnsafeArenaSwap(StopPlanResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2508,38 +2488,26 @@ class GetPoseResponse final : // implements Message ---------------------------------------------- - GetPoseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopPlanResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopPlanResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopPlanResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetPoseResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetPoseResponse& from); - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetPoseResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.GetPoseResponse"; + return "viam.service.motion.v1.StopPlanResponse"; } protected: - explicit GetPoseResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit StopPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2552,58 +2520,35 @@ class GetPoseResponse final : // accessors ------------------------------------------------------- - enum : int { - kPoseFieldNumber = 1, - }; - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - bool has_pose() const; - private: - bool _internal_has_pose() const; - public: - void clear_pose(); - const ::viam::common::v1::PoseInFrame& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); - ::viam::common::v1::PoseInFrame* mutable_pose(); - void set_allocated_pose(::viam::common::v1::PoseInFrame* pose); - private: - const ::viam::common::v1::PoseInFrame& _internal_pose() const; - ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); - public: - void unsafe_arena_set_allocated_pose( - ::viam::common::v1::PoseInFrame* pose); - ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseResponse) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.StopPlanResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::viam::common::v1::PoseInFrame* pose_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class StopPlanRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanRequest) */ { +class ListPlanStatusesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesRequest) */ { public: - inline StopPlanRequest() : StopPlanRequest(nullptr) {} - ~StopPlanRequest() override; - explicit PROTOBUF_CONSTEXPR StopPlanRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ListPlanStatusesRequest() : ListPlanStatusesRequest(nullptr) {} + ~ListPlanStatusesRequest() override; + explicit PROTOBUF_CONSTEXPR ListPlanStatusesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - StopPlanRequest(const StopPlanRequest& from); - StopPlanRequest(StopPlanRequest&& from) noexcept - : StopPlanRequest() { + ListPlanStatusesRequest(const ListPlanStatusesRequest& from); + ListPlanStatusesRequest(ListPlanStatusesRequest&& from) noexcept + : ListPlanStatusesRequest() { *this = ::std::move(from); } - inline StopPlanRequest& operator=(const StopPlanRequest& from) { + inline ListPlanStatusesRequest& operator=(const ListPlanStatusesRequest& from) { CopyFrom(from); return *this; } - inline StopPlanRequest& operator=(StopPlanRequest&& from) noexcept { + inline ListPlanStatusesRequest& operator=(ListPlanStatusesRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2626,20 +2571,20 @@ class StopPlanRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopPlanRequest& default_instance() { + static const ListPlanStatusesRequest& default_instance() { return *internal_default_instance(); } - static inline const StopPlanRequest* internal_default_instance() { - return reinterpret_cast( - &_StopPlanRequest_default_instance_); + static inline const ListPlanStatusesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListPlanStatusesRequest_default_instance_); } static constexpr int kIndexInFileMessages = 12; - friend void swap(StopPlanRequest& a, StopPlanRequest& b) { + friend void swap(ListPlanStatusesRequest& a, ListPlanStatusesRequest& b) { a.Swap(&b); } - inline void Swap(StopPlanRequest* other) { + inline void Swap(ListPlanStatusesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2652,7 +2597,7 @@ class StopPlanRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopPlanRequest* other) { + void UnsafeArenaSwap(ListPlanStatusesRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2660,13 +2605,13 @@ class StopPlanRequest final : // implements Message ---------------------------------------------- - StopPlanRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ListPlanStatusesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StopPlanRequest& from); + void CopyFrom(const ListPlanStatusesRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const StopPlanRequest& from); + void MergeFrom(const ListPlanStatusesRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2683,15 +2628,15 @@ class StopPlanRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(StopPlanRequest* other); + void InternalSwap(ListPlanStatusesRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.StopPlanRequest"; + return "viam.service.motion.v1.ListPlanStatusesRequest"; } protected: - explicit StopPlanRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ListPlanStatusesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2706,8 +2651,8 @@ class StopPlanRequest final : enum : int { kNameFieldNumber = 1, - kComponentNameFieldNumber = 2, kExtraFieldNumber = 99, + kOnlyActivePlansFieldNumber = 2, }; // string name = 1 [json_name = "name"]; void clear_name(); @@ -2723,24 +2668,6 @@ class StopPlanRequest final : std::string* _internal_mutable_name(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; - private: - bool _internal_has_component_name() const; - public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); - private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; private: @@ -2759,38 +2686,48 @@ class StopPlanRequest final : ::PROTOBUF_NAMESPACE_ID::Struct* extra); ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.StopPlanRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::viam::common::v1::ResourceName* component_name_; - ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; + void clear_only_active_plans(); + bool only_active_plans() const; + void set_only_active_plans(bool value); + private: + bool _internal_only_active_plans() const; + void _internal_set_only_active_plans(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool only_active_plans_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class StopPlanResponse final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanResponse) */ { +class ListPlanStatusesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesResponse) */ { public: - inline StopPlanResponse() : StopPlanResponse(nullptr) {} - explicit PROTOBUF_CONSTEXPR StopPlanResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ListPlanStatusesResponse() : ListPlanStatusesResponse(nullptr) {} + ~ListPlanStatusesResponse() override; + explicit PROTOBUF_CONSTEXPR ListPlanStatusesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - StopPlanResponse(const StopPlanResponse& from); - StopPlanResponse(StopPlanResponse&& from) noexcept - : StopPlanResponse() { + ListPlanStatusesResponse(const ListPlanStatusesResponse& from); + ListPlanStatusesResponse(ListPlanStatusesResponse&& from) noexcept + : ListPlanStatusesResponse() { *this = ::std::move(from); } - inline StopPlanResponse& operator=(const StopPlanResponse& from) { + inline ListPlanStatusesResponse& operator=(const ListPlanStatusesResponse& from) { CopyFrom(from); return *this; } - inline StopPlanResponse& operator=(StopPlanResponse&& from) noexcept { + inline ListPlanStatusesResponse& operator=(ListPlanStatusesResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2813,20 +2750,20 @@ class StopPlanResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopPlanResponse& default_instance() { + static const ListPlanStatusesResponse& default_instance() { return *internal_default_instance(); } - static inline const StopPlanResponse* internal_default_instance() { - return reinterpret_cast( - &_StopPlanResponse_default_instance_); + static inline const ListPlanStatusesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListPlanStatusesResponse_default_instance_); } static constexpr int kIndexInFileMessages = 13; - friend void swap(StopPlanResponse& a, StopPlanResponse& b) { + friend void swap(ListPlanStatusesResponse& a, ListPlanStatusesResponse& b) { a.Swap(&b); } - inline void Swap(StopPlanResponse* other) { + inline void Swap(ListPlanStatusesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2839,7 +2776,7 @@ class StopPlanResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopPlanResponse* other) { + void UnsafeArenaSwap(ListPlanStatusesResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2847,26 +2784,38 @@ class StopPlanResponse final : // implements Message ---------------------------------------------- - StopPlanResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopPlanResponse& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopPlanResponse& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ListPlanStatusesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListPlanStatusesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListPlanStatusesResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListPlanStatusesResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.StopPlanResponse"; + return "viam.service.motion.v1.ListPlanStatusesResponse"; } protected: - explicit StopPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ListPlanStatusesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2879,35 +2828,58 @@ class StopPlanResponse final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.StopPlanResponse) + enum : int { + kPlanStatusesWithIdsFieldNumber = 1, + }; + // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; + int plan_statuses_with_ids_size() const; + private: + int _internal_plan_statuses_with_ids_size() const; + public: + void clear_plan_statuses_with_ids(); + ::viam::service::motion::v1::PlanStatusWithID* mutable_plan_statuses_with_ids(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >* + mutable_plan_statuses_with_ids(); + private: + const ::viam::service::motion::v1::PlanStatusWithID& _internal_plan_statuses_with_ids(int index) const; + ::viam::service::motion::v1::PlanStatusWithID* _internal_add_plan_statuses_with_ids(); + public: + const ::viam::service::motion::v1::PlanStatusWithID& plan_statuses_with_ids(int index) const; + ::viam::service::motion::v1::PlanStatusWithID* add_plan_statuses_with_ids(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >& + plan_statuses_with_ids() const; + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID > plan_statuses_with_ids_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class ListPlanStatusesRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesRequest) */ { +class GetPlanRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanRequest) */ { public: - inline ListPlanStatusesRequest() : ListPlanStatusesRequest(nullptr) {} - ~ListPlanStatusesRequest() override; - explicit PROTOBUF_CONSTEXPR ListPlanStatusesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline GetPlanRequest() : GetPlanRequest(nullptr) {} + ~GetPlanRequest() override; + explicit PROTOBUF_CONSTEXPR GetPlanRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ListPlanStatusesRequest(const ListPlanStatusesRequest& from); - ListPlanStatusesRequest(ListPlanStatusesRequest&& from) noexcept - : ListPlanStatusesRequest() { + GetPlanRequest(const GetPlanRequest& from); + GetPlanRequest(GetPlanRequest&& from) noexcept + : GetPlanRequest() { *this = ::std::move(from); } - inline ListPlanStatusesRequest& operator=(const ListPlanStatusesRequest& from) { + inline GetPlanRequest& operator=(const GetPlanRequest& from) { CopyFrom(from); return *this; } - inline ListPlanStatusesRequest& operator=(ListPlanStatusesRequest&& from) noexcept { + inline GetPlanRequest& operator=(GetPlanRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2930,20 +2902,20 @@ class ListPlanStatusesRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPlanStatusesRequest& default_instance() { + static const GetPlanRequest& default_instance() { return *internal_default_instance(); } - static inline const ListPlanStatusesRequest* internal_default_instance() { - return reinterpret_cast( - &_ListPlanStatusesRequest_default_instance_); + static inline const GetPlanRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPlanRequest_default_instance_); } static constexpr int kIndexInFileMessages = 14; - friend void swap(ListPlanStatusesRequest& a, ListPlanStatusesRequest& b) { + friend void swap(GetPlanRequest& a, GetPlanRequest& b) { a.Swap(&b); } - inline void Swap(ListPlanStatusesRequest* other) { + inline void Swap(GetPlanRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2956,7 +2928,7 @@ class ListPlanStatusesRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPlanStatusesRequest* other) { + void UnsafeArenaSwap(GetPlanRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2964,13 +2936,13 @@ class ListPlanStatusesRequest final : // implements Message ---------------------------------------------- - ListPlanStatusesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetPlanRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ListPlanStatusesRequest& from); + void CopyFrom(const GetPlanRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ListPlanStatusesRequest& from); + void MergeFrom(const GetPlanRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2987,15 +2959,15 @@ class ListPlanStatusesRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ListPlanStatusesRequest* other); + void InternalSwap(GetPlanRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.ListPlanStatusesRequest"; + return "viam.service.motion.v1.GetPlanRequest"; } protected: - explicit ListPlanStatusesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit GetPlanRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3010,8 +2982,10 @@ class ListPlanStatusesRequest final : enum : int { kNameFieldNumber = 1, + kExecutionIdFieldNumber = 4, + kComponentNameFieldNumber = 2, kExtraFieldNumber = 99, - kOnlyActivePlansFieldNumber = 2, + kLastPlanOnlyFieldNumber = 3, }; // string name = 1 [json_name = "name"]; void clear_name(); @@ -3027,6 +3001,42 @@ class ListPlanStatusesRequest final : std::string* _internal_mutable_name(); public: + // optional string execution_id = 4 [json_name = "executionId"]; + bool has_execution_id() const; + private: + bool _internal_has_execution_id() const; + public: + void clear_execution_id(); + const std::string& execution_id() const; + template + void set_execution_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_execution_id(); + PROTOBUF_NODISCARD std::string* release_execution_id(); + void set_allocated_execution_id(std::string* execution_id); + private: + const std::string& _internal_execution_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); + std::string* _internal_mutable_execution_id(); + public: + + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; private: @@ -3045,48 +3055,51 @@ class ListPlanStatusesRequest final : ::PROTOBUF_NAMESPACE_ID::Struct* extra); ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; - void clear_only_active_plans(); - bool only_active_plans() const; - void set_only_active_plans(bool value); + // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; + void clear_last_plan_only(); + bool last_plan_only() const; + void set_last_plan_only(bool value); private: - bool _internal_only_active_plans() const; - void _internal_set_only_active_plans(bool value); + bool _internal_last_plan_only() const; + void _internal_set_last_plan_only(bool value); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + ::viam::common::v1::ResourceName* component_name_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; - bool only_active_plans_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + bool last_plan_only_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class ListPlanStatusesResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesResponse) */ { +class GetPlanResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanResponse) */ { public: - inline ListPlanStatusesResponse() : ListPlanStatusesResponse(nullptr) {} - ~ListPlanStatusesResponse() override; - explicit PROTOBUF_CONSTEXPR ListPlanStatusesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline GetPlanResponse() : GetPlanResponse(nullptr) {} + ~GetPlanResponse() override; + explicit PROTOBUF_CONSTEXPR GetPlanResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ListPlanStatusesResponse(const ListPlanStatusesResponse& from); - ListPlanStatusesResponse(ListPlanStatusesResponse&& from) noexcept - : ListPlanStatusesResponse() { + GetPlanResponse(const GetPlanResponse& from); + GetPlanResponse(GetPlanResponse&& from) noexcept + : GetPlanResponse() { *this = ::std::move(from); } - inline ListPlanStatusesResponse& operator=(const ListPlanStatusesResponse& from) { + inline GetPlanResponse& operator=(const GetPlanResponse& from) { CopyFrom(from); return *this; } - inline ListPlanStatusesResponse& operator=(ListPlanStatusesResponse&& from) noexcept { + inline GetPlanResponse& operator=(GetPlanResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3109,20 +3122,20 @@ class ListPlanStatusesResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPlanStatusesResponse& default_instance() { + static const GetPlanResponse& default_instance() { return *internal_default_instance(); } - static inline const ListPlanStatusesResponse* internal_default_instance() { - return reinterpret_cast( - &_ListPlanStatusesResponse_default_instance_); + static inline const GetPlanResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPlanResponse_default_instance_); } static constexpr int kIndexInFileMessages = 15; - friend void swap(ListPlanStatusesResponse& a, ListPlanStatusesResponse& b) { + friend void swap(GetPlanResponse& a, GetPlanResponse& b) { a.Swap(&b); } - inline void Swap(ListPlanStatusesResponse* other) { + inline void Swap(GetPlanResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3135,7 +3148,7 @@ class ListPlanStatusesResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPlanStatusesResponse* other) { + void UnsafeArenaSwap(GetPlanResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3143,13 +3156,13 @@ class ListPlanStatusesResponse final : // implements Message ---------------------------------------------- - ListPlanStatusesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetPlanResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ListPlanStatusesResponse& from); + void CopyFrom(const GetPlanResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ListPlanStatusesResponse& from); + void MergeFrom(const GetPlanResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -3166,15 +3179,15 @@ class ListPlanStatusesResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ListPlanStatusesResponse* other); + void InternalSwap(GetPlanResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.ListPlanStatusesResponse"; + return "viam.service.motion.v1.GetPlanResponse"; } protected: - explicit ListPlanStatusesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit GetPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3188,57 +3201,77 @@ class ListPlanStatusesResponse final : // accessors ------------------------------------------------------- enum : int { - kPlanStatusesWithIdsFieldNumber = 1, + kReplanHistoryFieldNumber = 2, + kCurrentPlanWithStatusFieldNumber = 1, }; - // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; - int plan_statuses_with_ids_size() const; + // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; + int replan_history_size() const; private: - int _internal_plan_statuses_with_ids_size() const; + int _internal_replan_history_size() const; public: - void clear_plan_statuses_with_ids(); - ::viam::service::motion::v1::PlanStatusWithID* mutable_plan_statuses_with_ids(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >* - mutable_plan_statuses_with_ids(); + void clear_replan_history(); + ::viam::service::motion::v1::PlanWithStatus* mutable_replan_history(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >* + mutable_replan_history(); private: - const ::viam::service::motion::v1::PlanStatusWithID& _internal_plan_statuses_with_ids(int index) const; - ::viam::service::motion::v1::PlanStatusWithID* _internal_add_plan_statuses_with_ids(); + const ::viam::service::motion::v1::PlanWithStatus& _internal_replan_history(int index) const; + ::viam::service::motion::v1::PlanWithStatus* _internal_add_replan_history(); public: - const ::viam::service::motion::v1::PlanStatusWithID& plan_statuses_with_ids(int index) const; - ::viam::service::motion::v1::PlanStatusWithID* add_plan_statuses_with_ids(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >& - plan_statuses_with_ids() const; + const ::viam::service::motion::v1::PlanWithStatus& replan_history(int index) const; + ::viam::service::motion::v1::PlanWithStatus* add_replan_history(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >& + replan_history() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesResponse) + // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; + bool has_current_plan_with_status() const; + private: + bool _internal_has_current_plan_with_status() const; + public: + void clear_current_plan_with_status(); + const ::viam::service::motion::v1::PlanWithStatus& current_plan_with_status() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanWithStatus* release_current_plan_with_status(); + ::viam::service::motion::v1::PlanWithStatus* mutable_current_plan_with_status(); + void set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* current_plan_with_status); + private: + const ::viam::service::motion::v1::PlanWithStatus& _internal_current_plan_with_status() const; + ::viam::service::motion::v1::PlanWithStatus* _internal_mutable_current_plan_with_status(); + public: + void unsafe_arena_set_allocated_current_plan_with_status( + ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status); + ::viam::service::motion::v1::PlanWithStatus* unsafe_arena_release_current_plan_with_status(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID > plan_statuses_with_ids_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus > replan_history_; + ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class GetPlanRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanRequest) */ { +class Constraints final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Constraints) */ { public: - inline GetPlanRequest() : GetPlanRequest(nullptr) {} - ~GetPlanRequest() override; - explicit PROTOBUF_CONSTEXPR GetPlanRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Constraints() : Constraints(nullptr) {} + ~Constraints() override; + explicit PROTOBUF_CONSTEXPR Constraints(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - GetPlanRequest(const GetPlanRequest& from); - GetPlanRequest(GetPlanRequest&& from) noexcept - : GetPlanRequest() { + Constraints(const Constraints& from); + Constraints(Constraints&& from) noexcept + : Constraints() { *this = ::std::move(from); } - inline GetPlanRequest& operator=(const GetPlanRequest& from) { + inline Constraints& operator=(const Constraints& from) { CopyFrom(from); return *this; } - inline GetPlanRequest& operator=(GetPlanRequest&& from) noexcept { + inline Constraints& operator=(Constraints&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3261,20 +3294,20 @@ class GetPlanRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPlanRequest& default_instance() { + static const Constraints& default_instance() { return *internal_default_instance(); } - static inline const GetPlanRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPlanRequest_default_instance_); + static inline const Constraints* internal_default_instance() { + return reinterpret_cast( + &_Constraints_default_instance_); } static constexpr int kIndexInFileMessages = 16; - friend void swap(GetPlanRequest& a, GetPlanRequest& b) { + friend void swap(Constraints& a, Constraints& b) { a.Swap(&b); } - inline void Swap(GetPlanRequest* other) { + inline void Swap(Constraints* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3287,7 +3320,7 @@ class GetPlanRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPlanRequest* other) { + void UnsafeArenaSwap(Constraints* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3295,13 +3328,13 @@ class GetPlanRequest final : // implements Message ---------------------------------------------- - GetPlanRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Constraints* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetPlanRequest& from); + void CopyFrom(const Constraints& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetPlanRequest& from); + void MergeFrom(const Constraints& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -3318,15 +3351,15 @@ class GetPlanRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetPlanRequest* other); + void InternalSwap(Constraints* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.GetPlanRequest"; + return "viam.service.motion.v1.Constraints"; } protected: - explicit GetPlanRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit Constraints(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3340,125 +3373,97 @@ class GetPlanRequest final : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExecutionIdFieldNumber = 4, - kComponentNameFieldNumber = 2, - kExtraFieldNumber = 99, - kLastPlanOnlyFieldNumber = 3, + kLinearConstraintFieldNumber = 1, + kOrientationConstraintFieldNumber = 2, + kCollisionSpecificationFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // optional string execution_id = 4 [json_name = "executionId"]; - bool has_execution_id() const; + // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; + int linear_constraint_size() const; private: - bool _internal_has_execution_id() const; + int _internal_linear_constraint_size() const; public: - void clear_execution_id(); - const std::string& execution_id() const; - template - void set_execution_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_execution_id(); - PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* execution_id); + void clear_linear_constraint(); + ::viam::service::motion::v1::LinearConstraint* mutable_linear_constraint(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >* + mutable_linear_constraint(); private: - const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); - std::string* _internal_mutable_execution_id(); + const ::viam::service::motion::v1::LinearConstraint& _internal_linear_constraint(int index) const; + ::viam::service::motion::v1::LinearConstraint* _internal_add_linear_constraint(); public: + const ::viam::service::motion::v1::LinearConstraint& linear_constraint(int index) const; + ::viam::service::motion::v1::LinearConstraint* add_linear_constraint(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >& + linear_constraint() const; - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; + // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; + int orientation_constraint_size() const; private: - bool _internal_has_component_name() const; + int _internal_orientation_constraint_size() const; public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + void clear_orientation_constraint(); + ::viam::service::motion::v1::OrientationConstraint* mutable_orientation_constraint(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >* + mutable_orientation_constraint(); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + const ::viam::service::motion::v1::OrientationConstraint& _internal_orientation_constraint(int index) const; + ::viam::service::motion::v1::OrientationConstraint* _internal_add_orientation_constraint(); public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + const ::viam::service::motion::v1::OrientationConstraint& orientation_constraint(int index) const; + ::viam::service::motion::v1::OrientationConstraint* add_orientation_constraint(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >& + orientation_constraint() const; - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - private: - bool _internal_has_extra() const; - public: - void clear_extra(); - const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); - ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); - void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; + int collision_specification_size() const; private: - const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; - ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + int _internal_collision_specification_size() const; public: - void unsafe_arena_set_allocated_extra( - ::PROTOBUF_NAMESPACE_ID::Struct* extra); - ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - - // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; - void clear_last_plan_only(); - bool last_plan_only() const; - void set_last_plan_only(bool value); + void clear_collision_specification(); + ::viam::service::motion::v1::CollisionSpecification* mutable_collision_specification(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >* + mutable_collision_specification(); private: - bool _internal_last_plan_only() const; - void _internal_set_last_plan_only(bool value); + const ::viam::service::motion::v1::CollisionSpecification& _internal_collision_specification(int index) const; + ::viam::service::motion::v1::CollisionSpecification* _internal_add_collision_specification(); public: + const ::viam::service::motion::v1::CollisionSpecification& collision_specification(int index) const; + ::viam::service::motion::v1::CollisionSpecification* add_collision_specification(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >& + collision_specification() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Constraints) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint > linear_constraint_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint > orientation_constraint_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification > collision_specification_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; - ::PROTOBUF_NAMESPACE_ID::Struct* extra_; - bool last_plan_only_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class GetPlanResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanResponse) */ { +class LinearConstraint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.LinearConstraint) */ { public: - inline GetPlanResponse() : GetPlanResponse(nullptr) {} - ~GetPlanResponse() override; - explicit PROTOBUF_CONSTEXPR GetPlanResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline LinearConstraint() : LinearConstraint(nullptr) {} + ~LinearConstraint() override; + explicit PROTOBUF_CONSTEXPR LinearConstraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - GetPlanResponse(const GetPlanResponse& from); - GetPlanResponse(GetPlanResponse&& from) noexcept - : GetPlanResponse() { + LinearConstraint(const LinearConstraint& from); + LinearConstraint(LinearConstraint&& from) noexcept + : LinearConstraint() { *this = ::std::move(from); } - inline GetPlanResponse& operator=(const GetPlanResponse& from) { + inline LinearConstraint& operator=(const LinearConstraint& from) { CopyFrom(from); return *this; } - inline GetPlanResponse& operator=(GetPlanResponse&& from) noexcept { + inline LinearConstraint& operator=(LinearConstraint&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3481,20 +3486,20 @@ class GetPlanResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPlanResponse& default_instance() { + static const LinearConstraint& default_instance() { return *internal_default_instance(); } - static inline const GetPlanResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPlanResponse_default_instance_); + static inline const LinearConstraint* internal_default_instance() { + return reinterpret_cast( + &_LinearConstraint_default_instance_); } static constexpr int kIndexInFileMessages = 17; - friend void swap(GetPlanResponse& a, GetPlanResponse& b) { + friend void swap(LinearConstraint& a, LinearConstraint& b) { a.Swap(&b); } - inline void Swap(GetPlanResponse* other) { + inline void Swap(LinearConstraint* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3507,7 +3512,7 @@ class GetPlanResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPlanResponse* other) { + void UnsafeArenaSwap(LinearConstraint* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3515,13 +3520,13 @@ class GetPlanResponse final : // implements Message ---------------------------------------------- - GetPlanResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LinearConstraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetPlanResponse& from); + void CopyFrom(const LinearConstraint& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetPlanResponse& from); + void MergeFrom(const LinearConstraint& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -3538,15 +3543,15 @@ class GetPlanResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(GetPlanResponse* other); + void InternalSwap(LinearConstraint* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.GetPlanResponse"; + return "viam.service.motion.v1.LinearConstraint"; } protected: - explicit GetPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit LinearConstraint(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3560,77 +3565,68 @@ class GetPlanResponse final : // accessors ------------------------------------------------------- enum : int { - kReplanHistoryFieldNumber = 2, - kCurrentPlanWithStatusFieldNumber = 1, + kLineToleranceMmFieldNumber = 1, + kOrientationToleranceDegsFieldNumber = 2, }; - // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; - int replan_history_size() const; + // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; + bool has_line_tolerance_mm() const; private: - int _internal_replan_history_size() const; + bool _internal_has_line_tolerance_mm() const; public: - void clear_replan_history(); - ::viam::service::motion::v1::PlanWithStatus* mutable_replan_history(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >* - mutable_replan_history(); + void clear_line_tolerance_mm(); + float line_tolerance_mm() const; + void set_line_tolerance_mm(float value); private: - const ::viam::service::motion::v1::PlanWithStatus& _internal_replan_history(int index) const; - ::viam::service::motion::v1::PlanWithStatus* _internal_add_replan_history(); + float _internal_line_tolerance_mm() const; + void _internal_set_line_tolerance_mm(float value); public: - const ::viam::service::motion::v1::PlanWithStatus& replan_history(int index) const; - ::viam::service::motion::v1::PlanWithStatus* add_replan_history(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >& - replan_history() const; - // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; - bool has_current_plan_with_status() const; + // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; + bool has_orientation_tolerance_degs() const; private: - bool _internal_has_current_plan_with_status() const; + bool _internal_has_orientation_tolerance_degs() const; public: - void clear_current_plan_with_status(); - const ::viam::service::motion::v1::PlanWithStatus& current_plan_with_status() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanWithStatus* release_current_plan_with_status(); - ::viam::service::motion::v1::PlanWithStatus* mutable_current_plan_with_status(); - void set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* current_plan_with_status); + void clear_orientation_tolerance_degs(); + float orientation_tolerance_degs() const; + void set_orientation_tolerance_degs(float value); private: - const ::viam::service::motion::v1::PlanWithStatus& _internal_current_plan_with_status() const; - ::viam::service::motion::v1::PlanWithStatus* _internal_mutable_current_plan_with_status(); + float _internal_orientation_tolerance_degs() const; + void _internal_set_orientation_tolerance_degs(float value); public: - void unsafe_arena_set_allocated_current_plan_with_status( - ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status); - ::viam::service::motion::v1::PlanWithStatus* unsafe_arena_release_current_plan_with_status(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanResponse) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.LinearConstraint) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus > replan_history_; - ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + float line_tolerance_mm_; + float orientation_tolerance_degs_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class Constraints final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Constraints) */ { +class OrientationConstraint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.OrientationConstraint) */ { public: - inline Constraints() : Constraints(nullptr) {} - ~Constraints() override; - explicit PROTOBUF_CONSTEXPR Constraints(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline OrientationConstraint() : OrientationConstraint(nullptr) {} + ~OrientationConstraint() override; + explicit PROTOBUF_CONSTEXPR OrientationConstraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - Constraints(const Constraints& from); - Constraints(Constraints&& from) noexcept - : Constraints() { + OrientationConstraint(const OrientationConstraint& from); + OrientationConstraint(OrientationConstraint&& from) noexcept + : OrientationConstraint() { *this = ::std::move(from); } - inline Constraints& operator=(const Constraints& from) { + inline OrientationConstraint& operator=(const OrientationConstraint& from) { CopyFrom(from); return *this; } - inline Constraints& operator=(Constraints&& from) noexcept { + inline OrientationConstraint& operator=(OrientationConstraint&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3653,20 +3649,20 @@ class Constraints final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Constraints& default_instance() { + static const OrientationConstraint& default_instance() { return *internal_default_instance(); } - static inline const Constraints* internal_default_instance() { - return reinterpret_cast( - &_Constraints_default_instance_); + static inline const OrientationConstraint* internal_default_instance() { + return reinterpret_cast( + &_OrientationConstraint_default_instance_); } static constexpr int kIndexInFileMessages = 18; - friend void swap(Constraints& a, Constraints& b) { + friend void swap(OrientationConstraint& a, OrientationConstraint& b) { a.Swap(&b); } - inline void Swap(Constraints* other) { + inline void Swap(OrientationConstraint* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3679,7 +3675,7 @@ class Constraints final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Constraints* other) { + void UnsafeArenaSwap(OrientationConstraint* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3687,13 +3683,13 @@ class Constraints final : // implements Message ---------------------------------------------- - Constraints* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + OrientationConstraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Constraints& from); + void CopyFrom(const OrientationConstraint& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const Constraints& from); + void MergeFrom(const OrientationConstraint& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -3710,15 +3706,15 @@ class Constraints final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(Constraints* other); + void InternalSwap(OrientationConstraint* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.Constraints"; + return "viam.service.motion.v1.OrientationConstraint"; } protected: - explicit Constraints(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit OrientationConstraint(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3732,97 +3728,53 @@ class Constraints final : // accessors ------------------------------------------------------- enum : int { - kLinearConstraintFieldNumber = 1, - kOrientationConstraintFieldNumber = 2, - kCollisionSpecificationFieldNumber = 3, + kOrientationToleranceDegsFieldNumber = 1, }; - // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; - int linear_constraint_size() const; - private: - int _internal_linear_constraint_size() const; - public: - void clear_linear_constraint(); - ::viam::service::motion::v1::LinearConstraint* mutable_linear_constraint(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >* - mutable_linear_constraint(); - private: - const ::viam::service::motion::v1::LinearConstraint& _internal_linear_constraint(int index) const; - ::viam::service::motion::v1::LinearConstraint* _internal_add_linear_constraint(); - public: - const ::viam::service::motion::v1::LinearConstraint& linear_constraint(int index) const; - ::viam::service::motion::v1::LinearConstraint* add_linear_constraint(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >& - linear_constraint() const; - - // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; - int orientation_constraint_size() const; - private: - int _internal_orientation_constraint_size() const; - public: - void clear_orientation_constraint(); - ::viam::service::motion::v1::OrientationConstraint* mutable_orientation_constraint(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >* - mutable_orientation_constraint(); - private: - const ::viam::service::motion::v1::OrientationConstraint& _internal_orientation_constraint(int index) const; - ::viam::service::motion::v1::OrientationConstraint* _internal_add_orientation_constraint(); - public: - const ::viam::service::motion::v1::OrientationConstraint& orientation_constraint(int index) const; - ::viam::service::motion::v1::OrientationConstraint* add_orientation_constraint(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >& - orientation_constraint() const; - - // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; - int collision_specification_size() const; + // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; + bool has_orientation_tolerance_degs() const; private: - int _internal_collision_specification_size() const; + bool _internal_has_orientation_tolerance_degs() const; public: - void clear_collision_specification(); - ::viam::service::motion::v1::CollisionSpecification* mutable_collision_specification(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >* - mutable_collision_specification(); + void clear_orientation_tolerance_degs(); + float orientation_tolerance_degs() const; + void set_orientation_tolerance_degs(float value); private: - const ::viam::service::motion::v1::CollisionSpecification& _internal_collision_specification(int index) const; - ::viam::service::motion::v1::CollisionSpecification* _internal_add_collision_specification(); + float _internal_orientation_tolerance_degs() const; + void _internal_set_orientation_tolerance_degs(float value); public: - const ::viam::service::motion::v1::CollisionSpecification& collision_specification(int index) const; - ::viam::service::motion::v1::CollisionSpecification* add_collision_specification(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >& - collision_specification() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Constraints) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.OrientationConstraint) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint > linear_constraint_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint > orientation_constraint_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification > collision_specification_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + float orientation_tolerance_degs_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class LinearConstraint final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.LinearConstraint) */ { +class CollisionSpecification_AllowedFrameCollisions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) */ { public: - inline LinearConstraint() : LinearConstraint(nullptr) {} - ~LinearConstraint() override; - explicit PROTOBUF_CONSTEXPR LinearConstraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CollisionSpecification_AllowedFrameCollisions() : CollisionSpecification_AllowedFrameCollisions(nullptr) {} + ~CollisionSpecification_AllowedFrameCollisions() override; + explicit PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - LinearConstraint(const LinearConstraint& from); - LinearConstraint(LinearConstraint&& from) noexcept - : LinearConstraint() { + CollisionSpecification_AllowedFrameCollisions(const CollisionSpecification_AllowedFrameCollisions& from); + CollisionSpecification_AllowedFrameCollisions(CollisionSpecification_AllowedFrameCollisions&& from) noexcept + : CollisionSpecification_AllowedFrameCollisions() { *this = ::std::move(from); } - inline LinearConstraint& operator=(const LinearConstraint& from) { + inline CollisionSpecification_AllowedFrameCollisions& operator=(const CollisionSpecification_AllowedFrameCollisions& from) { CopyFrom(from); return *this; } - inline LinearConstraint& operator=(LinearConstraint&& from) noexcept { + inline CollisionSpecification_AllowedFrameCollisions& operator=(CollisionSpecification_AllowedFrameCollisions&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3845,20 +3797,20 @@ class LinearConstraint final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LinearConstraint& default_instance() { + static const CollisionSpecification_AllowedFrameCollisions& default_instance() { return *internal_default_instance(); } - static inline const LinearConstraint* internal_default_instance() { - return reinterpret_cast( - &_LinearConstraint_default_instance_); + static inline const CollisionSpecification_AllowedFrameCollisions* internal_default_instance() { + return reinterpret_cast( + &_CollisionSpecification_AllowedFrameCollisions_default_instance_); } static constexpr int kIndexInFileMessages = 19; - friend void swap(LinearConstraint& a, LinearConstraint& b) { + friend void swap(CollisionSpecification_AllowedFrameCollisions& a, CollisionSpecification_AllowedFrameCollisions& b) { a.Swap(&b); } - inline void Swap(LinearConstraint* other) { + inline void Swap(CollisionSpecification_AllowedFrameCollisions* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3871,7 +3823,7 @@ class LinearConstraint final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LinearConstraint* other) { + void UnsafeArenaSwap(CollisionSpecification_AllowedFrameCollisions* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3879,13 +3831,13 @@ class LinearConstraint final : // implements Message ---------------------------------------------- - LinearConstraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CollisionSpecification_AllowedFrameCollisions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const LinearConstraint& from); + void CopyFrom(const CollisionSpecification_AllowedFrameCollisions& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const LinearConstraint& from); + void MergeFrom(const CollisionSpecification_AllowedFrameCollisions& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -3902,15 +3854,15 @@ class LinearConstraint final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(LinearConstraint* other); + void InternalSwap(CollisionSpecification_AllowedFrameCollisions* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.LinearConstraint"; + return "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions"; } protected: - explicit LinearConstraint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit CollisionSpecification_AllowedFrameCollisions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3924,68 +3876,69 @@ class LinearConstraint final : // accessors ------------------------------------------------------- enum : int { - kLineToleranceMmFieldNumber = 1, - kOrientationToleranceDegsFieldNumber = 2, + kFrame1FieldNumber = 1, + kFrame2FieldNumber = 2, }; - // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; - bool has_line_tolerance_mm() const; - private: - bool _internal_has_line_tolerance_mm() const; - public: - void clear_line_tolerance_mm(); - float line_tolerance_mm() const; - void set_line_tolerance_mm(float value); - private: - float _internal_line_tolerance_mm() const; - void _internal_set_line_tolerance_mm(float value); - public: - - // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; - bool has_orientation_tolerance_degs() const; + // string frame1 = 1 [json_name = "frame1"]; + void clear_frame1(); + const std::string& frame1() const; + template + void set_frame1(ArgT0&& arg0, ArgT... args); + std::string* mutable_frame1(); + PROTOBUF_NODISCARD std::string* release_frame1(); + void set_allocated_frame1(std::string* frame1); private: - bool _internal_has_orientation_tolerance_degs() const; + const std::string& _internal_frame1() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame1(const std::string& value); + std::string* _internal_mutable_frame1(); public: - void clear_orientation_tolerance_degs(); - float orientation_tolerance_degs() const; - void set_orientation_tolerance_degs(float value); + + // string frame2 = 2 [json_name = "frame2"]; + void clear_frame2(); + const std::string& frame2() const; + template + void set_frame2(ArgT0&& arg0, ArgT... args); + std::string* mutable_frame2(); + PROTOBUF_NODISCARD std::string* release_frame2(); + void set_allocated_frame2(std::string* frame2); private: - float _internal_orientation_tolerance_degs() const; - void _internal_set_orientation_tolerance_degs(float value); + const std::string& _internal_frame2() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame2(const std::string& value); + std::string* _internal_mutable_frame2(); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.LinearConstraint) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame1_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame2_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - float line_tolerance_mm_; - float orientation_tolerance_degs_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class OrientationConstraint final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.OrientationConstraint) */ { +class CollisionSpecification final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification) */ { public: - inline OrientationConstraint() : OrientationConstraint(nullptr) {} - ~OrientationConstraint() override; - explicit PROTOBUF_CONSTEXPR OrientationConstraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CollisionSpecification() : CollisionSpecification(nullptr) {} + ~CollisionSpecification() override; + explicit PROTOBUF_CONSTEXPR CollisionSpecification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - OrientationConstraint(const OrientationConstraint& from); - OrientationConstraint(OrientationConstraint&& from) noexcept - : OrientationConstraint() { + CollisionSpecification(const CollisionSpecification& from); + CollisionSpecification(CollisionSpecification&& from) noexcept + : CollisionSpecification() { *this = ::std::move(from); } - inline OrientationConstraint& operator=(const OrientationConstraint& from) { + inline CollisionSpecification& operator=(const CollisionSpecification& from) { CopyFrom(from); return *this; } - inline OrientationConstraint& operator=(OrientationConstraint&& from) noexcept { + inline CollisionSpecification& operator=(CollisionSpecification&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4008,20 +3961,20 @@ class OrientationConstraint final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrientationConstraint& default_instance() { + static const CollisionSpecification& default_instance() { return *internal_default_instance(); } - static inline const OrientationConstraint* internal_default_instance() { - return reinterpret_cast( - &_OrientationConstraint_default_instance_); + static inline const CollisionSpecification* internal_default_instance() { + return reinterpret_cast( + &_CollisionSpecification_default_instance_); } static constexpr int kIndexInFileMessages = 20; - friend void swap(OrientationConstraint& a, OrientationConstraint& b) { + friend void swap(CollisionSpecification& a, CollisionSpecification& b) { a.Swap(&b); } - inline void Swap(OrientationConstraint* other) { + inline void Swap(CollisionSpecification* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4034,7 +3987,7 @@ class OrientationConstraint final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrientationConstraint* other) { + void UnsafeArenaSwap(CollisionSpecification* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4042,13 +3995,13 @@ class OrientationConstraint final : // implements Message ---------------------------------------------- - OrientationConstraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CollisionSpecification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const OrientationConstraint& from); + void CopyFrom(const CollisionSpecification& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const OrientationConstraint& from); + void MergeFrom(const CollisionSpecification& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -4065,15 +4018,15 @@ class OrientationConstraint final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(OrientationConstraint* other); + void InternalSwap(CollisionSpecification* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.OrientationConstraint"; + return "viam.service.motion.v1.CollisionSpecification"; } protected: - explicit OrientationConstraint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit CollisionSpecification(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4084,56 +4037,62 @@ class OrientationConstraint final : // nested types ---------------------------------------------------- + typedef CollisionSpecification_AllowedFrameCollisions AllowedFrameCollisions; + // accessors ------------------------------------------------------- enum : int { - kOrientationToleranceDegsFieldNumber = 1, + kAllowsFieldNumber = 1, }; - // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; - bool has_orientation_tolerance_degs() const; + // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; + int allows_size() const; private: - bool _internal_has_orientation_tolerance_degs() const; + int _internal_allows_size() const; public: - void clear_orientation_tolerance_degs(); - float orientation_tolerance_degs() const; - void set_orientation_tolerance_degs(float value); + void clear_allows(); + ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* mutable_allows(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >* + mutable_allows(); private: - float _internal_orientation_tolerance_degs() const; - void _internal_set_orientation_tolerance_degs(float value); + const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& _internal_allows(int index) const; + ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* _internal_add_allows(); public: + const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& allows(int index) const; + ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* add_allows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >& + allows() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.OrientationConstraint) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions > allows_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - float orientation_tolerance_degs_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class CollisionSpecification_AllowedFrameCollisions final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) */ { +class PlanWithStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanWithStatus) */ { public: - inline CollisionSpecification_AllowedFrameCollisions() : CollisionSpecification_AllowedFrameCollisions(nullptr) {} - ~CollisionSpecification_AllowedFrameCollisions() override; - explicit PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PlanWithStatus() : PlanWithStatus(nullptr) {} + ~PlanWithStatus() override; + explicit PROTOBUF_CONSTEXPR PlanWithStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - CollisionSpecification_AllowedFrameCollisions(const CollisionSpecification_AllowedFrameCollisions& from); - CollisionSpecification_AllowedFrameCollisions(CollisionSpecification_AllowedFrameCollisions&& from) noexcept - : CollisionSpecification_AllowedFrameCollisions() { + PlanWithStatus(const PlanWithStatus& from); + PlanWithStatus(PlanWithStatus&& from) noexcept + : PlanWithStatus() { *this = ::std::move(from); } - inline CollisionSpecification_AllowedFrameCollisions& operator=(const CollisionSpecification_AllowedFrameCollisions& from) { + inline PlanWithStatus& operator=(const PlanWithStatus& from) { CopyFrom(from); return *this; } - inline CollisionSpecification_AllowedFrameCollisions& operator=(CollisionSpecification_AllowedFrameCollisions&& from) noexcept { + inline PlanWithStatus& operator=(PlanWithStatus&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4156,20 +4115,20 @@ class CollisionSpecification_AllowedFrameCollisions final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CollisionSpecification_AllowedFrameCollisions& default_instance() { + static const PlanWithStatus& default_instance() { return *internal_default_instance(); } - static inline const CollisionSpecification_AllowedFrameCollisions* internal_default_instance() { - return reinterpret_cast( - &_CollisionSpecification_AllowedFrameCollisions_default_instance_); + static inline const PlanWithStatus* internal_default_instance() { + return reinterpret_cast( + &_PlanWithStatus_default_instance_); } static constexpr int kIndexInFileMessages = 21; - friend void swap(CollisionSpecification_AllowedFrameCollisions& a, CollisionSpecification_AllowedFrameCollisions& b) { + friend void swap(PlanWithStatus& a, PlanWithStatus& b) { a.Swap(&b); } - inline void Swap(CollisionSpecification_AllowedFrameCollisions* other) { + inline void Swap(PlanWithStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4182,7 +4141,7 @@ class CollisionSpecification_AllowedFrameCollisions final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CollisionSpecification_AllowedFrameCollisions* other) { + void UnsafeArenaSwap(PlanWithStatus* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4190,13 +4149,13 @@ class CollisionSpecification_AllowedFrameCollisions final : // implements Message ---------------------------------------------- - CollisionSpecification_AllowedFrameCollisions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PlanWithStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CollisionSpecification_AllowedFrameCollisions& from); + void CopyFrom(const PlanWithStatus& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CollisionSpecification_AllowedFrameCollisions& from); + void MergeFrom(const PlanWithStatus& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -4213,15 +4172,15 @@ class CollisionSpecification_AllowedFrameCollisions final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CollisionSpecification_AllowedFrameCollisions* other); + void InternalSwap(PlanWithStatus* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions"; + return "viam.service.motion.v1.PlanWithStatus"; } protected: - explicit CollisionSpecification_AllowedFrameCollisions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PlanWithStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4235,69 +4194,97 @@ class CollisionSpecification_AllowedFrameCollisions final : // accessors ------------------------------------------------------- enum : int { - kFrame1FieldNumber = 1, - kFrame2FieldNumber = 2, + kStatusHistoryFieldNumber = 3, + kPlanFieldNumber = 1, + kStatusFieldNumber = 2, }; - // string frame1 = 1 [json_name = "frame1"]; - void clear_frame1(); - const std::string& frame1() const; - template - void set_frame1(ArgT0&& arg0, ArgT... args); - std::string* mutable_frame1(); - PROTOBUF_NODISCARD std::string* release_frame1(); - void set_allocated_frame1(std::string* frame1); + // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; + int status_history_size() const; private: - const std::string& _internal_frame1() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame1(const std::string& value); - std::string* _internal_mutable_frame1(); + int _internal_status_history_size() const; + public: + void clear_status_history(); + ::viam::service::motion::v1::PlanStatus* mutable_status_history(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >* + mutable_status_history(); + private: + const ::viam::service::motion::v1::PlanStatus& _internal_status_history(int index) const; + ::viam::service::motion::v1::PlanStatus* _internal_add_status_history(); public: + const ::viam::service::motion::v1::PlanStatus& status_history(int index) const; + ::viam::service::motion::v1::PlanStatus* add_status_history(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >& + status_history() const; - // string frame2 = 2 [json_name = "frame2"]; - void clear_frame2(); - const std::string& frame2() const; - template - void set_frame2(ArgT0&& arg0, ArgT... args); - std::string* mutable_frame2(); - PROTOBUF_NODISCARD std::string* release_frame2(); - void set_allocated_frame2(std::string* frame2); + // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; + bool has_plan() const; private: - const std::string& _internal_frame2() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame2(const std::string& value); - std::string* _internal_mutable_frame2(); + bool _internal_has_plan() const; + public: + void clear_plan(); + const ::viam::service::motion::v1::Plan& plan() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::Plan* release_plan(); + ::viam::service::motion::v1::Plan* mutable_plan(); + void set_allocated_plan(::viam::service::motion::v1::Plan* plan); + private: + const ::viam::service::motion::v1::Plan& _internal_plan() const; + ::viam::service::motion::v1::Plan* _internal_mutable_plan(); + public: + void unsafe_arena_set_allocated_plan( + ::viam::service::motion::v1::Plan* plan); + ::viam::service::motion::v1::Plan* unsafe_arena_release_plan(); + + // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::viam::service::motion::v1::PlanStatus& status() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); + ::viam::service::motion::v1::PlanStatus* mutable_status(); + void set_allocated_status(::viam::service::motion::v1::PlanStatus* status); + private: + const ::viam::service::motion::v1::PlanStatus& _internal_status() const; + ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); public: + void unsafe_arena_set_allocated_status( + ::viam::service::motion::v1::PlanStatus* status); + ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanWithStatus) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame1_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame2_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus > status_history_; + ::viam::service::motion::v1::Plan* plan_; + ::viam::service::motion::v1::PlanStatus* status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class CollisionSpecification final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification) */ { +class PlanStatusWithID final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatusWithID) */ { public: - inline CollisionSpecification() : CollisionSpecification(nullptr) {} - ~CollisionSpecification() override; - explicit PROTOBUF_CONSTEXPR CollisionSpecification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PlanStatusWithID() : PlanStatusWithID(nullptr) {} + ~PlanStatusWithID() override; + explicit PROTOBUF_CONSTEXPR PlanStatusWithID(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - CollisionSpecification(const CollisionSpecification& from); - CollisionSpecification(CollisionSpecification&& from) noexcept - : CollisionSpecification() { + PlanStatusWithID(const PlanStatusWithID& from); + PlanStatusWithID(PlanStatusWithID&& from) noexcept + : PlanStatusWithID() { *this = ::std::move(from); } - inline CollisionSpecification& operator=(const CollisionSpecification& from) { + inline PlanStatusWithID& operator=(const PlanStatusWithID& from) { CopyFrom(from); return *this; } - inline CollisionSpecification& operator=(CollisionSpecification&& from) noexcept { + inline PlanStatusWithID& operator=(PlanStatusWithID&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4320,20 +4307,20 @@ class CollisionSpecification final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CollisionSpecification& default_instance() { + static const PlanStatusWithID& default_instance() { return *internal_default_instance(); } - static inline const CollisionSpecification* internal_default_instance() { - return reinterpret_cast( - &_CollisionSpecification_default_instance_); + static inline const PlanStatusWithID* internal_default_instance() { + return reinterpret_cast( + &_PlanStatusWithID_default_instance_); } static constexpr int kIndexInFileMessages = 22; - friend void swap(CollisionSpecification& a, CollisionSpecification& b) { + friend void swap(PlanStatusWithID& a, PlanStatusWithID& b) { a.Swap(&b); } - inline void Swap(CollisionSpecification* other) { + inline void Swap(PlanStatusWithID* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4346,7 +4333,7 @@ class CollisionSpecification final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CollisionSpecification* other) { + void UnsafeArenaSwap(PlanStatusWithID* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4354,13 +4341,13 @@ class CollisionSpecification final : // implements Message ---------------------------------------------- - CollisionSpecification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PlanStatusWithID* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CollisionSpecification& from); + void CopyFrom(const PlanStatusWithID& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CollisionSpecification& from); + void MergeFrom(const PlanStatusWithID& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -4377,15 +4364,15 @@ class CollisionSpecification final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CollisionSpecification* other); + void InternalSwap(PlanStatusWithID* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.CollisionSpecification"; + return "viam.service.motion.v1.PlanStatusWithID"; } protected: - explicit CollisionSpecification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PlanStatusWithID(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4396,62 +4383,112 @@ class CollisionSpecification final : // nested types ---------------------------------------------------- - typedef CollisionSpecification_AllowedFrameCollisions AllowedFrameCollisions; - // accessors ------------------------------------------------------- enum : int { - kAllowsFieldNumber = 1, + kPlanIdFieldNumber = 1, + kExecutionIdFieldNumber = 3, + kComponentNameFieldNumber = 2, + kStatusFieldNumber = 4, }; - // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; - int allows_size() const; + // string plan_id = 1 [json_name = "planId"]; + void clear_plan_id(); + const std::string& plan_id() const; + template + void set_plan_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_plan_id(); + PROTOBUF_NODISCARD std::string* release_plan_id(); + void set_allocated_plan_id(std::string* plan_id); private: - int _internal_allows_size() const; + const std::string& _internal_plan_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_plan_id(const std::string& value); + std::string* _internal_mutable_plan_id(); public: - void clear_allows(); - ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* mutable_allows(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >* - mutable_allows(); + + // string execution_id = 3 [json_name = "executionId"]; + void clear_execution_id(); + const std::string& execution_id() const; + template + void set_execution_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_execution_id(); + PROTOBUF_NODISCARD std::string* release_execution_id(); + void set_allocated_execution_id(std::string* execution_id); private: - const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& _internal_allows(int index) const; - ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* _internal_add_allows(); + const std::string& _internal_execution_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); + std::string* _internal_mutable_execution_id(); public: - const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& allows(int index) const; - ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* add_allows(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >& - allows() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification) + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::viam::service::motion::v1::PlanStatus& status() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); + ::viam::service::motion::v1::PlanStatus* mutable_status(); + void set_allocated_status(::viam::service::motion::v1::PlanStatus* status); + private: + const ::viam::service::motion::v1::PlanStatus& _internal_status() const; + ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::viam::service::motion::v1::PlanStatus* status); + ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatusWithID) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions > allows_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plan_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::service::motion::v1::PlanStatus* status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class PlanWithStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanWithStatus) */ { +class PlanStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatus) */ { public: - inline PlanWithStatus() : PlanWithStatus(nullptr) {} - ~PlanWithStatus() override; - explicit PROTOBUF_CONSTEXPR PlanWithStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PlanStatus() : PlanStatus(nullptr) {} + ~PlanStatus() override; + explicit PROTOBUF_CONSTEXPR PlanStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PlanWithStatus(const PlanWithStatus& from); - PlanWithStatus(PlanWithStatus&& from) noexcept - : PlanWithStatus() { + PlanStatus(const PlanStatus& from); + PlanStatus(PlanStatus&& from) noexcept + : PlanStatus() { *this = ::std::move(from); } - inline PlanWithStatus& operator=(const PlanWithStatus& from) { + inline PlanStatus& operator=(const PlanStatus& from) { CopyFrom(from); return *this; } - inline PlanWithStatus& operator=(PlanWithStatus&& from) noexcept { + inline PlanStatus& operator=(PlanStatus&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4474,20 +4511,20 @@ class PlanWithStatus final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PlanWithStatus& default_instance() { + static const PlanStatus& default_instance() { return *internal_default_instance(); } - static inline const PlanWithStatus* internal_default_instance() { - return reinterpret_cast( - &_PlanWithStatus_default_instance_); + static inline const PlanStatus* internal_default_instance() { + return reinterpret_cast( + &_PlanStatus_default_instance_); } static constexpr int kIndexInFileMessages = 23; - friend void swap(PlanWithStatus& a, PlanWithStatus& b) { + friend void swap(PlanStatus& a, PlanStatus& b) { a.Swap(&b); } - inline void Swap(PlanWithStatus* other) { + inline void Swap(PlanStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4500,7 +4537,7 @@ class PlanWithStatus final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PlanWithStatus* other) { + void UnsafeArenaSwap(PlanStatus* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4508,13 +4545,13 @@ class PlanWithStatus final : // implements Message ---------------------------------------------- - PlanWithStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PlanStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PlanWithStatus& from); + void CopyFrom(const PlanStatus& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PlanWithStatus& from); + void MergeFrom(const PlanStatus& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -4531,15 +4568,15 @@ class PlanWithStatus final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PlanWithStatus* other); + void InternalSwap(PlanStatus* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.PlanWithStatus"; + return "viam.service.motion.v1.PlanStatus"; } protected: - explicit PlanWithStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PlanStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4553,97 +4590,89 @@ class PlanWithStatus final : // accessors ------------------------------------------------------- enum : int { - kStatusHistoryFieldNumber = 3, - kPlanFieldNumber = 1, - kStatusFieldNumber = 2, + kReasonFieldNumber = 3, + kTimestampFieldNumber = 2, + kStateFieldNumber = 1, }; - // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; - int status_history_size() const; + // optional string reason = 3 [json_name = "reason"]; + bool has_reason() const; private: - int _internal_status_history_size() const; + bool _internal_has_reason() const; public: - void clear_status_history(); - ::viam::service::motion::v1::PlanStatus* mutable_status_history(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >* - mutable_status_history(); + void clear_reason(); + const std::string& reason() const; + template + void set_reason(ArgT0&& arg0, ArgT... args); + std::string* mutable_reason(); + PROTOBUF_NODISCARD std::string* release_reason(); + void set_allocated_reason(std::string* reason); private: - const ::viam::service::motion::v1::PlanStatus& _internal_status_history(int index) const; - ::viam::service::motion::v1::PlanStatus* _internal_add_status_history(); + const std::string& _internal_reason() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); + std::string* _internal_mutable_reason(); public: - const ::viam::service::motion::v1::PlanStatus& status_history(int index) const; - ::viam::service::motion::v1::PlanStatus* add_status_history(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >& - status_history() const; - // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; - bool has_plan() const; + // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; + bool has_timestamp() const; private: - bool _internal_has_plan() const; + bool _internal_has_timestamp() const; public: - void clear_plan(); - const ::viam::service::motion::v1::Plan& plan() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::Plan* release_plan(); - ::viam::service::motion::v1::Plan* mutable_plan(); - void set_allocated_plan(::viam::service::motion::v1::Plan* plan); + void clear_timestamp(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_timestamp(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_timestamp(); + void set_allocated_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp); private: - const ::viam::service::motion::v1::Plan& _internal_plan() const; - ::viam::service::motion::v1::Plan* _internal_mutable_plan(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_timestamp() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_timestamp(); public: - void unsafe_arena_set_allocated_plan( - ::viam::service::motion::v1::Plan* plan); - ::viam::service::motion::v1::Plan* unsafe_arena_release_plan(); + void unsafe_arena_set_allocated_timestamp( + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_timestamp(); - // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::viam::service::motion::v1::PlanStatus& status() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); - ::viam::service::motion::v1::PlanStatus* mutable_status(); - void set_allocated_status(::viam::service::motion::v1::PlanStatus* status); + // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; + void clear_state(); + ::viam::service::motion::v1::PlanState state() const; + void set_state(::viam::service::motion::v1::PlanState value); private: - const ::viam::service::motion::v1::PlanStatus& _internal_status() const; - ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); + ::viam::service::motion::v1::PlanState _internal_state() const; + void _internal_set_state(::viam::service::motion::v1::PlanState value); public: - void unsafe_arena_set_allocated_status( - ::viam::service::motion::v1::PlanStatus* status); - ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanWithStatus) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatus) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus > status_history_; - ::viam::service::motion::v1::Plan* plan_; - ::viam::service::motion::v1::PlanStatus* status_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_; + int state_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class PlanStatusWithID final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatusWithID) */ { +class Plan final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Plan) */ { public: - inline PlanStatusWithID() : PlanStatusWithID(nullptr) {} - ~PlanStatusWithID() override; - explicit PROTOBUF_CONSTEXPR PlanStatusWithID(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Plan() : Plan(nullptr) {} + ~Plan() override; + explicit PROTOBUF_CONSTEXPR Plan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PlanStatusWithID(const PlanStatusWithID& from); - PlanStatusWithID(PlanStatusWithID&& from) noexcept - : PlanStatusWithID() { + Plan(const Plan& from); + Plan(Plan&& from) noexcept + : Plan() { *this = ::std::move(from); } - inline PlanStatusWithID& operator=(const PlanStatusWithID& from) { + inline Plan& operator=(const Plan& from) { CopyFrom(from); return *this; } - inline PlanStatusWithID& operator=(PlanStatusWithID&& from) noexcept { + inline Plan& operator=(Plan&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4666,20 +4695,20 @@ class PlanStatusWithID final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PlanStatusWithID& default_instance() { + static const Plan& default_instance() { return *internal_default_instance(); } - static inline const PlanStatusWithID* internal_default_instance() { - return reinterpret_cast( - &_PlanStatusWithID_default_instance_); + static inline const Plan* internal_default_instance() { + return reinterpret_cast( + &_Plan_default_instance_); } static constexpr int kIndexInFileMessages = 24; - friend void swap(PlanStatusWithID& a, PlanStatusWithID& b) { + friend void swap(Plan& a, Plan& b) { a.Swap(&b); } - inline void Swap(PlanStatusWithID* other) { + inline void Swap(Plan* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4692,7 +4721,7 @@ class PlanStatusWithID final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PlanStatusWithID* other) { + void UnsafeArenaSwap(Plan* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4700,13 +4729,13 @@ class PlanStatusWithID final : // implements Message ---------------------------------------------- - PlanStatusWithID* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Plan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PlanStatusWithID& from); + void CopyFrom(const Plan& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PlanStatusWithID& from); + void MergeFrom(const Plan& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -4723,15 +4752,15 @@ class PlanStatusWithID final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PlanStatusWithID* other); + void InternalSwap(Plan* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.PlanStatusWithID"; + return "viam.service.motion.v1.Plan"; } protected: - explicit PlanStatusWithID(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit Plan(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4745,23 +4774,41 @@ class PlanStatusWithID final : // accessors ------------------------------------------------------- enum : int { - kPlanIdFieldNumber = 1, + kStepsFieldNumber = 4, + kIdFieldNumber = 1, kExecutionIdFieldNumber = 3, kComponentNameFieldNumber = 2, - kStatusFieldNumber = 4, }; - // string plan_id = 1 [json_name = "planId"]; - void clear_plan_id(); - const std::string& plan_id() const; + // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; + int steps_size() const; + private: + int _internal_steps_size() const; + public: + void clear_steps(); + ::viam::service::motion::v1::PlanStep* mutable_steps(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >* + mutable_steps(); + private: + const ::viam::service::motion::v1::PlanStep& _internal_steps(int index) const; + ::viam::service::motion::v1::PlanStep* _internal_add_steps(); + public: + const ::viam::service::motion::v1::PlanStep& steps(int index) const; + ::viam::service::motion::v1::PlanStep* add_steps(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >& + steps() const; + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; template - void set_plan_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_plan_id(); - PROTOBUF_NODISCARD std::string* release_plan_id(); - void set_allocated_plan_id(std::string* plan_id); + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_plan_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_plan_id(const std::string& value); - std::string* _internal_mutable_plan_id(); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: // string execution_id = 3 [json_name = "executionId"]; @@ -4796,58 +4843,66 @@ class PlanStatusWithID final : ::viam::common::v1::ResourceName* component_name); ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; - bool has_status() const; - private: - bool _internal_has_status() const; - public: - void clear_status(); - const ::viam::service::motion::v1::PlanStatus& status() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); - ::viam::service::motion::v1::PlanStatus* mutable_status(); - void set_allocated_status(::viam::service::motion::v1::PlanStatus* status); - private: - const ::viam::service::motion::v1::PlanStatus& _internal_status() const; - ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); - public: - void unsafe_arena_set_allocated_status( - ::viam::service::motion::v1::PlanStatus* status); - ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatusWithID) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Plan) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plan_id_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep > steps_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; ::viam::common::v1::ResourceName* component_name_; - ::viam::service::motion::v1::PlanStatus* status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class PlanStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatus) */ { +class PlanStep_StepEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + PlanStep_StepEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PlanStep_StepEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const PlanStep_StepEntry_DoNotUse& other); + static const PlanStep_StepEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_PlanStep_StepEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.service.motion.v1.PlanStep.StepEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; + +// ------------------------------------------------------------------- + +class PlanStep final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStep) */ { public: - inline PlanStatus() : PlanStatus(nullptr) {} - ~PlanStatus() override; - explicit PROTOBUF_CONSTEXPR PlanStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PlanStep() : PlanStep(nullptr) {} + ~PlanStep() override; + explicit PROTOBUF_CONSTEXPR PlanStep(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - PlanStatus(const PlanStatus& from); - PlanStatus(PlanStatus&& from) noexcept - : PlanStatus() { + PlanStep(const PlanStep& from); + PlanStep(PlanStep&& from) noexcept + : PlanStep() { *this = ::std::move(from); } - inline PlanStatus& operator=(const PlanStatus& from) { + inline PlanStep& operator=(const PlanStep& from) { CopyFrom(from); return *this; } - inline PlanStatus& operator=(PlanStatus&& from) noexcept { + inline PlanStep& operator=(PlanStep&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4870,20 +4925,20 @@ class PlanStatus final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PlanStatus& default_instance() { + static const PlanStep& default_instance() { return *internal_default_instance(); } - static inline const PlanStatus* internal_default_instance() { - return reinterpret_cast( - &_PlanStatus_default_instance_); + static inline const PlanStep* internal_default_instance() { + return reinterpret_cast( + &_PlanStep_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; - friend void swap(PlanStatus& a, PlanStatus& b) { + friend void swap(PlanStep& a, PlanStep& b) { a.Swap(&b); } - inline void Swap(PlanStatus* other) { + inline void Swap(PlanStep* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4896,7 +4951,7 @@ class PlanStatus final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PlanStatus* other) { + void UnsafeArenaSwap(PlanStep* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4904,13 +4959,13 @@ class PlanStatus final : // implements Message ---------------------------------------------- - PlanStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PlanStep* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PlanStatus& from); + void CopyFrom(const PlanStep& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PlanStatus& from); + void MergeFrom(const PlanStep& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -4927,16 +4982,18 @@ class PlanStatus final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(PlanStatus* other); + void InternalSwap(PlanStep* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.PlanStatus"; + return "viam.service.motion.v1.PlanStep"; } protected: - explicit PlanStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit PlanStep(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -4946,92 +5003,64 @@ class PlanStatus final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kReasonFieldNumber = 3, - kTimestampFieldNumber = 2, - kStateFieldNumber = 1, + kStepFieldNumber = 1, }; - // optional string reason = 3 [json_name = "reason"]; - bool has_reason() const; + // map step = 1 [json_name = "step"]; + int step_size() const; private: - bool _internal_has_reason() const; + int _internal_step_size() const; public: - void clear_reason(); - const std::string& reason() const; - template - void set_reason(ArgT0&& arg0, ArgT... args); - std::string* mutable_reason(); - PROTOBUF_NODISCARD std::string* release_reason(); - void set_allocated_reason(std::string* reason); + void clear_step(); private: - const std::string& _internal_reason() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); - std::string* _internal_mutable_reason(); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& + _internal_step() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* + _internal_mutable_step(); public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& + step() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* + mutable_step(); - // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; - bool has_timestamp() const; - private: - bool _internal_has_timestamp() const; - public: - void clear_timestamp(); - const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_timestamp(); - ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_timestamp(); - void set_allocated_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp); - private: - const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_timestamp() const; - ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_timestamp(); - public: - void unsafe_arena_set_allocated_timestamp( - ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp); - ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_timestamp(); - - // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; - void clear_state(); - ::viam::service::motion::v1::PlanState state() const; - void set_state(::viam::service::motion::v1::PlanState value); - private: - ::viam::service::motion::v1::PlanState _internal_state() const; - void _internal_set_state(::viam::service::motion::v1::PlanState value); - public: - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatus) - private: - class _Internal; + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStep) + private: + class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + PlanStep_StepEntry_DoNotUse, + std::string, ::viam::service::motion::v1::ComponentState, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> step_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; - ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_; - int state_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class Plan final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Plan) */ { +class ComponentState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ComponentState) */ { public: - inline Plan() : Plan(nullptr) {} - ~Plan() override; - explicit PROTOBUF_CONSTEXPR Plan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ComponentState() : ComponentState(nullptr) {} + ~ComponentState() override; + explicit PROTOBUF_CONSTEXPR ComponentState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - Plan(const Plan& from); - Plan(Plan&& from) noexcept - : Plan() { + ComponentState(const ComponentState& from); + ComponentState(ComponentState&& from) noexcept + : ComponentState() { *this = ::std::move(from); } - inline Plan& operator=(const Plan& from) { + inline ComponentState& operator=(const ComponentState& from) { CopyFrom(from); return *this; } - inline Plan& operator=(Plan&& from) noexcept { + inline ComponentState& operator=(ComponentState&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -5054,20 +5083,20 @@ class Plan final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Plan& default_instance() { + static const ComponentState& default_instance() { return *internal_default_instance(); } - static inline const Plan* internal_default_instance() { - return reinterpret_cast( - &_Plan_default_instance_); + static inline const ComponentState* internal_default_instance() { + return reinterpret_cast( + &_ComponentState_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 27; - friend void swap(Plan& a, Plan& b) { + friend void swap(ComponentState& a, ComponentState& b) { a.Swap(&b); } - inline void Swap(Plan* other) { + inline void Swap(ComponentState* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -5080,7 +5109,7 @@ class Plan final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Plan* other) { + void UnsafeArenaSwap(ComponentState* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -5088,13 +5117,13 @@ class Plan final : // implements Message ---------------------------------------------- - Plan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ComponentState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Plan& from); + void CopyFrom(const ComponentState& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const Plan& from); + void MergeFrom(const ComponentState& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -5104,1011 +5133,113 @@ class Plan final : size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Plan* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.Plan"; - } - protected: - explicit Plan(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStepsFieldNumber = 4, - kIdFieldNumber = 1, - kExecutionIdFieldNumber = 3, - kComponentNameFieldNumber = 2, - }; - // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; - int steps_size() const; - private: - int _internal_steps_size() const; - public: - void clear_steps(); - ::viam::service::motion::v1::PlanStep* mutable_steps(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >* - mutable_steps(); - private: - const ::viam::service::motion::v1::PlanStep& _internal_steps(int index) const; - ::viam::service::motion::v1::PlanStep* _internal_add_steps(); - public: - const ::viam::service::motion::v1::PlanStep& steps(int index) const; - ::viam::service::motion::v1::PlanStep* add_steps(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >& - steps() const; - - // string id = 1 [json_name = "id"]; - void clear_id(); - const std::string& id() const; - template - void set_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* id); - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); - std::string* _internal_mutable_id(); - public: - - // string execution_id = 3 [json_name = "executionId"]; - void clear_execution_id(); - const std::string& execution_id() const; - template - void set_execution_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_execution_id(); - PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* execution_id); - private: - const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); - std::string* _internal_mutable_execution_id(); - public: - - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; - private: - bool _internal_has_component_name() const; - public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); - private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Plan) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep > steps_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -}; -// ------------------------------------------------------------------- - -class PlanStep_StepEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - PlanStep_StepEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit PlanStep_StepEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const PlanStep_StepEntry_DoNotUse& other); - static const PlanStep_StepEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_PlanStep_StepEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.service.motion.v1.PlanStep.StepEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -}; - -// ------------------------------------------------------------------- - -class PlanStep final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStep) */ { - public: - inline PlanStep() : PlanStep(nullptr) {} - ~PlanStep() override; - explicit PROTOBUF_CONSTEXPR PlanStep(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PlanStep(const PlanStep& from); - PlanStep(PlanStep&& from) noexcept - : PlanStep() { - *this = ::std::move(from); - } - - inline PlanStep& operator=(const PlanStep& from) { - CopyFrom(from); - return *this; - } - inline PlanStep& operator=(PlanStep&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PlanStep& default_instance() { - return *internal_default_instance(); - } - static inline const PlanStep* internal_default_instance() { - return reinterpret_cast( - &_PlanStep_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(PlanStep& a, PlanStep& b) { - a.Swap(&b); - } - inline void Swap(PlanStep* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PlanStep* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PlanStep* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PlanStep& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PlanStep& from); - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PlanStep* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.PlanStep"; - } - protected: - explicit PlanStep(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - enum : int { - kStepFieldNumber = 1, - }; - // map step = 1 [json_name = "step"]; - int step_size() const; - private: - int _internal_step_size() const; - public: - void clear_step(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& - _internal_step() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* - _internal_mutable_step(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& - step() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* - mutable_step(); - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStep) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - PlanStep_StepEntry_DoNotUse, - std::string, ::viam::service::motion::v1::ComponentState, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> step_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -}; -// ------------------------------------------------------------------- - -class ComponentState final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ComponentState) */ { - public: - inline ComponentState() : ComponentState(nullptr) {} - ~ComponentState() override; - explicit PROTOBUF_CONSTEXPR ComponentState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ComponentState(const ComponentState& from); - ComponentState(ComponentState&& from) noexcept - : ComponentState() { - *this = ::std::move(from); - } - - inline ComponentState& operator=(const ComponentState& from) { - CopyFrom(from); - return *this; - } - inline ComponentState& operator=(ComponentState&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ComponentState& default_instance() { - return *internal_default_instance(); - } - static inline const ComponentState* internal_default_instance() { - return reinterpret_cast( - &_ComponentState_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(ComponentState& a, ComponentState& b) { - a.Swap(&b); - } - inline void Swap(ComponentState* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ComponentState* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ComponentState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ComponentState& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ComponentState& from); - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComponentState* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.service.motion.v1.ComponentState"; - } - protected: - explicit ComponentState(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPoseFieldNumber = 1, - }; - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - bool has_pose() const; - private: - bool _internal_has_pose() const; - public: - void clear_pose(); - const ::viam::common::v1::Pose& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); - ::viam::common::v1::Pose* mutable_pose(); - void set_allocated_pose(::viam::common::v1::Pose* pose); - private: - const ::viam::common::v1::Pose& _internal_pose() const; - ::viam::common::v1::Pose* _internal_mutable_pose(); - public: - void unsafe_arena_set_allocated_pose( - ::viam::common::v1::Pose* pose); - ::viam::common::v1::Pose* unsafe_arena_release_pose(); - - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ComponentState) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::viam::common::v1::Pose* pose_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// MoveRequest - -// string name = 1 [json_name = "name"]; -inline void MoveRequest::clear_name() { - name_.ClearToEmpty(); -} -inline const std::string& MoveRequest::name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MoveRequest::set_name(ArgT0&& arg0, ArgT... args) { - - name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveRequest.name) -} -inline std::string* MoveRequest::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.name) - return _s; -} -inline const std::string& MoveRequest::_internal_name() const { - return name_.Get(); -} -inline void MoveRequest::_internal_set_name(const std::string& value) { - - name_.Set(value, GetArenaForAllocation()); -} -inline std::string* MoveRequest::_internal_mutable_name() { - - return name_.Mutable(GetArenaForAllocation()); -} -inline std::string* MoveRequest::release_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.name) - return name_.Release(); -} -inline void MoveRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (name_.IsDefault()) { - name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.name) -} - -// .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; -inline bool MoveRequest::_internal_has_destination() const { - return this != internal_default_instance() && destination_ != nullptr; -} -inline bool MoveRequest::has_destination() const { - return _internal_has_destination(); -} -inline const ::viam::common::v1::PoseInFrame& MoveRequest::_internal_destination() const { - const ::viam::common::v1::PoseInFrame* p = destination_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::common::v1::_PoseInFrame_default_instance_); -} -inline const ::viam::common::v1::PoseInFrame& MoveRequest::destination() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.destination) - return _internal_destination(); -} -inline void MoveRequest::unsafe_arena_set_allocated_destination( - ::viam::common::v1::PoseInFrame* destination) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); - } - destination_ = destination; - if (destination) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.destination) -} -inline ::viam::common::v1::PoseInFrame* MoveRequest::release_destination() { - - ::viam::common::v1::PoseInFrame* temp = destination_; - destination_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::viam::common::v1::PoseInFrame* MoveRequest::unsafe_arena_release_destination() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.destination) - - ::viam::common::v1::PoseInFrame* temp = destination_; - destination_ = nullptr; - return temp; -} -inline ::viam::common::v1::PoseInFrame* MoveRequest::_internal_mutable_destination() { - - if (destination_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); - destination_ = p; - } - return destination_; -} -inline ::viam::common::v1::PoseInFrame* MoveRequest::mutable_destination() { - ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_destination(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.destination) - return _msg; -} -inline void MoveRequest::set_allocated_destination(::viam::common::v1::PoseInFrame* destination) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); - } - if (destination) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination)); - if (message_arena != submessage_arena) { - destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, destination, submessage_arena); - } - - } else { - - } - destination_ = destination; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.destination) -} - -// .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; -inline bool MoveRequest::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; -} -inline bool MoveRequest::has_component_name() const { - return _internal_has_component_name(); -} -inline const ::viam::common::v1::ResourceName& MoveRequest::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::common::v1::_ResourceName_default_instance_); -} -inline const ::viam::common::v1::ResourceName& MoveRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.component_name) - return _internal_component_name(); -} -inline void MoveRequest::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); - } - component_name_ = component_name; - if (component_name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.component_name) -} -inline ::viam::common::v1::ResourceName* MoveRequest::release_component_name() { - - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::viam::common::v1::ResourceName* MoveRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.component_name) - - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; - return temp; -} -inline ::viam::common::v1::ResourceName* MoveRequest::_internal_mutable_component_name() { - - if (component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; - } - return component_name_; -} -inline ::viam::common::v1::ResourceName* MoveRequest::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.component_name) - return _msg; -} -inline void MoveRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); - } - if (component_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); - if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); - } - - } else { - - } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.component_name) -} - -// optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; -inline bool MoveRequest::_internal_has_world_state() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || world_state_ != nullptr); - return value; -} -inline bool MoveRequest::has_world_state() const { - return _internal_has_world_state(); -} -inline const ::viam::common::v1::WorldState& MoveRequest::_internal_world_state() const { - const ::viam::common::v1::WorldState* p = world_state_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::common::v1::_WorldState_default_instance_); -} -inline const ::viam::common::v1::WorldState& MoveRequest::world_state() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.world_state) - return _internal_world_state(); -} -inline void MoveRequest::unsafe_arena_set_allocated_world_state( - ::viam::common::v1::WorldState* world_state) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state_); - } - world_state_ = world_state; - if (world_state) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.world_state) -} -inline ::viam::common::v1::WorldState* MoveRequest::release_world_state() { - _has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::WorldState* temp = world_state_; - world_state_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::viam::common::v1::WorldState* MoveRequest::unsafe_arena_release_world_state() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.world_state) - _has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::WorldState* temp = world_state_; - world_state_ = nullptr; - return temp; -} -inline ::viam::common::v1::WorldState* MoveRequest::_internal_mutable_world_state() { - _has_bits_[0] |= 0x00000001u; - if (world_state_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArenaForAllocation()); - world_state_ = p; - } - return world_state_; -} -inline ::viam::common::v1::WorldState* MoveRequest::mutable_world_state() { - ::viam::common::v1::WorldState* _msg = _internal_mutable_world_state(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.world_state) - return _msg; -} -inline void MoveRequest::set_allocated_world_state(::viam::common::v1::WorldState* world_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state_); - } - if (world_state) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state)); - if (message_arena != submessage_arena) { - world_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, world_state, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - world_state_ = world_state; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.world_state) -} - -// optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; -inline bool MoveRequest::_internal_has_constraints() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || constraints_ != nullptr); - return value; -} -inline bool MoveRequest::has_constraints() const { - return _internal_has_constraints(); -} -inline void MoveRequest::clear_constraints() { - if (constraints_ != nullptr) constraints_->Clear(); - _has_bits_[0] &= ~0x00000002u; -} -inline const ::viam::service::motion::v1::Constraints& MoveRequest::_internal_constraints() const { - const ::viam::service::motion::v1::Constraints* p = constraints_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::service::motion::v1::_Constraints_default_instance_); -} -inline const ::viam::service::motion::v1::Constraints& MoveRequest::constraints() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.constraints) - return _internal_constraints(); -} -inline void MoveRequest::unsafe_arena_set_allocated_constraints( - ::viam::service::motion::v1::Constraints* constraints) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(constraints_); - } - constraints_ = constraints; - if (constraints) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.constraints) -} -inline ::viam::service::motion::v1::Constraints* MoveRequest::release_constraints() { - _has_bits_[0] &= ~0x00000002u; - ::viam::service::motion::v1::Constraints* temp = constraints_; - constraints_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::viam::service::motion::v1::Constraints* MoveRequest::unsafe_arena_release_constraints() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.constraints) - _has_bits_[0] &= ~0x00000002u; - ::viam::service::motion::v1::Constraints* temp = constraints_; - constraints_ = nullptr; - return temp; -} -inline ::viam::service::motion::v1::Constraints* MoveRequest::_internal_mutable_constraints() { - _has_bits_[0] |= 0x00000002u; - if (constraints_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::Constraints>(GetArenaForAllocation()); - constraints_ = p; - } - return constraints_; -} -inline ::viam::service::motion::v1::Constraints* MoveRequest::mutable_constraints() { - ::viam::service::motion::v1::Constraints* _msg = _internal_mutable_constraints(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.constraints) - return _msg; -} -inline void MoveRequest::set_allocated_constraints(::viam::service::motion::v1::Constraints* constraints) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete constraints_; - } - if (constraints) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(constraints); - if (message_arena != submessage_arena) { - constraints = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, constraints, submessage_arena); - } - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - constraints_ = constraints; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.constraints) -} - -// .google.protobuf.Struct extra = 99 [json_name = "extra"]; -inline bool MoveRequest::_internal_has_extra() const { - return this != internal_default_instance() && extra_ != nullptr; -} -inline bool MoveRequest::has_extra() const { - return _internal_has_extra(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::_internal_extra() const { - const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::extra() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.extra) - return _internal_extra(); -} -inline void MoveRequest::unsafe_arena_set_allocated_extra( - ::PROTOBUF_NAMESPACE_ID::Struct* extra) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); - } - extra_ = extra; - if (extra) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.extra) -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::release_extra() { - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; - extra_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::unsafe_arena_release_extra() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.extra) - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; - extra_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::_internal_mutable_extra() { - - if (extra_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); - extra_ = p; - } - return extra_; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::mutable_extra() { - ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.extra) - return _msg; -} -inline void MoveRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); - } - if (extra) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra)); - if (message_arena != submessage_arena) { - extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, extra, submessage_arena); - } - - } else { - + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ComponentState* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.ComponentState"; } - extra_ = extra; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.extra) -} + protected: + explicit ComponentState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: -// ------------------------------------------------------------------- + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; -// MoveResponse + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -// bool success = 1 [json_name = "success"]; -inline void MoveResponse::clear_success() { - success_ = false; -} -inline bool MoveResponse::_internal_success() const { - return success_; -} -inline bool MoveResponse::success() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveResponse.success) - return _internal_success(); -} -inline void MoveResponse::_internal_set_success(bool value) { - - success_ = value; -} -inline void MoveResponse::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveResponse.success) -} + // nested types ---------------------------------------------------- -// ------------------------------------------------------------------- + // accessors ------------------------------------------------------- + + enum : int { + kPoseFieldNumber = 1, + }; + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::Pose& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); + ::viam::common::v1::Pose* mutable_pose(); + void set_allocated_pose(::viam::common::v1::Pose* pose); + private: + const ::viam::common::v1::Pose& _internal_pose() const; + ::viam::common::v1::Pose* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose); + ::viam::common::v1::Pose* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ComponentState) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Pose* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// =================================================================== + + +// =================================================================== -// MoveOnMapNewRequest +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MoveRequest // string name = 1 [json_name = "name"]; -inline void MoveOnMapNewRequest::clear_name() { +inline void MoveRequest::clear_name() { name_.ClearToEmpty(); } -inline const std::string& MoveOnMapNewRequest::name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapNewRequest.name) +inline const std::string& MoveRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE -void MoveOnMapNewRequest::set_name(ArgT0&& arg0, ArgT... args) { +void MoveRequest::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapNewRequest.name) + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveRequest.name) } -inline std::string* MoveOnMapNewRequest::mutable_name() { +inline std::string* MoveRequest::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapNewRequest.name) + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.name) return _s; } -inline const std::string& MoveOnMapNewRequest::_internal_name() const { +inline const std::string& MoveRequest::_internal_name() const { return name_.Get(); } -inline void MoveOnMapNewRequest::_internal_set_name(const std::string& value) { +inline void MoveRequest::_internal_set_name(const std::string& value) { name_.Set(value, GetArenaForAllocation()); } -inline std::string* MoveOnMapNewRequest::_internal_mutable_name() { +inline std::string* MoveRequest::_internal_mutable_name() { return name_.Mutable(GetArenaForAllocation()); } -inline std::string* MoveOnMapNewRequest::release_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapNewRequest.name) +inline std::string* MoveRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.name) return name_.Release(); } -inline void MoveOnMapNewRequest::set_allocated_name(std::string* name) { +inline void MoveRequest::set_allocated_name(std::string* name) { if (name != nullptr) { } else { @@ -6120,27 +5251,27 @@ inline void MoveOnMapNewRequest::set_allocated_name(std::string* name) { name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.name) + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.name) } -// .viam.common.v1.Pose destination = 2 [json_name = "destination"]; -inline bool MoveOnMapNewRequest::_internal_has_destination() const { +// .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; +inline bool MoveRequest::_internal_has_destination() const { return this != internal_default_instance() && destination_ != nullptr; } -inline bool MoveOnMapNewRequest::has_destination() const { +inline bool MoveRequest::has_destination() const { return _internal_has_destination(); } -inline const ::viam::common::v1::Pose& MoveOnMapNewRequest::_internal_destination() const { - const ::viam::common::v1::Pose* p = destination_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::common::v1::_Pose_default_instance_); +inline const ::viam::common::v1::PoseInFrame& MoveRequest::_internal_destination() const { + const ::viam::common::v1::PoseInFrame* p = destination_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); } -inline const ::viam::common::v1::Pose& MoveOnMapNewRequest::destination() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapNewRequest.destination) +inline const ::viam::common::v1::PoseInFrame& MoveRequest::destination() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.destination) return _internal_destination(); } -inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_destination( - ::viam::common::v1::Pose* destination) { +inline void MoveRequest::unsafe_arena_set_allocated_destination( + ::viam::common::v1::PoseInFrame* destination) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } @@ -6150,11 +5281,11 @@ inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_destination( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.destination) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.destination) } -inline ::viam::common::v1::Pose* MoveOnMapNewRequest::release_destination() { +inline ::viam::common::v1::PoseInFrame* MoveRequest::release_destination() { - ::viam::common::v1::Pose* temp = destination_; + ::viam::common::v1::PoseInFrame* temp = destination_; destination_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); @@ -6167,27 +5298,27 @@ inline ::viam::common::v1::Pose* MoveOnMapNewRequest::release_destination() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::Pose* MoveOnMapNewRequest::unsafe_arena_release_destination() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapNewRequest.destination) +inline ::viam::common::v1::PoseInFrame* MoveRequest::unsafe_arena_release_destination() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.destination) - ::viam::common::v1::Pose* temp = destination_; + ::viam::common::v1::PoseInFrame* temp = destination_; destination_ = nullptr; return temp; } -inline ::viam::common::v1::Pose* MoveOnMapNewRequest::_internal_mutable_destination() { +inline ::viam::common::v1::PoseInFrame* MoveRequest::_internal_mutable_destination() { if (destination_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); destination_ = p; } return destination_; } -inline ::viam::common::v1::Pose* MoveOnMapNewRequest::mutable_destination() { - ::viam::common::v1::Pose* _msg = _internal_mutable_destination(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapNewRequest.destination) +inline ::viam::common::v1::PoseInFrame* MoveRequest::mutable_destination() { + ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_destination(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.destination) return _msg; } -inline void MoveOnMapNewRequest::set_allocated_destination(::viam::common::v1::Pose* destination) { +inline void MoveRequest::set_allocated_destination(::viam::common::v1::PoseInFrame* destination) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); @@ -6205,26 +5336,26 @@ inline void MoveOnMapNewRequest::set_allocated_destination(::viam::common::v1::P } destination_ = destination; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.destination) + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.destination) } // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; -inline bool MoveOnMapNewRequest::_internal_has_component_name() const { +inline bool MoveRequest::_internal_has_component_name() const { return this != internal_default_instance() && component_name_ != nullptr; } -inline bool MoveOnMapNewRequest::has_component_name() const { +inline bool MoveRequest::has_component_name() const { return _internal_has_component_name(); } -inline const ::viam::common::v1::ResourceName& MoveOnMapNewRequest::_internal_component_name() const { +inline const ::viam::common::v1::ResourceName& MoveRequest::_internal_component_name() const { const ::viam::common::v1::ResourceName* p = component_name_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnMapNewRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapNewRequest.component_name) +inline const ::viam::common::v1::ResourceName& MoveRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.component_name) return _internal_component_name(); } -inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_component_name( +inline void MoveRequest::unsafe_arena_set_allocated_component_name( ::viam::common::v1::ResourceName* component_name) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); @@ -6235,9 +5366,9 @@ inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_component_name( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.component_name) } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::release_component_name() { +inline ::viam::common::v1::ResourceName* MoveRequest::release_component_name() { ::viam::common::v1::ResourceName* temp = component_name_; component_name_ = nullptr; @@ -6252,14 +5383,14 @@ inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::release_component_ #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapNewRequest.component_name) +inline ::viam::common::v1::ResourceName* MoveRequest::unsafe_arena_release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.component_name) ::viam::common::v1::ResourceName* temp = component_name_; component_name_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* MoveRequest::_internal_mutable_component_name() { if (component_name_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); @@ -6267,12 +5398,12 @@ inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::_internal_mutable_ } return component_name_; } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::mutable_component_name() { +inline ::viam::common::v1::ResourceName* MoveRequest::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapNewRequest.component_name) + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.component_name) return _msg; } -inline void MoveOnMapNewRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void MoveRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); @@ -6290,42 +5421,44 @@ inline void MoveOnMapNewRequest::set_allocated_component_name(::viam::common::v1 } component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.component_name) + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.component_name) } -// .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; -inline bool MoveOnMapNewRequest::_internal_has_slam_service_name() const { - return this != internal_default_instance() && slam_service_name_ != nullptr; +// optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; +inline bool MoveRequest::_internal_has_world_state() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || world_state_ != nullptr); + return value; } -inline bool MoveOnMapNewRequest::has_slam_service_name() const { - return _internal_has_slam_service_name(); +inline bool MoveRequest::has_world_state() const { + return _internal_has_world_state(); } -inline const ::viam::common::v1::ResourceName& MoveOnMapNewRequest::_internal_slam_service_name() const { - const ::viam::common::v1::ResourceName* p = slam_service_name_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::common::v1::_ResourceName_default_instance_); +inline const ::viam::common::v1::WorldState& MoveRequest::_internal_world_state() const { + const ::viam::common::v1::WorldState* p = world_state_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_WorldState_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnMapNewRequest::slam_service_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapNewRequest.slam_service_name) - return _internal_slam_service_name(); +inline const ::viam::common::v1::WorldState& MoveRequest::world_state() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.world_state) + return _internal_world_state(); } -inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_slam_service_name( - ::viam::common::v1::ResourceName* slam_service_name) { +inline void MoveRequest::unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state_); } - slam_service_name_ = slam_service_name; - if (slam_service_name) { - + world_state_ = world_state; + if (world_state) { + _has_bits_[0] |= 0x00000001u; } else { - + _has_bits_[0] &= ~0x00000001u; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.slam_service_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.world_state) } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::release_slam_service_name() { - - ::viam::common::v1::ResourceName* temp = slam_service_name_; - slam_service_name_ = nullptr; +inline ::viam::common::v1::WorldState* MoveRequest::release_world_state() { + _has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = world_state_; + world_state_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6337,86 +5470,86 @@ inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::release_slam_servi #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::unsafe_arena_release_slam_service_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapNewRequest.slam_service_name) - - ::viam::common::v1::ResourceName* temp = slam_service_name_; - slam_service_name_ = nullptr; +inline ::viam::common::v1::WorldState* MoveRequest::unsafe_arena_release_world_state() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.world_state) + _has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = world_state_; + world_state_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::_internal_mutable_slam_service_name() { - - if (slam_service_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - slam_service_name_ = p; +inline ::viam::common::v1::WorldState* MoveRequest::_internal_mutable_world_state() { + _has_bits_[0] |= 0x00000001u; + if (world_state_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArenaForAllocation()); + world_state_ = p; } - return slam_service_name_; + return world_state_; } -inline ::viam::common::v1::ResourceName* MoveOnMapNewRequest::mutable_slam_service_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_slam_service_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapNewRequest.slam_service_name) +inline ::viam::common::v1::WorldState* MoveRequest::mutable_world_state() { + ::viam::common::v1::WorldState* _msg = _internal_mutable_world_state(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.world_state) return _msg; } -inline void MoveOnMapNewRequest::set_allocated_slam_service_name(::viam::common::v1::ResourceName* slam_service_name) { +inline void MoveRequest::set_allocated_world_state(::viam::common::v1::WorldState* world_state) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state_); } - if (slam_service_name) { + if (world_state) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state)); if (message_arena != submessage_arena) { - slam_service_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, slam_service_name, submessage_arena); + world_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, world_state, submessage_arena); } - + _has_bits_[0] |= 0x00000001u; } else { - + _has_bits_[0] &= ~0x00000001u; } - slam_service_name_ = slam_service_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.slam_service_name) + world_state_ = world_state; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.world_state) } -// optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; -inline bool MoveOnMapNewRequest::_internal_has_motion_configuration() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || motion_configuration_ != nullptr); +// optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; +inline bool MoveRequest::_internal_has_constraints() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || constraints_ != nullptr); return value; } -inline bool MoveOnMapNewRequest::has_motion_configuration() const { - return _internal_has_motion_configuration(); +inline bool MoveRequest::has_constraints() const { + return _internal_has_constraints(); } -inline void MoveOnMapNewRequest::clear_motion_configuration() { - if (motion_configuration_ != nullptr) motion_configuration_->Clear(); - _has_bits_[0] &= ~0x00000001u; +inline void MoveRequest::clear_constraints() { + if (constraints_ != nullptr) constraints_->Clear(); + _has_bits_[0] &= ~0x00000002u; } -inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapNewRequest::_internal_motion_configuration() const { - const ::viam::service::motion::v1::MotionConfiguration* p = motion_configuration_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::service::motion::v1::_MotionConfiguration_default_instance_); +inline const ::viam::service::motion::v1::Constraints& MoveRequest::_internal_constraints() const { + const ::viam::service::motion::v1::Constraints* p = constraints_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_Constraints_default_instance_); } -inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapNewRequest::motion_configuration() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapNewRequest.motion_configuration) - return _internal_motion_configuration(); +inline const ::viam::service::motion::v1::Constraints& MoveRequest::constraints() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.constraints) + return _internal_constraints(); } -inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_motion_configuration( - ::viam::service::motion::v1::MotionConfiguration* motion_configuration) { +inline void MoveRequest::unsafe_arena_set_allocated_constraints( + ::viam::service::motion::v1::Constraints* constraints) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(motion_configuration_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(constraints_); } - motion_configuration_ = motion_configuration; - if (motion_configuration) { - _has_bits_[0] |= 0x00000001u; + constraints_ = constraints; + if (constraints) { + _has_bits_[0] |= 0x00000002u; } else { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.motion_configuration) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.constraints) } -inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapNewRequest::release_motion_configuration() { - _has_bits_[0] &= ~0x00000001u; - ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; - motion_configuration_ = nullptr; +inline ::viam::service::motion::v1::Constraints* MoveRequest::release_constraints() { + _has_bits_[0] &= ~0x00000002u; + ::viam::service::motion::v1::Constraints* temp = constraints_; + constraints_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6428,63 +5561,63 @@ inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapNewRequest::re #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapNewRequest::unsafe_arena_release_motion_configuration() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapNewRequest.motion_configuration) - _has_bits_[0] &= ~0x00000001u; - ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; - motion_configuration_ = nullptr; +inline ::viam::service::motion::v1::Constraints* MoveRequest::unsafe_arena_release_constraints() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.constraints) + _has_bits_[0] &= ~0x00000002u; + ::viam::service::motion::v1::Constraints* temp = constraints_; + constraints_ = nullptr; return temp; } -inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapNewRequest::_internal_mutable_motion_configuration() { - _has_bits_[0] |= 0x00000001u; - if (motion_configuration_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(GetArenaForAllocation()); - motion_configuration_ = p; +inline ::viam::service::motion::v1::Constraints* MoveRequest::_internal_mutable_constraints() { + _has_bits_[0] |= 0x00000002u; + if (constraints_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::Constraints>(GetArenaForAllocation()); + constraints_ = p; } - return motion_configuration_; + return constraints_; } -inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapNewRequest::mutable_motion_configuration() { - ::viam::service::motion::v1::MotionConfiguration* _msg = _internal_mutable_motion_configuration(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapNewRequest.motion_configuration) +inline ::viam::service::motion::v1::Constraints* MoveRequest::mutable_constraints() { + ::viam::service::motion::v1::Constraints* _msg = _internal_mutable_constraints(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.constraints) return _msg; } -inline void MoveOnMapNewRequest::set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration) { +inline void MoveRequest::set_allocated_constraints(::viam::service::motion::v1::Constraints* constraints) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete motion_configuration_; + delete constraints_; } - if (motion_configuration) { + if (constraints) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(motion_configuration); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(constraints); if (message_arena != submessage_arena) { - motion_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, motion_configuration, submessage_arena); + constraints = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, constraints, submessage_arena); } - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } else { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } - motion_configuration_ = motion_configuration; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.motion_configuration) + constraints_ = constraints; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.constraints) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; -inline bool MoveOnMapNewRequest::_internal_has_extra() const { +inline bool MoveRequest::_internal_has_extra() const { return this != internal_default_instance() && extra_ != nullptr; } -inline bool MoveOnMapNewRequest::has_extra() const { +inline bool MoveRequest::has_extra() const { return _internal_has_extra(); } -inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveOnMapNewRequest::_internal_extra() const { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::_internal_extra() const { const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; return p != nullptr ? *p : reinterpret_cast( ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveOnMapNewRequest::extra() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapNewRequest.extra) +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.extra) return _internal_extra(); } -inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_extra( +inline void MoveRequest::unsafe_arena_set_allocated_extra( ::PROTOBUF_NAMESPACE_ID::Struct* extra) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); @@ -6495,9 +5628,9 @@ inline void MoveOnMapNewRequest::unsafe_arena_set_allocated_extra( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.extra) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.extra) } -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapNewRequest::release_extra() { +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::release_extra() { ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; extra_ = nullptr; @@ -6512,14 +5645,14 @@ inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapNewRequest::release_extra() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapNewRequest::unsafe_arena_release_extra() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapNewRequest.extra) +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.extra) ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; extra_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapNewRequest::_internal_mutable_extra() { +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::_internal_mutable_extra() { if (extra_ == nullptr) { auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); @@ -6527,12 +5660,12 @@ inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapNewRequest::_internal_mutable_e } return extra_; } -inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapNewRequest::mutable_extra() { +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::mutable_extra() { ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapNewRequest.extra) + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.extra) return _msg; } -inline void MoveOnMapNewRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { +inline void MoveRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); @@ -6550,61 +5683,31 @@ inline void MoveOnMapNewRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::St } extra_ = extra; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapNewRequest.extra) + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.extra) } // ------------------------------------------------------------------- -// MoveOnMapNewResponse +// MoveResponse -// string execution_id = 1 [json_name = "executionId"]; -inline void MoveOnMapNewResponse::clear_execution_id() { - execution_id_.ClearToEmpty(); -} -inline const std::string& MoveOnMapNewResponse::execution_id() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapNewResponse.execution_id) - return _internal_execution_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MoveOnMapNewResponse::set_execution_id(ArgT0&& arg0, ArgT... args) { - - execution_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapNewResponse.execution_id) -} -inline std::string* MoveOnMapNewResponse::mutable_execution_id() { - std::string* _s = _internal_mutable_execution_id(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapNewResponse.execution_id) - return _s; +// bool success = 1 [json_name = "success"]; +inline void MoveResponse::clear_success() { + success_ = false; } -inline const std::string& MoveOnMapNewResponse::_internal_execution_id() const { - return execution_id_.Get(); +inline bool MoveResponse::_internal_success() const { + return success_; } -inline void MoveOnMapNewResponse::_internal_set_execution_id(const std::string& value) { - - execution_id_.Set(value, GetArenaForAllocation()); +inline bool MoveResponse::success() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveResponse.success) + return _internal_success(); } -inline std::string* MoveOnMapNewResponse::_internal_mutable_execution_id() { +inline void MoveResponse::_internal_set_success(bool value) { - return execution_id_.Mutable(GetArenaForAllocation()); -} -inline std::string* MoveOnMapNewResponse::release_execution_id() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapNewResponse.execution_id) - return execution_id_.Release(); + success_ = value; } -inline void MoveOnMapNewResponse::set_allocated_execution_id(std::string* execution_id) { - if (execution_id != nullptr) { - - } else { - - } - execution_id_.SetAllocated(execution_id, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (execution_id_.IsDefault()) { - execution_id_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapNewResponse.execution_id) +inline void MoveResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveResponse.success) } // ------------------------------------------------------------------- @@ -6916,6 +6019,133 @@ inline void MoveOnMapRequest::set_allocated_slam_service_name(::viam::common::v1 // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) } +// optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; +inline bool MoveOnMapRequest::_internal_has_motion_configuration() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || motion_configuration_ != nullptr); + return value; +} +inline bool MoveOnMapRequest::has_motion_configuration() const { + return _internal_has_motion_configuration(); +} +inline void MoveOnMapRequest::clear_motion_configuration() { + if (motion_configuration_ != nullptr) motion_configuration_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapRequest::_internal_motion_configuration() const { + const ::viam::service::motion::v1::MotionConfiguration* p = motion_configuration_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_MotionConfiguration_default_instance_); +} +inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapRequest::motion_configuration() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) + return _internal_motion_configuration(); +} +inline void MoveOnMapRequest::unsafe_arena_set_allocated_motion_configuration( + ::viam::service::motion::v1::MotionConfiguration* motion_configuration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(motion_configuration_); + } + motion_configuration_ = motion_configuration; + if (motion_configuration) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) +} +inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::release_motion_configuration() { + _has_bits_[0] &= ~0x00000001u; + ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; + motion_configuration_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::unsafe_arena_release_motion_configuration() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) + _has_bits_[0] &= ~0x00000001u; + ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; + motion_configuration_ = nullptr; + return temp; +} +inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::_internal_mutable_motion_configuration() { + _has_bits_[0] |= 0x00000001u; + if (motion_configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(GetArenaForAllocation()); + motion_configuration_ = p; + } + return motion_configuration_; +} +inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::mutable_motion_configuration() { + ::viam::service::motion::v1::MotionConfiguration* _msg = _internal_mutable_motion_configuration(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) + return _msg; +} +inline void MoveOnMapRequest::set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete motion_configuration_; + } + if (motion_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(motion_configuration); + if (message_arena != submessage_arena) { + motion_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, motion_configuration, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + motion_configuration_ = motion_configuration; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) +} + +// repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; +inline int MoveOnMapRequest::_internal_obstacles_size() const { + return obstacles_.size(); +} +inline int MoveOnMapRequest::obstacles_size() const { + return _internal_obstacles_size(); +} +inline ::viam::common::v1::Geometry* MoveOnMapRequest::mutable_obstacles(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.obstacles) + return obstacles_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* +MoveOnMapRequest::mutable_obstacles() { + // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.MoveOnMapRequest.obstacles) + return &obstacles_; +} +inline const ::viam::common::v1::Geometry& MoveOnMapRequest::_internal_obstacles(int index) const { + return obstacles_.Get(index); +} +inline const ::viam::common::v1::Geometry& MoveOnMapRequest::obstacles(int index) const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.obstacles) + return _internal_obstacles(index); +} +inline ::viam::common::v1::Geometry* MoveOnMapRequest::_internal_add_obstacles() { + return obstacles_.Add(); +} +inline ::viam::common::v1::Geometry* MoveOnMapRequest::add_obstacles() { + ::viam::common::v1::Geometry* _add = _internal_add_obstacles(); + // @@protoc_insertion_point(field_add:viam.service.motion.v1.MoveOnMapRequest.obstacles) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& +MoveOnMapRequest::obstacles() const { + // @@protoc_insertion_point(field_list:viam.service.motion.v1.MoveOnMapRequest.obstacles) + return obstacles_; +} + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; inline bool MoveOnMapRequest::_internal_has_extra() const { return this != internal_default_instance() && extra_ != nullptr; @@ -7005,24 +6235,54 @@ inline void MoveOnMapRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struc // MoveOnMapResponse -// bool success = 1 [json_name = "success"]; -inline void MoveOnMapResponse::clear_success() { - success_ = false; +// string execution_id = 1 [json_name = "executionId"]; +inline void MoveOnMapResponse::clear_execution_id() { + execution_id_.ClearToEmpty(); } -inline bool MoveOnMapResponse::_internal_success() const { - return success_; +inline const std::string& MoveOnMapResponse::execution_id() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapResponse.execution_id) + return _internal_execution_id(); } -inline bool MoveOnMapResponse::success() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapResponse.success) - return _internal_success(); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnMapResponse::set_execution_id(ArgT0&& arg0, ArgT... args) { + + execution_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapResponse.execution_id) +} +inline std::string* MoveOnMapResponse::mutable_execution_id() { + std::string* _s = _internal_mutable_execution_id(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapResponse.execution_id) + return _s; +} +inline const std::string& MoveOnMapResponse::_internal_execution_id() const { + return execution_id_.Get(); } -inline void MoveOnMapResponse::_internal_set_success(bool value) { +inline void MoveOnMapResponse::_internal_set_execution_id(const std::string& value) { - success_ = value; + execution_id_.Set(value, GetArenaForAllocation()); } -inline void MoveOnMapResponse::set_success(bool value) { - _internal_set_success(value); - // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapResponse.success) +inline std::string* MoveOnMapResponse::_internal_mutable_execution_id() { + + return execution_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveOnMapResponse::release_execution_id() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapResponse.execution_id) + return execution_id_.Release(); +} +inline void MoveOnMapResponse::set_allocated_execution_id(std::string* execution_id) { + if (execution_id != nullptr) { + + } else { + + } + execution_id_.SetAllocated(execution_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (execution_id_.IsDefault()) { + execution_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapResponse.execution_id) } // ------------------------------------------------------------------- @@ -10717,10 +9977,6 @@ inline void ComponentState::set_allocated_pose(::viam::common::v1::Pose* pose) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/sdk/services/motion/client.cpp b/src/viam/sdk/services/motion/client.cpp index cdb1fac76..314641f7d 100644 --- a/src/viam/sdk/services/motion/client.cpp +++ b/src/viam/sdk/services/motion/client.cpp @@ -22,8 +22,8 @@ MotionClient::MotionClient(std::string name, std::shared_ptr chan bool MotionClient::move(const pose_in_frame& destination, const Name& component_name, - std::shared_ptr world_state, - std::shared_ptr constraints, + const std::shared_ptr& world_state, + const std::shared_ptr& constraints, const AttributeMap& extra) { return make_client_helper(this, *stub_, &StubType::Move) .with(extra, @@ -40,27 +40,33 @@ bool MotionClient::move(const pose_in_frame& destination, .invoke([](auto& response) { return response.success(); }); } -bool MotionClient::move_on_map(const pose& destination, - const Name& component_name, - const Name& slam_name, - const AttributeMap& extra) { +std::string MotionClient::move_on_map( + const pose& destination, + const Name& component_name, + const Name& slam_name, + const std::shared_ptr& motion_configuration, + const AttributeMap& extra) { return make_client_helper(this, *stub_, &StubType::MoveOnMap) .with(extra, [&](auto& request) { *request.mutable_destination() = destination.to_proto(); *request.mutable_component_name() = component_name.to_proto(); *request.mutable_slam_service_name() = slam_name.to_proto(); + if (motion_configuration) { + *request.mutable_motion_configuration() = motion_configuration->to_proto(); + } }) - .invoke([](auto& response) { return response.success(); }); + .invoke([](auto& response) { return response.execution_id(); }); } -std::string MotionClient::move_on_globe(const geo_point& destination, - const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, - const std::vector& obstacles, - std::shared_ptr motion_configuration, - const AttributeMap& extra) { +std::string MotionClient::move_on_globe( + const geo_point& destination, + const boost::optional& heading, + const Name& component_name, + const Name& movement_sensor_name, + const std::vector& obstacles, + const std::shared_ptr& motion_configuration, + const AttributeMap& extra) { return make_client_helper(this, *stub_, &StubType::MoveOnGlobe) .with(extra, [&](auto& request) { diff --git a/src/viam/sdk/services/motion/client.hpp b/src/viam/sdk/services/motion/client.hpp index 11acd1ce0..5bebd3564 100644 --- a/src/viam/sdk/services/motion/client.hpp +++ b/src/viam/sdk/services/motion/client.hpp @@ -21,21 +21,22 @@ class MotionClient : public Motion { MotionClient(std::string name, std::shared_ptr channel); bool move(const pose_in_frame& destination, const Name& component_name, - std::shared_ptr world_state, - std::shared_ptr constraints, + const std::shared_ptr& world_state, + const std::shared_ptr& constraints, const AttributeMap& extra) override; - bool move_on_map(const pose& destination, - const Name& component_name, - const Name& slam_name, - const AttributeMap& extra) override; + std::string move_on_map(const pose& destination, + const Name& component_name, + const Name& slam_name, + const std::shared_ptr& motion_configuration, + const AttributeMap& extra) override; std::string move_on_globe(const geo_point& destination, const boost::optional& heading, const Name& component_name, const Name& movement_sensor_name, const std::vector& obstacles, - std::shared_ptr motion_configuration, + const std::shared_ptr& motion_configuration, const AttributeMap& extra) override; pose_in_frame get_pose(const Name& component_name, diff --git a/src/viam/sdk/services/motion/motion.hpp b/src/viam/sdk/services/motion/motion.hpp index 9dd352f5f..98297555e 100644 --- a/src/viam/sdk/services/motion/motion.hpp +++ b/src/viam/sdk/services/motion/motion.hpp @@ -236,8 +236,8 @@ class Motion : public Service { /// @return Whether or not the move was successful. inline bool move(const pose_in_frame& destination, const Name& name, - std::shared_ptr world_state, - std::shared_ptr constraints) { + const std::shared_ptr& world_state, + const std::shared_ptr& constraints) { return move(destination, name, world_state, constraints, {}); } @@ -251,31 +251,37 @@ class Motion : public Service { /// @return Whether or not the move was successful. virtual bool move(const pose_in_frame& destination, const Name& name, - std::shared_ptr world_state, - std::shared_ptr constraints, + const std::shared_ptr& world_state, + const std::shared_ptr& constraints, const AttributeMap& extra) = 0; /// @brief Moves any component on the robot to a specific destination on a SLAM map. /// @param destination The destination to move to. /// @param component_name The component to move. /// @param slam_name The name of the slam service from which the SLAM map is requested. - /// @return Whether or not the move was successful. - inline bool move_on_map(const pose& destination, - const Name& component_name, - const Name& slam_name) { - return move_on_map(destination, component_name, slam_name, {}); + /// @param motion_configuration Optional set of motion configuration options. + /// @return The execution ID of the move_on_map request. + inline std::string move_on_map( + const pose& destination, + const Name& component_name, + const Name& slam_name, + const std::shared_ptr& motion_configuration) { + return move_on_map(destination, component_name, slam_name, motion_configuration, {}); } /// @brief Moves any component on the robot to a specific destination on a SLAM map. /// @param destination The destination to move to. /// @param component_name The component to move. /// @param slam_name The name of the slam service from which the SLAM map is requested. + /// @param motion_configuration Optional set of motion configuration options. /// @param extra Any additional arguments to the method. - /// @return Whether or not the move was successful. - virtual bool move_on_map(const pose& destination, - const Name& component_name, - const Name& slam_name, - const AttributeMap& extra) = 0; + /// @return The execution ID of the move_on_map request. + virtual std::string move_on_map( + const pose& destination, + const Name& component_name, + const Name& slam_name, + const std::shared_ptr& motion_configuration, + const AttributeMap& extra) = 0; /// @brief Moves any component on the robot to a specific destination on a globe. /// @param destination The destination to move to. @@ -285,12 +291,13 @@ class Motion : public Service { /// @param obstacles Obstacles to be considered for motion planning. /// @param motion_configuration Optional set of motion configuration options. /// @return The execution ID of the move_on_globe request. - inline std::string move_on_globe(const geo_point& destination, - const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, - const std::vector& obstacles, - std::shared_ptr motion_configuration) { + inline std::string move_on_globe( + const geo_point& destination, + const boost::optional& heading, + const Name& component_name, + const Name& movement_sensor_name, + const std::vector& obstacles, + const std::shared_ptr& motion_configuration) { return move_on_globe(destination, heading, component_name, @@ -309,13 +316,14 @@ class Motion : public Service { /// @param motion_configuration Optional set of motion configuration options. /// @param extra Any additional arguments to the method. /// @return The execution_id of the move_on_globe request. - virtual std::string move_on_globe(const geo_point& destination, - const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, - const std::vector& obstacles, - std::shared_ptr motion_configuration, - const AttributeMap& extra) = 0; + virtual std::string move_on_globe( + const geo_point& destination, + const boost::optional& heading, + const Name& component_name, + const Name& movement_sensor_name, + const std::vector& obstacles, + const std::shared_ptr& motion_configuration, + const AttributeMap& extra) = 0; /// @brief Get the pose of any component on the robot. /// @param component_name The component whose pose is being requested. diff --git a/src/viam/sdk/services/motion/server.cpp b/src/viam/sdk/services/motion/server.cpp index 33bdb98a2..fdab6b2a3 100644 --- a/src/viam/sdk/services/motion/server.cpp +++ b/src/viam/sdk/services/motion/server.cpp @@ -48,12 +48,18 @@ ::grpc::Status MotionServer::MoveOnMap( return make_service_helper( "MotionServer::MoveOnMap", this, request)([&](auto& helper, auto& motion) { const auto destination = pose::from_proto(request->destination()); - auto component_name = Name::from_proto(request->component_name()); - auto slam_name = Name::from_proto(request->slam_service_name()); - const bool success = motion->move_on_map( - destination, std::move(component_name), std::move(slam_name), helper.getExtra()); + const auto component_name = Name::from_proto(request->component_name()); + const auto slam_name = Name::from_proto(request->slam_service_name()); - response->set_success(success); + std::shared_ptr mc; + if (request->has_motion_configuration()) { + mc = std::make_shared( + motion_configuration::from_proto(request->motion_configuration())); + } + const std::string execution_id = + motion->move_on_map(destination, component_name, slam_name, mc, helper.getExtra()); + + *response->mutable_execution_id() = execution_id; }); } @@ -64,8 +70,8 @@ ::grpc::Status MotionServer::MoveOnGlobe( return make_service_helper( "MotionServer::MoveOnGlobe", this, request)([&](auto& helper, auto& motion) { const auto destination = geo_point::from_proto(request->destination()); - auto component_name = Name::from_proto(request->component_name()); - auto movement_sensor_name = Name::from_proto(request->movement_sensor_name()); + const auto component_name = Name::from_proto(request->component_name()); + const auto movement_sensor_name = Name::from_proto(request->movement_sensor_name()); std::vector obstacles; for (const auto& obstacle : request->obstacles()) { @@ -85,11 +91,11 @@ ::grpc::Status MotionServer::MoveOnGlobe( const std::string execution_id = motion->move_on_globe(destination, heading, - std::move(component_name), - std::move(movement_sensor_name), - std::move(obstacles), - std::move(mc), - std::move(helper.getExtra())); + component_name, + movement_sensor_name, + obstacles, + mc, + helper.getExtra()); *response->mutable_execution_id() = execution_id; }); diff --git a/src/viam/sdk/tests/mocks/mock_motion.cpp b/src/viam/sdk/tests/mocks/mock_motion.cpp index 6d8d54757..d617d6f1d 100644 --- a/src/viam/sdk/tests/mocks/mock_motion.cpp +++ b/src/viam/sdk/tests/mocks/mock_motion.cpp @@ -1,3 +1,4 @@ +#include "viam/sdk/services/motion/motion.hpp" #include #include @@ -15,8 +16,8 @@ using namespace viam::sdk; bool MockMotion::move(const pose_in_frame& destination, const Name& component_name, - std::shared_ptr world_state, - std::shared_ptr constraints, + const std::shared_ptr& world_state, + const std::shared_ptr& constraints, const AttributeMap& extra) { this->current_location = destination; this->peek_component_name = component_name; @@ -25,31 +26,34 @@ bool MockMotion::move(const pose_in_frame& destination, return true; } -bool MockMotion::move_on_map(const pose& destination, - const Name& component_name, - const Name& slam_name, - const AttributeMap& extra) { - this->peek_current_pose = std::move(destination); - this->peek_component_name = std::move(component_name); - this->peek_slam_name = std::move(slam_name); - this->current_location.pose = std::move(destination); +std::string MockMotion::move_on_map( + const pose& destination, + const Name& component_name, + const Name& slam_name, + const std::shared_ptr& motion_configuration, + const AttributeMap& extra) { + this->peek_current_pose = destination; + this->peek_component_name = component_name; + this->peek_slam_name = slam_name; + this->current_location.pose = destination; - return true; + return "execution-id"; } -std::string MockMotion::move_on_globe(const geo_point& destination, - const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, - const std::vector& obstacles, - std::shared_ptr motion_configuration, - const AttributeMap& extra) { +std::string MockMotion::move_on_globe( + const geo_point& destination, + const boost::optional& heading, + const Name& component_name, + const Name& movement_sensor_name, + const std::vector& obstacles, + const std::shared_ptr& motion_configuration, + const AttributeMap& extra) { this->peek_heading = *heading; - this->peek_component_name = std::move(component_name); - this->peek_movement_sensor_name = std::move(movement_sensor_name); - this->peek_destination = std::move(destination); - this->peek_obstacles = std::move(obstacles); - this->peek_motion_configuration = std::move(motion_configuration); + this->peek_component_name = component_name; + this->peek_movement_sensor_name = movement_sensor_name; + this->peek_destination = destination; + this->peek_obstacles = obstacles; + this->peek_motion_configuration = motion_configuration; return "execution-id"; } diff --git a/src/viam/sdk/tests/mocks/mock_motion.hpp b/src/viam/sdk/tests/mocks/mock_motion.hpp index 02a9bf8b6..c18a191ca 100644 --- a/src/viam/sdk/tests/mocks/mock_motion.hpp +++ b/src/viam/sdk/tests/mocks/mock_motion.hpp @@ -24,22 +24,24 @@ class MockMotion : public sdk::Motion { public: bool move(const sdk::pose_in_frame& destination, const sdk::Name& component_name, - std::shared_ptr world_state, - std::shared_ptr constraints, + const std::shared_ptr& world_state, + const std::shared_ptr& constraints, const sdk::AttributeMap& extra) override; - bool move_on_map(const sdk::pose& destination, - const sdk::Name& component_name, - const sdk::Name& slam_name, - const sdk::AttributeMap& extra) override; - - std::string move_on_globe(const sdk::geo_point& destination, - const boost::optional& heading, - const sdk::Name& component_name, - const sdk::Name& movement_sensor_name, - const std::vector& obstacles, - std::shared_ptr motion_configuration, - const sdk::AttributeMap& extra) override; + std::string move_on_map(const sdk::pose& destination, + const sdk::Name& component_name, + const sdk::Name& slam_name, + const std::shared_ptr& motion_configuration, + const sdk::AttributeMap& extra) override; + + std::string move_on_globe( + const sdk::geo_point& destination, + const boost::optional& heading, + const sdk::Name& component_name, + const sdk::Name& movement_sensor_name, + const std::vector& obstacles, + const std::shared_ptr& motion_configuration, + const sdk::AttributeMap& extra) override; sdk::pose_in_frame get_pose( const sdk::Name& component_name, diff --git a/src/viam/sdk/tests/test_motion.cpp b/src/viam/sdk/tests/test_motion.cpp index ea01e96d6..91d38d09e 100644 --- a/src/viam/sdk/tests/test_motion.cpp +++ b/src/viam/sdk/tests/test_motion.cpp @@ -68,10 +68,13 @@ BOOST_AUTO_TEST_CASE(mock_move_on_map) { pose new_destination({{3, 4, 5}, {6, 7, 8}, 9}); - bool success = - motion->move_on_map(new_destination, fake_component_name(), fake_slam_name(), fake_map()); + std::string execution_id = motion->move_on_map(new_destination, + fake_component_name(), + fake_slam_name(), + fake_motion_configuration(), + fake_map()); - BOOST_TEST(success); + BOOST_CHECK_EQUAL(execution_id, "execution-id"); BOOST_CHECK_EQUAL(motion->peek_current_pose, std::move(new_destination)); BOOST_CHECK_EQUAL(motion->peek_component_name, fake_component_name()); BOOST_CHECK_EQUAL(motion->peek_slam_name, fake_slam_name()); @@ -180,10 +183,13 @@ BOOST_AUTO_TEST_CASE(test_move_on_map) { auto mock = std::make_shared("mock_motion"); client_to_mock_pipeline(mock, [](Motion& client) { pose destination({{1, 2, 3}, {4, 5, 6}, 7}); - bool success = - client.move_on_map(destination, fake_component_name(), fake_slam_name(), fake_map()); + std::string execution_id = client.move_on_map(destination, + fake_component_name(), + fake_slam_name(), + fake_motion_configuration(), + fake_map()); - BOOST_TEST(success); + BOOST_CHECK_EQUAL(execution_id, "execution-id"); pose_in_frame pose = client.get_pose(fake_component_name(), "", {}, fake_map()); BOOST_CHECK_EQUAL(pose.pose, destination);