diff --git a/src/viam/api/app/packages/v1/packages.pb.cc b/src/viam/api/app/packages/v1/packages.pb.cc index b5c58b046..7a340a7e7 100644 --- a/src/viam/api/app/packages/v1/packages.pb.cc +++ b/src/viam/api/app/packages/v1/packages.pb.cc @@ -379,25 +379,26 @@ 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*\224\001\n\013PackageType\022\034\n\030PACKAGE" + "ageR\010packages*\262\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\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" + "AP\020\004\022\034\n\030PACKAGE_TYPE_ML_TRAINING\020\0052\240\004\n\016P" + "ackageService\022\207\001\n\rCreatePackage\022*.viam.a" + "pp.packages.v1.CreatePackageRequest\032+.vi" + "am.app.packages.v1.CreatePackageResponse" + "\"\033\202\323\344\223\002\025\"\023/packages/v1/create(\001\022\205\001\n\rDele" + "tePackage\022*.viam.app.packages.v1.DeleteP" + "ackageRequest\032+.viam.app.packages.v1.Del" + "etePackageResponse\"\033\202\323\344\223\002\025*\023/packages/v1" + "/delete\022y\n\nGetPackage\022\'.viam.app.package" + "s.v1.GetPackageRequest\032(.viam.app.packag" + "es.v1.GetPackageResponse\"\030\202\323\344\223\002\022\022\020/packa" + "ges/v1/get\022\200\001\n\014ListPackages\022).viam.app.p" + "ackages.v1.ListPackagesRequest\032*.viam.ap" + "p.packages.v1.ListPackagesResponse\"\031\202\323\344\223" + "\002\023\022\021/packages/v1/listB!Z\037go.viam.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, @@ -406,7 +407,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, 2434, descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto, + false, false, 2464, 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, @@ -434,6 +435,7 @@ 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 c96674036..9b2e921e1 100644 --- a/src/viam/api/app/packages/v1/packages.pb.h +++ b/src/viam/api/app/packages/v1/packages.pb.h @@ -114,12 +114,13 @@ enum PackageType : int { PACKAGE_TYPE_ML_MODEL = 2, PACKAGE_TYPE_MODULE = 3, PACKAGE_TYPE_SLAM_MAP = 4, + PACKAGE_TYPE_ML_TRAINING = 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_SLAM_MAP; +constexpr PackageType PackageType_MAX = PACKAGE_TYPE_ML_TRAINING; 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 4bb1fb2de..9aea5a709 100644 --- a/src/viam/api/app/v1/app.pb.cc +++ b/src/viam/api/app/v1/app.pb.cc @@ -1614,6 +1614,23 @@ struct MLModelMetadataDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLModelMetadataDefaultTypeInternal _MLModelMetadata_default_instance_; +PROTOBUF_CONSTEXPR MLTrainingMetadata::MLTrainingMetadata( + ::_pbi::ConstantInitialized) + : versions_() + , model_type_(0) + + , model_framework_(0) + + , draft_(false){} +struct MLTrainingMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR MLTrainingMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MLTrainingMetadataDefaultTypeInternal() {} + union { + MLTrainingMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLTrainingMetadataDefaultTypeInternal _MLTrainingMetadata_default_instance_; PROTOBUF_CONSTEXPR RegistryItem::RegistryItem( ::_pbi::ConstantInitialized) : item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) @@ -2199,7 +2216,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[167]; +static ::_pb::Metadata file_level_metadata_app_2fv1_2fapp_2eproto[168]; 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; @@ -3213,6 +3230,16 @@ const uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VA ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, versions_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, _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::MLTrainingMetadata, versions_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, model_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, model_framework_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, draft_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _oneof_case_[0]), @@ -3232,6 +3259,7 @@ const uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VA PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, total_external_organization_usage_), ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, created_at_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, updated_at_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, metadata_), @@ -3707,49 +3735,50 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 982, -1, -1, sizeof(::viam::app::v1::ModuleVersion)}, { 992, -1, -1, sizeof(::viam::app::v1::ModuleMetadata)}, { 1001, -1, -1, sizeof(::viam::app::v1::MLModelMetadata)}, - { 1008, -1, -1, sizeof(::viam::app::v1::RegistryItem)}, - { 1031, -1, -1, sizeof(::viam::app::v1::GetRegistryItemRequest)}, - { 1038, -1, -1, sizeof(::viam::app::v1::GetRegistryItemResponse)}, - { 1045, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemRequest)}, - { 1054, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemResponse)}, - { 1060, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemRequest)}, - { 1070, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemResponse)}, - { 1076, 1089, -1, sizeof(::viam::app::v1::ListRegistryItemsRequest)}, - { 1096, -1, -1, sizeof(::viam::app::v1::ListRegistryItemsResponse)}, - { 1103, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemRequest)}, - { 1110, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemResponse)}, - { 1116, -1, -1, sizeof(::viam::app::v1::CreateModuleRequest)}, - { 1124, -1, -1, sizeof(::viam::app::v1::CreateModuleResponse)}, - { 1132, -1, -1, sizeof(::viam::app::v1::UpdateModuleRequest)}, - { 1144, -1, -1, sizeof(::viam::app::v1::UpdateModuleResponse)}, - { 1151, -1, -1, sizeof(::viam::app::v1::Model)}, - { 1159, -1, -1, sizeof(::viam::app::v1::ModuleFileInfo)}, - { 1168, -1, -1, sizeof(::viam::app::v1::UploadModuleFileRequest)}, - { 1177, -1, -1, sizeof(::viam::app::v1::UploadModuleFileResponse)}, - { 1184, -1, -1, sizeof(::viam::app::v1::GetModuleRequest)}, - { 1191, -1, -1, sizeof(::viam::app::v1::GetModuleResponse)}, - { 1198, -1, -1, sizeof(::viam::app::v1::Module)}, - { 1216, -1, -1, sizeof(::viam::app::v1::VersionHistory)}, - { 1226, -1, -1, sizeof(::viam::app::v1::Uploads)}, - { 1234, 1241, -1, sizeof(::viam::app::v1::ListModulesRequest)}, - { 1242, -1, -1, sizeof(::viam::app::v1::ListModulesResponse)}, - { 1249, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailRequest)}, - { 1256, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailResponse)}, - { 1263, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserRequest)}, - { 1270, -1, -1, sizeof(::viam::app::v1::OrgDetails)}, - { 1278, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserResponse)}, - { 1285, -1, -1, sizeof(::viam::app::v1::CreateKeyRequest)}, - { 1293, -1, -1, sizeof(::viam::app::v1::CreateKeyResponse)}, - { 1301, -1, -1, sizeof(::viam::app::v1::DeleteKeyRequest)}, - { 1308, -1, -1, sizeof(::viam::app::v1::DeleteKeyResponse)}, - { 1314, -1, -1, sizeof(::viam::app::v1::AuthorizationDetails)}, - { 1325, -1, -1, sizeof(::viam::app::v1::APIKeyWithAuthorizations)}, - { 1333, -1, -1, sizeof(::viam::app::v1::ListKeysRequest)}, - { 1340, -1, -1, sizeof(::viam::app::v1::ListKeysResponse)}, - { 1347, -1, -1, sizeof(::viam::app::v1::RotateKeyRequest)}, - { 1354, -1, -1, sizeof(::viam::app::v1::RotateKeyResponse)}, - { 1362, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest)}, - { 1369, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse)}, + { 1008, -1, -1, sizeof(::viam::app::v1::MLTrainingMetadata)}, + { 1018, -1, -1, sizeof(::viam::app::v1::RegistryItem)}, + { 1042, -1, -1, sizeof(::viam::app::v1::GetRegistryItemRequest)}, + { 1049, -1, -1, sizeof(::viam::app::v1::GetRegistryItemResponse)}, + { 1056, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemRequest)}, + { 1065, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemResponse)}, + { 1071, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemRequest)}, + { 1081, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemResponse)}, + { 1087, 1100, -1, sizeof(::viam::app::v1::ListRegistryItemsRequest)}, + { 1107, -1, -1, sizeof(::viam::app::v1::ListRegistryItemsResponse)}, + { 1114, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemRequest)}, + { 1121, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemResponse)}, + { 1127, -1, -1, sizeof(::viam::app::v1::CreateModuleRequest)}, + { 1135, -1, -1, sizeof(::viam::app::v1::CreateModuleResponse)}, + { 1143, -1, -1, sizeof(::viam::app::v1::UpdateModuleRequest)}, + { 1155, -1, -1, sizeof(::viam::app::v1::UpdateModuleResponse)}, + { 1162, -1, -1, sizeof(::viam::app::v1::Model)}, + { 1170, -1, -1, sizeof(::viam::app::v1::ModuleFileInfo)}, + { 1179, -1, -1, sizeof(::viam::app::v1::UploadModuleFileRequest)}, + { 1188, -1, -1, sizeof(::viam::app::v1::UploadModuleFileResponse)}, + { 1195, -1, -1, sizeof(::viam::app::v1::GetModuleRequest)}, + { 1202, -1, -1, sizeof(::viam::app::v1::GetModuleResponse)}, + { 1209, -1, -1, sizeof(::viam::app::v1::Module)}, + { 1227, -1, -1, sizeof(::viam::app::v1::VersionHistory)}, + { 1237, -1, -1, sizeof(::viam::app::v1::Uploads)}, + { 1245, 1252, -1, sizeof(::viam::app::v1::ListModulesRequest)}, + { 1253, -1, -1, sizeof(::viam::app::v1::ListModulesResponse)}, + { 1260, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailRequest)}, + { 1267, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailResponse)}, + { 1274, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserRequest)}, + { 1281, -1, -1, sizeof(::viam::app::v1::OrgDetails)}, + { 1289, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserResponse)}, + { 1296, -1, -1, sizeof(::viam::app::v1::CreateKeyRequest)}, + { 1304, -1, -1, sizeof(::viam::app::v1::CreateKeyResponse)}, + { 1312, -1, -1, sizeof(::viam::app::v1::DeleteKeyRequest)}, + { 1319, -1, -1, sizeof(::viam::app::v1::DeleteKeyResponse)}, + { 1325, -1, -1, sizeof(::viam::app::v1::AuthorizationDetails)}, + { 1336, -1, -1, sizeof(::viam::app::v1::APIKeyWithAuthorizations)}, + { 1344, -1, -1, sizeof(::viam::app::v1::ListKeysRequest)}, + { 1351, -1, -1, sizeof(::viam::app::v1::ListKeysResponse)}, + { 1358, -1, -1, sizeof(::viam::app::v1::RotateKeyRequest)}, + { 1365, -1, -1, sizeof(::viam::app::v1::RotateKeyResponse)}, + { 1373, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest)}, + { 1380, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -3877,6 +3906,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_ModuleVersion_default_instance_._instance, &::viam::app::v1::_ModuleMetadata_default_instance_._instance, &::viam::app::v1::_MLModelMetadata_default_instance_._instance, + &::viam::app::v1::_MLTrainingMetadata_default_instance_._instance, &::viam::app::v1::_RegistryItem_default_instance_._instance, &::viam::app::v1::_GetRegistryItemRequest_default_instance_._instance, &::viam::app::v1::_GetRegistryItemResponse_default_instance_._instance, @@ -3923,646 +3953,656 @@ 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\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" + "\n\020app/v1/app.proto\022\013viam.app.v1\032#app/mlt" + "raining/v1/ml_training.proto\032\036app/packag" + "es/v1/packages.proto\032\026common/v1/common.p" + "roto\032\034google/protobuf/struct.proto\032\037goog" + "le/protobuf/timestamp.proto\032\026tagger/v1/t" + "agger.proto\"\354\002\n\005Robot\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036" + "bson:\"_id\" json:\"id,omitempty\"R\002id\0220\n\004na" + "me\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name\"R\004" + "name\022@\n\010location\030\003 \001(\tB$\232\204\236\003\037bson:\"locat" + "ion\" json:\"location\"R\010location\022g\n\013last_a" + "ccess\030\004 \001(\0132\032.google.protobuf.TimestampB" + "*\232\204\236\003%bson:\"last_access\" json:\"last_acce" + "ss\"R\nlastAccess\022Q\n\ncreated_on\030\005 \001(\0132\032.go" + "ogle.protobuf.TimestampB\026\232\204\236\003\021bson:\"crea" + "ted_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\" js" + "on:\"name\"R\004name\022\?\n\010dns_name\030\n \001(\tB$\232\204\236\003\037" + "bson:\"dns_name\" json:\"dns_name\"R\007dnsName" + "\022B\n\006secret\030\003 \001(\tB*\232\204\236\003%bson:\"secret\" jso" + "n:\"secret,omitempty\"R\006secret\0224\n\005robot\030\004 " + "\001(\tB\036\232\204\236\003\031bson:\"robot\" json:\"robot\"R\005rob" + "ot\022A\n\013location_id\030\014 \001(\tB \232\204\236\003\033bson:\"loca" + "tion_id\" json:\"-\"R\nlocationId\022b\n\014robot_c" + "onfig\030\005 \001(\0132\027.google.protobuf.StructB&\232\204" + "\236\003!bson:\"config\" json:\"robot_config\"R\013ro" + "botConfig\022g\n\013last_access\030\006 \001(\0132\032.google." + "protobuf.TimestampB*\232\204\236\003%bson:\"last_acce" + "ss\" json:\"last_access\"R\nlastAccess\022\177\n\022us" + "er_supplied_info\030\007 \001(\0132\027.google.protobuf" + ".StructB8\232\204\236\0033bson:\"user_supplied_info\" " + "json:\"user_supplied_info\"R\020userSuppliedI" + "nfo\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\tlocalF" + "qdn\022Q\n\ncreated_on\030\r \001(\0132\032.google.protobu" + "f.TimestampB\026\232\204\236\003\021bson:\"created_on\"R\tcre" + "atedOn\022H\n\007secrets\030\016 \003(\0132\031.viam.app.v1.Sh" + "aredSecretB\023\232\204\236\003\016bson:\"secrets\"R\007secrets" + "\"\223\002\n\025RobotPartHistoryEntry\0220\n\004part\030\001 \001(\t" + "B\034\232\204\236\003\027bson:\"part\" json:\"part\"R\004part\0224\n\005" + "robot\030\002 \001(\tB\036\232\204\236\003\031bson:\"robot\" json:\"rob" + "ot\"R\005robot\022L\n\004when\030\003 \001(\0132\032.google.protob" + "uf.TimestampB\034\232\204\236\003\027bson:\"when\" json:\"whe" + "n\"R\004when\022D\n\003old\030\004 \001(\0132\026.viam.app.v1.Robo" + "tPartB\032\232\204\236\003\025bson:\"old\" json:\"old\"R\003old\"\032" + "\n\030ListOrganizationsRequest\"\336\001\n\014Organizat" + "ion\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022" + "9\n\ncreated_on\030\003 \001(\0132\032.google.protobuf.Ti" + "mestampR\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\022OrganizationMember\022\027\n\007us" + "er_id\030\001 \001(\tR\006userId\022\026\n\006emails\030\002 \003(\tR\006ema" + "ils\0229\n\ndate_added\030\003 \001(\0132\032.google.protobu" + "f.TimestampR\tdateAdded\022>\n\nlast_login\030\004 \001" + "(\0132\032.google.protobuf.TimestampH\000R\tlastLo" + "gin\210\001\001B\r\n\013_last_login\"\\\n\031ListOrganizatio" + "nsResponse\022\?\n\rorganizations\030\001 \003(\0132\031.viam" + ".app.v1.OrganizationR\rorganizations\"\322\001\n\022" + "OrganizationInvite\022\'\n\017organization_id\030\001 " + "\001(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005emai" + "l\0229\n\ncreated_on\030\003 \001(\0132\032.google.protobuf." + "TimestampR\tcreatedOn\022B\n\016authorizations\030\004" + " \003(\0132\032.viam.app.v1.AuthorizationR\016author" + "izations\"/\n\031CreateOrganizationRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\"[\n\032CreateOrganizationR" "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" + ".v1.OrganizationR\014organization\"A\n\026GetOrg" + "anizationRequest\022\'\n\017organization_id\030\001 \001(" + "\tR\016organizationId\"X\n\027GetOrganizationResp" + "onse\022=\n\014organization\030\001 \001(\0132\031.viam.app.v1" + ".OrganizationR\014organization\"X\n+GetOrgani" + "zationNamespaceAvailabilityRequest\022)\n\020pu" + "blic_namespace\030\001 \001(\tR\017publicNamespace\"L\n" + ",GetOrganizationNamespaceAvailabilityRes" + "ponse\022\034\n\tavailable\030\001 \001(\010R\tavailable\"\362\001\n\031" + "UpdateOrganizationRequest\022\'\n\017organizatio" + "n_id\030\001 \001(\tR\016organizationId\022\027\n\004name\030\002 \001(\t" + "H\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\006r" + "egion\210\001\001\022\025\n\003cid\030\005 \001(\tH\003R\003cid\210\001\001B\007\n\005_name" + "B\023\n\021_public_namespaceB\t\n\007_regionB\006\n\004_cid" + "\"[\n\032UpdateOrganizationResponse\022=\n\014organi" + "zation\030\001 \001(\0132\031.viam.app.v1.OrganizationR" + "\014organization\"D\n\031DeleteOrganizationReque" + "st\022\'\n\017organization_id\030\001 \001(\tR\016organizatio" + "nId\"\034\n\032DeleteOrganizationResponse\"I\n\036Lis" + "tOrganizationMembersRequest\022\'\n\017organizat" + "ion_id\030\001 \001(\tR\016organizationId\"\300\001\n\037ListOrg" + "anizationMembersResponse\022\'\n\017organization" + "_id\030\001 \001(\tR\016organizationId\0229\n\007members\030\002 \003" + "(\0132\037.viam.app.v1.OrganizationMemberR\007mem" + "bers\0229\n\007invites\030\003 \003(\0132\037.viam.app.v1.Orga" + "nizationInviteR\007invites\"\353\001\n\037CreateOrgani" + "zationInviteRequest\022\'\n\017organization_id\030\001" + " \001(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005ema" + "il\022B\n\016authorizations\030\003 \003(\0132\032.viam.app.v1" + ".AuthorizationR\016authorizations\022/\n\021send_e" + "mail_invite\030\004 \001(\010H\000R\017sendEmailInvite\210\001\001B" + "\024\n\022_send_email_invite\"[\n CreateOrganizat" + "ionInviteResponse\0227\n\006invite\030\001 \001(\0132\037.viam" + ".app.v1.OrganizationInviteR\006invite\"\212\002\n-U" + "pdateOrganizationInviteAuthorizationsReq" + "uest\022\'\n\017organization_id\030\001 \001(\tR\016organizat" + "ionId\022\024\n\005email\030\002 \001(\tR\005email\022I\n\022add_autho" + "rizations\030\003 \003(\0132\032.viam.app.v1.Authorizat" + "ionR\021addAuthorizations\022O\n\025remove_authori" + "zations\030\004 \003(\0132\032.viam.app.v1.Authorizatio" + "nR\024removeAuthorizations\"i\n.UpdateOrganiz" + "ationInviteAuthorizationsResponse\0227\n\006inv" + "ite\030\001 \001(\0132\037.viam.app.v1.OrganizationInvi" + "teR\006invite\"`\n\037DeleteOrganizationInviteRe" "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\"\353\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\022/\n\021sen" - "d_email_invite\030\004 \001(\010H\000R\017sendEmailInvite\210" - "\001\001B\024\n\022_send_email_invite\"[\n CreateOrgani" - "zationInviteResponse\0227\n\006invite\030\001 \001(\0132\037.v" - "iam.app.v1.OrganizationInviteR\006invite\"\212\002" - "\n-UpdateOrganizationInviteAuthorizations" - "Request\022\'\n\017organization_id\030\001 \001(\tR\016organi" - "zationId\022\024\n\005email\030\002 \001(\tR\005email\022I\n\022add_au" - "thorizations\030\003 \003(\0132\032.viam.app.v1.Authori" - "zationR\021addAuthorizations\022O\n\025remove_auth" - "orizations\030\004 \003(\0132\032.viam.app.v1.Authoriza" - "tionR\024removeAuthorizations\"i\n.UpdateOrga" - "nizationInviteAuthorizationsResponse\0227\n\006" - "invite\030\001 \001(\0132\037.viam.app.v1.OrganizationI" - "nviteR\006invite\"`\n\037DeleteOrganizationInvit" - "eRequest\022\'\n\017organization_id\030\001 \001(\tR\016organ" - "izationId\022\024\n\005email\030\002 \001(\tR\005email\"\"\n Delet" - "eOrganizationInviteResponse\"`\n\037ResendOrg" - "anizationInviteRequest\022\'\n\017organization_i" - "d\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005" - "email\"[\n ResendOrganizationInviteRespons" - "e\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1.Organiza" - "tionInviteR\006invite\"c\n\037DeleteOrganization" - "MemberRequest\022\'\n\017organization_id\030\001 \001(\tR\016" - "organizationId\022\027\n\007user_id\030\002 \001(\tR\006userId\"" - "\"\n DeleteOrganizationMemberResponse\":\n\024O" - "rganizationIdentity\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004n" - "ame\030\002 \001(\tR\004name\"Y\n\024LocationOrganization\022" + "tionId\022\024\n\005email\030\002 \001(\tR\005email\"\"\n DeleteOr" + "ganizationInviteResponse\"`\n\037ResendOrgani" + "zationInviteRequest\022\'\n\017organization_id\030\001" + " \001(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005ema" + "il\"[\n ResendOrganizationInviteResponse\0227" + "\n\006invite\030\001 \001(\0132\037.viam.app.v1.Organizatio" + "nInviteR\006invite\"c\n\037DeleteOrganizationMem" + "berRequest\022\'\n\017organization_id\030\001 \001(\tR\016org" + "anizationId\022\027\n\007user_id\030\002 \001(\tR\006userId\"\"\n " + "DeleteOrganizationMemberResponse\":\n\024Orga" + "nizationIdentity\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name" + "\030\002 \001(\tR\004name\"Y\n\024LocationOrganization\022\'\n\017" + "organization_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\nlocationId\0223\n\007secrets\030\003 \003(\0132\031" + ".viam.app.v1.SharedSecretR\007secrets\"\'\n\rSt" + "orageConfig\022\026\n\006region\030\001 \001(\tR\006region\"\344\002\n\010" + "Location\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004" + "name\022,\n\022parent_location_id\030\004 \001(\tR\020parent" + "LocationId\022-\n\004auth\030\005 \001(\0132\031.viam.app.v1.L" + "ocationAuthR\004auth\022G\n\rorganizations\030\006 \003(\013" + "2!.viam.app.v1.LocationOrganizationR\rorg" + "anizations\0229\n\ncreated_on\030\003 \001(\0132\032.google." + "protobuf.TimestampR\tcreatedOn\022\037\n\013robot_c" + "ount\030\007 \001(\005R\nrobotCount\0222\n\006config\030\010 \001(\0132\032" + ".viam.app.v1.StorageConfigR\006config\"\320\002\n\014S" + "haredSecret\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\rbson:\"secret\"R" + "\006secret\022c\n\ncreated_on\030\003 \001(\0132\032.google.pro" + "tobuf.TimestampB(\232\204\236\003#bson:\"created_on\" " + "json:\"created_on\"R\tcreatedOn\022H\n\005state\030\004 " + "\001(\0162\037.viam.app.v1.SharedSecret.StateB\021\232\204" + "\236\003\014bson:\"state\"R\005state\"E\n\005State\022\025\n\021STATE" + "_UNSPECIFIED\020\000\022\021\n\rSTATE_ENABLED\020\001\022\022\n\016STA" + "TE_DISABLED\020\002\"\236\001\n\025CreateLocationRequest\022" "\'\n\017organization_id\030\001 \001(\tR\016organizationId" - "\022\030\n\007primary\030\002 \001(\010R\007primary\"\200\001\n\014LocationA" - "uth\022\032\n\006secret\030\001 \001(\tB\002\030\001R\006secret\022\037\n\013locat" - "ion_id\030\002 \001(\tR\nlocationId\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\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(" - "\tR\004name\022,\n\022parent_location_id\030\004 \001(\tR\020par" - "entLocationId\022-\n\004auth\030\005 \001(\0132\031.viam.app.v" - "1.LocationAuthR\004auth\022G\n\rorganizations\030\006 " - "\003(\0132!.viam.app.v1.LocationOrganizationR\r" - "organizations\0229\n\ncreated_on\030\003 \001(\0132\032.goog" - "le.protobuf.TimestampR\tcreatedOn\022\037\n\013robo" - "t_count\030\007 \001(\005R\nrobotCount\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:\"i" - "d\"R\002id\022*\n\006secret\030\002 \001(\tB\022\232\204\236\003\rbson:\"secre" - "t\"R\006secret\022c\n\ncreated_on\030\003 \001(\0132\032.google." - "protobuf.TimestampB(\232\204\236\003#bson:\"created_o" - "n\" json:\"created_on\"R\tcreatedOn\022H\n\005state" - "\030\004 \001(\0162\037.viam.app.v1.SharedSecret.StateB" - "\021\232\204\236\003\014bson:\"state\"R\005state\"E\n\005State\022\025\n\021ST" - "ATE_UNSPECIFIED\020\000\022\021\n\rSTATE_ENABLED\020\001\022\022\n\016" - "STATE_DISABLED\020\002\"\236\001\n\025CreateLocationReque" - "st\022\'\n\017organization_id\030\001 \001(\tR\016organizatio" - "nId\022\022\n\004name\030\002 \001(\tR\004name\0221\n\022parent_locati" - "on_id\030\003 \001(\tH\000R\020parentLocationId\210\001\001B\025\n\023_p" - "arent_location_id\"K\n\026CreateLocationRespo" - "nse\0221\n\010location\030\001 \001(\0132\025.viam.app.v1.Loca" - "tionR\010location\"5\n\022GetLocationRequest\022\037\n\013" - "location_id\030\001 \001(\tR\nlocationId\"H\n\023GetLoca" - "tionResponse\0221\n\010location\030\001 \001(\0132\025.viam.ap" - "p.v1.LocationR\010location\"\314\001\n\025UpdateLocati" + "\022\022\n\004name\030\002 \001(\tR\004name\0221\n\022parent_location_" + "id\030\003 \001(\tH\000R\020parentLocationId\210\001\001B\025\n\023_pare" + "nt_location_id\"K\n\026CreateLocationResponse" + "\0221\n\010location\030\001 \001(\0132\025.viam.app.v1.Locatio" + "nR\010location\"5\n\022GetLocationRequest\022\037\n\013loc" + "ation_id\030\001 \001(\tR\nlocationId\"H\n\023GetLocatio" + "nResponse\0221\n\010location\030\001 \001(\0132\025.viam.app.v" + "1.LocationR\010location\"\314\001\n\025UpdateLocationR" + "equest\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\022parent_locat" + "ion_id\030\003 \001(\tH\001R\020parentLocationId\210\001\001\022\033\n\006r" + "egion\030\004 \001(\tH\002R\006region\210\001\001B\007\n\005_nameB\025\n\023_pa" + "rent_location_idB\t\n\007_region\"K\n\026UpdateLoc" + "ationResponse\0221\n\010location\030\001 \001(\0132\025.viam.a" + "pp.v1.LocationR\010location\"8\n\025DeleteLocati" "onRequest\022\037\n\013location_id\030\001 \001(\tR\nlocation" - "Id\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\0221\n\022parent_lo" - "cation_id\030\003 \001(\tH\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_location_idB\t\n\007_region\"K\n\026Update" - "LocationResponse\0221\n\010location\030\001 \001(\0132\025.via" - "m.app.v1.LocationR\010location\"8\n\025DeleteLoc" - "ationRequest\022\037\n\013location_id\030\001 \001(\tR\nlocat" - "ionId\"\030\n\026DeleteLocationResponse\"N\n+GetOr" - "ganizationsWithAccessToLocationRequest\022\037" - "\n\013location_id\030\001 \001(\tR\nlocationId\"\212\001\n,GetO" - "rganizationsWithAccessToLocationResponse" - "\022Z\n\027organization_identities\030\001 \003(\0132!.viam" - ".app.v1.OrganizationIdentityR\026organizati" - "onIdentities\"\?\n\024ListLocationsRequest\022\'\n\017" - "organization_id\030\001 \001(\tR\016organizationId\"`\n" - "\024ShareLocationRequest\022\037\n\013location_id\030\001 \001" - "(\tR\nlocationId\022\'\n\017organization_id\030\002 \001(\tR" - "\016organizationId\"\027\n\025ShareLocationResponse" - "\"b\n\026UnshareLocationRequest\022\037\n\013location_i" - "d\030\001 \001(\tR\nlocationId\022\'\n\017organization_id\030\002" - " \001(\tR\016organizationId\"\031\n\027UnshareLocationR" - "esponse\"L\n\025ListLocationsResponse\0223\n\tloca" - "tions\030\001 \003(\0132\025.viam.app.v1.LocationR\tloca" - "tions\">\n\033CreateLocationSecretRequest\022\037\n\013" - "location_id\030\001 \001(\tR\nlocationId\"M\n\034CreateL" - "ocationSecretResponse\022-\n\004auth\030\001 \001(\0132\031.vi" - "am.app.v1.LocationAuthR\004auth\"[\n\033DeleteLo" - "cationSecretRequest\022\037\n\013location_id\030\001 \001(\t" - "R\nlocationId\022\033\n\tsecret_id\030\002 \001(\tR\010secretI" - "d\"\036\n\034DeleteLocationSecretResponse\"6\n\023Loc" - "ationAuthRequest\022\037\n\013location_id\030\001 \001(\tR\nl" - "ocationId\"E\n\024LocationAuthResponse\022-\n\004aut" - "h\030\001 \001(\0132\031.viam.app.v1.LocationAuthR\004auth" - "\"!\n\017GetRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"4\n\033G" - "etRoverRentalRobotsRequest\022\025\n\006org_id\030\001 \001" - "(\tR\005orgId\"\232\001\n\020RoverRentalRobot\022\031\n\010robot_" - "id\030\001 \001(\tR\007robotId\022\037\n\013location_id\030\002 \001(\tR\n" - "locationId\022\035\n\nrobot_name\030\003 \001(\tR\trobotNam" - "e\022+\n\022robot_main_part_id\030\004 \001(\tR\017robotMain" - "PartId\"U\n\034GetRoverRentalRobotsResponse\0225" - "\n\006robots\030\001 \003(\0132\035.viam.app.v1.RoverRental" - "RobotR\006robots\"<\n\020GetRobotResponse\022(\n\005rob" - "ot\030\001 \001(\0132\022.viam.app.v1.RobotR\005robot\"1\n\024G" - "etRobotPartsRequest\022\031\n\010robot_id\030\001 \001(\tR\007r" - "obotId\"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\024" - "GetRobotPartResponse\022*\n\004part\030\001 \001(\0132\026.via" - "m.app.v1.RobotPartR\004part\022\037\n\013config_json\030" - "\002 \001(\tR\nconfigJson\"\301\001\n\027GetRobotPartLogsRe" - "quest\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\006fi" - "lter\210\001\001\022\"\n\npage_token\030\004 \001(\tH\001R\tpageToken" - "\210\001\001\022\026\n\006levels\030\005 \003(\tR\006levelsB\t\n\007_filterB\r" - "\n\013_page_token\"p\n\030GetRobotPartLogsRespons" - "e\022,\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogEntr" - "yR\004logs\022&\n\017next_page_token\030\002 \001(\tR\rnextPa" - "geToken\"s\n\030TailRobotPartLogsRequest\022\016\n\002i" - "d\030\001 \001(\tR\002id\022\037\n\013errors_only\030\002 \001(\010R\nerrors" - "Only\022\033\n\006filter\030\003 \001(\tH\000R\006filter\210\001\001B\t\n\007_fi" - "lter\"I\n\031TailRobotPartLogsResponse\022,\n\004log" - "s\030\001 \003(\0132\030.viam.common.v1.LogEntryR\004logs\"" - ",\n\032GetRobotPartHistoryRequest\022\016\n\002id\030\001 \001(" - "\tR\002id\"[\n\033GetRobotPartHistoryResponse\022<\n\007" - "history\030\001 \003(\0132\".viam.app.v1.RobotPartHis" - "toryEntryR\007history\"x\n\026UpdateRobotPartReq" - "uest\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\027UpdateRobotPartR" - "esponse\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.Robo" - "tPartR\004part\"M\n\023NewRobotPartRequest\022\031\n\010ro" - "bot_id\030\001 \001(\tR\007robotId\022\033\n\tpart_name\030\002 \001(\t" - "R\010partName\"/\n\024NewRobotPartResponse\022\027\n\007pa" - "rt_id\030\001 \001(\tR\006partId\"1\n\026DeleteRobotPartRe" - "quest\022\027\n\007part_id\030\001 \001(\tR\006partId\"3\n\026GetRob" - "otAPIKeysRequest\022\031\n\010robot_id\030\001 \001(\tR\007robo" - "tId\"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\ncreated_o" - "n\030\004 \001(\0132\032.google.protobuf.TimestampR\tcre" - "atedOn\"[\n\027GetRobotAPIKeysResponse\022@\n\010api" - "_keys\030\001 \003(\0132%.viam.app.v1.APIKeyWithAuth" - "orizationsR\007apiKeys\"\031\n\027DeleteRobotPartRe" - "sponse\"\350\004\n\010Fragment\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bs" - "on:\"_id\" json:\"id,omitempty\"R\002id\0220\n\004name" - "\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name\"R\004na" - "me\022Y\n\010fragment\030\003 \001(\0132\027.google.protobuf.S" - "tructB$\232\204\236\003\037bson:\"fragment\" json:\"fragme" - "nt\"R\010fragment\022Z\n\022organization_owner\030\004 \001(" - "\tB+\232\204\236\003&bson:\"organization_owner\" json:\"" - "owner\"R\021organizationOwner\0228\n\006public\030\005 \001(" - "\010B \232\204\236\003\033bson:\"public\" json:\"public\"R\006pub" - "lic\022Q\n\ncreated_on\030\006 \001(\0132\032.google.protobu" - "f.TimestampB\026\232\204\236\003\021bson:\"created_on\"R\tcre" - "atedOn\022+\n\021organization_name\030\007 \001(\tR\020organ" - "izationName\022(\n\020robot_part_count\030\t \001(\005R\016r" - "obotPartCount\022-\n\022organization_count\030\n \001(" - "\005R\021organizationCount\022+\n\022only_used_by_own" - "er\030\013 \001(\010R\017onlyUsedByOwner\"`\n\024ListFragmen" - "tsRequest\022\'\n\017organization_id\030\001 \001(\tR\016orga" - "nizationId\022\037\n\013show_public\030\002 \001(\010R\nshowPub" - "lic\"L\n\025ListFragmentsResponse\0223\n\tfragment" - "s\030\001 \003(\0132\025.viam.app.v1.FragmentR\tfragment" - "s\"$\n\022GetFragmentRequest\022\016\n\002id\030\001 \001(\tR\002id\"" - "H\n\023GetFragmentResponse\0221\n\010fragment\030\001 \001(\013" - "2\025.viam.app.v1.FragmentR\010fragment\"\205\001\n\025Cr" - "eateFragmentRequest\022\022\n\004name\030\001 \001(\tR\004name\022" - "/\n\006config\030\002 \001(\0132\027.google.protobuf.Struct" - "R\006config\022\'\n\017organization_id\030\003 \001(\tR\016organ" - "izationId\"K\n\026CreateFragmentResponse\0221\n\010f" - "ragment\030\001 \001(\0132\025.viam.app.v1.FragmentR\010fr" - "agment\"\224\001\n\025UpdateFragmentRequest\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\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\025De" - "leteFragmentRequest\022\016\n\002id\030\001 \001(\tR\002id\"\030\n\026D" - "eleteFragmentResponse\"4\n\021ListRobotsReque" - "st\022\037\n\013location_id\030\001 \001(\tR\nlocationId\"@\n\022L" - "istRobotsResponse\022*\n\006robots\030\001 \003(\0132\022.viam" - ".app.v1.RobotR\006robots\"A\n\017NewRobotRequest" - "\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010location\030\002 \001(\tR\010" - "location\"\"\n\020NewRobotResponse\022\016\n\002id\030\001 \001(\t" - "R\002id\"T\n\022UpdateRobotRequest\022\016\n\002id\030\001 \001(\tR\002" - "id\022\022\n\004name\030\002 \001(\tR\004name\022\032\n\010location\030\003 \001(\t" - "R\010location\"\?\n\023UpdateRobotResponse\022(\n\005rob" - "ot\030\001 \001(\0132\022.viam.app.v1.RobotR\005robot\"$\n\022D" - "eleteRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"\025\n\023Del" - "eteRobotResponse\"0\n\025MarkPartAsMainReques" - "t\022\027\n\007part_id\030\001 \001(\tR\006partId\"\030\n\026MarkPartAs" - "MainResponse\"4\n\031MarkPartForRestartReques" - "t\022\027\n\007part_id\030\001 \001(\tR\006partId\"\034\n\032MarkPartFo" - "rRestartResponse\"7\n\034CreateRobotPartSecre" - "tRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\"K\n\035Cre" - "ateRobotPartSecretResponse\022*\n\004part\030\001 \001(\013" - "2\026.viam.app.v1.RobotPartR\004part\"T\n\034Delete" - "RobotPartSecretRequest\022\027\n\007part_id\030\001 \001(\tR" - "\006partId\022\033\n\tsecret_id\030\002 \001(\tR\010secretId\"\037\n\035" - "DeleteRobotPartSecretResponse\"\236\002\n\rAuthor" - "ization\022-\n\022authorization_type\030\001 \001(\tR\021aut" - "horizationType\022)\n\020authorization_id\030\002 \001(\t" - "R\017authorizationId\022#\n\rresource_type\030\003 \001(\t" - "R\014resourceType\022\037\n\013resource_id\030\004 \001(\tR\nres" - "ourceId\022\037\n\013identity_id\030\005 \001(\tR\nidentityId" - "\022\'\n\017organization_id\030\006 \001(\tR\016organizationI" - "d\022#\n\ridentity_type\030\007 \001(\tR\014identityType\"R" - "\n\016AddRoleRequest\022@\n\rauthorization\030\001 \001(\0132" - "\032.viam.app.v1.AuthorizationR\rauthorizati" - "on\"\021\n\017AddRoleResponse\"U\n\021RemoveRoleReque" - "st\022@\n\rauthorization\030\001 \001(\0132\032.viam.app.v1." - "AuthorizationR\rauthorization\"\024\n\022RemoveRo" - "leResponse\"\245\001\n\021ChangeRoleRequest\022G\n\021old_" - "authorization\030\001 \001(\0132\032.viam.app.v1.Author" - "izationR\020oldAuthorization\022G\n\021new_authori" - "zation\030\002 \001(\0132\032.viam.app.v1.Authorization" - "R\020newAuthorization\"\024\n\022ChangeRoleResponse" - "\"g\n\031ListAuthorizationsRequest\022\'\n\017organiz" - "ation_id\030\001 \001(\tR\016organizationId\022!\n\014resour" - "ce_ids\030\002 \003(\tR\013resourceIds\"`\n\032ListAuthori" - "zationsResponse\022B\n\016authorizations\030\001 \003(\0132" - "\032.viam.app.v1.AuthorizationR\016authorizati" - "ons\"_\n\027CheckPermissionsRequest\022D\n\013permis" - "sions\030\001 \003(\0132\".viam.app.v1.AuthorizedPerm" - "issionsR\013permissions\"\177\n\025AuthorizedPermis" - "sions\022#\n\rresource_type\030\001 \001(\tR\014resourceTy" - "pe\022\037\n\013resource_id\030\002 \001(\tR\nresourceId\022 \n\013p" - "ermissions\030\003 \003(\tR\013permissions\"u\n\030CheckPe" - "rmissionsResponse\022Y\n\026authorized_permissi" - "ons\030\001 \003(\0132\".viam.app.v1.AuthorizedPermis" - "sionsR\025authorizedPermissions\"\241\001\n\rModuleV" - "ersion\022\030\n\007version\030\001 \001(\tR\007version\022*\n\005file" - "s\030\002 \003(\0132\024.viam.app.v1.UploadsR\005files\022*\n\006" - "models\030\003 \003(\0132\022.viam.app.v1.ModelR\006models" - "\022\036\n\nentrypoint\030\004 \001(\tR\nentrypoint\"\224\001\n\016Mod" - "uleMetadata\022*\n\006models\030\001 \003(\0132\022.viam.app.v" - "1.ModelR\006models\0226\n\010versions\030\002 \003(\0132\032.viam" - ".app.v1.ModuleVersionR\010versions\022\036\n\nentry" - "point\030\003 \001(\tR\nentrypoint\"-\n\017MLModelMetada" - "ta\022\032\n\010versions\030\001 \003(\tR\010versions\"\267\006\n\014Regis" - "tryItem\022\027\n\007item_id\030\001 \001(\tR\006itemId\022\'\n\017orga" - "nization_id\030\002 \001(\tR\016organizationId\022)\n\020pub" - "lic_namespace\030\003 \001(\tR\017publicNamespace\022\022\n\004" - "name\030\004 \001(\tR\004name\0225\n\004type\030\005 \001(\0162!.viam.ap" - "p.packages.v1.PackageTypeR\004type\0227\n\nvisib" - "ility\030\006 \001(\0162\027.viam.app.v1.VisibilityR\nvi" - "sibility\022\020\n\003url\030\007 \001(\tR\003url\022 \n\013descriptio" - "n\030\010 \001(\tR\013description\022*\n\021total_robot_usag" - "e\030\t \001(\003R\017totalRobotUsage\022;\n\032total_extern" - "al_robot_usage\030\r \001(\003R\027totalExternalRobot" - "Usage\0228\n\030total_organization_usage\030\n \001(\003R" - "\026totalOrganizationUsage\022I\n!total_externa" - "l_organization_usage\030\016 \001(\003R\036totalExterna" - "lOrganizationUsage\022F\n\017module_metadata\030\013 " - "\001(\0132\033.viam.app.v1.ModuleMetadataH\000R\016modu" - "leMetadata\022J\n\021ml_model_metadata\030\014 \001(\0132\034." - "viam.app.v1.MLModelMetadataH\000R\017mlModelMe" - "tadata\0229\n\ncreated_at\030\017 \001(\0132\032.google.prot" - "obuf.TimestampR\tcreatedAt\0229\n\nupdated_at\030" - "\020 \001(\0132\032.google.protobuf.TimestampR\tupdat" - "edAtB\n\n\010metadata\"1\n\026GetRegistryItemReque" - "st\022\027\n\007item_id\030\001 \001(\tR\006itemId\"H\n\027GetRegist" - "ryItemResponse\022-\n\004item\030\001 \001(\0132\031.viam.app." - "v1.RegistryItemR\004item\"\217\001\n\031CreateRegistry" - "ItemRequest\022\'\n\017organization_id\030\001 \001(\tR\016or" - "ganizationId\022\022\n\004name\030\002 \001(\tR\004name\0225\n\004type" - "\030\003 \001(\0162!.viam.app.packages.v1.PackageTyp" - "eR\004type\"\034\n\032CreateRegistryItemResponse\"\306\001" - "\n\031UpdateRegistryItemRequest\022\027\n\007item_id\030\001" - " \001(\tR\006itemId\0225\n\004type\030\002 \001(\0162!.viam.app.pa" - "ckages.v1.PackageTypeR\004type\022 \n\013descripti" - "on\030\003 \001(\tR\013description\0227\n\nvisibility\030\004 \001(" - "\0162\027.viam.app.v1.VisibilityR\nvisibility\"\034" - "\n\032UpdateRegistryItemResponse\"\226\003\n\030ListReg" - "istryItemsRequest\022,\n\017organization_id\030\001 \001" - "(\tH\000R\016organizationId\210\001\001\0227\n\005types\030\002 \003(\0162!" - ".viam.app.packages.v1.PackageTypeR\005types" - "\022;\n\014visibilities\030\003 \003(\0162\027.viam.app.v1.Vis" - "ibilityR\014visibilities\022\034\n\tplatforms\030\004 \003(\t" - "R\tplatforms\022;\n\010statuses\030\005 \003(\0162\037.viam.app" - ".v1.RegistryItemStatusR\010statuses\022$\n\013sear" - "ch_term\030\006 \001(\tH\001R\nsearchTerm\210\001\001\022\"\n\npage_t" - "oken\030\007 \001(\tH\002R\tpageToken\210\001\001B\022\n\020_organizat" - "ion_idB\016\n\014_search_termB\r\n\013_page_token\"L\n" - "\031ListRegistryItemsResponse\022/\n\005items\030\001 \003(" - "\0132\031.viam.app.v1.RegistryItemR\005items\"4\n\031D" - "eleteRegistryItemRequest\022\027\n\007item_id\030\001 \001(" - "\tR\006itemId\"\034\n\032DeleteRegistryItemResponse\"" - "R\n\023CreateModuleRequest\022\'\n\017organization_i" - "d\030\001 \001(\tR\016organizationId\022\022\n\004name\030\002 \001(\tR\004n" - "ame\"E\n\024CreateModuleResponse\022\033\n\tmodule_id" - "\030\001 \001(\tR\010moduleId\022\020\n\003url\030\002 \001(\tR\003url\"\353\001\n\023U" - "pdateModuleRequest\022\033\n\tmodule_id\030\001 \001(\tR\010m" - "oduleId\0227\n\nvisibility\030\002 \001(\0162\027.viam.app.v" - "1.VisibilityR\nvisibility\022\020\n\003url\030\003 \001(\tR\003u" - "rl\022 \n\013description\030\004 \001(\tR\013description\022*\n\006" - "models\030\005 \003(\0132\022.viam.app.v1.ModelR\006models" - "\022\036\n\nentrypoint\030\006 \001(\tR\nentrypoint\"(\n\024Upda" - "teModuleResponse\022\020\n\003url\030\001 \001(\tR\003url\"/\n\005Mo" - "del\022\020\n\003api\030\001 \001(\tR\003api\022\024\n\005model\030\002 \001(\tR\005mo" - "del\"c\n\016ModuleFileInfo\022\033\n\tmodule_id\030\001 \001(\t" - "R\010moduleId\022\030\n\007version\030\002 \001(\tR\007version\022\032\n\010" - "platform\030\003 \001(\tR\010platform\"\207\001\n\027UploadModul" - "eFileRequest\022G\n\020module_file_info\030\001 \001(\0132\033" - ".viam.app.v1.ModuleFileInfoH\000R\016moduleFil" - "eInfo\022\024\n\004file\030\002 \001(\014H\000R\004fileB\r\n\013module_fi" - "le\",\n\030UploadModuleFileResponse\022\020\n\003url\030\001 " - "\001(\tR\003url\"/\n\020GetModuleRequest\022\033\n\tmodule_i" - "d\030\001 \001(\tR\010moduleId\"@\n\021GetModuleResponse\022+" - "\n\006module\030\001 \001(\0132\023.viam.app.v1.ModuleR\006mod" - "ule\"\345\003\n\006Module\022\033\n\tmodule_id\030\001 \001(\tR\010modul" - "eId\022\022\n\004name\030\002 \001(\tR\004name\0227\n\nvisibility\030\003 " - "\001(\0162\027.viam.app.v1.VisibilityR\nvisibility" - "\0227\n\010versions\030\004 \003(\0132\033.viam.app.v1.Version" - "HistoryR\010versions\022\020\n\003url\030\005 \001(\tR\003url\022 \n\013d" - "escription\030\006 \001(\tR\013description\022*\n\006models\030" - "\007 \003(\0132\022.viam.app.v1.ModelR\006models\022*\n\021tot" - "al_robot_usage\030\010 \001(\003R\017totalRobotUsage\0228\n" - "\030total_organization_usage\030\t \001(\003R\026totalOr" - "ganizationUsage\022\'\n\017organization_id\030\n \001(\t" - "R\016organizationId\022\036\n\nentrypoint\030\013 \001(\tR\nen" - "trypoint\022)\n\020public_namespace\030\014 \001(\tR\017publ" - "icNamespace\"\242\001\n\016VersionHistory\022\030\n\007versio" - "n\030\001 \001(\tR\007version\022*\n\005files\030\002 \003(\0132\024.viam.a" - "pp.v1.UploadsR\005files\022*\n\006models\030\003 \003(\0132\022.v" - "iam.app.v1.ModelR\006models\022\036\n\nentrypoint\030\004" - " \001(\tR\nentrypoint\"b\n\007Uploads\022\032\n\010platform\030" - "\001 \001(\tR\010platform\022;\n\013uploaded_at\030\002 \001(\0132\032.g" - "oogle.protobuf.TimestampR\nuploadedAt\"V\n\022" - "ListModulesRequest\022,\n\017organization_id\030\001 " - "\001(\tH\000R\016organizationId\210\001\001B\022\n\020_organizatio" - "n_id\"D\n\023ListModulesResponse\022-\n\007modules\030\001" - " \003(\0132\023.viam.app.v1.ModuleR\007modules\"/\n\027Ge" - "tUserIDByEmailRequest\022\024\n\005email\030\001 \001(\tR\005em" - "ail\"3\n\030GetUserIDByEmailResponse\022\027\n\007user_" - "id\030\001 \001(\tR\006userId\"9\n\036ListOrganizationsByU" - "serRequest\022\027\n\007user_id\030\001 \001(\tR\006userId\">\n\nO" - "rgDetails\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\031\n\010org_" - "name\030\002 \001(\tR\007orgName\"N\n\037ListOrganizations" - "ByUserResponse\022+\n\004orgs\030\001 \003(\0132\027.viam.app." - "v1.OrgDetailsR\004orgs\"j\n\020CreateKeyRequest\022" - "B\n\016authorizations\030\001 \003(\0132\032.viam.app.v1.Au" - "thorizationR\016authorizations\022\022\n\004name\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\020DeleteKeyReque" - "st\022\016\n\002id\030\001 \001(\tR\002id\"\023\n\021DeleteKeyResponse\"" - "\315\001\n\024AuthorizationDetails\022-\n\022authorizatio" - "n_type\030\001 \001(\tR\021authorizationType\022)\n\020autho" - "rization_id\030\002 \001(\tR\017authorizationId\022#\n\rre" - "source_type\030\003 \001(\tR\014resourceType\022\037\n\013resou" - "rce_id\030\004 \001(\tR\nresourceId\022\025\n\006org_id\030\005 \001(\t" - "R\005orgId\"\223\001\n\030APIKeyWithAuthorizations\022,\n\007" - "api_key\030\001 \001(\0132\023.viam.app.v1.APIKeyR\006apiK" - "ey\022I\n\016authorizations\030\002 \003(\0132!.viam.app.v1" - ".AuthorizationDetailsR\016authorizations\"(\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.APIKeyWithAuthorizationsR\007ap" - "iKeys\"\"\n\020RotateKeyRequest\022\016\n\002id\030\001 \001(\tR\002i" - "d\"5\n\021RotateKeyResponse\022\016\n\002id\030\001 \001(\tR\002id\022\020" - "\n\003key\030\002 \001(\tR\003key\"\?\n-CreateKeyFromExistin" - "gKeyAuthorizationsRequest\022\016\n\002id\030\001 \001(\tR\002i" - "d\"R\n.CreateKeyFromExistingKeyAuthorizati" - "onsResponse\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\t" - "R\003key*\207\001\n\022RegistryItemStatus\022$\n REGISTRY" - "_ITEM_STATUS_UNSPECIFIED\020\000\022\"\n\036REGISTRY_I" - "TEM_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_PUBLIC\020\0022\3574\n\nApp" - "Service\022_\n\020GetUserIDByEmail\022$.viam.app.v" - "1.GetUserIDByEmailRequest\032%.viam.app.v1." - "GetUserIDByEmailResponse\022e\n\022CreateOrgani" - "zation\022&.viam.app.v1.CreateOrganizationR" - "equest\032\'.viam.app.v1.CreateOrganizationR" - "esponse\022b\n\021ListOrganizations\022%.viam.app." - "v1.ListOrganizationsRequest\032&.viam.app.v" - "1.ListOrganizationsResponse\022\233\001\n$GetOrgan" - "izationsWithAccessToLocation\0228.viam.app." + "Id\"\030\n\026DeleteLocationResponse\"N\n+GetOrgan" + "izationsWithAccessToLocationRequest\022\037\n\013l" + "ocation_id\030\001 \001(\tR\nlocationId\"\212\001\n,GetOrga" + "nizationsWithAccessToLocationResponse\022Z\n" + "\027organization_identities\030\001 \003(\0132!.viam.ap" + "p.v1.OrganizationIdentityR\026organizationI" + "dentities\"\?\n\024ListLocationsRequest\022\'\n\017org" + "anization_id\030\001 \001(\tR\016organizationId\"`\n\024Sh" + "areLocationRequest\022\037\n\013location_id\030\001 \001(\tR" + "\nlocationId\022\'\n\017organization_id\030\002 \001(\tR\016or" + "ganizationId\"\027\n\025ShareLocationResponse\"b\n" + "\026UnshareLocationRequest\022\037\n\013location_id\030\001" + " \001(\tR\nlocationId\022\'\n\017organization_id\030\002 \001(" + "\tR\016organizationId\"\031\n\027UnshareLocationResp" + "onse\"L\n\025ListLocationsResponse\0223\n\tlocatio" + "ns\030\001 \003(\0132\025.viam.app.v1.LocationR\tlocatio" + "ns\">\n\033CreateLocationSecretRequest\022\037\n\013loc" + "ation_id\030\001 \001(\tR\nlocationId\"M\n\034CreateLoca" + "tionSecretResponse\022-\n\004auth\030\001 \001(\0132\031.viam." + "app.v1.LocationAuthR\004auth\"[\n\033DeleteLocat" + "ionSecretRequest\022\037\n\013location_id\030\001 \001(\tR\nl" + "ocationId\022\033\n\tsecret_id\030\002 \001(\tR\010secretId\"\036" + "\n\034DeleteLocationSecretResponse\"6\n\023Locati" + "onAuthRequest\022\037\n\013location_id\030\001 \001(\tR\nloca" + "tionId\"E\n\024LocationAuthResponse\022-\n\004auth\030\001" + " \001(\0132\031.viam.app.v1.LocationAuthR\004auth\"!\n" + "\017GetRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"4\n\033GetR" + "overRentalRobotsRequest\022\025\n\006org_id\030\001 \001(\tR" + "\005orgId\"\232\001\n\020RoverRentalRobot\022\031\n\010robot_id\030" + "\001 \001(\tR\007robotId\022\037\n\013location_id\030\002 \001(\tR\nloc" + "ationId\022\035\n\nrobot_name\030\003 \001(\tR\trobotName\022+" + "\n\022robot_main_part_id\030\004 \001(\tR\017robotMainPar" + "tId\"U\n\034GetRoverRentalRobotsResponse\0225\n\006r" + "obots\030\001 \003(\0132\035.viam.app.v1.RoverRentalRob" + "otR\006robots\"<\n\020GetRobotResponse\022(\n\005robot\030" + "\001 \001(\0132\022.viam.app.v1.RobotR\005robot\"1\n\024GetR" + "obotPartsRequest\022\031\n\010robot_id\030\001 \001(\tR\007robo" + "tId\"E\n\025GetRobotPartsResponse\022,\n\005parts\030\001 " + "\003(\0132\026.viam.app.v1.RobotPartR\005parts\"%\n\023Ge" + "tRobotPartRequest\022\016\n\002id\030\001 \001(\tR\002id\"c\n\024Get" + "RobotPartResponse\022*\n\004part\030\001 \001(\0132\026.viam.a" + "pp.v1.RobotPartR\004part\022\037\n\013config_json\030\002 \001" + "(\tR\nconfigJson\"\301\001\n\027GetRobotPartLogsReque" + "st\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\006filte" + "r\210\001\001\022\"\n\npage_token\030\004 \001(\tH\001R\tpageToken\210\001\001" + "\022\026\n\006levels\030\005 \003(\tR\006levelsB\t\n\007_filterB\r\n\013_" + "page_token\"p\n\030GetRobotPartLogsResponse\022," + "\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogEntryR\004" + "logs\022&\n\017next_page_token\030\002 \001(\tR\rnextPageT" + "oken\"s\n\030TailRobotPartLogsRequest\022\016\n\002id\030\001" + " \001(\tR\002id\022\037\n\013errors_only\030\002 \001(\010R\nerrorsOnl" + "y\022\033\n\006filter\030\003 \001(\tH\000R\006filter\210\001\001B\t\n\007_filte" + "r\"I\n\031TailRobotPartLogsResponse\022,\n\004logs\030\001" + " \003(\0132\030.viam.common.v1.LogEntryR\004logs\",\n\032" + "GetRobotPartHistoryRequest\022\016\n\002id\030\001 \001(\tR\002" + "id\"[\n\033GetRobotPartHistoryResponse\022<\n\007his" + "tory\030\001 \003(\0132\".viam.app.v1.RobotPartHistor" + "yEntryR\007history\"x\n\026UpdateRobotPartReques" + "t\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.St" + "ructR\013robotConfig\"E\n\027UpdateRobotPartResp" + "onse\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.RobotPa" + "rtR\004part\"M\n\023NewRobotPartRequest\022\031\n\010robot" + "_id\030\001 \001(\tR\007robotId\022\033\n\tpart_name\030\002 \001(\tR\010p" + "artName\"/\n\024NewRobotPartResponse\022\027\n\007part_" + "id\030\001 \001(\tR\006partId\"1\n\026DeleteRobotPartReque" + "st\022\027\n\007part_id\030\001 \001(\tR\006partId\"3\n\026GetRobotA" + "PIKeysRequest\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\ncreated_on\030\004" + " \001(\0132\032.google.protobuf.TimestampR\tcreate" + "dOn\"[\n\027GetRobotAPIKeysResponse\022@\n\010api_ke" + "ys\030\001 \003(\0132%.viam.app.v1.APIKeyWithAuthori" + "zationsR\007apiKeys\"\031\n\027DeleteRobotPartRespo" + "nse\"\350\004\n\010Fragment\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" + "Y\n\010fragment\030\003 \001(\0132\027.google.protobuf.Stru" + "ctB$\232\204\236\003\037bson:\"fragment\" json:\"fragment\"" + "R\010fragment\022Z\n\022organization_owner\030\004 \001(\tB+" + "\232\204\236\003&bson:\"organization_owner\" json:\"own" + "er\"R\021organizationOwner\0228\n\006public\030\005 \001(\010B " + "\232\204\236\003\033bson:\"public\" json:\"public\"R\006public" + "\022Q\n\ncreated_on\030\006 \001(\0132\032.google.protobuf.T" + "imestampB\026\232\204\236\003\021bson:\"created_on\"R\tcreate" + "dOn\022+\n\021organization_name\030\007 \001(\tR\020organiza" + "tionName\022(\n\020robot_part_count\030\t \001(\005R\016robo" + "tPartCount\022-\n\022organization_count\030\n \001(\005R\021" + "organizationCount\022+\n\022only_used_by_owner\030" + "\013 \001(\010R\017onlyUsedByOwner\"`\n\024ListFragmentsR" + "equest\022\'\n\017organization_id\030\001 \001(\tR\016organiz" + "ationId\022\037\n\013show_public\030\002 \001(\010R\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\023" + "GetFragmentResponse\0221\n\010fragment\030\001 \001(\0132\025." + "viam.app.v1.FragmentR\010fragment\"\205\001\n\025Creat" + "eFragmentRequest\022\022\n\004name\030\001 \001(\tR\004name\022/\n\006" + "config\030\002 \001(\0132\027.google.protobuf.StructR\006c" + "onfig\022\'\n\017organization_id\030\003 \001(\tR\016organiza" + "tionId\"K\n\026CreateFragmentResponse\0221\n\010frag" + "ment\030\001 \001(\0132\025.viam.app.v1.FragmentR\010fragm" + "ent\"\224\001\n\025UpdateFragmentRequest\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\006config\022\033\n\006pu" + "blic\030\004 \001(\010H\000R\006public\210\001\001B\t\n\007_public\"K\n\026Up" + "dateFragmentResponse\0221\n\010fragment\030\001 \001(\0132\025" + ".viam.app.v1.FragmentR\010fragment\"\'\n\025Delet" + "eFragmentRequest\022\016\n\002id\030\001 \001(\tR\002id\"\030\n\026Dele" + "teFragmentResponse\"4\n\021ListRobotsRequest\022" + "\037\n\013location_id\030\001 \001(\tR\nlocationId\"@\n\022List" + "RobotsResponse\022*\n\006robots\030\001 \003(\0132\022.viam.ap" + "p.v1.RobotR\006robots\"A\n\017NewRobotRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022\032\n\010location\030\002 \001(\tR\010loc" + "ation\"\"\n\020NewRobotResponse\022\016\n\002id\030\001 \001(\tR\002i" + "d\"T\n\022UpdateRobotRequest\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\010l" + "ocation\"\?\n\023UpdateRobotResponse\022(\n\005robot\030" + "\001 \001(\0132\022.viam.app.v1.RobotR\005robot\"$\n\022Dele" + "teRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"\025\n\023Delete" + "RobotResponse\"0\n\025MarkPartAsMainRequest\022\027" + "\n\007part_id\030\001 \001(\tR\006partId\"\030\n\026MarkPartAsMai" + "nResponse\"4\n\031MarkPartForRestartRequest\022\027" + "\n\007part_id\030\001 \001(\tR\006partId\"\034\n\032MarkPartForRe" + "startResponse\"7\n\034CreateRobotPartSecretRe" + "quest\022\027\n\007part_id\030\001 \001(\tR\006partId\"K\n\035Create" + "RobotPartSecretResponse\022*\n\004part\030\001 \001(\0132\026." + "viam.app.v1.RobotPartR\004part\"T\n\034DeleteRob" + "otPartSecretRequest\022\027\n\007part_id\030\001 \001(\tR\006pa" + "rtId\022\033\n\tsecret_id\030\002 \001(\tR\010secretId\"\037\n\035Del" + "eteRobotPartSecretResponse\"\236\002\n\rAuthoriza" + "tion\022-\n\022authorization_type\030\001 \001(\tR\021author" + "izationType\022)\n\020authorization_id\030\002 \001(\tR\017a" + "uthorizationId\022#\n\rresource_type\030\003 \001(\tR\014r" + "esourceType\022\037\n\013resource_id\030\004 \001(\tR\nresour" + "ceId\022\037\n\013identity_id\030\005 \001(\tR\nidentityId\022\'\n" + "\017organization_id\030\006 \001(\tR\016organizationId\022#" + "\n\ridentity_type\030\007 \001(\tR\014identityType\"R\n\016A" + "ddRoleRequest\022@\n\rauthorization\030\001 \001(\0132\032.v" + "iam.app.v1.AuthorizationR\rauthorization\"" + "\021\n\017AddRoleResponse\"U\n\021RemoveRoleRequest\022" + "@\n\rauthorization\030\001 \001(\0132\032.viam.app.v1.Aut" + "horizationR\rauthorization\"\024\n\022RemoveRoleR" + "esponse\"\245\001\n\021ChangeRoleRequest\022G\n\021old_aut" + "horization\030\001 \001(\0132\032.viam.app.v1.Authoriza" + "tionR\020oldAuthorization\022G\n\021new_authorizat" + "ion\030\002 \001(\0132\032.viam.app.v1.AuthorizationR\020n" + "ewAuthorization\"\024\n\022ChangeRoleResponse\"g\n" + "\031ListAuthorizationsRequest\022\'\n\017organizati" + "on_id\030\001 \001(\tR\016organizationId\022!\n\014resource_" + "ids\030\002 \003(\tR\013resourceIds\"`\n\032ListAuthorizat" + "ionsResponse\022B\n\016authorizations\030\001 \003(\0132\032.v" + "iam.app.v1.AuthorizationR\016authorizations" + "\"_\n\027CheckPermissionsRequest\022D\n\013permissio" + "ns\030\001 \003(\0132\".viam.app.v1.AuthorizedPermiss" + "ionsR\013permissions\"\177\n\025AuthorizedPermissio" + "ns\022#\n\rresource_type\030\001 \001(\tR\014resourceType\022" + "\037\n\013resource_id\030\002 \001(\tR\nresourceId\022 \n\013perm" + "issions\030\003 \003(\tR\013permissions\"u\n\030CheckPermi" + "ssionsResponse\022Y\n\026authorized_permissions" + "\030\001 \003(\0132\".viam.app.v1.AuthorizedPermissio" + "nsR\025authorizedPermissions\"\241\001\n\rModuleVers" + "ion\022\030\n\007version\030\001 \001(\tR\007version\022*\n\005files\030\002" + " \003(\0132\024.viam.app.v1.UploadsR\005files\022*\n\006mod" + "els\030\003 \003(\0132\022.viam.app.v1.ModelR\006models\022\036\n" + "\nentrypoint\030\004 \001(\tR\nentrypoint\"\224\001\n\016Module" + "Metadata\022*\n\006models\030\001 \003(\0132\022.viam.app.v1.M" + "odelR\006models\0226\n\010versions\030\002 \003(\0132\032.viam.ap" + "p.v1.ModuleVersionR\010versions\022\036\n\nentrypoi" + "nt\030\003 \001(\tR\nentrypoint\"-\n\017MLModelMetadata\022" + "\032\n\010versions\030\001 \003(\tR\010versions\"\331\001\n\022MLTraini" + "ngMetadata\022\032\n\010versions\030\001 \003(\tR\010versions\022@" + "\n\nmodel_type\030\002 \001(\0162!.viam.app.mltraining" + ".v1.ModelTypeR\tmodelType\022O\n\017model_framew" + "ork\030\003 \001(\0162&.viam.app.mltraining.v1.Model" + "FrameworkR\016modelFramework\022\024\n\005draft\030\004 \001(\010" + "R\005draft\"\214\007\n\014RegistryItem\022\027\n\007item_id\030\001 \001(" + "\tR\006itemId\022\'\n\017organization_id\030\002 \001(\tR\016orga" + "nizationId\022)\n\020public_namespace\030\003 \001(\tR\017pu" + "blicNamespace\022\022\n\004name\030\004 \001(\tR\004name\0225\n\004typ" + "e\030\005 \001(\0162!.viam.app.packages.v1.PackageTy" + "peR\004type\0227\n\nvisibility\030\006 \001(\0162\027.viam.app." + "v1.VisibilityR\nvisibility\022\020\n\003url\030\007 \001(\tR\003" + "url\022 \n\013description\030\010 \001(\tR\013description\022*\n" + "\021total_robot_usage\030\t \001(\003R\017totalRobotUsag" + "e\022;\n\032total_external_robot_usage\030\r \001(\003R\027t" + "otalExternalRobotUsage\0228\n\030total_organiza" + "tion_usage\030\n \001(\003R\026totalOrganizationUsage" + "\022I\n!total_external_organization_usage\030\016 " + "\001(\003R\036totalExternalOrganizationUsage\022F\n\017m" + "odule_metadata\030\013 \001(\0132\033.viam.app.v1.Modul" + "eMetadataH\000R\016moduleMetadata\022J\n\021ml_model_" + "metadata\030\014 \001(\0132\034.viam.app.v1.MLModelMeta" + "dataH\000R\017mlModelMetadata\022S\n\024ml_training_m" + "etadata\030\022 \001(\0132\037.viam.app.v1.MLTrainingMe" + "tadataH\000R\022mlTrainingMetadata\0229\n\ncreated_" + "at\030\017 \001(\0132\032.google.protobuf.TimestampR\tcr" + "eatedAt\0229\n\nupdated_at\030\020 \001(\0132\032.google.pro" + "tobuf.TimestampR\tupdatedAtB\n\n\010metadata\"1" + "\n\026GetRegistryItemRequest\022\027\n\007item_id\030\001 \001(" + "\tR\006itemId\"H\n\027GetRegistryItemResponse\022-\n\004" + "item\030\001 \001(\0132\031.viam.app.v1.RegistryItemR\004i" + "tem\"\217\001\n\031CreateRegistryItemRequest\022\'\n\017org" + "anization_id\030\001 \001(\tR\016organizationId\022\022\n\004na" + "me\030\002 \001(\tR\004name\0225\n\004type\030\003 \001(\0162!.viam.app." + "packages.v1.PackageTypeR\004type\"\034\n\032CreateR" + "egistryItemResponse\"\306\001\n\031UpdateRegistryIt" + "emRequest\022\027\n\007item_id\030\001 \001(\tR\006itemId\0225\n\004ty" + "pe\030\002 \001(\0162!.viam.app.packages.v1.PackageT" + "ypeR\004type\022 \n\013description\030\003 \001(\tR\013descript" + "ion\0227\n\nvisibility\030\004 \001(\0162\027.viam.app.v1.Vi" + "sibilityR\nvisibility\"\034\n\032UpdateRegistryIt" + "emResponse\"\226\003\n\030ListRegistryItemsRequest\022" + ",\n\017organization_id\030\001 \001(\tH\000R\016organization" + "Id\210\001\001\0227\n\005types\030\002 \003(\0162!.viam.app.packages" + ".v1.PackageTypeR\005types\022;\n\014visibilities\030\003" + " \003(\0162\027.viam.app.v1.VisibilityR\014visibilit" + "ies\022\034\n\tplatforms\030\004 \003(\tR\tplatforms\022;\n\010sta" + "tuses\030\005 \003(\0162\037.viam.app.v1.RegistryItemSt" + "atusR\010statuses\022$\n\013search_term\030\006 \001(\tH\001R\ns" + "earchTerm\210\001\001\022\"\n\npage_token\030\007 \001(\tH\002R\tpage" + "Token\210\001\001B\022\n\020_organization_idB\016\n\014_search_" + "termB\r\n\013_page_token\"L\n\031ListRegistryItems" + "Response\022/\n\005items\030\001 \003(\0132\031.viam.app.v1.Re" + "gistryItemR\005items\"4\n\031DeleteRegistryItemR" + "equest\022\027\n\007item_id\030\001 \001(\tR\006itemId\"\034\n\032Delet" + "eRegistryItemResponse\"R\n\023CreateModuleReq" + "uest\022\'\n\017organization_id\030\001 \001(\tR\016organizat" + "ionId\022\022\n\004name\030\002 \001(\tR\004name\"E\n\024CreateModul" + "eResponse\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\tmodule_id\030\001 \001(\tR\010moduleId\0227\n\nvisibil" + "ity\030\002 \001(\0162\027.viam.app.v1.VisibilityR\nvisi" + "bility\022\020\n\003url\030\003 \001(\tR\003url\022 \n\013description\030" + "\004 \001(\tR\013description\022*\n\006models\030\005 \003(\0132\022.via" + "m.app.v1.ModelR\006models\022\036\n\nentrypoint\030\006 \001" + "(\tR\nentrypoint\"(\n\024UpdateModuleResponse\022\020" + "\n\003url\030\001 \001(\tR\003url\"/\n\005Model\022\020\n\003api\030\001 \001(\tR\003" + "api\022\024\n\005model\030\002 \001(\tR\005model\"c\n\016ModuleFileI" + "nfo\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\022\030\n\007vers" + "ion\030\002 \001(\tR\007version\022\032\n\010platform\030\003 \001(\tR\010pl" + "atform\"\207\001\n\027UploadModuleFileRequest\022G\n\020mo" + "dule_file_info\030\001 \001(\0132\033.viam.app.v1.Modul" + "eFileInfoH\000R\016moduleFileInfo\022\024\n\004file\030\002 \001(" + "\014H\000R\004fileB\r\n\013module_file\",\n\030UploadModule" + "FileResponse\022\020\n\003url\030\001 \001(\tR\003url\"/\n\020GetMod" + "uleRequest\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\"" + "@\n\021GetModuleResponse\022+\n\006module\030\001 \001(\0132\023.v" + "iam.app.v1.ModuleR\006module\"\345\003\n\006Module\022\033\n\t" + "module_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." + "VisibilityR\nvisibility\0227\n\010versions\030\004 \003(\013" + "2\033.viam.app.v1.VersionHistoryR\010versions\022" + "\020\n\003url\030\005 \001(\tR\003url\022 \n\013description\030\006 \001(\tR\013" + "description\022*\n\006models\030\007 \003(\0132\022.viam.app.v" + "1.ModelR\006models\022*\n\021total_robot_usage\030\010 \001" + "(\003R\017totalRobotUsage\0228\n\030total_organizatio" + "n_usage\030\t \001(\003R\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\016Ve" + "rsionHistory\022\030\n\007version\030\001 \001(\tR\007version\022*" + "\n\005files\030\002 \003(\0132\024.viam.app.v1.UploadsR\005fil" + "es\022*\n\006models\030\003 \003(\0132\022.viam.app.v1.ModelR\006" + "models\022\036\n\nentrypoint\030\004 \001(\tR\nentrypoint\"b" + "\n\007Uploads\022\032\n\010platform\030\001 \001(\tR\010platform\022;\n" + "\013uploaded_at\030\002 \001(\0132\032.google.protobuf.Tim" + "estampR\nuploadedAt\"V\n\022ListModulesRequest" + "\022,\n\017organization_id\030\001 \001(\tH\000R\016organizatio" + "nId\210\001\001B\022\n\020_organization_id\"D\n\023ListModule" + "sResponse\022-\n\007modules\030\001 \003(\0132\023.viam.app.v1" + ".ModuleR\007modules\"/\n\027GetUserIDByEmailRequ" + "est\022\024\n\005email\030\001 \001(\tR\005email\"3\n\030GetUserIDBy" + "EmailResponse\022\027\n\007user_id\030\001 \001(\tR\006userId\"9" + "\n\036ListOrganizationsByUserRequest\022\027\n\007user" + "_id\030\001 \001(\tR\006userId\">\n\nOrgDetails\022\025\n\006org_i" + "d\030\001 \001(\tR\005orgId\022\031\n\010org_name\030\002 \001(\tR\007orgNam" + "e\"N\n\037ListOrganizationsByUserResponse\022+\n\004" + "orgs\030\001 \003(\0132\027.viam.app.v1.OrgDetailsR\004org" + "s\"j\n\020CreateKeyRequest\022B\n\016authorizations\030" + "\001 \003(\0132\032.viam.app.v1.AuthorizationR\016autho" + "rizations\022\022\n\004name\030\002 \001(\tR\004name\"5\n\021CreateK" + "eyResponse\022\020\n\003key\030\001 \001(\tR\003key\022\016\n\002id\030\002 \001(\t" + "R\002id\"\"\n\020DeleteKeyRequest\022\016\n\002id\030\001 \001(\tR\002id" + "\"\023\n\021DeleteKeyResponse\"\315\001\n\024AuthorizationD" + "etails\022-\n\022authorization_type\030\001 \001(\tR\021auth" + "orizationType\022)\n\020authorization_id\030\002 \001(\tR" + "\017authorizationId\022#\n\rresource_type\030\003 \001(\tR" + "\014resourceType\022\037\n\013resource_id\030\004 \001(\tR\nreso" + "urceId\022\025\n\006org_id\030\005 \001(\tR\005orgId\"\223\001\n\030APIKey" + "WithAuthorizations\022,\n\007api_key\030\001 \001(\0132\023.vi" + "am.app.v1.APIKeyR\006apiKey\022I\n\016authorizatio" + "ns\030\002 \003(\0132!.viam.app.v1.AuthorizationDeta" + "ilsR\016authorizations\"(\n\017ListKeysRequest\022\025" + "\n\006org_id\030\001 \001(\tR\005orgId\"T\n\020ListKeysRespons" + "e\022@\n\010api_keys\030\001 \003(\0132%.viam.app.v1.APIKey" + "WithAuthorizationsR\007apiKeys\"\"\n\020RotateKey" + "Request\022\016\n\002id\030\001 \001(\tR\002id\"5\n\021RotateKeyResp" + "onse\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003key\"\?" + "\n-CreateKeyFromExistingKeyAuthorizations" + "Request\022\016\n\002id\030\001 \001(\tR\002id\"R\n.CreateKeyFrom" + "ExistingKeyAuthorizationsResponse\022\016\n\002id\030" + "\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003key*\207\001\n\022Registry" + "ItemStatus\022$\n REGISTRY_ITEM_STATUS_UNSPE" + "CIFIED\020\000\022\"\n\036REGISTRY_ITEM_STATUS_PUBLISH" + "ED\020\001\022\'\n#REGISTRY_ITEM_STATUS_IN_DEVELOPM" + "ENT\020\002*W\n\nVisibility\022\032\n\026VISIBILITY_UNSPEC" + "IFIED\020\000\022\026\n\022VISIBILITY_PRIVATE\020\001\022\025\n\021VISIB" + "ILITY_PUBLIC\020\0022\3574\n\nAppService\022_\n\020GetUser" + "IDByEmail\022$.viam.app.v1.GetUserIDByEmail" + "Request\032%.viam.app.v1.GetUserIDByEmailRe" + "sponse\022e\n\022CreateOrganization\022&.viam.app." + "v1.CreateOrganizationRequest\032\'.viam.app." + "v1.CreateOrganizationResponse\022b\n\021ListOrg" + "anizations\022%.viam.app.v1.ListOrganizatio" + "nsRequest\032&.viam.app.v1.ListOrganization" + "sResponse\022\233\001\n$GetOrganizationsWithAccess" + "ToLocation\0228.viam.app.v1.GetOrganization" + "sWithAccessToLocationRequest\0329.viam.app." "v1.GetOrganizationsWithAccessToLocationR" - "equest\0329.viam.app.v1.GetOrganizationsWit" - "hAccessToLocationResponse\022t\n\027ListOrganiz" - "ationsByUser\022+.viam.app.v1.ListOrganizat" - "ionsByUserRequest\032,.viam.app.v1.ListOrga" - "nizationsByUserResponse\022\\\n\017GetOrganizati" - "on\022#.viam.app.v1.GetOrganizationRequest\032" - "$.viam.app.v1.GetOrganizationResponse\022\233\001" - "\n$GetOrganizationNamespaceAvailability\0228" + "esponse\022t\n\027ListOrganizationsByUser\022+.via" + "m.app.v1.ListOrganizationsByUserRequest\032" + ",.viam.app.v1.ListOrganizationsByUserRes" + "ponse\022\\\n\017GetOrganization\022#.viam.app.v1.G" + "etOrganizationRequest\032$.viam.app.v1.GetO" + "rganizationResponse\022\233\001\n$GetOrganizationN" + "amespaceAvailability\0228.viam.app.v1.GetOr" + "ganizationNamespaceAvailabilityRequest\0329" ".viam.app.v1.GetOrganizationNamespaceAva" - "ilabilityRequest\0329.viam.app.v1.GetOrgani" - "zationNamespaceAvailabilityResponse\022e\n\022U" - "pdateOrganization\022&.viam.app.v1.UpdateOr" - "ganizationRequest\032\'.viam.app.v1.UpdateOr" - "ganizationResponse\022e\n\022DeleteOrganization" - "\022&.viam.app.v1.DeleteOrganizationRequest" - "\032\'.viam.app.v1.DeleteOrganizationRespons" - "e\022t\n\027ListOrganizationMembers\022+.viam.app." - "v1.ListOrganizationMembersRequest\032,.viam" - ".app.v1.ListOrganizationMembersResponse\022" - "w\n\030CreateOrganizationInvite\022,.viam.app.v" - "1.CreateOrganizationInviteRequest\032-.viam" - ".app.v1.CreateOrganizationInviteResponse" - "\022\241\001\n&UpdateOrganizationInviteAuthorizati" - "ons\022:.viam.app.v1.UpdateOrganizationInvi" - "teAuthorizationsRequest\032;.viam.app.v1.Up" - "dateOrganizationInviteAuthorizationsResp" - "onse\022w\n\030DeleteOrganizationMember\022,.viam." - "app.v1.DeleteOrganizationMemberRequest\032-" - ".viam.app.v1.DeleteOrganizationMemberRes" - "ponse\022w\n\030DeleteOrganizationInvite\022,.viam" - ".app.v1.DeleteOrganizationInviteRequest\032" - "-.viam.app.v1.DeleteOrganizationInviteRe" - "sponse\022w\n\030ResendOrganizationInvite\022,.via" - "m.app.v1.ResendOrganizationInviteRequest" - "\032-.viam.app.v1.ResendOrganizationInviteR" - "esponse\022Y\n\016CreateLocation\022\".viam.app.v1." - "CreateLocationRequest\032#.viam.app.v1.Crea" - "teLocationResponse\022P\n\013GetLocation\022\037.viam" - ".app.v1.GetLocationRequest\032 .viam.app.v1" - ".GetLocationResponse\022Y\n\016UpdateLocation\022\"" - ".viam.app.v1.UpdateLocationRequest\032#.via" - "m.app.v1.UpdateLocationResponse\022Y\n\016Delet" - "eLocation\022\".viam.app.v1.DeleteLocationRe" - "quest\032#.viam.app.v1.DeleteLocationRespon" - "se\022V\n\rListLocations\022!.viam.app.v1.ListLo" - "cationsRequest\032\".viam.app.v1.ListLocatio" - "nsResponse\022V\n\rShareLocation\022!.viam.app.v" - "1.ShareLocationRequest\032\".viam.app.v1.Sha" - "reLocationResponse\022\\\n\017UnshareLocation\022#." - "viam.app.v1.UnshareLocationRequest\032$.via" - "m.app.v1.UnshareLocationResponse\022S\n\014Loca" - "tionAuth\022 .viam.app.v1.LocationAuthReque" - "st\032!.viam.app.v1.LocationAuthResponse\022k\n" - "\024CreateLocationSecret\022(.viam.app.v1.Crea" - "teLocationSecretRequest\032).viam.app.v1.Cr" - "eateLocationSecretResponse\022k\n\024DeleteLoca" - "tionSecret\022(.viam.app.v1.DeleteLocationS" - "ecretRequest\032).viam.app.v1.DeleteLocatio" - "nSecretResponse\022G\n\010GetRobot\022\034.viam.app.v" - "1.GetRobotRequest\032\035.viam.app.v1.GetRobot" - "Response\022k\n\024GetRoverRentalRobots\022(.viam." - "app.v1.GetRoverRentalRobotsRequest\032).via" - "m.app.v1.GetRoverRentalRobotsResponse\022V\n" - "\rGetRobotParts\022!.viam.app.v1.GetRobotPar" - "tsRequest\032\".viam.app.v1.GetRobotPartsRes" - "ponse\022S\n\014GetRobotPart\022 .viam.app.v1.GetR" - "obotPartRequest\032!.viam.app.v1.GetRobotPa" - "rtResponse\022_\n\020GetRobotPartLogs\022$.viam.ap" - "p.v1.GetRobotPartLogsRequest\032%.viam.app." - "v1.GetRobotPartLogsResponse\022d\n\021TailRobot" - "PartLogs\022%.viam.app.v1.TailRobotPartLogs" - "Request\032&.viam.app.v1.TailRobotPartLogsR" - "esponse0\001\022h\n\023GetRobotPartHistory\022\'.viam." - "app.v1.GetRobotPartHistoryRequest\032(.viam" - ".app.v1.GetRobotPartHistoryResponse\022\\\n\017U" - "pdateRobotPart\022#.viam.app.v1.UpdateRobot" - "PartRequest\032$.viam.app.v1.UpdateRobotPar" - "tResponse\022S\n\014NewRobotPart\022 .viam.app.v1." - "NewRobotPartRequest\032!.viam.app.v1.NewRob" - "otPartResponse\022\\\n\017DeleteRobotPart\022#.viam" - ".app.v1.DeleteRobotPartRequest\032$.viam.ap" - "p.v1.DeleteRobotPartResponse\022\\\n\017GetRobot" - "APIKeys\022#.viam.app.v1.GetRobotAPIKeysReq" - "uest\032$.viam.app.v1.GetRobotAPIKeysRespon" - "se\022Y\n\016MarkPartAsMain\022\".viam.app.v1.MarkP" - "artAsMainRequest\032#.viam.app.v1.MarkPartA" - "sMainResponse\022e\n\022MarkPartForRestart\022&.vi" - "am.app.v1.MarkPartForRestartRequest\032\'.vi" - "am.app.v1.MarkPartForRestartResponse\022n\n\025" - "CreateRobotPartSecret\022).viam.app.v1.Crea" - "teRobotPartSecretRequest\032*.viam.app.v1.C" - "reateRobotPartSecretResponse\022n\n\025DeleteRo" - "botPartSecret\022).viam.app.v1.DeleteRobotP" - "artSecretRequest\032*.viam.app.v1.DeleteRob" - "otPartSecretResponse\022M\n\nListRobots\022\036.via" - "m.app.v1.ListRobotsRequest\032\037.viam.app.v1" - ".ListRobotsResponse\022G\n\010NewRobot\022\034.viam.a" - "pp.v1.NewRobotRequest\032\035.viam.app.v1.NewR" - "obotResponse\022P\n\013UpdateRobot\022\037.viam.app.v" - "1.UpdateRobotRequest\032 .viam.app.v1.Updat" - "eRobotResponse\022P\n\013DeleteRobot\022\037.viam.app" - ".v1.DeleteRobotRequest\032 .viam.app.v1.Del" - "eteRobotResponse\022V\n\rListFragments\022!.viam" - ".app.v1.ListFragmentsRequest\032\".viam.app." - "v1.ListFragmentsResponse\022P\n\013GetFragment\022" - "\037.viam.app.v1.GetFragmentRequest\032 .viam." - "app.v1.GetFragmentResponse\022Y\n\016CreateFrag" - "ment\022\".viam.app.v1.CreateFragmentRequest" - "\032#.viam.app.v1.CreateFragmentResponse\022Y\n" - "\016UpdateFragment\022\".viam.app.v1.UpdateFrag" - "mentRequest\032#.viam.app.v1.UpdateFragment" - "Response\022Y\n\016DeleteFragment\022\".viam.app.v1" - ".DeleteFragmentRequest\032#.viam.app.v1.Del" - "eteFragmentResponse\022D\n\007AddRole\022\033.viam.ap" - "p.v1.AddRoleRequest\032\034.viam.app.v1.AddRol" - "eResponse\022M\n\nRemoveRole\022\036.viam.app.v1.Re" - "moveRoleRequest\032\037.viam.app.v1.RemoveRole" - "Response\022M\n\nChangeRole\022\036.viam.app.v1.Cha" - "ngeRoleRequest\032\037.viam.app.v1.ChangeRoleR" - "esponse\022e\n\022ListAuthorizations\022&.viam.app" - ".v1.ListAuthorizationsRequest\032\'.viam.app" - ".v1.ListAuthorizationsResponse\022_\n\020CheckP" - "ermissions\022$.viam.app.v1.CheckPermission" - "sRequest\032%.viam.app.v1.CheckPermissionsR" - "esponse\022\\\n\017GetRegistryItem\022#.viam.app.v1" - ".GetRegistryItemRequest\032$.viam.app.v1.Ge" - "tRegistryItemResponse\022e\n\022CreateRegistryI" - "tem\022&.viam.app.v1.CreateRegistryItemRequ" - "est\032\'.viam.app.v1.CreateRegistryItemResp" - "onse\022e\n\022UpdateRegistryItem\022&.viam.app.v1" - ".UpdateRegistryItemRequest\032\'.viam.app.v1" - ".UpdateRegistryItemResponse\022b\n\021ListRegis" - "tryItems\022%.viam.app.v1.ListRegistryItems" - "Request\032&.viam.app.v1.ListRegistryItemsR" - "esponse\022e\n\022DeleteRegistryItem\022&.viam.app" - ".v1.DeleteRegistryItemRequest\032\'.viam.app" - ".v1.DeleteRegistryItemResponse\022S\n\014Create" - "Module\022 .viam.app.v1.CreateModuleRequest" - "\032!.viam.app.v1.CreateModuleResponse\022S\n\014U" - "pdateModule\022 .viam.app.v1.UpdateModuleRe" - "quest\032!.viam.app.v1.UpdateModuleResponse" - "\022a\n\020UploadModuleFile\022$.viam.app.v1.Uploa" - "dModuleFileRequest\032%.viam.app.v1.UploadM" - "oduleFileResponse(\001\022J\n\tGetModule\022\035.viam." - "app.v1.GetModuleRequest\032\036.viam.app.v1.Ge" - "tModuleResponse\022P\n\013ListModules\022\037.viam.ap" - "p.v1.ListModulesRequest\032 .viam.app.v1.Li" - "stModulesResponse\022J\n\tCreateKey\022\035.viam.ap" - "p.v1.CreateKeyRequest\032\036.viam.app.v1.Crea" - "teKeyResponse\022J\n\tDeleteKey\022\035.viam.app.v1" - ".DeleteKeyRequest\032\036.viam.app.v1.DeleteKe" - "yResponse\022G\n\010ListKeys\022\034.viam.app.v1.List" - "KeysRequest\032\035.viam.app.v1.ListKeysRespon" - "se\022J\n\tRotateKey\022\035.viam.app.v1.RotateKeyR" - "equest\032\036.viam.app.v1.RotateKeyResponse\022\241" - "\001\n&CreateKeyFromExistingKeyAuthorization" - "s\022:.viam.app.v1.CreateKeyFromExistingKey" - "AuthorizationsRequest\032;.viam.app.v1.Crea" - "teKeyFromExistingKeyAuthorizationsRespon" - "seB\030Z\026go.viam.com/api/app/v1b\006proto3" + "ilabilityResponse\022e\n\022UpdateOrganization\022" + "&.viam.app.v1.UpdateOrganizationRequest\032" + "\'.viam.app.v1.UpdateOrganizationResponse" + "\022e\n\022DeleteOrganization\022&.viam.app.v1.Del" + "eteOrganizationRequest\032\'.viam.app.v1.Del" + "eteOrganizationResponse\022t\n\027ListOrganizat" + "ionMembers\022+.viam.app.v1.ListOrganizatio" + "nMembersRequest\032,.viam.app.v1.ListOrgani" + "zationMembersResponse\022w\n\030CreateOrganizat" + "ionInvite\022,.viam.app.v1.CreateOrganizati" + "onInviteRequest\032-.viam.app.v1.CreateOrga" + "nizationInviteResponse\022\241\001\n&UpdateOrganiz" + "ationInviteAuthorizations\022:.viam.app.v1." + "UpdateOrganizationInviteAuthorizationsRe" + "quest\032;.viam.app.v1.UpdateOrganizationIn" + "viteAuthorizationsResponse\022w\n\030DeleteOrga" + "nizationMember\022,.viam.app.v1.DeleteOrgan" + "izationMemberRequest\032-.viam.app.v1.Delet" + "eOrganizationMemberResponse\022w\n\030DeleteOrg" + "anizationInvite\022,.viam.app.v1.DeleteOrga" + "nizationInviteRequest\032-.viam.app.v1.Dele" + "teOrganizationInviteResponse\022w\n\030ResendOr" + "ganizationInvite\022,.viam.app.v1.ResendOrg" + "anizationInviteRequest\032-.viam.app.v1.Res" + "endOrganizationInviteResponse\022Y\n\016CreateL" + "ocation\022\".viam.app.v1.CreateLocationRequ" + "est\032#.viam.app.v1.CreateLocationResponse" + "\022P\n\013GetLocation\022\037.viam.app.v1.GetLocatio" + "nRequest\032 .viam.app.v1.GetLocationRespon" + "se\022Y\n\016UpdateLocation\022\".viam.app.v1.Updat" + "eLocationRequest\032#.viam.app.v1.UpdateLoc" + "ationResponse\022Y\n\016DeleteLocation\022\".viam.a" + "pp.v1.DeleteLocationRequest\032#.viam.app.v" + "1.DeleteLocationResponse\022V\n\rListLocation" + "s\022!.viam.app.v1.ListLocationsRequest\032\".v" + "iam.app.v1.ListLocationsResponse\022V\n\rShar" + "eLocation\022!.viam.app.v1.ShareLocationReq" + "uest\032\".viam.app.v1.ShareLocationResponse" + "\022\\\n\017UnshareLocation\022#.viam.app.v1.Unshar" + "eLocationRequest\032$.viam.app.v1.UnshareLo" + "cationResponse\022S\n\014LocationAuth\022 .viam.ap" + "p.v1.LocationAuthRequest\032!.viam.app.v1.L" + "ocationAuthResponse\022k\n\024CreateLocationSec" + "ret\022(.viam.app.v1.CreateLocationSecretRe" + "quest\032).viam.app.v1.CreateLocationSecret" + "Response\022k\n\024DeleteLocationSecret\022(.viam." + "app.v1.DeleteLocationSecretRequest\032).via" + "m.app.v1.DeleteLocationSecretResponse\022G\n" + "\010GetRobot\022\034.viam.app.v1.GetRobotRequest\032" + "\035.viam.app.v1.GetRobotResponse\022k\n\024GetRov" + "erRentalRobots\022(.viam.app.v1.GetRoverRen" + "talRobotsRequest\032).viam.app.v1.GetRoverR" + "entalRobotsResponse\022V\n\rGetRobotParts\022!.v" + "iam.app.v1.GetRobotPartsRequest\032\".viam.a" + "pp.v1.GetRobotPartsResponse\022S\n\014GetRobotP" + "art\022 .viam.app.v1.GetRobotPartRequest\032!." + "viam.app.v1.GetRobotPartResponse\022_\n\020GetR" + "obotPartLogs\022$.viam.app.v1.GetRobotPartL" + "ogsRequest\032%.viam.app.v1.GetRobotPartLog" + "sResponse\022d\n\021TailRobotPartLogs\022%.viam.ap" + "p.v1.TailRobotPartLogsRequest\032&.viam.app" + ".v1.TailRobotPartLogsResponse0\001\022h\n\023GetRo" + "botPartHistory\022\'.viam.app.v1.GetRobotPar" + "tHistoryRequest\032(.viam.app.v1.GetRobotPa" + "rtHistoryResponse\022\\\n\017UpdateRobotPart\022#.v" + "iam.app.v1.UpdateRobotPartRequest\032$.viam" + ".app.v1.UpdateRobotPartResponse\022S\n\014NewRo" + "botPart\022 .viam.app.v1.NewRobotPartReques" + "t\032!.viam.app.v1.NewRobotPartResponse\022\\\n\017" + "DeleteRobotPart\022#.viam.app.v1.DeleteRobo" + "tPartRequest\032$.viam.app.v1.DeleteRobotPa" + "rtResponse\022\\\n\017GetRobotAPIKeys\022#.viam.app" + ".v1.GetRobotAPIKeysRequest\032$.viam.app.v1" + ".GetRobotAPIKeysResponse\022Y\n\016MarkPartAsMa" + "in\022\".viam.app.v1.MarkPartAsMainRequest\032#" + ".viam.app.v1.MarkPartAsMainResponse\022e\n\022M" + "arkPartForRestart\022&.viam.app.v1.MarkPart" + "ForRestartRequest\032\'.viam.app.v1.MarkPart" + "ForRestartResponse\022n\n\025CreateRobotPartSec" + "ret\022).viam.app.v1.CreateRobotPartSecretR" + "equest\032*.viam.app.v1.CreateRobotPartSecr" + "etResponse\022n\n\025DeleteRobotPartSecret\022).vi" + "am.app.v1.DeleteRobotPartSecretRequest\032*" + ".viam.app.v1.DeleteRobotPartSecretRespon" + "se\022M\n\nListRobots\022\036.viam.app.v1.ListRobot" + "sRequest\032\037.viam.app.v1.ListRobotsRespons" + "e\022G\n\010NewRobot\022\034.viam.app.v1.NewRobotRequ" + "est\032\035.viam.app.v1.NewRobotResponse\022P\n\013Up" + "dateRobot\022\037.viam.app.v1.UpdateRobotReque" + "st\032 .viam.app.v1.UpdateRobotResponse\022P\n\013" + "DeleteRobot\022\037.viam.app.v1.DeleteRobotReq" + "uest\032 .viam.app.v1.DeleteRobotResponse\022V" + "\n\rListFragments\022!.viam.app.v1.ListFragme" + "ntsRequest\032\".viam.app.v1.ListFragmentsRe" + "sponse\022P\n\013GetFragment\022\037.viam.app.v1.GetF" + "ragmentRequest\032 .viam.app.v1.GetFragment" + "Response\022Y\n\016CreateFragment\022\".viam.app.v1" + ".CreateFragmentRequest\032#.viam.app.v1.Cre" + "ateFragmentResponse\022Y\n\016UpdateFragment\022\"." + "viam.app.v1.UpdateFragmentRequest\032#.viam" + ".app.v1.UpdateFragmentResponse\022Y\n\016Delete" + "Fragment\022\".viam.app.v1.DeleteFragmentReq" + "uest\032#.viam.app.v1.DeleteFragmentRespons" + "e\022D\n\007AddRole\022\033.viam.app.v1.AddRoleReques" + "t\032\034.viam.app.v1.AddRoleResponse\022M\n\nRemov" + "eRole\022\036.viam.app.v1.RemoveRoleRequest\032\037." + "viam.app.v1.RemoveRoleResponse\022M\n\nChange" + "Role\022\036.viam.app.v1.ChangeRoleRequest\032\037.v" + "iam.app.v1.ChangeRoleResponse\022e\n\022ListAut" + "horizations\022&.viam.app.v1.ListAuthorizat" + "ionsRequest\032\'.viam.app.v1.ListAuthorizat" + "ionsResponse\022_\n\020CheckPermissions\022$.viam." + "app.v1.CheckPermissionsRequest\032%.viam.ap" + "p.v1.CheckPermissionsResponse\022\\\n\017GetRegi" + "stryItem\022#.viam.app.v1.GetRegistryItemRe" + "quest\032$.viam.app.v1.GetRegistryItemRespo" + "nse\022e\n\022CreateRegistryItem\022&.viam.app.v1." + "CreateRegistryItemRequest\032\'.viam.app.v1." + "CreateRegistryItemResponse\022e\n\022UpdateRegi" + "stryItem\022&.viam.app.v1.UpdateRegistryIte" + "mRequest\032\'.viam.app.v1.UpdateRegistryIte" + "mResponse\022b\n\021ListRegistryItems\022%.viam.ap" + "p.v1.ListRegistryItemsRequest\032&.viam.app" + ".v1.ListRegistryItemsResponse\022e\n\022DeleteR" + "egistryItem\022&.viam.app.v1.DeleteRegistry" + "ItemRequest\032\'.viam.app.v1.DeleteRegistry" + "ItemResponse\022S\n\014CreateModule\022 .viam.app." + "v1.CreateModuleRequest\032!.viam.app.v1.Cre" + "ateModuleResponse\022S\n\014UpdateModule\022 .viam" + ".app.v1.UpdateModuleRequest\032!.viam.app.v" + "1.UpdateModuleResponse\022a\n\020UploadModuleFi" + "le\022$.viam.app.v1.UploadModuleFileRequest" + "\032%.viam.app.v1.UploadModuleFileResponse(" + "\001\022J\n\tGetModule\022\035.viam.app.v1.GetModuleRe" + "quest\032\036.viam.app.v1.GetModuleResponse\022P\n" + "\013ListModules\022\037.viam.app.v1.ListModulesRe" + "quest\032 .viam.app.v1.ListModulesResponse\022" + "J\n\tCreateKey\022\035.viam.app.v1.CreateKeyRequ" + "est\032\036.viam.app.v1.CreateKeyResponse\022J\n\tD" + "eleteKey\022\035.viam.app.v1.DeleteKeyRequest\032" + "\036.viam.app.v1.DeleteKeyResponse\022G\n\010ListK" + "eys\022\034.viam.app.v1.ListKeysRequest\032\035.viam" + ".app.v1.ListKeysResponse\022J\n\tRotateKey\022\035." + "viam.app.v1.RotateKeyRequest\032\036.viam.app." + "v1.RotateKeyResponse\022\241\001\n&CreateKeyFromEx" + "istingKeyAuthorizations\022:.viam.app.v1.Cr" + "eateKeyFromExistingKeyAuthorizationsRequ" + "est\032;.viam.app.v1.CreateKeyFromExistingK" + "eyAuthorizationsResponseB\030Z\026go.viam.com/" + "api/app/v1b\006proto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[5] = { +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[6] = { + &::descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, &::descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto, &::descriptor_table_common_2fv1_2fcommon_2eproto, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, @@ -4571,9 +4611,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2epr }; static ::_pbi::once_flag descriptor_table_app_2fv1_2fapp_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fapp_2eproto = { - false, false, 25516, descriptor_table_protodef_app_2fv1_2fapp_2eproto, + false, false, 25858, 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, 5, 167, + &descriptor_table_app_2fv1_2fapp_2eproto_once, descriptor_table_app_2fv1_2fapp_2eproto_deps, 6, 168, 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, @@ -31095,10 +31135,282 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MLModelMetadata::GetMetadata() const { // =================================================================== +class MLTrainingMetadata::_Internal { + public: +}; + +MLTrainingMetadata::MLTrainingMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + versions_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.MLTrainingMetadata) +} +MLTrainingMetadata::MLTrainingMetadata(const MLTrainingMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + versions_(from.versions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&model_type_, &from.model_type_, + static_cast(reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.MLTrainingMetadata) +} + +inline void MLTrainingMetadata::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&model_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); +} + +MLTrainingMetadata::~MLTrainingMetadata() { + // @@protoc_insertion_point(destructor:viam.app.v1.MLTrainingMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MLTrainingMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MLTrainingMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MLTrainingMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.MLTrainingMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + versions_.Clear(); + ::memset(&model_type_, 0, static_cast( + reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MLTrainingMetadata::_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 string versions = 1 [json_name = "versions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_versions(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.MLTrainingMetadata.versions")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_type(static_cast<::viam::app::mltraining::v1::ModelType>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_framework(static_cast<::viam::app::mltraining::v1::ModelFramework>(val)); + } else + goto handle_unusual; + continue; + // bool draft = 4 [json_name = "draft"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + draft_ = ::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* MLTrainingMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MLTrainingMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string versions = 1 [json_name = "versions"]; + for (int i = 0, n = this->_internal_versions_size(); i < n; i++) { + const auto& s = this->_internal_versions(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.MLTrainingMetadata.versions"); + target = stream->WriteString(1, s, target); + } + + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + if (this->_internal_model_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_model_type(), target); + } + + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + if (this->_internal_model_framework() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_model_framework(), target); + } + + // bool draft = 4 [json_name = "draft"]; + if (this->_internal_draft() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_draft(), 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.app.v1.MLTrainingMetadata) + return target; +} + +size_t MLTrainingMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MLTrainingMetadata) + 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 string versions = 1 [json_name = "versions"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(versions_.size()); + for (int i = 0, n = versions_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + versions_.Get(i)); + } + + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + if (this->_internal_model_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); + } + + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + if (this->_internal_model_framework() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); + } + + // bool draft = 4 [json_name = "draft"]; + if (this->_internal_draft() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MLTrainingMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MLTrainingMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MLTrainingMetadata::GetClassData() const { return &_class_data_; } + +void MLTrainingMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MLTrainingMetadata::MergeFrom(const MLTrainingMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MLTrainingMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + versions_.MergeFrom(from.versions_); + if (from._internal_model_type() != 0) { + _internal_set_model_type(from._internal_model_type()); + } + if (from._internal_model_framework() != 0) { + _internal_set_model_framework(from._internal_model_framework()); + } + if (from._internal_draft() != 0) { + _internal_set_draft(from._internal_draft()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MLTrainingMetadata::CopyFrom(const MLTrainingMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.MLTrainingMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MLTrainingMetadata::IsInitialized() const { + return true; +} + +void MLTrainingMetadata::InternalSwap(MLTrainingMetadata* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + versions_.InternalSwap(&other->versions_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, draft_) + + sizeof(MLTrainingMetadata::draft_) + - PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, model_type_)>( + reinterpret_cast(&model_type_), + reinterpret_cast(&other->model_type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MLTrainingMetadata::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]); +} + +// =================================================================== + class RegistryItem::_Internal { public: static const ::viam::app::v1::ModuleMetadata& module_metadata(const RegistryItem* msg); static const ::viam::app::v1::MLModelMetadata& ml_model_metadata(const RegistryItem* msg); + static const ::viam::app::v1::MLTrainingMetadata& ml_training_metadata(const RegistryItem* msg); static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_at(const RegistryItem* msg); static const ::PROTOBUF_NAMESPACE_ID::Timestamp& updated_at(const RegistryItem* msg); }; @@ -31111,6 +31423,10 @@ const ::viam::app::v1::MLModelMetadata& RegistryItem::_Internal::ml_model_metadata(const RegistryItem* msg) { return *msg->metadata_.ml_model_metadata_; } +const ::viam::app::v1::MLTrainingMetadata& +RegistryItem::_Internal::ml_training_metadata(const RegistryItem* msg) { + return *msg->metadata_.ml_training_metadata_; +} const ::PROTOBUF_NAMESPACE_ID::Timestamp& RegistryItem::_Internal::created_at(const RegistryItem* msg) { return *msg->created_at_; @@ -31149,6 +31465,21 @@ void RegistryItem::set_allocated_ml_model_metadata(::viam::app::v1::MLModelMetad } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.ml_model_metadata) } +void RegistryItem::set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* ml_training_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_metadata(); + if (ml_training_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ml_training_metadata); + if (message_arena != submessage_arena) { + ml_training_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ml_training_metadata, submessage_arena); + } + set_has_ml_training_metadata(); + metadata_.ml_training_metadata_ = ml_training_metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.ml_training_metadata) +} void RegistryItem::clear_created_at() { if (GetArenaForAllocation() == nullptr && created_at_ != nullptr) { delete created_at_; @@ -31241,6 +31572,10 @@ RegistryItem::RegistryItem(const RegistryItem& from) _internal_mutable_ml_model_metadata()->::viam::app::v1::MLModelMetadata::MergeFrom(from._internal_ml_model_metadata()); break; } + case kMlTrainingMetadata: { + _internal_mutable_ml_training_metadata()->::viam::app::v1::MLTrainingMetadata::MergeFrom(from._internal_ml_training_metadata()); + break; + } case METADATA_NOT_SET: { break; } @@ -31323,6 +31658,12 @@ void RegistryItem::clear_metadata() { } break; } + case kMlTrainingMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_training_metadata_; + } + break; + } case METADATA_NOT_SET: { break; } @@ -31506,6 +31847,14 @@ const char* RegistryItem::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 146)) { + ptr = ctx->ParseMessage(_internal_mutable_ml_training_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -31661,6 +32010,13 @@ uint8_t* RegistryItem::_InternalSerialize( _Internal::updated_at(this).GetCachedSize(), target, stream); } + // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; + if (_internal_has_ml_training_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(18, _Internal::ml_training_metadata(this), + _Internal::ml_training_metadata(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); @@ -31780,6 +32136,13 @@ size_t RegistryItem::ByteSizeLong() const { *metadata_.ml_model_metadata_); break; } + // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; + case kMlTrainingMetadata: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_.ml_training_metadata_); + break; + } case METADATA_NOT_SET: { break; } @@ -31857,6 +32220,10 @@ void RegistryItem::MergeFrom(const RegistryItem& from) { _internal_mutable_ml_model_metadata()->::viam::app::v1::MLModelMetadata::MergeFrom(from._internal_ml_model_metadata()); break; } + case kMlTrainingMetadata: { + _internal_mutable_ml_training_metadata()->::viam::app::v1::MLTrainingMetadata::MergeFrom(from._internal_ml_training_metadata()); + break; + } case METADATA_NOT_SET: { break; } @@ -31917,7 +32284,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[124]); + file_level_metadata_app_2fv1_2fapp_2eproto[125]); } // =================================================================== @@ -32112,7 +32479,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[125]); + file_level_metadata_app_2fv1_2fapp_2eproto[126]); } // =================================================================== @@ -32299,7 +32666,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[126]); + file_level_metadata_app_2fv1_2fapp_2eproto[127]); } // =================================================================== @@ -32571,7 +32938,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[127]); + file_level_metadata_app_2fv1_2fapp_2eproto[128]); } // =================================================================== @@ -32610,7 +32977,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[128]); + file_level_metadata_app_2fv1_2fapp_2eproto[129]); } // =================================================================== @@ -32919,7 +33286,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[129]); + file_level_metadata_app_2fv1_2fapp_2eproto[130]); } // =================================================================== @@ -32958,7 +33325,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[130]); + file_level_metadata_app_2fv1_2fapp_2eproto[131]); } // =================================================================== @@ -33446,7 +33813,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[131]); + file_level_metadata_app_2fv1_2fapp_2eproto[132]); } // =================================================================== @@ -33624,7 +33991,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[132]); + file_level_metadata_app_2fv1_2fapp_2eproto[133]); } // =================================================================== @@ -33819,7 +34186,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[133]); + file_level_metadata_app_2fv1_2fapp_2eproto[134]); } // =================================================================== @@ -33858,7 +34225,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[134]); + file_level_metadata_app_2fv1_2fapp_2eproto[135]); } // =================================================================== @@ -34101,7 +34468,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[135]); + file_level_metadata_app_2fv1_2fapp_2eproto[136]); } // =================================================================== @@ -34344,7 +34711,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[136]); + file_level_metadata_app_2fv1_2fapp_2eproto[137]); } // =================================================================== @@ -34745,7 +35112,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[137]); + file_level_metadata_app_2fv1_2fapp_2eproto[138]); } // =================================================================== @@ -34940,7 +35307,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[138]); + file_level_metadata_app_2fv1_2fapp_2eproto[139]); } // =================================================================== @@ -35183,7 +35550,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[139]); + file_level_metadata_app_2fv1_2fapp_2eproto[140]); } // =================================================================== @@ -35474,7 +35841,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[140]); + file_level_metadata_app_2fv1_2fapp_2eproto[141]); } // =================================================================== @@ -35743,7 +36110,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[141]); + file_level_metadata_app_2fv1_2fapp_2eproto[142]); } // =================================================================== @@ -35938,7 +36305,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[142]); + file_level_metadata_app_2fv1_2fapp_2eproto[143]); } // =================================================================== @@ -36133,7 +36500,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[143]); + file_level_metadata_app_2fv1_2fapp_2eproto[144]); } // =================================================================== @@ -36320,7 +36687,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[144]); + file_level_metadata_app_2fv1_2fapp_2eproto[145]); } // =================================================================== @@ -36954,7 +37321,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[145]); + file_level_metadata_app_2fv1_2fapp_2eproto[146]); } // =================================================================== @@ -37263,7 +37630,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[146]); + file_level_metadata_app_2fv1_2fapp_2eproto[147]); } // =================================================================== @@ -37506,7 +37873,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[147]); + file_level_metadata_app_2fv1_2fapp_2eproto[148]); } // =================================================================== @@ -37714,7 +38081,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[148]); + file_level_metadata_app_2fv1_2fapp_2eproto[149]); } // =================================================================== @@ -37892,7 +38259,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[149]); + file_level_metadata_app_2fv1_2fapp_2eproto[150]); } // =================================================================== @@ -38087,7 +38454,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[150]); + file_level_metadata_app_2fv1_2fapp_2eproto[151]); } // =================================================================== @@ -38282,7 +38649,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[151]); + file_level_metadata_app_2fv1_2fapp_2eproto[152]); } // =================================================================== @@ -38477,7 +38844,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[152]); + file_level_metadata_app_2fv1_2fapp_2eproto[153]); } // =================================================================== @@ -38720,7 +39087,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[153]); + file_level_metadata_app_2fv1_2fapp_2eproto[154]); } // =================================================================== @@ -38898,7 +39265,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[154]); + file_level_metadata_app_2fv1_2fapp_2eproto[155]); } // =================================================================== @@ -39126,7 +39493,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[155]); + file_level_metadata_app_2fv1_2fapp_2eproto[156]); } // =================================================================== @@ -39369,7 +39736,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[156]); + file_level_metadata_app_2fv1_2fapp_2eproto[157]); } // =================================================================== @@ -39564,7 +39931,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[157]); + file_level_metadata_app_2fv1_2fapp_2eproto[158]); } // =================================================================== @@ -39603,7 +39970,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[158]); + file_level_metadata_app_2fv1_2fapp_2eproto[159]); } // =================================================================== @@ -39990,7 +40357,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[159]); + file_level_metadata_app_2fv1_2fapp_2eproto[160]); } // =================================================================== @@ -40210,7 +40577,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[160]); + file_level_metadata_app_2fv1_2fapp_2eproto[161]); } // =================================================================== @@ -40405,7 +40772,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[161]); + file_level_metadata_app_2fv1_2fapp_2eproto[162]); } // =================================================================== @@ -40583,7 +40950,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[162]); + file_level_metadata_app_2fv1_2fapp_2eproto[163]); } // =================================================================== @@ -40778,7 +41145,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[163]); + file_level_metadata_app_2fv1_2fapp_2eproto[164]); } // =================================================================== @@ -41021,7 +41388,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[164]); + file_level_metadata_app_2fv1_2fapp_2eproto[165]); } // =================================================================== @@ -41216,7 +41583,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[165]); + file_level_metadata_app_2fv1_2fapp_2eproto[166]); } // =================================================================== @@ -41459,7 +41826,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[166]); + file_level_metadata_app_2fv1_2fapp_2eproto[167]); } // @@protoc_insertion_point(namespace_scope) @@ -41963,6 +42330,10 @@ template<> PROTOBUF_NOINLINE ::viam::app::v1::MLModelMetadata* Arena::CreateMaybeMessage< ::viam::app::v1::MLModelMetadata >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::MLModelMetadata >(arena); } +template<> PROTOBUF_NOINLINE ::viam::app::v1::MLTrainingMetadata* +Arena::CreateMaybeMessage< ::viam::app::v1::MLTrainingMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MLTrainingMetadata >(arena); +} template<> PROTOBUF_NOINLINE ::viam::app::v1::RegistryItem* Arena::CreateMaybeMessage< ::viam::app::v1::RegistryItem >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::RegistryItem >(arena); diff --git a/src/viam/api/app/v1/app.pb.h b/src/viam/api/app/v1/app.pb.h index a8dedfa83..6aaadaa0d 100644 --- a/src/viam/api/app/v1/app.pb.h +++ b/src/viam/api/app/v1/app.pb.h @@ -32,6 +32,7 @@ #include // IWYU pragma: export #include #include +#include "app/mltraining/v1/ml_training.pb.h" #include "app/packages/v1/packages.pb.h" #include "common/v1/common.pb.h" #include @@ -384,6 +385,9 @@ extern LocationOrganizationDefaultTypeInternal _LocationOrganization_default_ins class MLModelMetadata; struct MLModelMetadataDefaultTypeInternal; extern MLModelMetadataDefaultTypeInternal _MLModelMetadata_default_instance_; +class MLTrainingMetadata; +struct MLTrainingMetadataDefaultTypeInternal; +extern MLTrainingMetadataDefaultTypeInternal _MLTrainingMetadata_default_instance_; class MarkPartAsMainRequest; struct MarkPartAsMainRequestDefaultTypeInternal; extern MarkPartAsMainRequestDefaultTypeInternal _MarkPartAsMainRequest_default_instance_; @@ -669,6 +673,7 @@ template<> ::viam::app::v1::LocationAuthRequest* Arena::CreateMaybeMessage<::via 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::MLModelMetadata* Arena::CreateMaybeMessage<::viam::app::v1::MLModelMetadata>(Arena*); +template<> ::viam::app::v1::MLTrainingMetadata* Arena::CreateMaybeMessage<::viam::app::v1::MLTrainingMetadata>(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*); template<> ::viam::app::v1::MarkPartForRestartRequest* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartForRestartRequest>(Arena*); @@ -20888,6 +20893,197 @@ class MLModelMetadata final : }; // ------------------------------------------------------------------- +class MLTrainingMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MLTrainingMetadata) */ { + public: + inline MLTrainingMetadata() : MLTrainingMetadata(nullptr) {} + ~MLTrainingMetadata() override; + explicit PROTOBUF_CONSTEXPR MLTrainingMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MLTrainingMetadata(const MLTrainingMetadata& from); + MLTrainingMetadata(MLTrainingMetadata&& from) noexcept + : MLTrainingMetadata() { + *this = ::std::move(from); + } + + inline MLTrainingMetadata& operator=(const MLTrainingMetadata& from) { + CopyFrom(from); + return *this; + } + inline MLTrainingMetadata& operator=(MLTrainingMetadata&& 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 MLTrainingMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const MLTrainingMetadata* internal_default_instance() { + return reinterpret_cast( + &_MLTrainingMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 124; + + friend void swap(MLTrainingMetadata& a, MLTrainingMetadata& b) { + a.Swap(&b); + } + inline void Swap(MLTrainingMetadata* 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(MLTrainingMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MLTrainingMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MLTrainingMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MLTrainingMetadata& 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(MLTrainingMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MLTrainingMetadata"; + } + protected: + explicit MLTrainingMetadata(::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 { + kVersionsFieldNumber = 1, + kModelTypeFieldNumber = 2, + kModelFrameworkFieldNumber = 3, + kDraftFieldNumber = 4, + }; + // repeated string versions = 1 [json_name = "versions"]; + int versions_size() const; + private: + int _internal_versions_size() const; + public: + void clear_versions(); + const std::string& versions(int index) const; + std::string* mutable_versions(int index); + void set_versions(int index, const std::string& value); + void set_versions(int index, std::string&& value); + void set_versions(int index, const char* value); + void set_versions(int index, const char* value, size_t size); + std::string* add_versions(); + void add_versions(const std::string& value); + void add_versions(std::string&& value); + void add_versions(const char* value); + void add_versions(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& versions() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_versions(); + private: + const std::string& _internal_versions(int index) const; + std::string* _internal_add_versions(); + public: + + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + void clear_model_type(); + ::viam::app::mltraining::v1::ModelType model_type() const; + void set_model_type(::viam::app::mltraining::v1::ModelType value); + private: + ::viam::app::mltraining::v1::ModelType _internal_model_type() const; + void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); + public: + + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + void clear_model_framework(); + ::viam::app::mltraining::v1::ModelFramework model_framework() const; + void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + private: + ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; + void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + public: + + // bool draft = 4 [json_name = "draft"]; + void clear_draft(); + bool draft() const; + void set_draft(bool value); + private: + bool _internal_draft() const; + void _internal_set_draft(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.MLTrainingMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField versions_; + int model_type_; + int model_framework_; + bool draft_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + class RegistryItem final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegistryItem) */ { public: @@ -20934,6 +21130,7 @@ class RegistryItem final : enum MetadataCase { kModuleMetadata = 11, kMlModelMetadata = 12, + kMlTrainingMetadata = 18, METADATA_NOT_SET = 0, }; @@ -20942,7 +21139,7 @@ class RegistryItem final : &_RegistryItem_default_instance_); } static constexpr int kIndexInFileMessages = - 124; + 125; friend void swap(RegistryItem& a, RegistryItem& b) { a.Swap(&b); @@ -21029,6 +21226,7 @@ class RegistryItem final : kTotalExternalOrganizationUsageFieldNumber = 14, kModuleMetadataFieldNumber = 11, kMlModelMetadataFieldNumber = 12, + kMlTrainingMetadataFieldNumber = 18, }; // string item_id = 1 [json_name = "itemId"]; void clear_item_id(); @@ -21240,6 +21438,24 @@ class RegistryItem final : ::viam::app::v1::MLModelMetadata* ml_model_metadata); ::viam::app::v1::MLModelMetadata* unsafe_arena_release_ml_model_metadata(); + // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; + bool has_ml_training_metadata() const; + private: + bool _internal_has_ml_training_metadata() const; + public: + void clear_ml_training_metadata(); + const ::viam::app::v1::MLTrainingMetadata& ml_training_metadata() const; + PROTOBUF_NODISCARD ::viam::app::v1::MLTrainingMetadata* release_ml_training_metadata(); + ::viam::app::v1::MLTrainingMetadata* mutable_ml_training_metadata(); + void set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* ml_training_metadata); + private: + const ::viam::app::v1::MLTrainingMetadata& _internal_ml_training_metadata() const; + ::viam::app::v1::MLTrainingMetadata* _internal_mutable_ml_training_metadata(); + public: + void unsafe_arena_set_allocated_ml_training_metadata( + ::viam::app::v1::MLTrainingMetadata* ml_training_metadata); + ::viam::app::v1::MLTrainingMetadata* unsafe_arena_release_ml_training_metadata(); + void clear_metadata(); MetadataCase metadata_case() const; // @@protoc_insertion_point(class_scope:viam.app.v1.RegistryItem) @@ -21247,6 +21463,7 @@ class RegistryItem final : class _Internal; void set_has_module_metadata(); void set_has_ml_model_metadata(); + void set_has_ml_training_metadata(); inline bool has_metadata() const; inline void clear_has_metadata(); @@ -21273,6 +21490,7 @@ class RegistryItem final : ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::viam::app::v1::ModuleMetadata* module_metadata_; ::viam::app::v1::MLModelMetadata* ml_model_metadata_; + ::viam::app::v1::MLTrainingMetadata* ml_training_metadata_; } metadata_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -21329,7 +21547,7 @@ class GetRegistryItemRequest final : &_GetRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 125; + 126; friend void swap(GetRegistryItemRequest& a, GetRegistryItemRequest& b) { a.Swap(&b); @@ -21477,7 +21695,7 @@ class GetRegistryItemResponse final : &_GetRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 126; + 127; friend void swap(GetRegistryItemResponse& a, GetRegistryItemResponse& b) { a.Swap(&b); @@ -21629,7 +21847,7 @@ class CreateRegistryItemRequest final : &_CreateRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 127; + 128; friend void swap(CreateRegistryItemRequest& a, CreateRegistryItemRequest& b) { a.Swap(&b); @@ -21803,7 +22021,7 @@ class CreateRegistryItemResponse final : &_CreateRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 128; + 129; friend void swap(CreateRegistryItemResponse& a, CreateRegistryItemResponse& b) { a.Swap(&b); @@ -21920,7 +22138,7 @@ class UpdateRegistryItemRequest final : &_UpdateRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 129; + 130; friend void swap(UpdateRegistryItemRequest& a, UpdateRegistryItemRequest& b) { a.Swap(&b); @@ -22105,7 +22323,7 @@ class UpdateRegistryItemResponse final : &_UpdateRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 130; + 131; friend void swap(UpdateRegistryItemResponse& a, UpdateRegistryItemResponse& b) { a.Swap(&b); @@ -22222,7 +22440,7 @@ class ListRegistryItemsRequest final : &_ListRegistryItemsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 131; + 132; friend void swap(ListRegistryItemsRequest& a, ListRegistryItemsRequest& b) { a.Swap(&b); @@ -22501,7 +22719,7 @@ class ListRegistryItemsResponse final : &_ListRegistryItemsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 132; + 133; friend void swap(ListRegistryItemsResponse& a, ListRegistryItemsResponse& b) { a.Swap(&b); @@ -22653,7 +22871,7 @@ class DeleteRegistryItemRequest final : &_DeleteRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 133; + 134; friend void swap(DeleteRegistryItemRequest& a, DeleteRegistryItemRequest& b) { a.Swap(&b); @@ -22800,7 +23018,7 @@ class DeleteRegistryItemResponse final : &_DeleteRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 134; + 135; friend void swap(DeleteRegistryItemResponse& a, DeleteRegistryItemResponse& b) { a.Swap(&b); @@ -22917,7 +23135,7 @@ class CreateModuleRequest final : &_CreateModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 135; + 136; friend void swap(CreateModuleRequest& a, CreateModuleRequest& b) { a.Swap(&b); @@ -23081,7 +23299,7 @@ class CreateModuleResponse final : &_CreateModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 136; + 137; friend void swap(CreateModuleResponse& a, CreateModuleResponse& b) { a.Swap(&b); @@ -23245,7 +23463,7 @@ class UpdateModuleRequest final : &_UpdateModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 137; + 138; friend void swap(UpdateModuleRequest& a, UpdateModuleRequest& b) { a.Swap(&b); @@ -23472,7 +23690,7 @@ class UpdateModuleResponse final : &_UpdateModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 138; + 139; friend void swap(UpdateModuleResponse& a, UpdateModuleResponse& b) { a.Swap(&b); @@ -23620,7 +23838,7 @@ class Model final : &_Model_default_instance_); } static constexpr int kIndexInFileMessages = - 139; + 140; friend void swap(Model& a, Model& b) { a.Swap(&b); @@ -23784,7 +24002,7 @@ class ModuleFileInfo final : &_ModuleFileInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 140; + 141; friend void swap(ModuleFileInfo& a, ModuleFileInfo& b) { a.Swap(&b); @@ -23970,7 +24188,7 @@ class UploadModuleFileRequest final : &_UploadModuleFileRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 141; + 142; friend void swap(UploadModuleFileRequest& a, UploadModuleFileRequest& b) { a.Swap(&b); @@ -24155,7 +24373,7 @@ class UploadModuleFileResponse final : &_UploadModuleFileResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 142; + 143; friend void swap(UploadModuleFileResponse& a, UploadModuleFileResponse& b) { a.Swap(&b); @@ -24303,7 +24521,7 @@ class GetModuleRequest final : &_GetModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 143; + 144; friend void swap(GetModuleRequest& a, GetModuleRequest& b) { a.Swap(&b); @@ -24451,7 +24669,7 @@ class GetModuleResponse final : &_GetModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 144; + 145; friend void swap(GetModuleResponse& a, GetModuleResponse& b) { a.Swap(&b); @@ -24603,7 +24821,7 @@ class Module final : &_Module_default_instance_); } static constexpr int kIndexInFileMessages = - 145; + 146; friend void swap(Module& a, Module& b) { a.Swap(&b); @@ -24920,7 +25138,7 @@ class VersionHistory final : &_VersionHistory_default_instance_); } static constexpr int kIndexInFileMessages = - 146; + 147; friend void swap(VersionHistory& a, VersionHistory& b) { a.Swap(&b); @@ -25124,7 +25342,7 @@ class Uploads final : &_Uploads_default_instance_); } static constexpr int kIndexInFileMessages = - 147; + 148; friend void swap(Uploads& a, Uploads& b) { a.Swap(&b); @@ -25292,7 +25510,7 @@ class ListModulesRequest final : &_ListModulesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 148; + 149; friend void swap(ListModulesRequest& a, ListModulesRequest& b) { a.Swap(&b); @@ -25445,7 +25663,7 @@ class ListModulesResponse final : &_ListModulesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 149; + 150; friend void swap(ListModulesResponse& a, ListModulesResponse& b) { a.Swap(&b); @@ -25597,7 +25815,7 @@ class GetUserIDByEmailRequest final : &_GetUserIDByEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 150; + 151; friend void swap(GetUserIDByEmailRequest& a, GetUserIDByEmailRequest& b) { a.Swap(&b); @@ -25745,7 +25963,7 @@ class GetUserIDByEmailResponse final : &_GetUserIDByEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 151; + 152; friend void swap(GetUserIDByEmailResponse& a, GetUserIDByEmailResponse& b) { a.Swap(&b); @@ -25893,7 +26111,7 @@ class ListOrganizationsByUserRequest final : &_ListOrganizationsByUserRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 152; + 153; friend void swap(ListOrganizationsByUserRequest& a, ListOrganizationsByUserRequest& b) { a.Swap(&b); @@ -26041,7 +26259,7 @@ class OrgDetails final : &_OrgDetails_default_instance_); } static constexpr int kIndexInFileMessages = - 153; + 154; friend void swap(OrgDetails& a, OrgDetails& b) { a.Swap(&b); @@ -26205,7 +26423,7 @@ class ListOrganizationsByUserResponse final : &_ListOrganizationsByUserResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 154; + 155; friend void swap(ListOrganizationsByUserResponse& a, ListOrganizationsByUserResponse& b) { a.Swap(&b); @@ -26357,7 +26575,7 @@ class CreateKeyRequest final : &_CreateKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 155; + 156; friend void swap(CreateKeyRequest& a, CreateKeyRequest& b) { a.Swap(&b); @@ -26525,7 +26743,7 @@ class CreateKeyResponse final : &_CreateKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 156; + 157; friend void swap(CreateKeyResponse& a, CreateKeyResponse& b) { a.Swap(&b); @@ -26689,7 +26907,7 @@ class DeleteKeyRequest final : &_DeleteKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 157; + 158; friend void swap(DeleteKeyRequest& a, DeleteKeyRequest& b) { a.Swap(&b); @@ -26836,7 +27054,7 @@ class DeleteKeyResponse final : &_DeleteKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 158; + 159; friend void swap(DeleteKeyResponse& a, DeleteKeyResponse& b) { a.Swap(&b); @@ -26953,7 +27171,7 @@ class AuthorizationDetails final : &_AuthorizationDetails_default_instance_); } static constexpr int kIndexInFileMessages = - 159; + 160; friend void swap(AuthorizationDetails& a, AuthorizationDetails& b) { a.Swap(&b); @@ -27165,7 +27383,7 @@ class APIKeyWithAuthorizations final : &_APIKeyWithAuthorizations_default_instance_); } static constexpr int kIndexInFileMessages = - 160; + 161; friend void swap(APIKeyWithAuthorizations& a, APIKeyWithAuthorizations& b) { a.Swap(&b); @@ -27337,7 +27555,7 @@ class ListKeysRequest final : &_ListKeysRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 161; + 162; friend void swap(ListKeysRequest& a, ListKeysRequest& b) { a.Swap(&b); @@ -27485,7 +27703,7 @@ class ListKeysResponse final : &_ListKeysResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 162; + 163; friend void swap(ListKeysResponse& a, ListKeysResponse& b) { a.Swap(&b); @@ -27637,7 +27855,7 @@ class RotateKeyRequest final : &_RotateKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 163; + 164; friend void swap(RotateKeyRequest& a, RotateKeyRequest& b) { a.Swap(&b); @@ -27785,7 +28003,7 @@ class RotateKeyResponse final : &_RotateKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 164; + 165; friend void swap(RotateKeyResponse& a, RotateKeyResponse& b) { a.Swap(&b); @@ -27949,7 +28167,7 @@ class CreateKeyFromExistingKeyAuthorizationsRequest final : &_CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 165; + 166; friend void swap(CreateKeyFromExistingKeyAuthorizationsRequest& a, CreateKeyFromExistingKeyAuthorizationsRequest& b) { a.Swap(&b); @@ -28097,7 +28315,7 @@ class CreateKeyFromExistingKeyAuthorizationsResponse final : &_CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 166; + 167; friend void swap(CreateKeyFromExistingKeyAuthorizationsResponse& a, CreateKeyFromExistingKeyAuthorizationsResponse& b) { a.Swap(&b); @@ -41384,6 +41602,145 @@ MLModelMetadata::mutable_versions() { // ------------------------------------------------------------------- +// MLTrainingMetadata + +// repeated string versions = 1 [json_name = "versions"]; +inline int MLTrainingMetadata::_internal_versions_size() const { + return versions_.size(); +} +inline int MLTrainingMetadata::versions_size() const { + return _internal_versions_size(); +} +inline void MLTrainingMetadata::clear_versions() { + versions_.Clear(); +} +inline std::string* MLTrainingMetadata::add_versions() { + std::string* _s = _internal_add_versions(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.MLTrainingMetadata.versions) + return _s; +} +inline const std::string& MLTrainingMetadata::_internal_versions(int index) const { + return versions_.Get(index); +} +inline const std::string& MLTrainingMetadata::versions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.versions) + return _internal_versions(index); +} +inline std::string* MLTrainingMetadata::mutable_versions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.MLTrainingMetadata.versions) + return versions_.Mutable(index); +} +inline void MLTrainingMetadata::set_versions(int index, const std::string& value) { + versions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.versions) +} +inline void MLTrainingMetadata::set_versions(int index, std::string&& value) { + versions_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.versions) +} +inline void MLTrainingMetadata::set_versions(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + versions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.MLTrainingMetadata.versions) +} +inline void MLTrainingMetadata::set_versions(int index, const char* value, size_t size) { + versions_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.MLTrainingMetadata.versions) +} +inline std::string* MLTrainingMetadata::_internal_add_versions() { + return versions_.Add(); +} +inline void MLTrainingMetadata::add_versions(const std::string& value) { + versions_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.MLTrainingMetadata.versions) +} +inline void MLTrainingMetadata::add_versions(std::string&& value) { + versions_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.MLTrainingMetadata.versions) +} +inline void MLTrainingMetadata::add_versions(const char* value) { + GOOGLE_DCHECK(value != nullptr); + versions_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.MLTrainingMetadata.versions) +} +inline void MLTrainingMetadata::add_versions(const char* value, size_t size) { + versions_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.MLTrainingMetadata.versions) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +MLTrainingMetadata::versions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.MLTrainingMetadata.versions) + return versions_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +MLTrainingMetadata::mutable_versions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.MLTrainingMetadata.versions) + return &versions_; +} + +// .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; +inline void MLTrainingMetadata::clear_model_type() { + model_type_ = 0; +} +inline ::viam::app::mltraining::v1::ModelType MLTrainingMetadata::_internal_model_type() const { + return static_cast< ::viam::app::mltraining::v1::ModelType >(model_type_); +} +inline ::viam::app::mltraining::v1::ModelType MLTrainingMetadata::model_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.model_type) + return _internal_model_type(); +} +inline void MLTrainingMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { + + model_type_ = value; +} +inline void MLTrainingMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { + _internal_set_model_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.model_type) +} + +// .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; +inline void MLTrainingMetadata::clear_model_framework() { + model_framework_ = 0; +} +inline ::viam::app::mltraining::v1::ModelFramework MLTrainingMetadata::_internal_model_framework() const { + return static_cast< ::viam::app::mltraining::v1::ModelFramework >(model_framework_); +} +inline ::viam::app::mltraining::v1::ModelFramework MLTrainingMetadata::model_framework() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.model_framework) + return _internal_model_framework(); +} +inline void MLTrainingMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + + model_framework_ = value; +} +inline void MLTrainingMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + _internal_set_model_framework(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.model_framework) +} + +// bool draft = 4 [json_name = "draft"]; +inline void MLTrainingMetadata::clear_draft() { + draft_ = false; +} +inline bool MLTrainingMetadata::_internal_draft() const { + return draft_; +} +inline bool MLTrainingMetadata::draft() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.draft) + return _internal_draft(); +} +inline void MLTrainingMetadata::_internal_set_draft(bool value) { + + draft_ = value; +} +inline void MLTrainingMetadata::set_draft(bool value) { + _internal_set_draft(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.draft) +} + +// ------------------------------------------------------------------- + // RegistryItem // string item_id = 1 [json_name = "itemId"]; @@ -41954,6 +42311,80 @@ inline ::viam::app::v1::MLModelMetadata* RegistryItem::mutable_ml_model_metadata return _msg; } +// .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; +inline bool RegistryItem::_internal_has_ml_training_metadata() const { + return metadata_case() == kMlTrainingMetadata; +} +inline bool RegistryItem::has_ml_training_metadata() const { + return _internal_has_ml_training_metadata(); +} +inline void RegistryItem::set_has_ml_training_metadata() { + _oneof_case_[0] = kMlTrainingMetadata; +} +inline void RegistryItem::clear_ml_training_metadata() { + if (_internal_has_ml_training_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_training_metadata_; + } + clear_has_metadata(); + } +} +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::release_ml_training_metadata() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.ml_training_metadata) + if (_internal_has_ml_training_metadata()) { + clear_has_metadata(); + ::viam::app::v1::MLTrainingMetadata* temp = metadata_.ml_training_metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + metadata_.ml_training_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::app::v1::MLTrainingMetadata& RegistryItem::_internal_ml_training_metadata() const { + return _internal_has_ml_training_metadata() + ? *metadata_.ml_training_metadata_ + : reinterpret_cast< ::viam::app::v1::MLTrainingMetadata&>(::viam::app::v1::_MLTrainingMetadata_default_instance_); +} +inline const ::viam::app::v1::MLTrainingMetadata& RegistryItem::ml_training_metadata() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.ml_training_metadata) + return _internal_ml_training_metadata(); +} +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::unsafe_arena_release_ml_training_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.RegistryItem.ml_training_metadata) + if (_internal_has_ml_training_metadata()) { + clear_has_metadata(); + ::viam::app::v1::MLTrainingMetadata* temp = metadata_.ml_training_metadata_; + metadata_.ml_training_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegistryItem::unsafe_arena_set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* ml_training_metadata) { + clear_metadata(); + if (ml_training_metadata) { + set_has_ml_training_metadata(); + metadata_.ml_training_metadata_ = ml_training_metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.ml_training_metadata) +} +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::_internal_mutable_ml_training_metadata() { + if (!_internal_has_ml_training_metadata()) { + clear_metadata(); + set_has_ml_training_metadata(); + metadata_.ml_training_metadata_ = CreateMaybeMessage< ::viam::app::v1::MLTrainingMetadata >(GetArenaForAllocation()); + } + return metadata_.ml_training_metadata_; +} +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::mutable_ml_training_metadata() { + ::viam::app::v1::MLTrainingMetadata* _msg = _internal_mutable_ml_training_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.ml_training_metadata) + return _msg; +} + // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; inline bool RegistryItem::_internal_has_created_at() const { return this != internal_default_instance() && created_at_ != nullptr; @@ -46857,6 +47288,8 @@ inline void CreateKeyFromExistingKeyAuthorizationsResponse::set_allocated_key(st // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/app/v1/billing.pb.cc b/src/viam/api/app/v1/billing.pb.cc index 342463c3b..312267895 100644 --- a/src/viam/api/app/v1/billing.pb.cc +++ b/src/viam/api/app/v1/billing.pb.cc @@ -112,7 +112,10 @@ PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse( , standard_compute_usage_cost_(0) , discount_amount_(0) , total_usage_with_discount_(0) - , total_usage_without_discount_(0){} + , total_usage_without_discount_(0) + , per_machine_usage_cost_(0) + , binary_data_cloud_storage_usage_cost_(0) + , other_cloud_storage_usage_cost_(0){} struct GetCurrentMonthUsageResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -277,6 +280,9 @@ const uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTIO PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, discount_amount_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, total_usage_with_discount_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, total_usage_without_discount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, per_machine_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, binary_data_cloud_storage_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, other_cloud_storage_usage_cost_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -336,12 +342,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 38, -1, -1, sizeof(::viam::app::v1::PaymentMethodCard)}, { 46, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageRequest)}, { 53, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageResponse)}, - { 69, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, - { 76, 86, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, - { 90, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, - { 97, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, - { 105, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, - { 113, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, + { 72, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, + { 79, 89, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, + { 93, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, + { 100, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, + { 108, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, + { 116, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -386,7 +392,7 @@ const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTI "MethodCard\022\024\n\005brand\030\001 \001(\tR\005brand\022(\n\020last" "_four_digits\030\002 \001(\tR\016lastFourDigits\"4\n\033Ge" "tCurrentMonthUsageRequest\022\025\n\006org_id\030\001 \001(" - "\tR\005orgId\"\320\004\n\034GetCurrentMonthUsageRespons" + "\tR\005orgId\"\230\006\n\034GetCurrentMonthUsageRespons" "e\0229\n\nstart_date\030\001 \001(\0132\032.google.protobuf." "TimestampR\tstartDate\0225\n\010end_date\030\002 \001(\0132\032" ".google.protobuf.TimestampR\007endDate\0227\n\030c" @@ -401,7 +407,12 @@ const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTI "9\n\031total_usage_with_discount\030\t \001(\001R\026tota" "lUsageWithDiscount\022\?\n\034total_usage_withou" "t_discount\030\n \001(\001R\031totalUsageWithoutDisco" - "unt\"8\n\037GetOrgBillingInformationRequest\022\025" + "unt\0223\n\026per_machine_usage_cost\030\013 \001(\001R\023per" + "MachineUsageCost\022M\n$binary_data_cloud_st" + "orage_usage_cost\030\014 \001(\001R\037binaryDataCloudS" + "torageUsageCost\022B\n\036other_cloud_storage_u" + "sage_cost\030\r \001(\001R\032otherCloudStorageUsageC" + "ost\"8\n\037GetOrgBillingInformationRequest\022\025" "\n\006org_id\030\001 \001(\tR\005orgId\"\374\001\n GetOrgBillingI" "nformationResponse\0222\n\004type\030\001 \001(\0162\036.viam." "app.v1.PaymentMethodTypeR\004type\022#\n\rbillin" @@ -437,7 +448,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fbilling_ }; static ::_pbi::once_flag descriptor_table_app_2fv1_2fbilling_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fbilling_2eproto = { - false, false, 2819, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, + false, false, 3019, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, "app/v1/billing.proto", &descriptor_table_app_2fv1_2fbilling_2eproto_once, descriptor_table_app_2fv1_2fbilling_2eproto_deps, 1, 12, schemas, file_default_instances, TableStruct_app_2fv1_2fbilling_2eproto::offsets, @@ -2322,16 +2333,16 @@ GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse(const GetCurrentMonth end_date_ = nullptr; } ::memcpy(&cloud_storage_usage_cost_, &from.cloud_storage_usage_cost_, - static_cast(reinterpret_cast(&total_usage_without_discount_) - - reinterpret_cast(&cloud_storage_usage_cost_)) + sizeof(total_usage_without_discount_)); + static_cast(reinterpret_cast(&other_cloud_storage_usage_cost_) - + reinterpret_cast(&cloud_storage_usage_cost_)) + sizeof(other_cloud_storage_usage_cost_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetCurrentMonthUsageResponse) } inline void GetCurrentMonthUsageResponse::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&start_date_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&total_usage_without_discount_) - - reinterpret_cast(&start_date_)) + sizeof(total_usage_without_discount_)); + 0, static_cast(reinterpret_cast(&other_cloud_storage_usage_cost_) - + reinterpret_cast(&start_date_)) + sizeof(other_cloud_storage_usage_cost_)); } GetCurrentMonthUsageResponse::~GetCurrentMonthUsageResponse() { @@ -2368,8 +2379,8 @@ void GetCurrentMonthUsageResponse::Clear() { } end_date_ = nullptr; ::memset(&cloud_storage_usage_cost_, 0, static_cast( - reinterpret_cast(&total_usage_without_discount_) - - reinterpret_cast(&cloud_storage_usage_cost_)) + sizeof(total_usage_without_discount_)); + reinterpret_cast(&other_cloud_storage_usage_cost_) - + reinterpret_cast(&cloud_storage_usage_cost_)) + sizeof(other_cloud_storage_usage_cost_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2459,6 +2470,30 @@ const char* GetCurrentMonthUsageResponse::_InternalParse(const char* ptr, ::_pbi } else goto handle_unusual; continue; + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 89)) { + per_machine_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 97)) { + binary_data_cloud_storage_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 105)) { + other_cloud_storage_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2582,6 +2617,36 @@ uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteDoubleToArray(10, this->_internal_total_usage_without_discount(), target); } + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_per_machine_usage_cost = this->_internal_per_machine_usage_cost(); + uint64_t raw_per_machine_usage_cost; + memcpy(&raw_per_machine_usage_cost, &tmp_per_machine_usage_cost, sizeof(tmp_per_machine_usage_cost)); + if (raw_per_machine_usage_cost != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(11, this->_internal_per_machine_usage_cost(), target); + } + + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_binary_data_cloud_storage_usage_cost = this->_internal_binary_data_cloud_storage_usage_cost(); + uint64_t raw_binary_data_cloud_storage_usage_cost; + memcpy(&raw_binary_data_cloud_storage_usage_cost, &tmp_binary_data_cloud_storage_usage_cost, sizeof(tmp_binary_data_cloud_storage_usage_cost)); + if (raw_binary_data_cloud_storage_usage_cost != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_binary_data_cloud_storage_usage_cost(), target); + } + + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_other_cloud_storage_usage_cost = this->_internal_other_cloud_storage_usage_cost(); + uint64_t raw_other_cloud_storage_usage_cost; + memcpy(&raw_other_cloud_storage_usage_cost, &tmp_other_cloud_storage_usage_cost, sizeof(tmp_other_cloud_storage_usage_cost)); + if (raw_other_cloud_storage_usage_cost != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(13, this->_internal_other_cloud_storage_usage_cost(), 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); @@ -2684,6 +2749,33 @@ size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 1 + 8; } + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_per_machine_usage_cost = this->_internal_per_machine_usage_cost(); + uint64_t raw_per_machine_usage_cost; + memcpy(&raw_per_machine_usage_cost, &tmp_per_machine_usage_cost, sizeof(tmp_per_machine_usage_cost)); + if (raw_per_machine_usage_cost != 0) { + total_size += 1 + 8; + } + + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_binary_data_cloud_storage_usage_cost = this->_internal_binary_data_cloud_storage_usage_cost(); + uint64_t raw_binary_data_cloud_storage_usage_cost; + memcpy(&raw_binary_data_cloud_storage_usage_cost, &tmp_binary_data_cloud_storage_usage_cost, sizeof(tmp_binary_data_cloud_storage_usage_cost)); + if (raw_binary_data_cloud_storage_usage_cost != 0) { + total_size += 1 + 8; + } + + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_other_cloud_storage_usage_cost = this->_internal_other_cloud_storage_usage_cost(); + uint64_t raw_other_cloud_storage_usage_cost; + memcpy(&raw_other_cloud_storage_usage_cost, &tmp_other_cloud_storage_usage_cost, sizeof(tmp_other_cloud_storage_usage_cost)); + if (raw_other_cloud_storage_usage_cost != 0) { + total_size += 1 + 8; + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -2768,6 +2860,27 @@ void GetCurrentMonthUsageResponse::MergeFrom(const GetCurrentMonthUsageResponse& if (raw_total_usage_without_discount != 0) { _internal_set_total_usage_without_discount(from._internal_total_usage_without_discount()); } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_per_machine_usage_cost = from._internal_per_machine_usage_cost(); + uint64_t raw_per_machine_usage_cost; + memcpy(&raw_per_machine_usage_cost, &tmp_per_machine_usage_cost, sizeof(tmp_per_machine_usage_cost)); + if (raw_per_machine_usage_cost != 0) { + _internal_set_per_machine_usage_cost(from._internal_per_machine_usage_cost()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_binary_data_cloud_storage_usage_cost = from._internal_binary_data_cloud_storage_usage_cost(); + uint64_t raw_binary_data_cloud_storage_usage_cost; + memcpy(&raw_binary_data_cloud_storage_usage_cost, &tmp_binary_data_cloud_storage_usage_cost, sizeof(tmp_binary_data_cloud_storage_usage_cost)); + if (raw_binary_data_cloud_storage_usage_cost != 0) { + _internal_set_binary_data_cloud_storage_usage_cost(from._internal_binary_data_cloud_storage_usage_cost()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_other_cloud_storage_usage_cost = from._internal_other_cloud_storage_usage_cost(); + uint64_t raw_other_cloud_storage_usage_cost; + memcpy(&raw_other_cloud_storage_usage_cost, &tmp_other_cloud_storage_usage_cost, sizeof(tmp_other_cloud_storage_usage_cost)); + if (raw_other_cloud_storage_usage_cost != 0) { + _internal_set_other_cloud_storage_usage_cost(from._internal_other_cloud_storage_usage_cost()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -2786,8 +2899,8 @@ void GetCurrentMonthUsageResponse::InternalSwap(GetCurrentMonthUsageResponse* ot using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, total_usage_without_discount_) - + sizeof(GetCurrentMonthUsageResponse::total_usage_without_discount_) + PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, other_cloud_storage_usage_cost_) + + sizeof(GetCurrentMonthUsageResponse::other_cloud_storage_usage_cost_) - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, start_date_)>( reinterpret_cast(&start_date_), reinterpret_cast(&other->start_date_)); diff --git a/src/viam/api/app/v1/billing.pb.h b/src/viam/api/app/v1/billing.pb.h index 27200c1aa..f729cb299 100644 --- a/src/viam/api/app/v1/billing.pb.h +++ b/src/viam/api/app/v1/billing.pb.h @@ -1303,6 +1303,9 @@ class GetCurrentMonthUsageResponse final : kDiscountAmountFieldNumber = 8, kTotalUsageWithDiscountFieldNumber = 9, kTotalUsageWithoutDiscountFieldNumber = 10, + kPerMachineUsageCostFieldNumber = 11, + kBinaryDataCloudStorageUsageCostFieldNumber = 12, + kOtherCloudStorageUsageCostFieldNumber = 13, }; // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; bool has_start_date() const; @@ -1412,6 +1415,33 @@ class GetCurrentMonthUsageResponse final : void _internal_set_total_usage_without_discount(double value); public: + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + void clear_per_machine_usage_cost(); + double per_machine_usage_cost() const; + void set_per_machine_usage_cost(double value); + private: + double _internal_per_machine_usage_cost() const; + void _internal_set_per_machine_usage_cost(double value); + public: + + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + void clear_binary_data_cloud_storage_usage_cost(); + double binary_data_cloud_storage_usage_cost() const; + void set_binary_data_cloud_storage_usage_cost(double value); + private: + double _internal_binary_data_cloud_storage_usage_cost() const; + void _internal_set_binary_data_cloud_storage_usage_cost(double value); + public: + + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + void clear_other_cloud_storage_usage_cost(); + double other_cloud_storage_usage_cost() const; + void set_other_cloud_storage_usage_cost(double value); + private: + double _internal_other_cloud_storage_usage_cost() const; + void _internal_set_other_cloud_storage_usage_cost(double value); + public: + // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageResponse) private: class _Internal; @@ -1429,6 +1459,9 @@ class GetCurrentMonthUsageResponse final : double discount_amount_; double total_usage_with_discount_; double total_usage_without_discount_; + double per_machine_usage_cost_; + double binary_data_cloud_storage_usage_cost_; + double other_cloud_storage_usage_cost_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; }; @@ -4024,6 +4057,66 @@ inline void GetCurrentMonthUsageResponse::set_total_usage_without_discount(doubl // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount) } +// double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; +inline void GetCurrentMonthUsageResponse::clear_per_machine_usage_cost() { + per_machine_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_per_machine_usage_cost() const { + return per_machine_usage_cost_; +} +inline double GetCurrentMonthUsageResponse::per_machine_usage_cost() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost) + return _internal_per_machine_usage_cost(); +} +inline void GetCurrentMonthUsageResponse::_internal_set_per_machine_usage_cost(double value) { + + per_machine_usage_cost_ = value; +} +inline void GetCurrentMonthUsageResponse::set_per_machine_usage_cost(double value) { + _internal_set_per_machine_usage_cost(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost) +} + +// double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; +inline void GetCurrentMonthUsageResponse::clear_binary_data_cloud_storage_usage_cost() { + binary_data_cloud_storage_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_binary_data_cloud_storage_usage_cost() const { + return binary_data_cloud_storage_usage_cost_; +} +inline double GetCurrentMonthUsageResponse::binary_data_cloud_storage_usage_cost() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost) + return _internal_binary_data_cloud_storage_usage_cost(); +} +inline void GetCurrentMonthUsageResponse::_internal_set_binary_data_cloud_storage_usage_cost(double value) { + + binary_data_cloud_storage_usage_cost_ = value; +} +inline void GetCurrentMonthUsageResponse::set_binary_data_cloud_storage_usage_cost(double value) { + _internal_set_binary_data_cloud_storage_usage_cost(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost) +} + +// double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; +inline void GetCurrentMonthUsageResponse::clear_other_cloud_storage_usage_cost() { + other_cloud_storage_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_other_cloud_storage_usage_cost() const { + return other_cloud_storage_usage_cost_; +} +inline double GetCurrentMonthUsageResponse::other_cloud_storage_usage_cost() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost) + return _internal_other_cloud_storage_usage_cost(); +} +inline void GetCurrentMonthUsageResponse::_internal_set_other_cloud_storage_usage_cost(double value) { + + other_cloud_storage_usage_cost_ = value; +} +inline void GetCurrentMonthUsageResponse::set_other_cloud_storage_usage_cost(double value) { + _internal_set_other_cloud_storage_usage_cost(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost) +} + // ------------------------------------------------------------------- // GetOrgBillingInformationRequest diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index 8ff1c3c88..24be1d11c 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: 7a6bc1e3207144b38e9066861e1de0ff + commit: 4ed3bc159a8b4ac68fe253218760d035 - remote: buf.build owner: viamrobotics repository: api - commit: a8f357e9f51d487db3734879ac7e1455 + commit: f1198c62f43b44da8ce22f2a518d884f - 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 6507a8cae..101485e41 100644 --- a/src/viam/api/common/v1/common.pb.cc +++ b/src/viam/api/common/v1/common.pb.cc @@ -28,8 +28,7 @@ PROTOBUF_CONSTEXPR ResourceName::ResourceName( : namespace__(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , subtype_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , machine_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct ResourceNameDefaultTypeInternal { PROTOBUF_CONSTEXPR ResourceNameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -39,65 +38,6 @@ struct ResourceNameDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNameDefaultTypeInternal _ResourceName_default_instance_; -PROTOBUF_CONSTEXPR BoardStatus_AnalogsEntry_DoNotUse::BoardStatus_AnalogsEntry_DoNotUse( - ::_pbi::ConstantInitialized){} -struct BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal() {} - union { - BoardStatus_AnalogsEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal _BoardStatus_AnalogsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR BoardStatus_DigitalInterruptsEntry_DoNotUse::BoardStatus_DigitalInterruptsEntry_DoNotUse( - ::_pbi::ConstantInitialized){} -struct BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() {} - union { - BoardStatus_DigitalInterruptsEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _BoardStatus_DigitalInterruptsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR BoardStatus::BoardStatus( - ::_pbi::ConstantInitialized) - : analogs_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) - , digital_interrupts_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} -struct BoardStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR BoardStatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~BoardStatusDefaultTypeInternal() {} - union { - BoardStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoardStatusDefaultTypeInternal _BoardStatus_default_instance_; -PROTOBUF_CONSTEXPR AnalogStatus::AnalogStatus( - ::_pbi::ConstantInitialized) - : value_(0){} -struct AnalogStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnalogStatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~AnalogStatusDefaultTypeInternal() {} - union { - AnalogStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnalogStatusDefaultTypeInternal _AnalogStatus_default_instance_; -PROTOBUF_CONSTEXPR DigitalInterruptStatus::DigitalInterruptStatus( - ::_pbi::ConstantInitialized) - : value_(int64_t{0}){} -struct DigitalInterruptStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR DigitalInterruptStatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~DigitalInterruptStatusDefaultTypeInternal() {} - union { - DigitalInterruptStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DigitalInterruptStatusDefaultTypeInternal _DigitalInterruptStatus_default_instance_; PROTOBUF_CONSTEXPR Pose::Pose( ::_pbi::ConstantInitialized) : x_(0) @@ -447,12 +387,12 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace v1 } // namespace common } // namespace viam -static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[32]; +static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[27]; 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; const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _has_bits_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -462,54 +402,6 @@ const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECT PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, type_), PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, subtype_), PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, name_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, machine_part_id_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse, _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::BoardStatus_AnalogsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse, _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::BoardStatus_DigitalInterruptsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus, _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::BoardStatus, analogs_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::BoardStatus, digital_interrupts_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::AnalogStatus, _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::AnalogStatus, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DigitalInterruptStatus, _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::DigitalInterruptStatus, value_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _internal_metadata_), ~0u, // no _extensions_ @@ -738,47 +630,37 @@ const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECT PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, fields_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 11, -1, sizeof(::viam::common::v1::ResourceName)}, - { 16, 24, -1, sizeof(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse)}, - { 26, 34, -1, sizeof(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse)}, - { 36, -1, -1, sizeof(::viam::common::v1::BoardStatus)}, - { 44, -1, -1, sizeof(::viam::common::v1::AnalogStatus)}, - { 51, -1, -1, sizeof(::viam::common::v1::DigitalInterruptStatus)}, - { 58, -1, -1, sizeof(::viam::common::v1::Pose)}, - { 71, -1, -1, sizeof(::viam::common::v1::Orientation)}, - { 81, -1, -1, sizeof(::viam::common::v1::PoseInFrame)}, - { 89, -1, -1, sizeof(::viam::common::v1::Vector3)}, - { 98, -1, -1, sizeof(::viam::common::v1::Sphere)}, - { 105, -1, -1, sizeof(::viam::common::v1::Capsule)}, - { 113, -1, -1, sizeof(::viam::common::v1::RectangularPrism)}, - { 120, -1, -1, sizeof(::viam::common::v1::Geometry)}, - { 132, -1, -1, sizeof(::viam::common::v1::GeometriesInFrame)}, - { 140, -1, -1, sizeof(::viam::common::v1::PointCloudObject)}, - { 148, -1, -1, sizeof(::viam::common::v1::GeoPoint)}, - { 156, -1, -1, sizeof(::viam::common::v1::GeoObstacle)}, - { 164, 173, -1, sizeof(::viam::common::v1::Transform)}, - { 176, -1, -1, sizeof(::viam::common::v1::WorldState)}, - { 184, -1, -1, sizeof(::viam::common::v1::ActuatorStatus)}, - { 191, 198, -1, sizeof(::viam::common::v1::ResponseMetadata)}, - { 199, -1, -1, sizeof(::viam::common::v1::DoCommandRequest)}, - { 207, -1, -1, sizeof(::viam::common::v1::DoCommandResponse)}, - { 214, -1, -1, sizeof(::viam::common::v1::GetKinematicsRequest)}, - { 222, -1, -1, sizeof(::viam::common::v1::GetKinematicsResponse)}, - { 230, -1, -1, sizeof(::viam::common::v1::GetGeometriesRequest)}, - { 238, -1, -1, sizeof(::viam::common::v1::GetGeometriesResponse)}, - { 245, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, - { 253, 261, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, - { 263, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, - { 270, -1, -1, sizeof(::viam::common::v1::LogEntry)}, + { 0, -1, -1, sizeof(::viam::common::v1::ResourceName)}, + { 10, -1, -1, sizeof(::viam::common::v1::Pose)}, + { 23, -1, -1, sizeof(::viam::common::v1::Orientation)}, + { 33, -1, -1, sizeof(::viam::common::v1::PoseInFrame)}, + { 41, -1, -1, sizeof(::viam::common::v1::Vector3)}, + { 50, -1, -1, sizeof(::viam::common::v1::Sphere)}, + { 57, -1, -1, sizeof(::viam::common::v1::Capsule)}, + { 65, -1, -1, sizeof(::viam::common::v1::RectangularPrism)}, + { 72, -1, -1, sizeof(::viam::common::v1::Geometry)}, + { 84, -1, -1, sizeof(::viam::common::v1::GeometriesInFrame)}, + { 92, -1, -1, sizeof(::viam::common::v1::PointCloudObject)}, + { 100, -1, -1, sizeof(::viam::common::v1::GeoPoint)}, + { 108, -1, -1, sizeof(::viam::common::v1::GeoObstacle)}, + { 116, 125, -1, sizeof(::viam::common::v1::Transform)}, + { 128, -1, -1, sizeof(::viam::common::v1::WorldState)}, + { 136, -1, -1, sizeof(::viam::common::v1::ActuatorStatus)}, + { 143, 150, -1, sizeof(::viam::common::v1::ResponseMetadata)}, + { 151, -1, -1, sizeof(::viam::common::v1::DoCommandRequest)}, + { 159, -1, -1, sizeof(::viam::common::v1::DoCommandResponse)}, + { 166, -1, -1, sizeof(::viam::common::v1::GetKinematicsRequest)}, + { 174, -1, -1, sizeof(::viam::common::v1::GetKinematicsResponse)}, + { 182, -1, -1, sizeof(::viam::common::v1::GetGeometriesRequest)}, + { 190, -1, -1, sizeof(::viam::common::v1::GetGeometriesResponse)}, + { 197, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, + { 205, 213, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, + { 215, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, + { 222, -1, -1, sizeof(::viam::common::v1::LogEntry)}, }; static const ::_pb::Message* const file_default_instances[] = { &::viam::common::v1::_ResourceName_default_instance_._instance, - &::viam::common::v1::_BoardStatus_AnalogsEntry_DoNotUse_default_instance_._instance, - &::viam::common::v1::_BoardStatus_DigitalInterruptsEntry_DoNotUse_default_instance_._instance, - &::viam::common::v1::_BoardStatus_default_instance_._instance, - &::viam::common::v1::_AnalogStatus_default_instance_._instance, - &::viam::common::v1::_DigitalInterruptStatus_default_instance_._instance, &::viam::common::v1::_Pose_default_instance_._instance, &::viam::common::v1::_Orientation_default_instance_._instance, &::viam::common::v1::_PoseInFrame_default_instance_._instance, @@ -811,102 +693,88 @@ const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SEC "\n\026common/v1/common.proto\022\016viam.common.v1" "\032 google/protobuf/descriptor.proto\032\034goog" "le/protobuf/struct.proto\032\037google/protobu" - "f/timestamp.proto\"\257\001\n\014ResourceName\022\034\n\tna" - "mespace\030\001 \001(\tR\tnamespace\022\022\n\004type\030\002 \001(\tR\004" - "type\022\030\n\007subtype\030\003 \001(\tR\007subtype\022\022\n\004name\030\004" - " \001(\tR\004name\022+\n\017machine_part_id\030\005 \001(\tH\000R\rm" - "achinePartId\210\001\001B\022\n\020_machine_part_id\"\374\002\n\013" - "BoardStatus\022B\n\007analogs\030\001 \003(\0132(.viam.comm" - "on.v1.BoardStatus.AnalogsEntryR\007analogs\022" - "a\n\022digital_interrupts\030\002 \003(\01322.viam.commo" - "n.v1.BoardStatus.DigitalInterruptsEntryR" - "\021digitalInterrupts\032X\n\014AnalogsEntry\022\020\n\003ke" - "y\030\001 \001(\tR\003key\0222\n\005value\030\002 \001(\0132\034.viam.commo" - "n.v1.AnalogStatusR\005value:\0028\001\032l\n\026DigitalI" - "nterruptsEntry\022\020\n\003key\030\001 \001(\tR\003key\022<\n\005valu" - "e\030\002 \001(\0132&.viam.common.v1.DigitalInterrup" - "tStatusR\005value:\0028\001\"$\n\014AnalogStatus\022\024\n\005va" - "lue\030\001 \001(\005R\005value\".\n\026DigitalInterruptStat" - "us\022\024\n\005value\030\001 \001(\003R\005value\"y\n\004Pose\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\022\017\n\003o_" - "x\030\004 \001(\001R\002oX\022\017\n\003o_y\030\005 \001(\001R\002oY\022\017\n\003o_z\030\006 \001(" - "\001R\002oZ\022\024\n\005theta\030\007 \001(\001R\005theta\"V\n\013Orientati" - "on\022\017\n\003o_x\030\001 \001(\001R\002oX\022\017\n\003o_y\030\002 \001(\001R\002oY\022\017\n\003" - "o_z\030\003 \001(\001R\002oZ\022\024\n\005theta\030\004 \001(\001R\005theta\"`\n\013P" - "oseInFrame\022\'\n\017reference_frame\030\001 \001(\tR\016ref" - "erenceFrame\022(\n\004pose\030\002 \001(\0132\024.viam.common." - "v1.PoseR\004pose\"3\n\007Vector3\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\"%\n\006Sphere\022\033\n\t" - "radius_mm\030\001 \001(\001R\010radiusMm\"C\n\007Capsule\022\033\n\t" - "radius_mm\030\001 \001(\001R\010radiusMm\022\033\n\tlength_mm\030\002" - " \001(\001R\010lengthMm\"D\n\020RectangularPrism\0220\n\007di" - "ms_mm\030\001 \001(\0132\027.viam.common.v1.Vector3R\006di" - "msMm\"\374\001\n\010Geometry\022,\n\006center\030\001 \001(\0132\024.viam" - ".common.v1.PoseR\006center\0220\n\006sphere\030\002 \001(\0132" - "\026.viam.common.v1.SphereH\000R\006sphere\0224\n\003box" - "\030\003 \001(\0132 .viam.common.v1.RectangularPrism" - "H\000R\003box\0223\n\007capsule\030\005 \001(\0132\027.viam.common.v" - "1.CapsuleH\000R\007capsule\022\024\n\005label\030\004 \001(\tR\005lab" - "elB\017\n\rgeometry_type\"v\n\021GeometriesInFrame" - "\022\'\n\017reference_frame\030\001 \001(\tR\016referenceFram" - "e\0228\n\ngeometries\030\002 \003(\0132\030.viam.common.v1.G" - "eometryR\ngeometries\"v\n\020PointCloudObject\022" - "\037\n\013point_cloud\030\001 \001(\014R\npointCloud\022A\n\ngeom" - "etries\030\002 \001(\0132!.viam.common.v1.Geometries" - "InFrameR\ngeometries\"D\n\010GeoPoint\022\032\n\010latit" - "ude\030\001 \001(\001R\010latitude\022\034\n\tlongitude\030\002 \001(\001R\t" - "longitude\"}\n\013GeoObstacle\0224\n\010location\030\001 \001" - "(\0132\030.viam.common.v1.GeoPointR\010location\0228" - "\n\ngeometries\030\002 \003(\0132\030.viam.common.v1.Geom" - "etryR\ngeometries\"\342\001\n\tTransform\022\'\n\017refere" - "nce_frame\030\001 \001(\tR\016referenceFrame\022P\n\026pose_" - "in_observer_frame\030\002 \001(\0132\033.viam.common.v1" - ".PoseInFrameR\023poseInObserverFrame\022F\n\017phy" - "sical_object\030\003 \001(\0132\030.viam.common.v1.Geom" - "etryH\000R\016physicalObject\210\001\001B\022\n\020_physical_o" - "bject\"\210\001\n\nWorldState\022\?\n\tobstacles\030\001 \003(\0132" - "!.viam.common.v1.GeometriesInFrameR\tobst" - "acles\0229\n\ntransforms\030\003 \003(\0132\031.viam.common." - "v1.TransformR\ntransforms\"-\n\016ActuatorStat" - "us\022\033\n\tis_moving\030\001 \001(\010R\010isMoving\"d\n\020Respo" - "nseMetadata\022@\n\013captured_at\030\001 \001(\0132\032.googl" - "e.protobuf.TimestampH\000R\ncapturedAt\210\001\001B\016\n" - "\014_captured_at\"Y\n\020DoCommandRequest\022\022\n\004nam" - "e\030\001 \001(\tR\004name\0221\n\007command\030\002 \001(\0132\027.google." - "protobuf.StructR\007command\"D\n\021DoCommandRes" - "ponse\022/\n\006result\030\001 \001(\0132\027.google.protobuf." - "StructR\006result\"Y\n\024GetKinematicsRequest\022\022" - "\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.goog" - "le.protobuf.StructR\005extra\"~\n\025GetKinemati" - "csResponse\022<\n\006format\030\001 \001(\0162$.viam.common" - ".v1.KinematicsFileFormatR\006format\022\'\n\017kine" - "matics_data\030\002 \001(\014R\016kinematicsData\"Y\n\024Get" - "GeometriesRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n" - "\005extra\030c \001(\0132\027.google.protobuf.StructR\005e" - "xtra\"Q\n\025GetGeometriesResponse\0228\n\ngeometr" - "ies\030\001 \003(\0132\030.viam.common.v1.GeometryR\ngeo" - "metries\"W\n\022GetReadingsRequest\022\022\n\004name\030\001 " - "\001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"\271\001\n\023GetReadingsResponse" - "\022M\n\010readings\030\001 \003(\01321.viam.common.v1.GetR" - "eadingsResponse.ReadingsEntryR\010readings\032" - "S\n\rReadingsEntry\022\020\n\003key\030\001 \001(\tR\003key\022,\n\005va" - "lue\030\002 \001(\0132\026.google.protobuf.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\004time\030\003 \001(\0132\032.goog" - "le.protobuf.TimestampR\004time\022\037\n\013logger_na" - "me\030\004 \001(\tR\nloggerName\022\030\n\007message\030\005 \001(\tR\007m" - "essage\022/\n\006caller\030\006 \001(\0132\027.google.protobuf" - ".StructR\006caller\022\024\n\005stack\030\007 \001(\tR\005stack\022/\n" - "\006fields\030\010 \003(\0132\027.google.protobuf.StructR\006" - "fields*\177\n\024KinematicsFileFormat\022&\n\"KINEMA" - "TICS_FILE_FORMAT_UNSPECIFIED\020\000\022\036\n\032KINEMA" - "TICS_FILE_FORMAT_SVA\020\001\022\037\n\033KINEMATICS_FIL" - "E_FORMAT_URDF\020\002:a\n\032safety_heartbeat_moni" - "tored\022\036.google.protobuf.MethodOptions\030\244\222" - "\005 \001(\010R\030safetyHeartbeatMonitored\210\001\001B/\n\022co" - "m.viam.common.v1Z\031go.viam.com/api/common" - "/v1b\006proto3" + "f/timestamp.proto\"n\n\014ResourceName\022\034\n\tnam" + "espace\030\001 \001(\tR\tnamespace\022\022\n\004type\030\002 \001(\tR\004t" + "ype\022\030\n\007subtype\030\003 \001(\tR\007subtype\022\022\n\004name\030\004 " + "\001(\tR\004name\"y\n\004Pose\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\022\017\n\003o_x\030\004 \001(\001R\002oX\022\017\n\003" + "o_y\030\005 \001(\001R\002oY\022\017\n\003o_z\030\006 \001(\001R\002oZ\022\024\n\005theta\030" + "\007 \001(\001R\005theta\"V\n\013Orientation\022\017\n\003o_x\030\001 \001(\001" + "R\002oX\022\017\n\003o_y\030\002 \001(\001R\002oY\022\017\n\003o_z\030\003 \001(\001R\002oZ\022\024" + "\n\005theta\030\004 \001(\001R\005theta\"`\n\013PoseInFrame\022\'\n\017r" + "eference_frame\030\001 \001(\tR\016referenceFrame\022(\n\004" + "pose\030\002 \001(\0132\024.viam.common.v1.PoseR\004pose\"3" + "\n\007Vector3\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\"%\n\006Sphere\022\033\n\tradius_mm\030\001 \001(\001" + "R\010radiusMm\"C\n\007Capsule\022\033\n\tradius_mm\030\001 \001(\001" + "R\010radiusMm\022\033\n\tlength_mm\030\002 \001(\001R\010lengthMm\"" + "D\n\020RectangularPrism\0220\n\007dims_mm\030\001 \001(\0132\027.v" + "iam.common.v1.Vector3R\006dimsMm\"\374\001\n\010Geomet" + "ry\022,\n\006center\030\001 \001(\0132\024.viam.common.v1.Pose" + "R\006center\0220\n\006sphere\030\002 \001(\0132\026.viam.common.v" + "1.SphereH\000R\006sphere\0224\n\003box\030\003 \001(\0132 .viam.c" + "ommon.v1.RectangularPrismH\000R\003box\0223\n\007caps" + "ule\030\005 \001(\0132\027.viam.common.v1.CapsuleH\000R\007ca" + "psule\022\024\n\005label\030\004 \001(\tR\005labelB\017\n\rgeometry_" + "type\"v\n\021GeometriesInFrame\022\'\n\017reference_f" + "rame\030\001 \001(\tR\016referenceFrame\0228\n\ngeometries" + "\030\002 \003(\0132\030.viam.common.v1.GeometryR\ngeomet" + "ries\"v\n\020PointCloudObject\022\037\n\013point_cloud\030" + "\001 \001(\014R\npointCloud\022A\n\ngeometries\030\002 \001(\0132!." + "viam.common.v1.GeometriesInFrameR\ngeomet" + "ries\"D\n\010GeoPoint\022\032\n\010latitude\030\001 \001(\001R\010lati" + "tude\022\034\n\tlongitude\030\002 \001(\001R\tlongitude\"}\n\013Ge" + "oObstacle\0224\n\010location\030\001 \001(\0132\030.viam.commo" + "n.v1.GeoPointR\010location\0228\n\ngeometries\030\002 " + "\003(\0132\030.viam.common.v1.GeometryR\ngeometrie" + "s\"\342\001\n\tTransform\022\'\n\017reference_frame\030\001 \001(\t" + "R\016referenceFrame\022P\n\026pose_in_observer_fra" + "me\030\002 \001(\0132\033.viam.common.v1.PoseInFrameR\023p" + "oseInObserverFrame\022F\n\017physical_object\030\003 " + "\001(\0132\030.viam.common.v1.GeometryH\000R\016physica" + "lObject\210\001\001B\022\n\020_physical_object\"\210\001\n\nWorld" + "State\022\?\n\tobstacles\030\001 \003(\0132!.viam.common.v" + "1.GeometriesInFrameR\tobstacles\0229\n\ntransf" + "orms\030\003 \003(\0132\031.viam.common.v1.TransformR\nt" + "ransforms\"-\n\016ActuatorStatus\022\033\n\tis_moving" + "\030\001 \001(\010R\010isMoving\"d\n\020ResponseMetadata\022@\n\013" + "captured_at\030\001 \001(\0132\032.google.protobuf.Time" + "stampH\000R\ncapturedAt\210\001\001B\016\n\014_captured_at\"Y" + "\n\020DoCommandRequest\022\022\n\004name\030\001 \001(\tR\004name\0221" + "\n\007command\030\002 \001(\0132\027.google.protobuf.Struct" + "R\007command\"D\n\021DoCommandResponse\022/\n\006result" + "\030\001 \001(\0132\027.google.protobuf.StructR\006result\"" + "Y\n\024GetKinematicsRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" + "uctR\005extra\"~\n\025GetKinematicsResponse\022<\n\006f" + "ormat\030\001 \001(\0162$.viam.common.v1.KinematicsF" + "ileFormatR\006format\022\'\n\017kinematics_data\030\002 \001" + "(\014R\016kinematicsData\"Y\n\024GetGeometriesReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027." + "google.protobuf.StructR\005extra\"Q\n\025GetGeom" + "etriesResponse\0228\n\ngeometries\030\001 \003(\0132\030.via" + "m.common.v1.GeometryR\ngeometries\"W\n\022GetR" + "eadingsRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ex" + "tra\030c \001(\0132\027.google.protobuf.StructR\005extr" + "a\"\271\001\n\023GetReadingsResponse\022M\n\010readings\030\001 " + "\003(\01321.viam.common.v1.GetReadingsResponse" + ".ReadingsEntryR\010readings\032S\n\rReadingsEntr" + "y\022\020\n\003key\030\001 \001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.goo" + "gle.protobuf.ValueR\005value:\0028\001\"\227\002\n\010LogEnt" + "ry\022\022\n\004host\030\001 \001(\tR\004host\022\024\n\005level\030\002 \001(\tR\005l" + "evel\022.\n\004time\030\003 \001(\0132\032.google.protobuf.Tim" + "estampR\004time\022\037\n\013logger_name\030\004 \001(\tR\nlogge" + "rName\022\030\n\007message\030\005 \001(\tR\007message\022/\n\006calle" + "r\030\006 \001(\0132\027.google.protobuf.StructR\006caller" + "\022\024\n\005stack\030\007 \001(\tR\005stack\022/\n\006fields\030\010 \003(\0132\027" + ".google.protobuf.StructR\006fields*\177\n\024Kinem" + "aticsFileFormat\022&\n\"KINEMATICS_FILE_FORMA" + "T_UNSPECIFIED\020\000\022\036\n\032KINEMATICS_FILE_FORMA" + "T_SVA\020\001\022\037\n\033KINEMATICS_FILE_FORMAT_URDF\020\002" + ":a\n\032safety_heartbeat_monitored\022\036.google." + "protobuf.MethodOptions\030\244\222\005 \001(\010R\030safetyHe" + "artbeatMonitored\210\001\001B/\n\022com.viam.common.v" + "1Z\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, @@ -915,9 +783,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, 3931, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, + false, false, 3396, 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, 32, + &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 27, 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, @@ -951,10 +819,6 @@ bool KinematicsFileFormat_IsValid(int value) { class ResourceName::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_machine_part_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; ResourceName::ResourceName(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -964,8 +828,7 @@ ResourceName::ResourceName(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:viam.common.v1.ResourceName) } ResourceName::ResourceName(const ResourceName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); namespace__.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -978,861 +841,51 @@ ResourceName::ResourceName(const ResourceName& from) type_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_type().empty()) { - type_.Set(from._internal_type(), - GetArenaForAllocation()); - } - subtype_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - subtype_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_subtype().empty()) { - subtype_.Set(from._internal_subtype(), - GetArenaForAllocation()); - } - 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()); - } - machine_part_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - machine_part_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_machine_part_id()) { - machine_part_id_.Set(from._internal_machine_part_id(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:viam.common.v1.ResourceName) -} - -inline void ResourceName::SharedCtor() { -namespace__.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - namespace__.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -type_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - type_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -subtype_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - subtype_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -name_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - name_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -machine_part_id_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - machine_part_id_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ResourceName::~ResourceName() { - // @@protoc_insertion_point(destructor:viam.common.v1.ResourceName) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ResourceName::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - namespace__.Destroy(); - type_.Destroy(); - subtype_.Destroy(); - name_.Destroy(); - machine_part_id_.Destroy(); -} - -void ResourceName::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void ResourceName::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.common.v1.ResourceName) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - namespace__.ClearToEmpty(); - type_.ClearToEmpty(); - subtype_.ClearToEmpty(); - name_.ClearToEmpty(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - machine_part_id_.ClearNonDefaultToEmpty(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ResourceName::_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 namespace = 1 [json_name = "namespace"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_namespace_(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.namespace")); - } else - goto handle_unusual; - continue; - // string type = 2 [json_name = "type"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_type(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.type")); - } else - goto handle_unusual; - continue; - // string subtype = 3 [json_name = "subtype"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_subtype(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.subtype")); - } else - goto handle_unusual; - continue; - // string name = 4 [json_name = "name"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.name")); - } else - goto handle_unusual; - continue; - // optional string machine_part_id = 5 [json_name = "machinePartId"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_machine_part_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.machine_part_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: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ResourceName::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.ResourceName) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string namespace = 1 [json_name = "namespace"]; - if (!this->_internal_namespace_().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.common.v1.ResourceName.namespace"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_namespace_(), target); - } - - // string type = 2 [json_name = "type"]; - if (!this->_internal_type().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_type().data(), static_cast(this->_internal_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.common.v1.ResourceName.type"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_type(), target); - } - - // string subtype = 3 [json_name = "subtype"]; - if (!this->_internal_subtype().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_subtype().data(), static_cast(this->_internal_subtype().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.common.v1.ResourceName.subtype"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_subtype(), target); - } - - // string name = 4 [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.common.v1.ResourceName.name"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_name(), target); - } - - // optional string machine_part_id = 5 [json_name = "machinePartId"]; - if (_internal_has_machine_part_id()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_machine_part_id().data(), static_cast(this->_internal_machine_part_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.common.v1.ResourceName.machine_part_id"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_machine_part_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.common.v1.ResourceName) - return target; -} - -size_t ResourceName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.ResourceName) - 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 namespace = 1 [json_name = "namespace"]; - if (!this->_internal_namespace_().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_namespace_()); - } - - // string type = 2 [json_name = "type"]; - if (!this->_internal_type().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_type()); - } - - // string subtype = 3 [json_name = "subtype"]; - if (!this->_internal_subtype().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_subtype()); - } - - // string name = 4 [json_name = "name"]; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string machine_part_id = 5 [json_name = "machinePartId"]; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_machine_part_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceName::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ResourceName::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceName::GetClassData() const { return &_class_data_; } - -void ResourceName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void ResourceName::MergeFrom(const ResourceName& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ResourceName) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_namespace_().empty()) { - _internal_set_namespace_(from._internal_namespace_()); - } - if (!from._internal_type().empty()) { - _internal_set_type(from._internal_type()); - } - if (!from._internal_subtype().empty()) { - _internal_set_subtype(from._internal_subtype()); - } - if (!from._internal_name().empty()) { - _internal_set_name(from._internal_name()); - } - if (from._internal_has_machine_part_id()) { - _internal_set_machine_part_id(from._internal_machine_part_id()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void ResourceName::CopyFrom(const ResourceName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.ResourceName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResourceName::IsInitialized() const { - return true; -} - -void ResourceName::InternalSwap(ResourceName* 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( - &namespace__, lhs_arena, - &other->namespace__, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &type_, lhs_arena, - &other->type_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &subtype_, lhs_arena, - &other->subtype_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &name_, lhs_arena, - &other->name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &machine_part_id_, lhs_arena, - &other->machine_part_id_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ResourceName::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[0]); -} - -// =================================================================== - -BoardStatus_AnalogsEntry_DoNotUse::BoardStatus_AnalogsEntry_DoNotUse() {} -BoardStatus_AnalogsEntry_DoNotUse::BoardStatus_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void BoardStatus_AnalogsEntry_DoNotUse::MergeFrom(const BoardStatus_AnalogsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata BoardStatus_AnalogsEntry_DoNotUse::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[1]); -} - -// =================================================================== - -BoardStatus_DigitalInterruptsEntry_DoNotUse::BoardStatus_DigitalInterruptsEntry_DoNotUse() {} -BoardStatus_DigitalInterruptsEntry_DoNotUse::BoardStatus_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void BoardStatus_DigitalInterruptsEntry_DoNotUse::MergeFrom(const BoardStatus_DigitalInterruptsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata BoardStatus_DigitalInterruptsEntry_DoNotUse::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[2]); -} - -// =================================================================== - -class BoardStatus::_Internal { - public: -}; - -BoardStatus::BoardStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - analogs_(arena), - digital_interrupts_(arena) { - SharedCtor(); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &BoardStatus::ArenaDtor); - } - // @@protoc_insertion_point(arena_constructor:viam.common.v1.BoardStatus) -} -BoardStatus::BoardStatus(const BoardStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - analogs_.MergeFrom(from.analogs_); - digital_interrupts_.MergeFrom(from.digital_interrupts_); - // @@protoc_insertion_point(copy_constructor:viam.common.v1.BoardStatus) -} - -inline void BoardStatus::SharedCtor() { -} - -BoardStatus::~BoardStatus() { - // @@protoc_insertion_point(destructor:viam.common.v1.BoardStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void BoardStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - analogs_.Destruct(); - digital_interrupts_.Destruct(); -} - -void BoardStatus::ArenaDtor(void* object) { - BoardStatus* _this = reinterpret_cast< BoardStatus* >(object); - _this->analogs_.Destruct(); - _this->digital_interrupts_.Destruct(); -} -void BoardStatus::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BoardStatus::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.common.v1.BoardStatus) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - analogs_.Clear(); - digital_interrupts_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* BoardStatus::_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) { - // map analogs = 1 [json_name = "analogs"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&analogs_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&digital_interrupts_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* BoardStatus::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.BoardStatus) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // map analogs = 1 [json_name = "analogs"]; - if (!this->_internal_analogs().empty()) { - using MapType = ::_pb::Map; - using WireHelper = BoardStatus_AnalogsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_analogs(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.common.v1.BoardStatus.AnalogsEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - if (!this->_internal_digital_interrupts().empty()) { - using MapType = ::_pb::Map; - using WireHelper = BoardStatus_DigitalInterruptsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_digital_interrupts(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.common.v1.BoardStatus.DigitalInterruptsEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - 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.BoardStatus) - return target; -} - -size_t BoardStatus::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.BoardStatus) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map analogs = 1 [json_name = "analogs"]; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_analogs_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >::const_iterator - it = this->_internal_analogs().begin(); - it != this->_internal_analogs().end(); ++it) { - total_size += BoardStatus_AnalogsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_digital_interrupts_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >::const_iterator - it = this->_internal_digital_interrupts().begin(); - it != this->_internal_digital_interrupts().end(); ++it) { - total_size += BoardStatus_DigitalInterruptsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoardStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - BoardStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BoardStatus::GetClassData() const { return &_class_data_; } - -void BoardStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void BoardStatus::MergeFrom(const BoardStatus& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.BoardStatus) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - analogs_.MergeFrom(from.analogs_); - digital_interrupts_.MergeFrom(from.digital_interrupts_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void BoardStatus::CopyFrom(const BoardStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.BoardStatus) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BoardStatus::IsInitialized() const { - return true; -} - -void BoardStatus::InternalSwap(BoardStatus* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - analogs_.InternalSwap(&other->analogs_); - digital_interrupts_.InternalSwap(&other->digital_interrupts_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BoardStatus::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[3]); -} - -// =================================================================== - -class AnalogStatus::_Internal { - public: -}; - -AnalogStatus::AnalogStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.common.v1.AnalogStatus) -} -AnalogStatus::AnalogStatus(const AnalogStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - value_ = from.value_; - // @@protoc_insertion_point(copy_constructor:viam.common.v1.AnalogStatus) -} - -inline void AnalogStatus::SharedCtor() { -value_ = 0; -} - -AnalogStatus::~AnalogStatus() { - // @@protoc_insertion_point(destructor:viam.common.v1.AnalogStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void AnalogStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void AnalogStatus::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void AnalogStatus::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.common.v1.AnalogStatus) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AnalogStatus::_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) { - // int32 value = 1 [json_name = "value"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* AnalogStatus::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.AnalogStatus) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // int32 value = 1 [json_name = "value"]; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_value(), 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.common.v1.AnalogStatus) - return target; -} - -size_t AnalogStatus::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.AnalogStatus) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 value = 1 [json_name = "value"]; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnalogStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - AnalogStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnalogStatus::GetClassData() const { return &_class_data_; } - -void AnalogStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void AnalogStatus::MergeFrom(const AnalogStatus& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.AnalogStatus) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_value() != 0) { - _internal_set_value(from._internal_value()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void AnalogStatus::CopyFrom(const AnalogStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.AnalogStatus) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AnalogStatus::IsInitialized() const { - return true; -} - -void AnalogStatus::InternalSwap(AnalogStatus* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(value_, other->value_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AnalogStatus::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[4]); -} - -// =================================================================== - -class DigitalInterruptStatus::_Internal { - public: -}; - -DigitalInterruptStatus::DigitalInterruptStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.common.v1.DigitalInterruptStatus) -} -DigitalInterruptStatus::DigitalInterruptStatus(const DigitalInterruptStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - value_ = from.value_; - // @@protoc_insertion_point(copy_constructor:viam.common.v1.DigitalInterruptStatus) + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + type_.Set(from._internal_type(), + GetArenaForAllocation()); + } + subtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subtype().empty()) { + subtype_.Set(from._internal_subtype(), + GetArenaForAllocation()); + } + 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()); + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.ResourceName) } -inline void DigitalInterruptStatus::SharedCtor() { -value_ = int64_t{0}; +inline void ResourceName::SharedCtor() { +namespace__.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + namespace__.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +subtype_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subtype_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -DigitalInterruptStatus::~DigitalInterruptStatus() { - // @@protoc_insertion_point(destructor:viam.common.v1.DigitalInterruptStatus) +ResourceName::~ResourceName() { + // @@protoc_insertion_point(destructor:viam.common.v1.ResourceName) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1840,35 +893,74 @@ DigitalInterruptStatus::~DigitalInterruptStatus() { SharedDtor(); } -inline void DigitalInterruptStatus::SharedDtor() { +inline void ResourceName::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + namespace__.Destroy(); + type_.Destroy(); + subtype_.Destroy(); + name_.Destroy(); } -void DigitalInterruptStatus::SetCachedSize(int size) const { +void ResourceName::SetCachedSize(int size) const { _cached_size_.Set(size); } -void DigitalInterruptStatus::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.common.v1.DigitalInterruptStatus) +void ResourceName::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.ResourceName) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - value_ = int64_t{0}; + namespace__.ClearToEmpty(); + type_.ClearToEmpty(); + subtype_.ClearToEmpty(); + name_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DigitalInterruptStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ResourceName::_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 value = 1 [json_name = "value"]; + // string namespace = 1 [json_name = "namespace"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_namespace_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.namespace")); + } else + goto handle_unusual; + continue; + // string type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.type")); + } else + goto handle_unusual; + continue; + // string subtype = 3 [json_name = "subtype"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_subtype(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.subtype")); + } else + goto handle_unusual; + continue; + // string name = 4 [json_name = "name"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.name")); } else goto handle_unusual; continue; @@ -1895,88 +987,171 @@ const char* DigitalInterruptStatus::_InternalParse(const char* ptr, ::_pbi::Pars #undef CHK_ } -uint8_t* DigitalInterruptStatus::_InternalSerialize( +uint8_t* ResourceName::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.DigitalInterruptStatus) + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.ResourceName) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // int64 value = 1 [json_name = "value"]; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_value(), target); + // string namespace = 1 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.namespace"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_namespace_(), target); + } + + // string type = 2 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_type(), target); + } + + // string subtype = 3 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subtype().data(), static_cast(this->_internal_subtype().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.subtype"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_subtype(), target); + } + + // string name = 4 [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.common.v1.ResourceName.name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_name(), 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.common.v1.DigitalInterruptStatus) + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.ResourceName) return target; } -size_t DigitalInterruptStatus::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.DigitalInterruptStatus) +size_t ResourceName::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.ResourceName) 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 value = 1 [json_name = "value"]; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value()); + // string namespace = 1 [json_name = "namespace"]; + if (!this->_internal_namespace_().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_namespace_()); + } + + // string type = 2 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string subtype = 3 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subtype()); + } + + // string name = 4 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DigitalInterruptStatus::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceName::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - DigitalInterruptStatus::MergeImpl + ResourceName::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DigitalInterruptStatus::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceName::GetClassData() const { return &_class_data_; } -void DigitalInterruptStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ResourceName::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 DigitalInterruptStatus::MergeFrom(const DigitalInterruptStatus& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.DigitalInterruptStatus) +void ResourceName::MergeFrom(const ResourceName& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ResourceName) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_value() != 0) { - _internal_set_value(from._internal_value()); + if (!from._internal_namespace_().empty()) { + _internal_set_namespace_(from._internal_namespace_()); + } + if (!from._internal_type().empty()) { + _internal_set_type(from._internal_type()); + } + if (!from._internal_subtype().empty()) { + _internal_set_subtype(from._internal_subtype()); + } + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void DigitalInterruptStatus::CopyFrom(const DigitalInterruptStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.DigitalInterruptStatus) +void ResourceName::CopyFrom(const ResourceName& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.ResourceName) if (&from == this) return; Clear(); MergeFrom(from); } -bool DigitalInterruptStatus::IsInitialized() const { +bool ResourceName::IsInitialized() const { return true; } -void DigitalInterruptStatus::InternalSwap(DigitalInterruptStatus* other) { +void ResourceName::InternalSwap(ResourceName* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(value_, other->value_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &namespace__, lhs_arena, + &other->namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &subtype_, lhs_arena, + &other->subtype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::PROTOBUF_NAMESPACE_ID::Metadata DigitalInterruptStatus::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResourceName::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[5]); + file_level_metadata_common_2fv1_2fcommon_2eproto[0]); } // =================================================================== @@ -2375,7 +1550,7 @@ void Pose::InternalSwap(Pose* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Pose::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[6]); + file_level_metadata_common_2fv1_2fcommon_2eproto[1]); } // =================================================================== @@ -2672,7 +1847,7 @@ void Orientation::InternalSwap(Orientation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Orientation::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[7]); + file_level_metadata_common_2fv1_2fcommon_2eproto[2]); } // =================================================================== @@ -2909,7 +2084,7 @@ void PoseInFrame::InternalSwap(PoseInFrame* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PoseInFrame::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[8]); + file_level_metadata_common_2fv1_2fcommon_2eproto[3]); } // =================================================================== @@ -3172,7 +2347,7 @@ void Vector3::InternalSwap(Vector3* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Vector3::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[9]); + file_level_metadata_common_2fv1_2fcommon_2eproto[4]); } // =================================================================== @@ -3355,7 +2530,7 @@ void Sphere::InternalSwap(Sphere* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Sphere::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[10]); + file_level_metadata_common_2fv1_2fcommon_2eproto[5]); } // =================================================================== @@ -3584,7 +2759,7 @@ void Capsule::InternalSwap(Capsule* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Capsule::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[11]); + file_level_metadata_common_2fv1_2fcommon_2eproto[6]); } // =================================================================== @@ -3771,7 +2946,7 @@ void RectangularPrism::InternalSwap(RectangularPrism* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RectangularPrism::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[12]); + file_level_metadata_common_2fv1_2fcommon_2eproto[7]); } // =================================================================== @@ -4210,7 +3385,7 @@ void Geometry::InternalSwap(Geometry* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Geometry::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[13]); + file_level_metadata_common_2fv1_2fcommon_2eproto[8]); } // =================================================================== @@ -4438,7 +3613,7 @@ void GeometriesInFrame::InternalSwap(GeometriesInFrame* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GeometriesInFrame::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[14]); + file_level_metadata_common_2fv1_2fcommon_2eproto[9]); } // =================================================================== @@ -4670,7 +3845,7 @@ void PointCloudObject::InternalSwap(PointCloudObject* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PointCloudObject::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[15]); + file_level_metadata_common_2fv1_2fcommon_2eproto[10]); } // =================================================================== @@ -4899,7 +4074,7 @@ void GeoPoint::InternalSwap(GeoPoint* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GeoPoint::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[16]); + file_level_metadata_common_2fv1_2fcommon_2eproto[11]); } // =================================================================== @@ -5119,7 +4294,7 @@ void GeoObstacle::InternalSwap(GeoObstacle* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GeoObstacle::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[17]); + file_level_metadata_common_2fv1_2fcommon_2eproto[12]); } // =================================================================== @@ -5415,7 +4590,7 @@ void Transform::InternalSwap(Transform* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Transform::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[18]); + file_level_metadata_common_2fv1_2fcommon_2eproto[13]); } // =================================================================== @@ -5626,7 +4801,7 @@ void WorldState::InternalSwap(WorldState* other) { ::PROTOBUF_NAMESPACE_ID::Metadata WorldState::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[19]); + file_level_metadata_common_2fv1_2fcommon_2eproto[14]); } // =================================================================== @@ -5797,7 +4972,7 @@ void ActuatorStatus::InternalSwap(ActuatorStatus* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ActuatorStatus::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[20]); + file_level_metadata_common_2fv1_2fcommon_2eproto[15]); } // =================================================================== @@ -5999,7 +5174,7 @@ void ResponseMetadata::InternalSwap(ResponseMetadata* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ResponseMetadata::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[21]); + file_level_metadata_common_2fv1_2fcommon_2eproto[16]); } // =================================================================== @@ -6242,7 +5417,7 @@ void DoCommandRequest::InternalSwap(DoCommandRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DoCommandRequest::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[22]); + file_level_metadata_common_2fv1_2fcommon_2eproto[17]); } // =================================================================== @@ -6435,7 +5610,7 @@ void DoCommandResponse::InternalSwap(DoCommandResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DoCommandResponse::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[23]); + file_level_metadata_common_2fv1_2fcommon_2eproto[18]); } // =================================================================== @@ -6678,7 +5853,7 @@ void GetKinematicsRequest::InternalSwap(GetKinematicsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetKinematicsRequest::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[24]); + file_level_metadata_common_2fv1_2fcommon_2eproto[19]); } // =================================================================== @@ -6897,7 +6072,7 @@ void GetKinematicsResponse::InternalSwap(GetKinematicsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetKinematicsResponse::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[25]); + file_level_metadata_common_2fv1_2fcommon_2eproto[20]); } // =================================================================== @@ -7140,7 +6315,7 @@ void GetGeometriesRequest::InternalSwap(GetGeometriesRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetGeometriesRequest::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[26]); + file_level_metadata_common_2fv1_2fcommon_2eproto[21]); } // =================================================================== @@ -7318,7 +6493,7 @@ void GetGeometriesResponse::InternalSwap(GetGeometriesResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetGeometriesResponse::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[27]); + file_level_metadata_common_2fv1_2fcommon_2eproto[22]); } // =================================================================== @@ -7561,7 +6736,7 @@ void GetReadingsRequest::InternalSwap(GetReadingsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsRequest::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[28]); + file_level_metadata_common_2fv1_2fcommon_2eproto[23]); } // =================================================================== @@ -7575,7 +6750,7 @@ void GetReadingsResponse_ReadingsEntry_DoNotUse::MergeFrom(const GetReadingsResp ::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse_ReadingsEntry_DoNotUse::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[29]); + file_level_metadata_common_2fv1_2fcommon_2eproto[24]); } // =================================================================== @@ -7785,7 +6960,7 @@ void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::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[30]); + file_level_metadata_common_2fv1_2fcommon_2eproto[25]); } // =================================================================== @@ -8310,7 +7485,7 @@ void LogEntry::InternalSwap(LogEntry* other) { ::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]); + file_level_metadata_common_2fv1_2fcommon_2eproto[26]); } PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false> @@ -8325,26 +7500,6 @@ template<> PROTOBUF_NOINLINE ::viam::common::v1::ResourceName* Arena::CreateMaybeMessage< ::viam::common::v1::ResourceName >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::common::v1::ResourceName >(arena); } -template<> PROTOBUF_NOINLINE ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::viam::common::v1::BoardStatus* -Arena::CreateMaybeMessage< ::viam::common::v1::BoardStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::common::v1::BoardStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::viam::common::v1::AnalogStatus* -Arena::CreateMaybeMessage< ::viam::common::v1::AnalogStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::common::v1::AnalogStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::viam::common::v1::DigitalInterruptStatus* -Arena::CreateMaybeMessage< ::viam::common::v1::DigitalInterruptStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::common::v1::DigitalInterruptStatus >(arena); -} template<> PROTOBUF_NOINLINE ::viam::common::v1::Pose* Arena::CreateMaybeMessage< ::viam::common::v1::Pose >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::common::v1::Pose >(arena); diff --git a/src/viam/api/common/v1/common.pb.h b/src/viam/api/common/v1/common.pb.h index 59df20c61..2cc4534c6 100644 --- a/src/viam/api/common/v1/common.pb.h +++ b/src/viam/api/common/v1/common.pb.h @@ -57,24 +57,9 @@ namespace v1 { class ActuatorStatus; struct ActuatorStatusDefaultTypeInternal; extern ActuatorStatusDefaultTypeInternal _ActuatorStatus_default_instance_; -class AnalogStatus; -struct AnalogStatusDefaultTypeInternal; -extern AnalogStatusDefaultTypeInternal _AnalogStatus_default_instance_; -class BoardStatus; -struct BoardStatusDefaultTypeInternal; -extern BoardStatusDefaultTypeInternal _BoardStatus_default_instance_; -class BoardStatus_AnalogsEntry_DoNotUse; -struct BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal; -extern BoardStatus_AnalogsEntry_DoNotUseDefaultTypeInternal _BoardStatus_AnalogsEntry_DoNotUse_default_instance_; -class BoardStatus_DigitalInterruptsEntry_DoNotUse; -struct BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal; -extern BoardStatus_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _BoardStatus_DigitalInterruptsEntry_DoNotUse_default_instance_; class Capsule; struct CapsuleDefaultTypeInternal; extern CapsuleDefaultTypeInternal _Capsule_default_instance_; -class DigitalInterruptStatus; -struct DigitalInterruptStatusDefaultTypeInternal; -extern DigitalInterruptStatusDefaultTypeInternal _DigitalInterruptStatus_default_instance_; class DoCommandRequest; struct DoCommandRequestDefaultTypeInternal; extern DoCommandRequestDefaultTypeInternal _DoCommandRequest_default_instance_; @@ -155,12 +140,7 @@ extern WorldStateDefaultTypeInternal _WorldState_default_instance_; } // namespace viam PROTOBUF_NAMESPACE_OPEN template<> ::viam::common::v1::ActuatorStatus* Arena::CreateMaybeMessage<::viam::common::v1::ActuatorStatus>(Arena*); -template<> ::viam::common::v1::AnalogStatus* Arena::CreateMaybeMessage<::viam::common::v1::AnalogStatus>(Arena*); -template<> ::viam::common::v1::BoardStatus* Arena::CreateMaybeMessage<::viam::common::v1::BoardStatus>(Arena*); -template<> ::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse>(Arena*); -template<> ::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse>(Arena*); template<> ::viam::common::v1::Capsule* Arena::CreateMaybeMessage<::viam::common::v1::Capsule>(Arena*); -template<> ::viam::common::v1::DigitalInterruptStatus* Arena::CreateMaybeMessage<::viam::common::v1::DigitalInterruptStatus>(Arena*); template<> ::viam::common::v1::DoCommandRequest* Arena::CreateMaybeMessage<::viam::common::v1::DoCommandRequest>(Arena*); template<> ::viam::common::v1::DoCommandResponse* Arena::CreateMaybeMessage<::viam::common::v1::DoCommandResponse>(Arena*); template<> ::viam::common::v1::GeoObstacle* Arena::CreateMaybeMessage<::viam::common::v1::GeoObstacle>(Arena*); @@ -342,7 +322,6 @@ class ResourceName final : kTypeFieldNumber = 2, kSubtypeFieldNumber = 3, kNameFieldNumber = 4, - kMachinePartIdFieldNumber = 5, }; // string namespace = 1 [json_name = "namespace"]; void clear_namespace_(); @@ -400,24 +379,6 @@ class ResourceName final : std::string* _internal_mutable_name(); public: - // optional string machine_part_id = 5 [json_name = "machinePartId"]; - bool has_machine_part_id() const; - private: - bool _internal_has_machine_part_id() const; - public: - void clear_machine_part_id(); - const std::string& machine_part_id() const; - template - void set_machine_part_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_machine_part_id(); - PROTOBUF_NODISCARD std::string* release_machine_part_id(); - void set_allocated_machine_part_id(std::string* machine_part_id); - private: - const std::string& _internal_machine_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_part_id(const std::string& value); - std::string* _internal_mutable_machine_part_id(); - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.ResourceName) private: class _Internal; @@ -425,531 +386,10 @@ class ResourceName final : 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 namespace__; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subtype_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_part_id_; - friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class BoardStatus_AnalogsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - BoardStatus_AnalogsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR BoardStatus_AnalogsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit BoardStatus_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const BoardStatus_AnalogsEntry_DoNotUse& other); - static const BoardStatus_AnalogsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BoardStatus_AnalogsEntry_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.common.v1.BoardStatus.AnalogsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -}; - -// ------------------------------------------------------------------- - -class BoardStatus_DigitalInterruptsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - BoardStatus_DigitalInterruptsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR BoardStatus_DigitalInterruptsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit BoardStatus_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const BoardStatus_DigitalInterruptsEntry_DoNotUse& other); - static const BoardStatus_DigitalInterruptsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BoardStatus_DigitalInterruptsEntry_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.common.v1.BoardStatus.DigitalInterruptsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -}; - -// ------------------------------------------------------------------- - -class BoardStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.BoardStatus) */ { - public: - inline BoardStatus() : BoardStatus(nullptr) {} - ~BoardStatus() override; - explicit PROTOBUF_CONSTEXPR BoardStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BoardStatus(const BoardStatus& from); - BoardStatus(BoardStatus&& from) noexcept - : BoardStatus() { - *this = ::std::move(from); - } - - inline BoardStatus& operator=(const BoardStatus& from) { - CopyFrom(from); - return *this; - } - inline BoardStatus& operator=(BoardStatus&& 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 BoardStatus& default_instance() { - return *internal_default_instance(); - } - static inline const BoardStatus* internal_default_instance() { - return reinterpret_cast( - &_BoardStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(BoardStatus& a, BoardStatus& b) { - a.Swap(&b); - } - inline void Swap(BoardStatus* 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(BoardStatus* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BoardStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const BoardStatus& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const BoardStatus& 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(BoardStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.common.v1.BoardStatus"; - } - protected: - explicit BoardStatus(::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 { - kAnalogsFieldNumber = 1, - kDigitalInterruptsFieldNumber = 2, - }; - // map analogs = 1 [json_name = "analogs"]; - int analogs_size() const; - private: - int _internal_analogs_size() const; - public: - void clear_analogs(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& - _internal_analogs() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* - _internal_mutable_analogs(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& - analogs() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* - mutable_analogs(); - - // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - int digital_interrupts_size() const; - private: - int _internal_digital_interrupts_size() const; - public: - void clear_digital_interrupts(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& - _internal_digital_interrupts() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* - _internal_mutable_digital_interrupts(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& - digital_interrupts() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* - mutable_digital_interrupts(); - - // @@protoc_insertion_point(class_scope:viam.common.v1.BoardStatus) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - BoardStatus_AnalogsEntry_DoNotUse, - std::string, ::viam::common::v1::AnalogStatus, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> analogs_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - BoardStatus_DigitalInterruptsEntry_DoNotUse, - std::string, ::viam::common::v1::DigitalInterruptStatus, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> digital_interrupts_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class AnalogStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.AnalogStatus) */ { - public: - inline AnalogStatus() : AnalogStatus(nullptr) {} - ~AnalogStatus() override; - explicit PROTOBUF_CONSTEXPR AnalogStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AnalogStatus(const AnalogStatus& from); - AnalogStatus(AnalogStatus&& from) noexcept - : AnalogStatus() { - *this = ::std::move(from); - } - - inline AnalogStatus& operator=(const AnalogStatus& from) { - CopyFrom(from); - return *this; - } - inline AnalogStatus& operator=(AnalogStatus&& 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 AnalogStatus& default_instance() { - return *internal_default_instance(); - } - static inline const AnalogStatus* internal_default_instance() { - return reinterpret_cast( - &_AnalogStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(AnalogStatus& a, AnalogStatus& b) { - a.Swap(&b); - } - inline void Swap(AnalogStatus* 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(AnalogStatus* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AnalogStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AnalogStatus& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const AnalogStatus& 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(AnalogStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.common.v1.AnalogStatus"; - } - protected: - explicit AnalogStatus(::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 { - kValueFieldNumber = 1, - }; - // int32 value = 1 [json_name = "value"]; - void clear_value(); - int32_t value() const; - void set_value(int32_t value); - private: - int32_t _internal_value() const; - void _internal_set_value(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:viam.common.v1.AnalogStatus) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - int32_t value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class DigitalInterruptStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.DigitalInterruptStatus) */ { - public: - inline DigitalInterruptStatus() : DigitalInterruptStatus(nullptr) {} - ~DigitalInterruptStatus() override; - explicit PROTOBUF_CONSTEXPR DigitalInterruptStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DigitalInterruptStatus(const DigitalInterruptStatus& from); - DigitalInterruptStatus(DigitalInterruptStatus&& from) noexcept - : DigitalInterruptStatus() { - *this = ::std::move(from); - } - - inline DigitalInterruptStatus& operator=(const DigitalInterruptStatus& from) { - CopyFrom(from); - return *this; - } - inline DigitalInterruptStatus& operator=(DigitalInterruptStatus&& 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 DigitalInterruptStatus& default_instance() { - return *internal_default_instance(); - } - static inline const DigitalInterruptStatus* internal_default_instance() { - return reinterpret_cast( - &_DigitalInterruptStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(DigitalInterruptStatus& a, DigitalInterruptStatus& b) { - a.Swap(&b); - } - inline void Swap(DigitalInterruptStatus* 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(DigitalInterruptStatus* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DigitalInterruptStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DigitalInterruptStatus& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const DigitalInterruptStatus& 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(DigitalInterruptStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.common.v1.DigitalInterruptStatus"; - } - protected: - explicit DigitalInterruptStatus(::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 { - kValueFieldNumber = 1, - }; - // int64 value = 1 [json_name = "value"]; - void clear_value(); - int64_t value() const; - void set_value(int64_t value); - private: - int64_t _internal_value() const; - void _internal_set_value(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:viam.common.v1.DigitalInterruptStatus) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - int64_t value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; }; @@ -1003,7 +443,7 @@ class Pose final : &_Pose_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 1; friend void swap(Pose& a, Pose& b) { a.Swap(&b); @@ -1212,7 +652,7 @@ class Orientation final : &_Orientation_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 2; friend void swap(Orientation& a, Orientation& b) { a.Swap(&b); @@ -1388,7 +828,7 @@ class PoseInFrame final : &_PoseInFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 3; friend void swap(PoseInFrame& a, PoseInFrame& b) { a.Swap(&b); @@ -1556,7 +996,7 @@ class Vector3 final : &_Vector3_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 4; friend void swap(Vector3& a, Vector3& b) { a.Swap(&b); @@ -1721,7 +1161,7 @@ class Sphere final : &_Sphere_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 5; friend void swap(Sphere& a, Sphere& b) { a.Swap(&b); @@ -1864,7 +1304,7 @@ class Capsule final : &_Capsule_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 6; friend void swap(Capsule& a, Capsule& b) { a.Swap(&b); @@ -2018,7 +1458,7 @@ class RectangularPrism final : &_RectangularPrism_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 7; friend void swap(RectangularPrism& a, RectangularPrism& b) { a.Swap(&b); @@ -2177,7 +1617,7 @@ class Geometry final : &_Geometry_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 8; friend void swap(Geometry& a, Geometry& b) { a.Swap(&b); @@ -2419,7 +1859,7 @@ class GeometriesInFrame final : &_GeometriesInFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 9; friend void swap(GeometriesInFrame& a, GeometriesInFrame& b) { a.Swap(&b); @@ -2587,7 +2027,7 @@ class PointCloudObject final : &_PointCloudObject_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 10; friend void swap(PointCloudObject& a, PointCloudObject& b) { a.Swap(&b); @@ -2755,7 +2195,7 @@ class GeoPoint final : &_GeoPoint_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 11; friend void swap(GeoPoint& a, GeoPoint& b) { a.Swap(&b); @@ -2909,7 +2349,7 @@ class GeoObstacle final : &_GeoObstacle_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 12; friend void swap(GeoObstacle& a, GeoObstacle& b) { a.Swap(&b); @@ -3081,7 +2521,7 @@ class Transform final : &_Transform_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 13; friend void swap(Transform& a, Transform& b) { a.Swap(&b); @@ -3270,7 +2710,7 @@ class WorldState final : &_WorldState_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 14; friend void swap(WorldState& a, WorldState& b) { a.Swap(&b); @@ -3442,7 +2882,7 @@ class ActuatorStatus final : &_ActuatorStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 15; friend void swap(ActuatorStatus& a, ActuatorStatus& b) { a.Swap(&b); @@ -3585,7 +3025,7 @@ class ResponseMetadata final : &_ResponseMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 16; friend void swap(ResponseMetadata& a, ResponseMetadata& b) { a.Swap(&b); @@ -3738,7 +3178,7 @@ class DoCommandRequest final : &_DoCommandRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 17; friend void swap(DoCommandRequest& a, DoCommandRequest& b) { a.Swap(&b); @@ -3906,7 +3346,7 @@ class DoCommandResponse final : &_DoCommandResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 18; friend void swap(DoCommandResponse& a, DoCommandResponse& b) { a.Swap(&b); @@ -4058,7 +3498,7 @@ class GetKinematicsRequest final : &_GetKinematicsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 19; friend void swap(GetKinematicsRequest& a, GetKinematicsRequest& b) { a.Swap(&b); @@ -4226,7 +3666,7 @@ class GetKinematicsResponse final : &_GetKinematicsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 20; friend void swap(GetKinematicsResponse& a, GetKinematicsResponse& b) { a.Swap(&b); @@ -4385,7 +3825,7 @@ class GetGeometriesRequest final : &_GetGeometriesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 21; friend void swap(GetGeometriesRequest& a, GetGeometriesRequest& b) { a.Swap(&b); @@ -4553,7 +3993,7 @@ class GetGeometriesResponse final : &_GetGeometriesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 22; friend void swap(GetGeometriesResponse& a, GetGeometriesResponse& b) { a.Swap(&b); @@ -4705,7 +4145,7 @@ class GetReadingsRequest final : &_GetReadingsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 23; friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { a.Swap(&b); @@ -4899,7 +4339,7 @@ class GetReadingsResponse final : &_GetReadingsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 25; friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { a.Swap(&b); @@ -5057,7 +4497,7 @@ class LogEntry final : &_LogEntry_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 26; friend void swap(LogEntry& a, LogEntry& b) { a.Swap(&b); @@ -5494,188 +4934,6 @@ inline void ResourceName::set_allocated_name(std::string* name) { // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.name) } -// optional string machine_part_id = 5 [json_name = "machinePartId"]; -inline bool ResourceName::_internal_has_machine_part_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool ResourceName::has_machine_part_id() const { - return _internal_has_machine_part_id(); -} -inline void ResourceName::clear_machine_part_id() { - machine_part_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& ResourceName::machine_part_id() const { - // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.machine_part_id) - return _internal_machine_part_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ResourceName::set_machine_part_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - machine_part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.machine_part_id) -} -inline std::string* ResourceName::mutable_machine_part_id() { - std::string* _s = _internal_mutable_machine_part_id(); - // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.machine_part_id) - return _s; -} -inline const std::string& ResourceName::_internal_machine_part_id() const { - return machine_part_id_.Get(); -} -inline void ResourceName::_internal_set_machine_part_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - machine_part_id_.Set(value, GetArenaForAllocation()); -} -inline std::string* ResourceName::_internal_mutable_machine_part_id() { - _has_bits_[0] |= 0x00000001u; - return machine_part_id_.Mutable(GetArenaForAllocation()); -} -inline std::string* ResourceName::release_machine_part_id() { - // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.machine_part_id) - if (!_internal_has_machine_part_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = machine_part_id_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (machine_part_id_.IsDefault()) { - machine_part_id_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ResourceName::set_allocated_machine_part_id(std::string* machine_part_id) { - if (machine_part_id != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - machine_part_id_.SetAllocated(machine_part_id, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (machine_part_id_.IsDefault()) { - machine_part_id_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.machine_part_id) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// BoardStatus - -// map analogs = 1 [json_name = "analogs"]; -inline int BoardStatus::_internal_analogs_size() const { - return analogs_.size(); -} -inline int BoardStatus::analogs_size() const { - return _internal_analogs_size(); -} -inline void BoardStatus::clear_analogs() { - analogs_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& -BoardStatus::_internal_analogs() const { - return analogs_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >& -BoardStatus::analogs() const { - // @@protoc_insertion_point(field_map:viam.common.v1.BoardStatus.analogs) - return _internal_analogs(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* -BoardStatus::_internal_mutable_analogs() { - return analogs_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::AnalogStatus >* -BoardStatus::mutable_analogs() { - // @@protoc_insertion_point(field_mutable_map:viam.common.v1.BoardStatus.analogs) - return _internal_mutable_analogs(); -} - -// map digital_interrupts = 2 [json_name = "digitalInterrupts"]; -inline int BoardStatus::_internal_digital_interrupts_size() const { - return digital_interrupts_.size(); -} -inline int BoardStatus::digital_interrupts_size() const { - return _internal_digital_interrupts_size(); -} -inline void BoardStatus::clear_digital_interrupts() { - digital_interrupts_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& -BoardStatus::_internal_digital_interrupts() const { - return digital_interrupts_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >& -BoardStatus::digital_interrupts() const { - // @@protoc_insertion_point(field_map:viam.common.v1.BoardStatus.digital_interrupts) - return _internal_digital_interrupts(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* -BoardStatus::_internal_mutable_digital_interrupts() { - return digital_interrupts_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::DigitalInterruptStatus >* -BoardStatus::mutable_digital_interrupts() { - // @@protoc_insertion_point(field_mutable_map:viam.common.v1.BoardStatus.digital_interrupts) - return _internal_mutable_digital_interrupts(); -} - -// ------------------------------------------------------------------- - -// AnalogStatus - -// int32 value = 1 [json_name = "value"]; -inline void AnalogStatus::clear_value() { - value_ = 0; -} -inline int32_t AnalogStatus::_internal_value() const { - return value_; -} -inline int32_t AnalogStatus::value() const { - // @@protoc_insertion_point(field_get:viam.common.v1.AnalogStatus.value) - return _internal_value(); -} -inline void AnalogStatus::_internal_set_value(int32_t value) { - - value_ = value; -} -inline void AnalogStatus::set_value(int32_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:viam.common.v1.AnalogStatus.value) -} - -// ------------------------------------------------------------------- - -// DigitalInterruptStatus - -// int64 value = 1 [json_name = "value"]; -inline void DigitalInterruptStatus::clear_value() { - value_ = int64_t{0}; -} -inline int64_t DigitalInterruptStatus::_internal_value() const { - return value_; -} -inline int64_t DigitalInterruptStatus::value() const { - // @@protoc_insertion_point(field_get:viam.common.v1.DigitalInterruptStatus.value) - return _internal_value(); -} -inline void DigitalInterruptStatus::_internal_set_value(int64_t value) { - - value_ = value; -} -inline void DigitalInterruptStatus::set_value(int64_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:viam.common.v1.DigitalInterruptStatus.value) -} - // ------------------------------------------------------------------- // Pose @@ -8809,16 +8067,6 @@ LogEntry::fields() const { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/component/board/v1/board.grpc.pb.cc b/src/viam/api/component/board/v1/board.grpc.pb.cc index f600ccad6..9a35cce52 100644 --- a/src/viam/api/component/board/v1/board.grpc.pb.cc +++ b/src/viam/api/component/board/v1/board.grpc.pb.cc @@ -25,7 +25,6 @@ namespace board { namespace v1 { static const char* BoardService_method_names[] = { - "/viam.component.board.v1.BoardService/Status", "/viam.component.board.v1.BoardService/SetGPIO", "/viam.component.board.v1.BoardService/GetGPIO", "/viam.component.board.v1.BoardService/PWM", @@ -48,45 +47,21 @@ std::unique_ptr< BoardService::Stub> BoardService::NewStub(const std::shared_ptr } BoardService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Status_(BoardService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetGPIO_(BoardService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGPIO_(BoardService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PWM_(BoardService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetPWM_(BoardService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PWMFrequency_(BoardService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetPWMFrequency_(BoardService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(BoardService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReadAnalogReader_(BoardService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_WriteAnalog_(BoardService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetDigitalInterruptValue_(BoardService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StreamTicks_(BoardService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_SetPowerMode_(BoardService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(BoardService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + : channel_(channel), rpcmethod_SetGPIO_(BoardService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGPIO_(BoardService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PWM_(BoardService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPWM_(BoardService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PWMFrequency_(BoardService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPWMFrequency_(BoardService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(BoardService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReadAnalogReader_(BoardService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_WriteAnalog_(BoardService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDigitalInterruptValue_(BoardService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StreamTicks_(BoardService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SetPowerMode_(BoardService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(BoardService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} -::grpc::Status BoardService::Stub::Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::viam::component::board::v1::StatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Status_, context, request, response); -} - -void BoardService::Stub::async::Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Status_, context, request, response, std::move(f)); -} - -void BoardService::Stub::async::Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Status_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* BoardService::Stub::PrepareAsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::StatusResponse, ::viam::component::board::v1::StatusRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Status_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* BoardService::Stub::AsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStatusRaw(context, request, cq); - result->StartCall(); - return result; -} - ::grpc::Status BoardService::Stub::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetGPIO_, context, request, response); } @@ -383,16 +358,6 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](BoardService::Service* service, - ::grpc::ServerContext* ctx, - const ::viam::component::board::v1::StatusRequest* req, - ::viam::component::board::v1::StatusResponse* resp) { - return service->Status(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, ::grpc::ServerContext* ctx, @@ -401,7 +366,7 @@ BoardService::Service::Service() { return service->SetGPIO(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[2], + BoardService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -411,7 +376,7 @@ BoardService::Service::Service() { return service->GetGPIO(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[3], + BoardService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -421,7 +386,7 @@ BoardService::Service::Service() { return service->PWM(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[4], + BoardService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -431,7 +396,7 @@ BoardService::Service::Service() { return service->SetPWM(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[5], + BoardService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -441,7 +406,7 @@ BoardService::Service::Service() { return service->PWMFrequency(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[6], + BoardService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -451,7 +416,7 @@ BoardService::Service::Service() { return service->SetPWMFrequency(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[7], + BoardService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -461,7 +426,7 @@ BoardService::Service::Service() { return service->DoCommand(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[8], + BoardService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -471,7 +436,7 @@ BoardService::Service::Service() { return service->ReadAnalogReader(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[9], + BoardService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -481,7 +446,7 @@ BoardService::Service::Service() { return service->WriteAnalog(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[10], + BoardService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -491,7 +456,7 @@ BoardService::Service::Service() { return service->GetDigitalInterruptValue(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[11], + BoardService_method_names[10], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< BoardService::Service, ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( [](BoardService::Service* service, @@ -501,7 +466,7 @@ BoardService::Service::Service() { return service->StreamTicks(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[12], + BoardService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -511,7 +476,7 @@ BoardService::Service::Service() { return service->SetPowerMode(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[13], + BoardService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BoardService::Service* service, @@ -525,13 +490,6 @@ BoardService::Service::Service() { BoardService::Service::~Service() { } -::grpc::Status BoardService::Service::Status(::grpc::ServerContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status BoardService::Service::SetGPIO(::grpc::ServerContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response) { (void) context; (void) request; diff --git a/src/viam/api/component/board/v1/board.grpc.pb.h b/src/viam/api/component/board/v1/board.grpc.pb.h index d12ef14b6..a87df309e 100644 --- a/src/viam/api/component/board/v1/board.grpc.pb.h +++ b/src/viam/api/component/board/v1/board.grpc.pb.h @@ -39,13 +39,6 @@ class BoardService final { class StubInterface { public: virtual ~StubInterface() {} - virtual ::grpc::Status Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::viam::component::board::v1::StatusResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>> AsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>>(AsyncStatusRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>> PrepareAsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>>(PrepareAsyncStatusRaw(context, request, cq)); - } virtual ::grpc::Status SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>> AsyncSetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>>(AsyncSetGPIORaw(context, request, cq)); @@ -162,8 +155,6 @@ class BoardService final { class async_interface { public: virtual ~async_interface() {} - virtual void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, std::function) = 0; - virtual void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; virtual void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) = 0; virtual void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // GetGPIO gets the high/low state of the given pin of a board of the underlying robot. @@ -214,8 +205,6 @@ class BoardService final { virtual class async_interface* async() { return nullptr; } class async_interface* experimental_async() { return async(); } private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>* AsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::StatusResponse>* PrepareAsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>* AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>* PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>* AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -247,13 +236,6 @@ class BoardService final { class Stub final : public StubInterface { public: Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::viam::component::board::v1::StatusResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>> AsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>>(AsyncStatusRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>> PrepareAsyncStatus(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>>(PrepareAsyncStatusRaw(context, request, cq)); - } ::grpc::Status SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>> AsyncSetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>>(AsyncSetGPIORaw(context, request, cq)); @@ -350,8 +332,6 @@ class BoardService final { class async final : public StubInterface::async_interface { public: - void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, std::function) override; - void Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) override; void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function) override; @@ -388,8 +368,6 @@ class BoardService final { private: std::shared_ptr< ::grpc::ChannelInterface> channel_; class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* AsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::StatusResponse>* PrepareAsyncStatusRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) override; @@ -417,7 +395,6 @@ class BoardService final { ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPowerModeResponse>* PrepareAsyncSetPowerModeRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_Status_; const ::grpc::internal::RpcMethod rpcmethod_SetGPIO_; const ::grpc::internal::RpcMethod rpcmethod_GetGPIO_; const ::grpc::internal::RpcMethod rpcmethod_PWM_; @@ -438,7 +415,6 @@ class BoardService final { public: Service(); virtual ~Service(); - virtual ::grpc::Status Status(::grpc::ServerContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response); virtual ::grpc::Status SetGPIO(::grpc::ServerContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response); // GetGPIO gets the high/low state of the given pin of a board of the underlying robot. virtual ::grpc::Status GetGPIO(::grpc::ServerContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response); @@ -474,32 +450,12 @@ class BoardService final { virtual ::grpc::Status GetGeometries(::grpc::ServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response); }; template - class WithAsyncMethod_Status : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_Status() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_Status() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestStatus(::grpc::ServerContext* context, ::viam::component::board::v1::StatusRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::StatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithAsyncMethod_SetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetGPIO() { - ::grpc::Service::MarkMethodAsync(1); + ::grpc::Service::MarkMethodAsync(0); } ~WithAsyncMethod_SetGPIO() override { BaseClassMustBeDerivedFromService(this); @@ -510,7 +466,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetGPIO(::grpc::ServerContext* context, ::viam::component::board::v1::SetGPIORequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::SetGPIOResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -519,7 +475,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetGPIO() { - ::grpc::Service::MarkMethodAsync(2); + ::grpc::Service::MarkMethodAsync(1); } ~WithAsyncMethod_GetGPIO() override { BaseClassMustBeDerivedFromService(this); @@ -530,7 +486,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetGPIO(::grpc::ServerContext* context, ::viam::component::board::v1::GetGPIORequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::GetGPIOResponse>* 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); + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -539,7 +495,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PWM() { - ::grpc::Service::MarkMethodAsync(3); + ::grpc::Service::MarkMethodAsync(2); } ~WithAsyncMethod_PWM() override { BaseClassMustBeDerivedFromService(this); @@ -550,7 +506,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPWM(::grpc::ServerContext* context, ::viam::component::board::v1::PWMRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::PWMResponse>* 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 @@ -559,7 +515,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetPWM() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(3); } ~WithAsyncMethod_SetPWM() override { BaseClassMustBeDerivedFromService(this); @@ -570,7 +526,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetPWM(::grpc::ServerContext* context, ::viam::component::board::v1::SetPWMRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::SetPWMResponse>* 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 @@ -579,7 +535,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PWMFrequency() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(4); } ~WithAsyncMethod_PWMFrequency() override { BaseClassMustBeDerivedFromService(this); @@ -590,7 +546,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPWMFrequency(::grpc::ServerContext* context, ::viam::component::board::v1::PWMFrequencyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::PWMFrequencyResponse>* 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 @@ -599,7 +555,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetPWMFrequency() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(5); } ~WithAsyncMethod_SetPWMFrequency() override { BaseClassMustBeDerivedFromService(this); @@ -610,7 +566,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetPWMFrequency(::grpc::ServerContext* context, ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::SetPWMFrequencyResponse>* 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 @@ -619,7 +575,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DoCommand() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -630,7 +586,7 @@ class BoardService 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(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -639,7 +595,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ReadAnalogReader() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_ReadAnalogReader() override { BaseClassMustBeDerivedFromService(this); @@ -650,7 +606,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestReadAnalogReader(::grpc::ServerContext* context, ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::ReadAnalogReaderResponse>* 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 @@ -659,7 +615,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_WriteAnalog() { - ::grpc::Service::MarkMethodAsync(9); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_WriteAnalog() override { BaseClassMustBeDerivedFromService(this); @@ -670,7 +626,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestWriteAnalog(::grpc::ServerContext* context, ::viam::component::board::v1::WriteAnalogRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::WriteAnalogResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -679,7 +635,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodAsync(10); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_GetDigitalInterruptValue() override { BaseClassMustBeDerivedFromService(this); @@ -690,7 +646,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetDigitalInterruptValue(::grpc::ServerContext* context, ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -699,7 +655,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_StreamTicks() { - ::grpc::Service::MarkMethodAsync(11); + ::grpc::Service::MarkMethodAsync(10); } ~WithAsyncMethod_StreamTicks() override { BaseClassMustBeDerivedFromService(this); @@ -710,7 +666,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStreamTicks(::grpc::ServerContext* context, ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ServerAsyncWriter< ::viam::component::board::v1::StreamTicksResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(11, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(10, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -719,7 +675,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetPowerMode() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(11); } ~WithAsyncMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); @@ -730,7 +686,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetPowerMode(::grpc::ServerContext* context, ::viam::component::board::v1::SetPowerModeRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::board::v1::SetPowerModeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -739,7 +695,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetGeometries() { - ::grpc::Service::MarkMethodAsync(13); + ::grpc::Service::MarkMethodAsync(12); } ~WithAsyncMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -750,50 +706,23 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetGeometries(::grpc::ServerContext* context, ::viam::common::v1::GetGeometriesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::GetGeometriesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_Status > > > > > > > > > > > > > AsyncService; - template - class WithCallbackMethod_Status : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_Status() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::StatusRequest* request, ::viam::component::board::v1::StatusResponse* response) { return this->Status(context, request, response); }));} - void SetMessageAllocatorFor_Status( - ::grpc::MessageAllocator< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_Status() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); } - virtual ::grpc::ServerUnaryReactor* Status( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) { return nullptr; } }; + typedef WithAsyncMethod_SetGPIO > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_SetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetGPIO() { - ::grpc::Service::MarkMethodCallback(1, + ::grpc::Service::MarkMethodCallback(0, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response) { return this->SetGPIO(context, request, response); }));} void SetMessageAllocatorFor_SetGPIO( ::grpc::MessageAllocator< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -814,13 +743,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetGPIO() { - ::grpc::Service::MarkMethodCallback(2, + ::grpc::Service::MarkMethodCallback(1, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response) { return this->GetGPIO(context, request, response); }));} void SetMessageAllocatorFor_GetGPIO( ::grpc::MessageAllocator< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -841,13 +770,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PWM() { - ::grpc::Service::MarkMethodCallback(3, + ::grpc::Service::MarkMethodCallback(2, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response) { return this->PWM(context, request, response); }));} void SetMessageAllocatorFor_PWM( ::grpc::MessageAllocator< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>* 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::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -868,13 +797,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetPWM() { - ::grpc::Service::MarkMethodCallback(4, + ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response) { return this->SetPWM(context, request, response); }));} void SetMessageAllocatorFor_SetPWM( ::grpc::MessageAllocator< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>* 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::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -895,13 +824,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PWMFrequency() { - ::grpc::Service::MarkMethodCallback(5, + ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response) { return this->PWMFrequency(context, request, response); }));} void SetMessageAllocatorFor_PWMFrequency( ::grpc::MessageAllocator< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>* 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::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -922,13 +851,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetPWMFrequency() { - ::grpc::Service::MarkMethodCallback(6, + ::grpc::Service::MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) { return this->SetPWMFrequency(context, request, response); }));} void SetMessageAllocatorFor_SetPWMFrequency( ::grpc::MessageAllocator< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>* 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::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -949,13 +878,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(7, + ::grpc::Service::MarkMethodCallback(6, 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(7); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -976,13 +905,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_ReadAnalogReader() { - ::grpc::Service::MarkMethodCallback(8, + ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) { return this->ReadAnalogReader(context, request, response); }));} void SetMessageAllocatorFor_ReadAnalogReader( ::grpc::MessageAllocator< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>* 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::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1003,13 +932,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_WriteAnalog() { - ::grpc::Service::MarkMethodCallback(9, + ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response) { return this->WriteAnalog(context, request, response); }));} void SetMessageAllocatorFor_WriteAnalog( ::grpc::MessageAllocator< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1030,13 +959,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodCallback(10, + ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) { return this->GetDigitalInterruptValue(context, request, response); }));} void SetMessageAllocatorFor_GetDigitalInterruptValue( ::grpc::MessageAllocator< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1057,7 +986,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_StreamTicks() { - ::grpc::Service::MarkMethodCallback(11, + ::grpc::Service::MarkMethodCallback(10, new ::grpc::internal::CallbackServerStreamingHandler< ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::StreamTicksRequest* request) { return this->StreamTicks(context, request); })); @@ -1079,13 +1008,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetPowerMode() { - ::grpc::Service::MarkMethodCallback(12, + ::grpc::Service::MarkMethodCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response) { return this->SetPowerMode(context, request, response); }));} void SetMessageAllocatorFor_SetPowerMode( ::grpc::MessageAllocator< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1106,13 +1035,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(13, + ::grpc::Service::MarkMethodCallback(12, new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1127,32 +1056,15 @@ class BoardService final { virtual ::grpc::ServerUnaryReactor* GetGeometries( ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Status > > > > > > > > > > > > > CallbackService; + typedef WithCallbackMethod_SetGPIO > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template - class WithGenericMethod_Status : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_Status() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_Status() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_SetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetGPIO() { - ::grpc::Service::MarkMethodGeneric(1); + ::grpc::Service::MarkMethodGeneric(0); } ~WithGenericMethod_SetGPIO() override { BaseClassMustBeDerivedFromService(this); @@ -1169,7 +1081,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetGPIO() { - ::grpc::Service::MarkMethodGeneric(2); + ::grpc::Service::MarkMethodGeneric(1); } ~WithGenericMethod_GetGPIO() override { BaseClassMustBeDerivedFromService(this); @@ -1186,7 +1098,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PWM() { - ::grpc::Service::MarkMethodGeneric(3); + ::grpc::Service::MarkMethodGeneric(2); } ~WithGenericMethod_PWM() override { BaseClassMustBeDerivedFromService(this); @@ -1203,7 +1115,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetPWM() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(3); } ~WithGenericMethod_SetPWM() override { BaseClassMustBeDerivedFromService(this); @@ -1220,7 +1132,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PWMFrequency() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(4); } ~WithGenericMethod_PWMFrequency() override { BaseClassMustBeDerivedFromService(this); @@ -1237,7 +1149,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetPWMFrequency() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(5); } ~WithGenericMethod_SetPWMFrequency() override { BaseClassMustBeDerivedFromService(this); @@ -1254,7 +1166,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DoCommand() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -1271,7 +1183,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ReadAnalogReader() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_ReadAnalogReader() override { BaseClassMustBeDerivedFromService(this); @@ -1288,7 +1200,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_WriteAnalog() { - ::grpc::Service::MarkMethodGeneric(9); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_WriteAnalog() override { BaseClassMustBeDerivedFromService(this); @@ -1305,7 +1217,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodGeneric(10); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_GetDigitalInterruptValue() override { BaseClassMustBeDerivedFromService(this); @@ -1322,7 +1234,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_StreamTicks() { - ::grpc::Service::MarkMethodGeneric(11); + ::grpc::Service::MarkMethodGeneric(10); } ~WithGenericMethod_StreamTicks() override { BaseClassMustBeDerivedFromService(this); @@ -1339,7 +1251,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetPowerMode() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(11); } ~WithGenericMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); @@ -1356,7 +1268,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetGeometries() { - ::grpc::Service::MarkMethodGeneric(13); + ::grpc::Service::MarkMethodGeneric(12); } ~WithGenericMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -1368,32 +1280,12 @@ class BoardService final { } }; template - class WithRawMethod_Status : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_Status() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_Status() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestStatus(::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(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawMethod_SetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetGPIO() { - ::grpc::Service::MarkMethodRaw(1); + ::grpc::Service::MarkMethodRaw(0); } ~WithRawMethod_SetGPIO() override { BaseClassMustBeDerivedFromService(this); @@ -1404,7 +1296,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetGPIO(::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(1, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1413,7 +1305,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetGPIO() { - ::grpc::Service::MarkMethodRaw(2); + ::grpc::Service::MarkMethodRaw(1); } ~WithRawMethod_GetGPIO() override { BaseClassMustBeDerivedFromService(this); @@ -1424,7 +1316,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetGPIO(::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); + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1433,7 +1325,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PWM() { - ::grpc::Service::MarkMethodRaw(3); + ::grpc::Service::MarkMethodRaw(2); } ~WithRawMethod_PWM() override { BaseClassMustBeDerivedFromService(this); @@ -1444,7 +1336,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPWM(::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 @@ -1453,7 +1345,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetPWM() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(3); } ~WithRawMethod_SetPWM() override { BaseClassMustBeDerivedFromService(this); @@ -1464,7 +1356,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetPWM(::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 @@ -1473,7 +1365,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PWMFrequency() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(4); } ~WithRawMethod_PWMFrequency() override { BaseClassMustBeDerivedFromService(this); @@ -1484,7 +1376,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPWMFrequency(::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 @@ -1493,7 +1385,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetPWMFrequency() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(5); } ~WithRawMethod_SetPWMFrequency() override { BaseClassMustBeDerivedFromService(this); @@ -1504,7 +1396,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetPWMFrequency(::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 @@ -1513,7 +1405,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DoCommand() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -1524,7 +1416,7 @@ class BoardService 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(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1533,7 +1425,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ReadAnalogReader() { - ::grpc::Service::MarkMethodRaw(8); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_ReadAnalogReader() override { BaseClassMustBeDerivedFromService(this); @@ -1544,7 +1436,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestReadAnalogReader(::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 @@ -1553,7 +1445,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_WriteAnalog() { - ::grpc::Service::MarkMethodRaw(9); + ::grpc::Service::MarkMethodRaw(8); } ~WithRawMethod_WriteAnalog() override { BaseClassMustBeDerivedFromService(this); @@ -1564,7 +1456,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestWriteAnalog(::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(9, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1573,7 +1465,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodRaw(10); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_GetDigitalInterruptValue() override { BaseClassMustBeDerivedFromService(this); @@ -1584,7 +1476,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetDigitalInterruptValue(::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(10, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1593,7 +1485,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_StreamTicks() { - ::grpc::Service::MarkMethodRaw(11); + ::grpc::Service::MarkMethodRaw(10); } ~WithRawMethod_StreamTicks() override { BaseClassMustBeDerivedFromService(this); @@ -1604,7 +1496,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStreamTicks(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(11, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(10, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1613,7 +1505,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetPowerMode() { - ::grpc::Service::MarkMethodRaw(12); + ::grpc::Service::MarkMethodRaw(11); } ~WithRawMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); @@ -1624,7 +1516,7 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetPowerMode(::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(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1633,7 +1525,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetGeometries() { - ::grpc::Service::MarkMethodRaw(13); + ::grpc::Service::MarkMethodRaw(12); } ~WithRawMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -1644,30 +1536,8 @@ class BoardService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetGeometries(::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(13, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawCallbackMethod_Status : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_Status() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Status(context, request, response); })); - } - ~WithRawCallbackMethod_Status() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); } - virtual ::grpc::ServerUnaryReactor* Status( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template class WithRawCallbackMethod_SetGPIO : public BaseClass { @@ -1675,7 +1545,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetGPIO() { - ::grpc::Service::MarkMethodRawCallback(1, + ::grpc::Service::MarkMethodRawCallback(0, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetGPIO(context, request, response); })); @@ -1697,7 +1567,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetGPIO() { - ::grpc::Service::MarkMethodRawCallback(2, + ::grpc::Service::MarkMethodRawCallback(1, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGPIO(context, request, response); })); @@ -1719,7 +1589,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PWM() { - ::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->PWM(context, request, response); })); @@ -1741,7 +1611,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetPWM() { - ::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->SetPWM(context, request, response); })); @@ -1763,7 +1633,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PWMFrequency() { - ::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->PWMFrequency(context, request, response); })); @@ -1785,7 +1655,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetPWMFrequency() { - ::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->SetPWMFrequency(context, request, response); })); @@ -1807,7 +1677,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_DoCommand() { - ::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->DoCommand(context, request, response); })); @@ -1829,7 +1699,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_ReadAnalogReader() { - ::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->ReadAnalogReader(context, request, response); })); @@ -1851,7 +1721,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_WriteAnalog() { - ::grpc::Service::MarkMethodRawCallback(9, + ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->WriteAnalog(context, request, response); })); @@ -1873,7 +1743,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodRawCallback(10, + ::grpc::Service::MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDigitalInterruptValue(context, request, response); })); @@ -1895,7 +1765,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_StreamTicks() { - ::grpc::Service::MarkMethodRawCallback(11, + ::grpc::Service::MarkMethodRawCallback(10, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->StreamTicks(context, request); })); @@ -1917,7 +1787,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetPowerMode() { - ::grpc::Service::MarkMethodRawCallback(12, + ::grpc::Service::MarkMethodRawCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPowerMode(context, request, response); })); @@ -1939,7 +1809,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(13, + ::grpc::Service::MarkMethodRawCallback(12, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); @@ -1956,39 +1826,12 @@ class BoardService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithStreamedUnaryMethod_Status : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_Status() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< - ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::component::board::v1::StatusRequest, ::viam::component::board::v1::StatusResponse>* streamer) { - return this->StreamedStatus(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_Status() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status Status(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StatusRequest* /*request*/, ::viam::component::board::v1::StatusResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedStatus(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::board::v1::StatusRequest,::viam::component::board::v1::StatusResponse>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_SetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetGPIO() { - ::grpc::Service::MarkMethodStreamed(1, + ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( [this](::grpc::ServerContext* context, @@ -2015,7 +1858,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetGPIO() { - ::grpc::Service::MarkMethodStreamed(2, + ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( [this](::grpc::ServerContext* context, @@ -2042,7 +1885,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PWM() { - ::grpc::Service::MarkMethodStreamed(3, + ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( [this](::grpc::ServerContext* context, @@ -2069,7 +1912,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetPWM() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( [this](::grpc::ServerContext* context, @@ -2096,7 +1939,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PWMFrequency() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( [this](::grpc::ServerContext* context, @@ -2123,7 +1966,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetPWMFrequency() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( [this](::grpc::ServerContext* context, @@ -2150,7 +1993,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DoCommand() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [this](::grpc::ServerContext* context, @@ -2177,7 +2020,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ReadAnalogReader() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( [this](::grpc::ServerContext* context, @@ -2204,7 +2047,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_WriteAnalog() { - ::grpc::Service::MarkMethodStreamed(9, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>( [this](::grpc::ServerContext* context, @@ -2231,7 +2074,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodStreamed(10, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( [this](::grpc::ServerContext* context, @@ -2258,7 +2101,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetPowerMode() { - ::grpc::Service::MarkMethodStreamed(12, + ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>( [this](::grpc::ServerContext* context, @@ -2285,7 +2128,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetGeometries() { - ::grpc::Service::MarkMethodStreamed(13, + ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this](::grpc::ServerContext* context, @@ -2306,14 +2149,14 @@ class BoardService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetGeometries(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest,::viam::common::v1::GetGeometriesResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Status > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_SetGPIO > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_StreamTicks : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_StreamTicks() { - ::grpc::Service::MarkMethodStreamed(11, + ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::SplitServerStreamingHandler< ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( [this](::grpc::ServerContext* context, @@ -2335,7 +2178,7 @@ class BoardService final { virtual ::grpc::Status StreamedStreamTicks(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::component::board::v1::StreamTicksRequest,::viam::component::board::v1::StreamTicksResponse>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_StreamTicks SplitStreamedService; - typedef WithStreamedUnaryMethod_Status > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_SetGPIO > > > > > > > > > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/component/board/v1/board.pb.cc b/src/viam/api/component/board/v1/board.pb.cc index 719623863..3b8494e6e 100644 --- a/src/viam/api/component/board/v1/board.pb.cc +++ b/src/viam/api/component/board/v1/board.pb.cc @@ -24,31 +24,41 @@ namespace viam { namespace component { namespace board { namespace v1 { -PROTOBUF_CONSTEXPR StatusRequest::StatusRequest( - ::_pbi::ConstantInitialized) - : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , extra_(nullptr){} -struct StatusRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusRequestDefaultTypeInternal() +PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct Status_AnalogsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Status_AnalogsEntry_DoNotUseDefaultTypeInternal() {} + union { + Status_AnalogsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Status_AnalogsEntry_DoNotUseDefaultTypeInternal _Status_AnalogsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusRequestDefaultTypeInternal() {} + ~Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() {} union { - StatusRequest _instance; + Status_DigitalInterruptsEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusRequestDefaultTypeInternal _StatusRequest_default_instance_; -PROTOBUF_CONSTEXPR StatusResponse::StatusResponse( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _Status_DigitalInterruptsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( ::_pbi::ConstantInitialized) - : status_(nullptr){} -struct StatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() + : analogs_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , digital_interrupts_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusResponseDefaultTypeInternal() {} + ~StatusDefaultTypeInternal() {} union { - StatusResponse _instance; + Status _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; PROTOBUF_CONSTEXPR SetGPIORequest::SetGPIORequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) @@ -342,26 +352,39 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace board } // namespace component } // namespace viam -static ::_pb::Metadata file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[24]; +static ::_pb::Metadata file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[25]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fboard_2fv1_2fboard_2eproto = nullptr; const uint32_t TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusRequest, name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusRequest, extra_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StatusResponse, status_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, analogs_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, digital_interrupts_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _internal_metadata_), ~0u, // no _extensions_ @@ -546,35 +569,37 @@ const uint32_t TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets[] PRO ~0u, // no _inlined_string_donated_ }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::viam::component::board::v1::StatusRequest)}, - { 8, -1, -1, sizeof(::viam::component::board::v1::StatusResponse)}, - { 15, -1, -1, sizeof(::viam::component::board::v1::SetGPIORequest)}, - { 25, -1, -1, sizeof(::viam::component::board::v1::SetGPIOResponse)}, - { 31, -1, -1, sizeof(::viam::component::board::v1::GetGPIORequest)}, - { 40, -1, -1, sizeof(::viam::component::board::v1::GetGPIOResponse)}, - { 47, -1, -1, sizeof(::viam::component::board::v1::PWMRequest)}, - { 56, -1, -1, sizeof(::viam::component::board::v1::PWMResponse)}, - { 63, -1, -1, sizeof(::viam::component::board::v1::SetPWMRequest)}, - { 73, -1, -1, sizeof(::viam::component::board::v1::SetPWMResponse)}, - { 79, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyRequest)}, - { 88, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyResponse)}, - { 95, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyRequest)}, - { 105, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyResponse)}, - { 111, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderRequest)}, - { 120, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderResponse)}, - { 127, -1, -1, sizeof(::viam::component::board::v1::WriteAnalogRequest)}, - { 137, -1, -1, sizeof(::viam::component::board::v1::WriteAnalogResponse)}, - { 143, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueRequest)}, - { 152, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueResponse)}, - { 159, -1, -1, sizeof(::viam::component::board::v1::StreamTicksRequest)}, - { 168, -1, -1, sizeof(::viam::component::board::v1::StreamTicksResponse)}, - { 177, 187, -1, sizeof(::viam::component::board::v1::SetPowerModeRequest)}, - { 191, -1, -1, sizeof(::viam::component::board::v1::SetPowerModeResponse)}, + { 0, 8, -1, sizeof(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse)}, + { 10, 18, -1, sizeof(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse)}, + { 20, -1, -1, sizeof(::viam::component::board::v1::Status)}, + { 28, -1, -1, sizeof(::viam::component::board::v1::SetGPIORequest)}, + { 38, -1, -1, sizeof(::viam::component::board::v1::SetGPIOResponse)}, + { 44, -1, -1, sizeof(::viam::component::board::v1::GetGPIORequest)}, + { 53, -1, -1, sizeof(::viam::component::board::v1::GetGPIOResponse)}, + { 60, -1, -1, sizeof(::viam::component::board::v1::PWMRequest)}, + { 69, -1, -1, sizeof(::viam::component::board::v1::PWMResponse)}, + { 76, -1, -1, sizeof(::viam::component::board::v1::SetPWMRequest)}, + { 86, -1, -1, sizeof(::viam::component::board::v1::SetPWMResponse)}, + { 92, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyRequest)}, + { 101, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyResponse)}, + { 108, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyRequest)}, + { 118, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyResponse)}, + { 124, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderRequest)}, + { 133, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderResponse)}, + { 140, -1, -1, sizeof(::viam::component::board::v1::WriteAnalogRequest)}, + { 150, -1, -1, sizeof(::viam::component::board::v1::WriteAnalogResponse)}, + { 156, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueRequest)}, + { 165, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueResponse)}, + { 172, -1, -1, sizeof(::viam::component::board::v1::StreamTicksRequest)}, + { 181, -1, -1, sizeof(::viam::component::board::v1::StreamTicksResponse)}, + { 190, 200, -1, sizeof(::viam::component::board::v1::SetPowerModeRequest)}, + { 204, -1, -1, sizeof(::viam::component::board::v1::SetPowerModeResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::board::v1::_StatusRequest_default_instance_._instance, - &::viam::component::board::v1::_StatusResponse_default_instance_._instance, + &::viam::component::board::v1::_Status_AnalogsEntry_DoNotUse_default_instance_._instance, + &::viam::component::board::v1::_Status_DigitalInterruptsEntry_DoNotUse_default_instance_._instance, + &::viam::component::board::v1::_Status_default_instance_._instance, &::viam::component::board::v1::_SetGPIORequest_default_instance_._instance, &::viam::component::board::v1::_SetGPIOResponse_default_instance_._instance, &::viam::component::board::v1::_GetGPIORequest_default_instance_._instance, @@ -604,122 +629,122 @@ const char descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto[] PR "omponent.board.v1\032\026common/v1/common.prot" "o\032\034google/api/annotations.proto\032\036google/" "protobuf/duration.proto\032\034google/protobuf" - "/struct.proto\"R\n\rStatusRequest\022\022\n\004name\030\001" - " \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.proto" - "buf.StructR\005extra\"E\n\016StatusResponse\0223\n\006s" - "tatus\030\001 \001(\0132\033.viam.common.v1.BoardStatus" - "R\006status\"y\n\016SetGPIORequest\022\022\n\004name\030\001 \001(\t" - "R\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022\022\n\004high\030\003 \001(\010R\004" - "high\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" - "ructR\005extra\"\021\n\017SetGPIOResponse\"e\n\016GetGPI" - "ORequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(" - "\tR\003pin\022-\n\005extra\030c \001(\0132\027.google.protobuf." - "StructR\005extra\"%\n\017GetGPIOResponse\022\022\n\004high" - "\030\001 \001(\010R\004high\"a\n\nPWMRequest\022\022\n\004name\030\001 \001(\t" - "R\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\0132" - "\027.google.protobuf.StructR\005extra\"3\n\013PWMRe" - "sponse\022$\n\016duty_cycle_pct\030\001 \001(\001R\014dutyCycl" - "ePct\"\212\001\n\rSetPWMRequest\022\022\n\004name\030\001 \001(\tR\004na" - "me\022\020\n\003pin\030\002 \001(\tR\003pin\022$\n\016duty_cycle_pct\030\003" - " \001(\001R\014dutyCyclePct\022-\n\005extra\030c \001(\0132\027.goog" - "le.protobuf.StructR\005extra\"\020\n\016SetPWMRespo" - "nse\"j\n\023PWMFrequencyRequest\022\022\n\004name\030\001 \001(\t" - "R\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\0132" - "\027.google.protobuf.StructR\005extra\"9\n\024PWMFr" - "equencyResponse\022!\n\014frequency_hz\030\001 \001(\004R\013f" - "requencyHz\"\220\001\n\026SetPWMFrequencyRequest\022\022\n" - "\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022!\n\014f" - "requency_hz\030\003 \001(\004R\013frequencyHz\022-\n\005extra\030" - "c \001(\0132\027.google.protobuf.StructR\005extra\"\031\n" - "\027SetPWMFrequencyResponse\"\225\001\n\027ReadAnalogR" - "eaderRequest\022\035\n\nboard_name\030\001 \001(\tR\tboardN" - "ame\022,\n\022analog_reader_name\030\002 \001(\tR\020analogR" - "eaderName\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"0\n\030ReadAnalogReaderResp" - "onse\022\024\n\005value\030\001 \001(\005R\005value\"\177\n\022WriteAnalo" - "gRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(" - "\tR\003pin\022\024\n\005value\030\003 \001(\005R\005value\022-\n\005extra\030c " - "\001(\0132\027.google.protobuf.StructR\005extra\"\025\n\023W" - "riteAnalogResponse\"\245\001\n\037GetDigitalInterru" - "ptValueRequest\022\035\n\nboard_name\030\001 \001(\tR\tboar" - "dName\0224\n\026digital_interrupt_name\030\002 \001(\tR\024d" - "igitalInterruptName\022-\n\005extra\030c \001(\0132\027.goo" - "gle.protobuf.StructR\005extra\"8\n GetDigital" - "InterruptValueResponse\022\024\n\005value\030\001 \001(\003R\005v" - "alue\"t\n\022StreamTicksRequest\022\022\n\004name\030\001 \001(\t" - "R\004name\022\033\n\tpin_names\030\002 \003(\tR\010pinNames\022-\n\005e" - "xtra\030c \001(\0132\027.google.protobuf.StructR\005ext" - "ra\"X\n\023StreamTicksResponse\022\031\n\010pin_name\030\001 " - "\001(\tR\007pinName\022\022\n\004time\030\002 \001(\004R\004time\022\022\n\004high" - "\030\003 \001(\010R\004high\"\344\001\n\023SetPowerModeRequest\022\022\n\004" - "name\030\001 \001(\tR\004name\022A\n\npower_mode\030\002 \001(\0162\".v" - "iam.component.board.v1.PowerModeR\tpowerM" - "ode\022:\n\010duration\030\003 \001(\0132\031.google.protobuf." - "DurationH\000R\010duration\210\001\001\022-\n\005extra\030c \001(\0132\027" - ".google.protobuf.StructR\005extraB\013\n\t_durat" - "ion\"\026\n\024SetPowerModeResponse*[\n\tPowerMode" - "\022\032\n\026POWER_MODE_UNSPECIFIED\020\000\022\025\n\021POWER_MO" - "DE_NORMAL\020\001\022\033\n\027POWER_MODE_OFFLINE_DEEP\020\002" - "2\200\022\n\014BoardService\022\215\001\n\006Status\022&.viam.comp" - "onent.board.v1.StatusRequest\032\'.viam.comp" - "onent.board.v1.StatusResponse\"2\202\323\344\223\002,\022*/" - "viam/api/v1/component/board/{name}/statu" - "s\022\216\001\n\007SetGPIO\022\'.viam.component.board.v1." - "SetGPIORequest\032(.viam.component.board.v1" - ".SetGPIOResponse\"0\202\323\344\223\002*\032(/viam/api/v1/c" - "omponent/board/{name}/gpio\022\216\001\n\007GetGPIO\022\'" - ".viam.component.board.v1.GetGPIORequest\032" - "(.viam.component.board.v1.GetGPIORespons" - "e\"0\202\323\344\223\002*\022(/viam/api/v1/component/board/" - "{name}/gpio\022\201\001\n\003PWM\022#.viam.component.boa" - "rd.v1.PWMRequest\032$.viam.component.board." - "v1.PWMResponse\"/\202\323\344\223\002)\022\'/viam/api/v1/com" - "ponent/board/{name}/pwm\022\212\001\n\006SetPWM\022&.via" - "m.component.board.v1.SetPWMRequest\032\'.via" - "m.component.board.v1.SetPWMResponse\"/\202\323\344" - "\223\002)\032\'/viam/api/v1/component/board/{name}" - "/pwm\022\241\001\n\014PWMFrequency\022,.viam.component.b" - "oard.v1.PWMFrequencyRequest\032-.viam.compo" - "nent.board.v1.PWMFrequencyResponse\"4\202\323\344\223" - "\002.\022,/viam/api/v1/component/board/{name}/" - "pwm_freq\022\252\001\n\017SetPWMFrequency\022/.viam.comp" - "onent.board.v1.SetPWMFrequencyRequest\0320." - "viam.component.board.v1.SetPWMFrequencyR" - "esponse\"4\202\323\344\223\002.\032,/viam/api/v1/component/" - "board/{name}/pwm_freq\022\210\001\n\tDoCommand\022 .vi" - "am.common.v1.DoCommandRequest\032!.viam.com" - "mon.v1.DoCommandResponse\"6\202\323\344\223\0020\"./viam/" - "api/v1/component/board/{name}/do_command" - "\022\322\001\n\020ReadAnalogReader\0220.viam.component.b" - "oard.v1.ReadAnalogReaderRequest\0321.viam.c" - "omponent.board.v1.ReadAnalogReaderRespon" - "se\"Y\202\323\344\223\002S\022Q/viam/api/v1/component/board" - "/{board_name}/analog_reader/{analog_read" - "er_name}/read\022\242\001\n\013WriteAnalog\022+.viam.com" - "ponent.board.v1.WriteAnalogRequest\032,.via" - "m.component.board.v1.WriteAnalogResponse" - "\"8\202\323\344\223\0022\0320/viam/api/v1/component/board/{" - "name}/analog_write\022\363\001\n\030GetDigitalInterru" - "ptValue\0228.viam.component.board.v1.GetDig" - "italInterruptValueRequest\0329.viam.compone" - "nt.board.v1.GetDigitalInterruptValueResp" - "onse\"b\202\323\344\223\002\\\022Z/viam/api/v1/component/boa" - "rd/{board_name}/digital_interrupt/{digit" - "al_interrupt_name}/value\022\243\001\n\013StreamTicks" - "\022+.viam.component.board.v1.StreamTicksRe" - "quest\032,.viam.component.board.v1.StreamTi" - "cksResponse\"7\202\323\344\223\0021\022//viam/api/v1/compon" - "ent/board/{name}/tick_stream0\001\022\243\001\n\014SetPo" - "werMode\022,.viam.component.board.v1.SetPow" - "erModeRequest\032-.viam.component.board.v1." - "SetPowerModeResponse\"6\202\323\344\223\0020\032./viam/api/" - "v1/component/board/{name}/power_mode\022\224\001\n" - "\rGetGeometries\022$.viam.common.v1.GetGeome" - "triesRequest\032%.viam.common.v1.GetGeometr" - "iesResponse\"6\202\323\344\223\0020\022./viam/api/v1/compon" - "ent/board/{name}/geometriesBA\n\033com.viam." - "component.board.v1Z\"go.viam.com/api/comp" - "onent/board/v1b\006proto3" + "/struct.proto\"\271\002\n\006Status\022F\n\007analogs\030\001 \003(" + "\0132,.viam.component.board.v1.Status.Analo" + "gsEntryR\007analogs\022e\n\022digital_interrupts\030\002" + " \003(\01326.viam.component.board.v1.Status.Di" + "gitalInterruptsEntryR\021digitalInterrupts\032" + ":\n\014AnalogsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + "ue\030\002 \001(\005R\005value:\0028\001\032D\n\026DigitalInterrupts" + "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\003R\005" + "value:\0028\001\"y\n\016SetGPIORequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022\022\n\004high\030\003 \001(\010R" + "\004high\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"\021\n\017SetGPIOResponse\"e\n\016GetGP" + "IORequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001" + "(\tR\003pin\022-\n\005extra\030c \001(\0132\027.google.protobuf" + ".StructR\005extra\"%\n\017GetGPIOResponse\022\022\n\004hig" + "h\030\001 \001(\010R\004high\"a\n\nPWMRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"3\n\013PWMR" + "esponse\022$\n\016duty_cycle_pct\030\001 \001(\001R\014dutyCyc" + "lePct\"\212\001\n\rSetPWMRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022\020\n\003pin\030\002 \001(\tR\003pin\022$\n\016duty_cycle_pct\030" + "\003 \001(\001R\014dutyCyclePct\022-\n\005extra\030c \001(\0132\027.goo" + "gle.protobuf.StructR\005extra\"\020\n\016SetPWMResp" + "onse\"j\n\023PWMFrequencyRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"9\n\024PWMF" + "requencyResponse\022!\n\014frequency_hz\030\001 \001(\004R\013" + "frequencyHz\"\220\001\n\026SetPWMFrequencyRequest\022\022" + "\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022!\n\014" + "frequency_hz\030\003 \001(\004R\013frequencyHz\022-\n\005extra" + "\030c \001(\0132\027.google.protobuf.StructR\005extra\"\031" + "\n\027SetPWMFrequencyResponse\"\225\001\n\027ReadAnalog" + "ReaderRequest\022\035\n\nboard_name\030\001 \001(\tR\tboard" + "Name\022,\n\022analog_reader_name\030\002 \001(\tR\020analog" + "ReaderName\022-\n\005extra\030c \001(\0132\027.google.proto" + "buf.StructR\005extra\"0\n\030ReadAnalogReaderRes" + "ponse\022\024\n\005value\030\001 \001(\005R\005value\"\177\n\022WriteAnal" + "ogRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001" + "(\tR\003pin\022\024\n\005value\030\003 \001(\005R\005value\022-\n\005extra\030c" + " \001(\0132\027.google.protobuf.StructR\005extra\"\025\n\023" + "WriteAnalogResponse\"\245\001\n\037GetDigitalInterr" + "uptValueRequest\022\035\n\nboard_name\030\001 \001(\tR\tboa" + "rdName\0224\n\026digital_interrupt_name\030\002 \001(\tR\024" + "digitalInterruptName\022-\n\005extra\030c \001(\0132\027.go" + "ogle.protobuf.StructR\005extra\"8\n GetDigita" + "lInterruptValueResponse\022\024\n\005value\030\001 \001(\003R\005" + "value\"t\n\022StreamTicksRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022\033\n\tpin_names\030\002 \003(\tR\010pinNames\022-\n\005" + "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" + "tra\"X\n\023StreamTicksResponse\022\031\n\010pin_name\030\001" + " \001(\tR\007pinName\022\022\n\004time\030\002 \001(\004R\004time\022\022\n\004hig" + "h\030\003 \001(\010R\004high\"\344\001\n\023SetPowerModeRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022A\n\npower_mode\030\002 \001(\0162\"." + "viam.component.board.v1.PowerModeR\tpower" + "Mode\022:\n\010duration\030\003 \001(\0132\031.google.protobuf" + ".DurationH\000R\010duration\210\001\001\022-\n\005extra\030c \001(\0132" + "\027.google.protobuf.StructR\005extraB\013\n\t_dura" + "tion\"\026\n\024SetPowerModeResponse*[\n\tPowerMod" + "e\022\032\n\026POWER_MODE_UNSPECIFIED\020\000\022\025\n\021POWER_M" + "ODE_NORMAL\020\001\022\033\n\027POWER_MODE_OFFLINE_DEEP\020" + "\0022\360\020\n\014BoardService\022\216\001\n\007SetGPIO\022\'.viam.co" + "mponent.board.v1.SetGPIORequest\032(.viam.c" + "omponent.board.v1.SetGPIOResponse\"0\202\323\344\223\002" + "*\032(/viam/api/v1/component/board/{name}/g" + "pio\022\216\001\n\007GetGPIO\022\'.viam.component.board.v" + "1.GetGPIORequest\032(.viam.component.board." + "v1.GetGPIOResponse\"0\202\323\344\223\002*\022(/viam/api/v1" + "/component/board/{name}/gpio\022\201\001\n\003PWM\022#.v" + "iam.component.board.v1.PWMRequest\032$.viam" + ".component.board.v1.PWMResponse\"/\202\323\344\223\002)\022" + "\'/viam/api/v1/component/board/{name}/pwm" + "\022\212\001\n\006SetPWM\022&.viam.component.board.v1.Se" + "tPWMRequest\032\'.viam.component.board.v1.Se" + "tPWMResponse\"/\202\323\344\223\002)\032\'/viam/api/v1/compo" + "nent/board/{name}/pwm\022\241\001\n\014PWMFrequency\022," + ".viam.component.board.v1.PWMFrequencyReq" + "uest\032-.viam.component.board.v1.PWMFreque" + "ncyResponse\"4\202\323\344\223\002.\022,/viam/api/v1/compon" + "ent/board/{name}/pwm_freq\022\252\001\n\017SetPWMFreq" + "uency\022/.viam.component.board.v1.SetPWMFr" + "equencyRequest\0320.viam.component.board.v1" + ".SetPWMFrequencyResponse\"4\202\323\344\223\002.\032,/viam/" + "api/v1/component/board/{name}/pwm_freq\022\210" + "\001\n\tDoCommand\022 .viam.common.v1.DoCommandR" + "equest\032!.viam.common.v1.DoCommandRespons" + "e\"6\202\323\344\223\0020\"./viam/api/v1/component/board/" + "{name}/do_command\022\322\001\n\020ReadAnalogReader\0220" + ".viam.component.board.v1.ReadAnalogReade" + "rRequest\0321.viam.component.board.v1.ReadA" + "nalogReaderResponse\"Y\202\323\344\223\002S\022Q/viam/api/v" + "1/component/board/{board_name}/analog_re" + "ader/{analog_reader_name}/read\022\242\001\n\013Write" + "Analog\022+.viam.component.board.v1.WriteAn" + "alogRequest\032,.viam.component.board.v1.Wr" + "iteAnalogResponse\"8\202\323\344\223\0022\0320/viam/api/v1/" + "component/board/{name}/analog_write\022\363\001\n\030" + "GetDigitalInterruptValue\0228.viam.componen" + "t.board.v1.GetDigitalInterruptValueReque" + "st\0329.viam.component.board.v1.GetDigitalI" + "nterruptValueResponse\"b\202\323\344\223\002\\\022Z/viam/api" + "/v1/component/board/{board_name}/digital" + "_interrupt/{digital_interrupt_name}/valu" + "e\022\243\001\n\013StreamTicks\022+.viam.component.board" + ".v1.StreamTicksRequest\032,.viam.component." + "board.v1.StreamTicksResponse\"7\202\323\344\223\0021\022//v" + "iam/api/v1/component/board/{name}/tick_s" + "tream0\001\022\243\001\n\014SetPowerMode\022,.viam.componen" + "t.board.v1.SetPowerModeRequest\032-.viam.co" + "mponent.board.v1.SetPowerModeResponse\"6\202" + "\323\344\223\0020\032./viam/api/v1/component/board/{nam" + "e}/power_mode\022\224\001\n\rGetGeometries\022$.viam.c" + "ommon.v1.GetGeometriesRequest\032%.viam.com" + "mon.v1.GetGeometriesResponse\"6\202\323\344\223\0020\022./v" + "iam/api/v1/component/board/{name}/geomet" + "riesBA\n\033com.viam.component.board.v1Z\"go." + "viam.com/api/component/board/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -729,9 +754,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_component_2fboard_2 }; static ::_pbi::once_flag descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fboard_2fv1_2fboard_2eproto = { - false, false, 4782, descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto, + false, false, 4799, descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto, "component/board/v1/board.proto", - &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps, 4, 24, + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps, 4, 25, schemas, file_default_instances, TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto, file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto, file_level_service_descriptors_component_2fboard_2fv1_2fboard_2eproto, @@ -764,327 +789,125 @@ bool PowerMode_IsValid(int value) { // =================================================================== -class StatusRequest::_Internal { - public: - static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StatusRequest* msg); -}; - -const ::PROTOBUF_NAMESPACE_ID::Struct& -StatusRequest::_Internal::extra(const StatusRequest* msg) { - return *msg->extra_; -} -void StatusRequest::clear_extra() { - if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { - delete extra_; - } - extra_ = nullptr; -} -StatusRequest::StatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.StatusRequest) -} -StatusRequest::StatusRequest(const StatusRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _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_extra()) { - extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); - } else { - extra_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.StatusRequest) -} - -inline void StatusRequest::SharedCtor() { -name_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - name_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -extra_ = nullptr; -} - -StatusRequest::~StatusRequest() { - // @@protoc_insertion_point(destructor:viam.component.board.v1.StatusRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void StatusRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - name_.Destroy(); - if (this != internal_default_instance()) delete extra_; -} - -void StatusRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void StatusRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StatusRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { - delete extra_; - } - extra_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StatusRequest::_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 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.component.board.v1.StatusRequest.name")); - } 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: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* StatusRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StatusRequest) - 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.component.board.v1.StatusRequest.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // .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.component.board.v1.StatusRequest) - return target; -} - -size_t StatusRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StatusRequest) - 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()); - } - - // .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 StatusRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - StatusRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StatusRequest::GetClassData() const { return &_class_data_; } - -void StatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void StatusRequest::MergeFrom(const StatusRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StatusRequest) - 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_extra()) { - _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse() {} +Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Status_AnalogsEntry_DoNotUse::MergeFrom(const Status_AnalogsEntry_DoNotUse& other) { + MergeFromInternal(other); } - -void StatusRequest::CopyFrom(const StatusRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.StatusRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); +::PROTOBUF_NAMESPACE_ID::Metadata Status_AnalogsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[0]); } -bool StatusRequest::IsInitialized() const { - return true; -} +// =================================================================== -void StatusRequest::InternalSwap(StatusRequest* 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( - &name_, lhs_arena, - &other->name_, rhs_arena - ); - swap(extra_, other->extra_); +Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse() {} +Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Status_DigitalInterruptsEntry_DoNotUse::MergeFrom(const Status_DigitalInterruptsEntry_DoNotUse& other) { + MergeFromInternal(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata StatusRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status_DigitalInterruptsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[0]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[1]); } // =================================================================== -class StatusResponse::_Internal { +class Status::_Internal { public: - static const ::viam::common::v1::BoardStatus& status(const StatusResponse* msg); }; -const ::viam::common::v1::BoardStatus& -StatusResponse::_Internal::status(const StatusResponse* msg) { - return *msg->status_; -} -void StatusResponse::clear_status() { - if (GetArenaForAllocation() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -StatusResponse::StatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +Status::Status(::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), + analogs_(arena), + digital_interrupts_(arena) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.StatusResponse) + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &Status::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.Status) } -StatusResponse::StatusResponse(const StatusResponse& from) +Status::Status(const Status& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_status()) { - status_ = new ::viam::common::v1::BoardStatus(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.StatusResponse) + analogs_.MergeFrom(from.analogs_); + digital_interrupts_.MergeFrom(from.digital_interrupts_); + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.Status) } -inline void StatusResponse::SharedCtor() { -status_ = nullptr; +inline void Status::SharedCtor() { } -StatusResponse::~StatusResponse() { - // @@protoc_insertion_point(destructor:viam.component.board.v1.StatusResponse) +Status::~Status() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.Status) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; + ArenaDtor(this); return; } SharedDtor(); } -inline void StatusResponse::SharedDtor() { +inline void Status::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete status_; + analogs_.Destruct(); + digital_interrupts_.Destruct(); } -void StatusResponse::SetCachedSize(int size) const { +void Status::ArenaDtor(void* object) { + Status* _this = reinterpret_cast< Status* >(object); + _this->analogs_.Destruct(); + _this->digital_interrupts_.Destruct(); +} +void Status::SetCachedSize(int size) const { _cached_size_.Set(size); } -void StatusResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StatusResponse) +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.Status) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; + analogs_.Clear(); + digital_interrupts_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* StatusResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Status::_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) { - // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; + // map analogs = 1 [json_name = "analogs"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&analogs_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&digital_interrupts_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; @@ -1111,91 +934,147 @@ const char* StatusResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* StatusResponse::_InternalSerialize( +uint8_t* Status::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StatusResponse) + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.Status) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; - if (this->_internal_has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::status(this), - _Internal::status(this).GetCachedSize(), target, stream); + // map analogs = 1 [json_name = "analogs"]; + if (!this->_internal_analogs().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Status_AnalogsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_analogs(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.Status.AnalogsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + if (!this->_internal_digital_interrupts().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Status_DigitalInterruptsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_digital_interrupts(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.Status.DigitalInterruptsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } } 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.component.board.v1.StatusResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.component.board.v1.Status) return target; } -size_t StatusResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StatusResponse) +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.Status) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; - if (this->_internal_has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); + // map analogs = 1 [json_name = "analogs"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_analogs_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >::const_iterator + it = this->_internal_analogs().begin(); + it != this->_internal_analogs().end(); ++it) { + total_size += Status_AnalogsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_digital_interrupts_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >::const_iterator + it = this->_internal_digital_interrupts().begin(); + it != this->_internal_digital_interrupts().end(); ++it) { + total_size += Status_DigitalInterruptsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StatusResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - StatusResponse::MergeImpl + Status::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StatusResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } -void StatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void Status::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 StatusResponse::MergeFrom(const StatusResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StatusResponse) +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.Status) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_status()) { - _internal_mutable_status()->::viam::common::v1::BoardStatus::MergeFrom(from._internal_status()); - } + analogs_.MergeFrom(from.analogs_); + digital_interrupts_.MergeFrom(from.digital_interrupts_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void StatusResponse::CopyFrom(const StatusResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.StatusResponse) +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.Status) if (&from == this) return; Clear(); MergeFrom(from); } -bool StatusResponse::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -void StatusResponse::InternalSwap(StatusResponse* other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(status_, other->status_); + analogs_.InternalSwap(&other->analogs_); + digital_interrupts_.InternalSwap(&other->digital_interrupts_); } -::PROTOBUF_NAMESPACE_ID::Metadata StatusResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[1]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[2]); } // =================================================================== @@ -1518,7 +1397,7 @@ void SetGPIORequest::InternalSwap(SetGPIORequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetGPIORequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[2]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[3]); } // =================================================================== @@ -1557,7 +1436,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetGPIOResponse::GetClassData( ::PROTOBUF_NAMESPACE_ID::Metadata SetGPIOResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[3]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[4]); } // =================================================================== @@ -1848,7 +1727,7 @@ void GetGPIORequest::InternalSwap(GetGPIORequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetGPIORequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[4]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[5]); } // =================================================================== @@ -2019,7 +1898,7 @@ void GetGPIOResponse::InternalSwap(GetGPIOResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetGPIOResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[5]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[6]); } // =================================================================== @@ -2310,7 +2189,7 @@ void PWMRequest::InternalSwap(PWMRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PWMRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[6]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[7]); } // =================================================================== @@ -2493,7 +2372,7 @@ void PWMResponse::InternalSwap(PWMResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PWMResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[7]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[8]); } // =================================================================== @@ -2828,7 +2707,7 @@ void SetPWMRequest::InternalSwap(SetPWMRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetPWMRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[8]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[9]); } // =================================================================== @@ -2867,7 +2746,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMResponse::GetClassData() ::PROTOBUF_NAMESPACE_ID::Metadata SetPWMResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[9]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[10]); } // =================================================================== @@ -3158,7 +3037,7 @@ void PWMFrequencyRequest::InternalSwap(PWMFrequencyRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PWMFrequencyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[10]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[11]); } // =================================================================== @@ -3329,7 +3208,7 @@ void PWMFrequencyResponse::InternalSwap(PWMFrequencyResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PWMFrequencyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[11]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[12]); } // =================================================================== @@ -3652,7 +3531,7 @@ void SetPWMFrequencyRequest::InternalSwap(SetPWMFrequencyRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetPWMFrequencyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[12]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[13]); } // =================================================================== @@ -3691,7 +3570,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMFrequencyResponse::GetCl ::PROTOBUF_NAMESPACE_ID::Metadata SetPWMFrequencyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[13]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[14]); } // =================================================================== @@ -3982,7 +3861,7 @@ void ReadAnalogReaderRequest::InternalSwap(ReadAnalogReaderRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ReadAnalogReaderRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[14]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[15]); } // =================================================================== @@ -4153,7 +4032,7 @@ void ReadAnalogReaderResponse::InternalSwap(ReadAnalogReaderResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ReadAnalogReaderResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[15]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[16]); } // =================================================================== @@ -4476,7 +4355,7 @@ void WriteAnalogRequest::InternalSwap(WriteAnalogRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata WriteAnalogRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[16]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[17]); } // =================================================================== @@ -4515,7 +4394,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WriteAnalogResponse::GetClassD ::PROTOBUF_NAMESPACE_ID::Metadata WriteAnalogResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[17]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[18]); } // =================================================================== @@ -4806,7 +4685,7 @@ void GetDigitalInterruptValueRequest::InternalSwap(GetDigitalInterruptValueReque ::PROTOBUF_NAMESPACE_ID::Metadata GetDigitalInterruptValueRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[18]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[19]); } // =================================================================== @@ -4977,7 +4856,7 @@ void GetDigitalInterruptValueResponse::InternalSwap(GetDigitalInterruptValueResp ::PROTOBUF_NAMESPACE_ID::Metadata GetDigitalInterruptValueResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[19]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[20]); } // =================================================================== @@ -5258,7 +5137,7 @@ void StreamTicksRequest::InternalSwap(StreamTicksRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StreamTicksRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[20]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[21]); } // =================================================================== @@ -5513,7 +5392,7 @@ void StreamTicksResponse::InternalSwap(StreamTicksResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StreamTicksResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[21]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[22]); } // =================================================================== @@ -5846,7 +5725,7 @@ void SetPowerModeRequest::InternalSwap(SetPowerModeRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetPowerModeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[22]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[23]); } // =================================================================== @@ -5885,7 +5764,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerModeResponse::GetClass ::PROTOBUF_NAMESPACE_ID::Metadata SetPowerModeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[23]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[24]); } // @@protoc_insertion_point(namespace_scope) @@ -5894,13 +5773,17 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetPowerModeResponse::GetMetadata() const { } // namespace component } // namespace viam PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StatusRequest* -Arena::CreateMaybeMessage< ::viam::component::board::v1::StatusRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::component::board::v1::StatusRequest >(arena); +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse >(arena); } -template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StatusResponse* -Arena::CreateMaybeMessage< ::viam::component::board::v1::StatusResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::component::board::v1::StatusResponse >(arena); +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::board::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::Status >(arena); } template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetGPIORequest* Arena::CreateMaybeMessage< ::viam::component::board::v1::SetGPIORequest >(Arena* arena) { diff --git a/src/viam/api/component/board/v1/board.pb.h b/src/viam/api/component/board/v1/board.pb.h index 244ef2036..aa554e0f4 100644 --- a/src/viam/api/component/board/v1/board.pb.h +++ b/src/viam/api/component/board/v1/board.pb.h @@ -30,6 +30,9 @@ #include #include // IWYU pragma: export #include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include #include #include "common/v1/common.pb.h" @@ -108,12 +111,15 @@ extern SetPowerModeRequestDefaultTypeInternal _SetPowerModeRequest_default_insta class SetPowerModeResponse; struct SetPowerModeResponseDefaultTypeInternal; extern SetPowerModeResponseDefaultTypeInternal _SetPowerModeResponse_default_instance_; -class StatusRequest; -struct StatusRequestDefaultTypeInternal; -extern StatusRequestDefaultTypeInternal _StatusRequest_default_instance_; -class StatusResponse; -struct StatusResponseDefaultTypeInternal; -extern StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +class Status_AnalogsEntry_DoNotUse; +struct Status_AnalogsEntry_DoNotUseDefaultTypeInternal; +extern Status_AnalogsEntry_DoNotUseDefaultTypeInternal _Status_AnalogsEntry_DoNotUse_default_instance_; +class Status_DigitalInterruptsEntry_DoNotUse; +struct Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal; +extern Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _Status_DigitalInterruptsEntry_DoNotUse_default_instance_; class StreamTicksRequest; struct StreamTicksRequestDefaultTypeInternal; extern StreamTicksRequestDefaultTypeInternal _StreamTicksRequest_default_instance_; @@ -149,8 +155,9 @@ template<> ::viam::component::board::v1::SetPWMRequest* Arena::CreateMaybeMessag template<> ::viam::component::board::v1::SetPWMResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMResponse>(Arena*); template<> ::viam::component::board::v1::SetPowerModeRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPowerModeRequest>(Arena*); template<> ::viam::component::board::v1::SetPowerModeResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPowerModeResponse>(Arena*); -template<> ::viam::component::board::v1::StatusRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::StatusRequest>(Arena*); -template<> ::viam::component::board::v1::StatusResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::StatusResponse>(Arena*); +template<> ::viam::component::board::v1::Status* Arena::CreateMaybeMessage<::viam::component::board::v1::Status>(Arena*); +template<> ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::board::v1::Status_AnalogsEntry_DoNotUse>(Arena*); +template<> ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse>(Arena*); template<> ::viam::component::board::v1::StreamTicksRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::StreamTicksRequest>(Arena*); template<> ::viam::component::board::v1::StreamTicksResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::StreamTicksResponse>(Arena*); template<> ::viam::component::board::v1::WriteAnalogRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::WriteAnalogRequest>(Arena*); @@ -189,192 +196,76 @@ inline bool PowerMode_Parse( } // =================================================================== -class StatusRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StatusRequest) */ { - public: - inline StatusRequest() : StatusRequest(nullptr) {} - ~StatusRequest() override; - explicit PROTOBUF_CONSTEXPR StatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - StatusRequest(const StatusRequest& from); - StatusRequest(StatusRequest&& from) noexcept - : StatusRequest() { - *this = ::std::move(from); - } - - inline StatusRequest& operator=(const StatusRequest& from) { - CopyFrom(from); - return *this; - } - inline StatusRequest& operator=(StatusRequest&& 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 StatusRequest& default_instance() { - return *internal_default_instance(); - } - static inline const StatusRequest* internal_default_instance() { - return reinterpret_cast( - &_StatusRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(StatusRequest& a, StatusRequest& b) { - a.Swap(&b); - } - inline void Swap(StatusRequest* 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(StatusRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - StatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StatusRequest& from); +class Status_AnalogsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Status_AnalogsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Status_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Status_AnalogsEntry_DoNotUse& other); + static const Status_AnalogsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Status_AnalogsEntry_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.component.board.v1.Status.AnalogsEntry.key"); + } + static bool ValidateValue(void*) { return true; } using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const StatusRequest& 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(StatusRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.component.board.v1.StatusRequest"; - } - protected: - explicit StatusRequest(::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; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - }; - // 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: - - // .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(); - - // @@protoc_insertion_point(class_scope:viam.component.board.v1.StatusRequest) - 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_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; +class Status_DigitalInterruptsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Status_DigitalInterruptsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Status_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Status_DigitalInterruptsEntry_DoNotUse& other); + static const Status_DigitalInterruptsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Status_DigitalInterruptsEntry_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.component.board.v1.Status.DigitalInterruptsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; }; + // ------------------------------------------------------------------- -class StatusResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StatusResponse) */ { +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.Status) */ { public: - inline StatusResponse() : StatusResponse(nullptr) {} - ~StatusResponse() override; - explicit PROTOBUF_CONSTEXPR StatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - StatusResponse(const StatusResponse& from); - StatusResponse(StatusResponse&& from) noexcept - : StatusResponse() { + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline StatusResponse& operator=(const StatusResponse& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline StatusResponse& operator=(StatusResponse&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -397,20 +288,20 @@ class StatusResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StatusResponse& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const StatusResponse* internal_default_instance() { - return reinterpret_cast( - &_StatusResponse_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; - friend void swap(StatusResponse& a, StatusResponse& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(StatusResponse* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -423,7 +314,7 @@ class StatusResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StatusResponse* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -431,13 +322,13 @@ class StatusResponse final : // implements Message ---------------------------------------------- - StatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StatusResponse& from); + void CopyFrom(const Status& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const StatusResponse& from); + void MergeFrom(const Status& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -454,16 +345,18 @@ class StatusResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(StatusResponse* other); + void InternalSwap(Status* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.component.board.v1.StatusResponse"; + return "viam.component.board.v1.Status"; } protected: - explicit StatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -473,37 +366,64 @@ class StatusResponse final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kStatusFieldNumber = 1, + kAnalogsFieldNumber = 1, + kDigitalInterruptsFieldNumber = 2, }; - // .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; - bool has_status() const; + // map analogs = 1 [json_name = "analogs"]; + int analogs_size() const; private: - bool _internal_has_status() const; + int _internal_analogs_size() const; public: - void clear_status(); - const ::viam::common::v1::BoardStatus& status() const; - PROTOBUF_NODISCARD ::viam::common::v1::BoardStatus* release_status(); - ::viam::common::v1::BoardStatus* mutable_status(); - void set_allocated_status(::viam::common::v1::BoardStatus* status); + void clear_analogs(); private: - const ::viam::common::v1::BoardStatus& _internal_status() const; - ::viam::common::v1::BoardStatus* _internal_mutable_status(); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& + _internal_analogs() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* + _internal_mutable_analogs(); public: - void unsafe_arena_set_allocated_status( - ::viam::common::v1::BoardStatus* status); - ::viam::common::v1::BoardStatus* unsafe_arena_release_status(); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& + analogs() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* + mutable_analogs(); - // @@protoc_insertion_point(class_scope:viam.component.board.v1.StatusResponse) + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + int digital_interrupts_size() const; + private: + int _internal_digital_interrupts_size() const; + public: + void clear_digital_interrupts(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& + _internal_digital_interrupts() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >* + _internal_mutable_digital_interrupts(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& + digital_interrupts() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >* + mutable_digital_interrupts(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.Status) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::viam::common::v1::BoardStatus* status_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Status_AnalogsEntry_DoNotUse, + std::string, int32_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32> analogs_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Status_DigitalInterruptsEntry_DoNotUse, + std::string, int64_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64> digital_interrupts_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; }; @@ -557,7 +477,7 @@ class SetGPIORequest final : &_SetGPIORequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; friend void swap(SetGPIORequest& a, SetGPIORequest& b) { a.Swap(&b); @@ -751,7 +671,7 @@ class SetGPIOResponse final : &_SetGPIOResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(SetGPIOResponse& a, SetGPIOResponse& b) { a.Swap(&b); @@ -868,7 +788,7 @@ class GetGPIORequest final : &_GetGPIORequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(GetGPIORequest& a, GetGPIORequest& b) { a.Swap(&b); @@ -1052,7 +972,7 @@ class GetGPIOResponse final : &_GetGPIOResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; friend void swap(GetGPIOResponse& a, GetGPIOResponse& b) { a.Swap(&b); @@ -1195,7 +1115,7 @@ class PWMRequest final : &_PWMRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(PWMRequest& a, PWMRequest& b) { a.Swap(&b); @@ -1379,7 +1299,7 @@ class PWMResponse final : &_PWMResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(PWMResponse& a, PWMResponse& b) { a.Swap(&b); @@ -1522,7 +1442,7 @@ class SetPWMRequest final : &_SetPWMRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(SetPWMRequest& a, SetPWMRequest& b) { a.Swap(&b); @@ -1716,7 +1636,7 @@ class SetPWMResponse final : &_SetPWMResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(SetPWMResponse& a, SetPWMResponse& b) { a.Swap(&b); @@ -1833,7 +1753,7 @@ class PWMFrequencyRequest final : &_PWMFrequencyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(PWMFrequencyRequest& a, PWMFrequencyRequest& b) { a.Swap(&b); @@ -2017,7 +1937,7 @@ class PWMFrequencyResponse final : &_PWMFrequencyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(PWMFrequencyResponse& a, PWMFrequencyResponse& b) { a.Swap(&b); @@ -2160,7 +2080,7 @@ class SetPWMFrequencyRequest final : &_SetPWMFrequencyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(SetPWMFrequencyRequest& a, SetPWMFrequencyRequest& b) { a.Swap(&b); @@ -2354,7 +2274,7 @@ class SetPWMFrequencyResponse final : &_SetPWMFrequencyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(SetPWMFrequencyResponse& a, SetPWMFrequencyResponse& b) { a.Swap(&b); @@ -2471,7 +2391,7 @@ class ReadAnalogReaderRequest final : &_ReadAnalogReaderRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(ReadAnalogReaderRequest& a, ReadAnalogReaderRequest& b) { a.Swap(&b); @@ -2655,7 +2575,7 @@ class ReadAnalogReaderResponse final : &_ReadAnalogReaderResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(ReadAnalogReaderResponse& a, ReadAnalogReaderResponse& b) { a.Swap(&b); @@ -2798,7 +2718,7 @@ class WriteAnalogRequest final : &_WriteAnalogRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(WriteAnalogRequest& a, WriteAnalogRequest& b) { a.Swap(&b); @@ -2992,7 +2912,7 @@ class WriteAnalogResponse final : &_WriteAnalogResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(WriteAnalogResponse& a, WriteAnalogResponse& b) { a.Swap(&b); @@ -3109,7 +3029,7 @@ class GetDigitalInterruptValueRequest final : &_GetDigitalInterruptValueRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(GetDigitalInterruptValueRequest& a, GetDigitalInterruptValueRequest& b) { a.Swap(&b); @@ -3293,7 +3213,7 @@ class GetDigitalInterruptValueResponse final : &_GetDigitalInterruptValueResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(GetDigitalInterruptValueResponse& a, GetDigitalInterruptValueResponse& b) { a.Swap(&b); @@ -3436,7 +3356,7 @@ class StreamTicksRequest final : &_StreamTicksRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(StreamTicksRequest& a, StreamTicksRequest& b) { a.Swap(&b); @@ -3630,7 +3550,7 @@ class StreamTicksResponse final : &_StreamTicksResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; friend void swap(StreamTicksResponse& a, StreamTicksResponse& b) { a.Swap(&b); @@ -3800,7 +3720,7 @@ class SetPowerModeRequest final : &_SetPowerModeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 23; friend void swap(SetPowerModeRequest& a, SetPowerModeRequest& b) { a.Swap(&b); @@ -3999,7 +3919,7 @@ class SetPowerModeResponse final : &_SetPowerModeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(SetPowerModeResponse& a, SetPowerModeResponse& b) { a.Swap(&b); @@ -4075,230 +3995,68 @@ class SetPowerModeResponse final : #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// StatusRequest +// ------------------------------------------------------------------- -// string name = 1 [json_name = "name"]; -inline void StatusRequest::clear_name() { - name_.ClearToEmpty(); -} -inline const std::string& StatusRequest::name() const { - // @@protoc_insertion_point(field_get:viam.component.board.v1.StatusRequest.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void StatusRequest::set_name(ArgT0&& arg0, ArgT... args) { - - name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.component.board.v1.StatusRequest.name) -} -inline std::string* StatusRequest::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StatusRequest.name) - return _s; -} -inline const std::string& StatusRequest::_internal_name() const { - return name_.Get(); -} -inline void StatusRequest::_internal_set_name(const std::string& value) { - - name_.Set(value, GetArenaForAllocation()); -} -inline std::string* StatusRequest::_internal_mutable_name() { - - return name_.Mutable(GetArenaForAllocation()); -} -inline std::string* StatusRequest::release_name() { - // @@protoc_insertion_point(field_release:viam.component.board.v1.StatusRequest.name) - return name_.Release(); -} -inline void StatusRequest::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.component.board.v1.StatusRequest.name) -} +// ------------------------------------------------------------------- -// .google.protobuf.Struct extra = 99 [json_name = "extra"]; -inline bool StatusRequest::_internal_has_extra() const { - return this != internal_default_instance() && extra_ != nullptr; -} -inline bool StatusRequest::has_extra() const { - return _internal_has_extra(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Struct& StatusRequest::_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& StatusRequest::extra() const { - // @@protoc_insertion_point(field_get:viam.component.board.v1.StatusRequest.extra) - return _internal_extra(); +// Status + +// map analogs = 1 [json_name = "analogs"]; +inline int Status::_internal_analogs_size() const { + return analogs_.size(); } -inline void StatusRequest::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.component.board.v1.StatusRequest.extra) +inline int Status::analogs_size() const { + return _internal_analogs_size(); } -inline ::PROTOBUF_NAMESPACE_ID::Struct* StatusRequest::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 void Status::clear_analogs() { + analogs_.Clear(); } -inline ::PROTOBUF_NAMESPACE_ID::Struct* StatusRequest::unsafe_arena_release_extra() { - // @@protoc_insertion_point(field_release:viam.component.board.v1.StatusRequest.extra) - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; - extra_ = nullptr; - return temp; +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& +Status::_internal_analogs() const { + return analogs_.GetMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Struct* StatusRequest::_internal_mutable_extra() { - - if (extra_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); - extra_ = p; - } - return extra_; +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& +Status::analogs() const { + // @@protoc_insertion_point(field_map:viam.component.board.v1.Status.analogs) + return _internal_analogs(); } -inline ::PROTOBUF_NAMESPACE_ID::Struct* StatusRequest::mutable_extra() { - ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); - // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StatusRequest.extra) - return _msg; +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* +Status::_internal_mutable_analogs() { + return analogs_.MutableMap(); } -inline void StatusRequest::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 { - - } - extra_ = extra; - // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StatusRequest.extra) +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* +Status::mutable_analogs() { + // @@protoc_insertion_point(field_mutable_map:viam.component.board.v1.Status.analogs) + return _internal_mutable_analogs(); } -// ------------------------------------------------------------------- - -// StatusResponse - -// .viam.common.v1.BoardStatus status = 1 [json_name = "status"]; -inline bool StatusResponse::_internal_has_status() const { - return this != internal_default_instance() && status_ != nullptr; +// map digital_interrupts = 2 [json_name = "digitalInterrupts"]; +inline int Status::_internal_digital_interrupts_size() const { + return digital_interrupts_.size(); } -inline bool StatusResponse::has_status() const { - return _internal_has_status(); +inline int Status::digital_interrupts_size() const { + return _internal_digital_interrupts_size(); } -inline const ::viam::common::v1::BoardStatus& StatusResponse::_internal_status() const { - const ::viam::common::v1::BoardStatus* p = status_; - return p != nullptr ? *p : reinterpret_cast( - ::viam::common::v1::_BoardStatus_default_instance_); +inline void Status::clear_digital_interrupts() { + digital_interrupts_.Clear(); } -inline const ::viam::common::v1::BoardStatus& StatusResponse::status() const { - // @@protoc_insertion_point(field_get:viam.component.board.v1.StatusResponse.status) - return _internal_status(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& +Status::_internal_digital_interrupts() const { + return digital_interrupts_.GetMap(); } -inline void StatusResponse::unsafe_arena_set_allocated_status( - ::viam::common::v1::BoardStatus* status) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - status_ = status; - if (status) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.StatusResponse.status) +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& +Status::digital_interrupts() const { + // @@protoc_insertion_point(field_map:viam.component.board.v1.Status.digital_interrupts) + return _internal_digital_interrupts(); } -inline ::viam::common::v1::BoardStatus* StatusResponse::release_status() { - - ::viam::common::v1::BoardStatus* temp = status_; - status_ = 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::Map< std::string, int64_t >* +Status::_internal_mutable_digital_interrupts() { + return digital_interrupts_.MutableMap(); } -inline ::viam::common::v1::BoardStatus* StatusResponse::unsafe_arena_release_status() { - // @@protoc_insertion_point(field_release:viam.component.board.v1.StatusResponse.status) - - ::viam::common::v1::BoardStatus* temp = status_; - status_ = nullptr; - return temp; -} -inline ::viam::common::v1::BoardStatus* StatusResponse::_internal_mutable_status() { - - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::BoardStatus>(GetArenaForAllocation()); - status_ = p; - } - return status_; -} -inline ::viam::common::v1::BoardStatus* StatusResponse::mutable_status() { - ::viam::common::v1::BoardStatus* _msg = _internal_mutable_status(); - // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StatusResponse.status) - return _msg; -} -inline void StatusResponse::set_allocated_status(::viam::common::v1::BoardStatus* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status)); - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StatusResponse.status) +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >* +Status::mutable_digital_interrupts() { + // @@protoc_insertion_point(field_mutable_map:viam.component.board.v1.Status.digital_interrupts) + return _internal_mutable_digital_interrupts(); } // ------------------------------------------------------------------- @@ -6825,6 +6583,8 @@ inline void SetPowerModeRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::St // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/robot/v1/robot.grpc.pb.cc b/src/viam/api/robot/v1/robot.grpc.pb.cc index 19b414127..4d56245ce 100644 --- a/src/viam/api/robot/v1/robot.grpc.pb.cc +++ b/src/viam/api/robot/v1/robot.grpc.pb.cc @@ -41,6 +41,7 @@ static const char* RobotService_method_names[] = { "/viam.robot.v1.RobotService/SendSessionHeartbeat", "/viam.robot.v1.RobotService/Log", "/viam.robot.v1.RobotService/GetCloudMetadata", + "/viam.robot.v1.RobotService/RestartModule", }; std::unique_ptr< RobotService::Stub> RobotService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -67,6 +68,7 @@ RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chann , 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) + , rpcmethod_RestartModule_(RobotService_method_names[17], 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) { @@ -453,6 +455,29 @@ ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* return result; } +::grpc::Status RobotService::Stub::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::viam::robot::v1::RestartModuleResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RestartModule_, context, request, response); +} + +void RobotService::Stub::async::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, std::move(f)); +} + +void RobotService::Stub::async::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>* RobotService::Stub::PrepareAsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::RestartModuleResponse, ::viam::robot::v1::RestartModuleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RestartModule_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>* RobotService::Stub::AsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRestartModuleRaw(context, request, cq); + result->StartCall(); + return result; +} + RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[0], @@ -624,6 +649,16 @@ RobotService::Service::Service() { ::viam::robot::v1::GetCloudMetadataResponse* resp) { return service->GetCloudMetadata(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[17], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RobotService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::robot::v1::RestartModuleRequest* req, + ::viam::robot::v1::RestartModuleResponse* resp) { + return service->RestartModule(ctx, req, resp); + }, this))); } RobotService::Service::~Service() { @@ -748,6 +783,13 @@ ::grpc::Status RobotService::Service::GetCloudMetadata(::grpc::ServerContext* co return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status RobotService::Service::RestartModule(::grpc::ServerContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* 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 20adc430b..dd51cb4af 100644 --- a/src/viam/api/robot/v1/robot.grpc.pb.h +++ b/src/viam/api/robot/v1/robot.grpc.pb.h @@ -172,6 +172,13 @@ class RobotService final { 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)); } + virtual ::grpc::Status RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::viam::robot::v1::RestartModuleResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::RestartModuleResponse>> AsyncRestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::RestartModuleResponse>>(AsyncRestartModuleRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::RestartModuleResponse>> PrepareAsyncRestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::RestartModuleResponse>>(PrepareAsyncRestartModuleRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -221,6 +228,8 @@ class RobotService final { // 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; + virtual void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, std::function) = 0; + virtual void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -261,6 +270,8 @@ class RobotService final { 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; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::RestartModuleResponse>* AsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::RestartModuleResponse>* PrepareAsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -386,6 +397,13 @@ class RobotService final { 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)); } + ::grpc::Status RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::viam::robot::v1::RestartModuleResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>> AsyncRestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>>(AsyncRestartModuleRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>> PrepareAsyncRestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>>(PrepareAsyncRestartModuleRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -422,6 +440,8 @@ class RobotService final { 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; + void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, std::function) override; + void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -468,6 +488,8 @@ class RobotService final { ::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; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>* AsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>* PrepareAsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetOperations_; const ::grpc::internal::RpcMethod rpcmethod_GetSessions_; const ::grpc::internal::RpcMethod rpcmethod_ResourceNames_; @@ -485,6 +507,7 @@ class RobotService final { const ::grpc::internal::RpcMethod rpcmethod_SendSessionHeartbeat_; const ::grpc::internal::RpcMethod rpcmethod_Log_; const ::grpc::internal::RpcMethod rpcmethod_GetCloudMetadata_; + const ::grpc::internal::RpcMethod rpcmethod_RestartModule_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -522,6 +545,7 @@ class RobotService final { 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); + virtual ::grpc::Status RestartModule(::grpc::ServerContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response); }; template class WithAsyncMethod_GetOperations : public BaseClass { @@ -863,7 +887,27 @@ class RobotService final { ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetOperations > > > > > > > > > > > > > > > > AsyncService; + template + class WithAsyncMethod_RestartModule : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_RestartModule() { + ::grpc::Service::MarkMethodAsync(17); + } + ~WithAsyncMethod_RestartModule() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RestartModule(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRestartModule(::grpc::ServerContext* context, ::viam::robot::v1::RestartModuleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::RestartModuleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetOperations > > > > > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_GetOperations : public BaseClass { private: @@ -1318,7 +1362,34 @@ class RobotService final { virtual ::grpc::ServerUnaryReactor* GetCloudMetadata( ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_GetOperations > > > > > > > > > > > > > > > > CallbackService; + template + class WithCallbackMethod_RestartModule : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_RestartModule() { + ::grpc::Service::MarkMethodCallback(17, + new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response) { return this->RestartModule(context, request, response); }));} + void SetMessageAllocatorFor_RestartModule( + ::grpc::MessageAllocator< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(17); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_RestartModule() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RestartModule(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RestartModule( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetOperations > > > > > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_GetOperations : public BaseClass { @@ -1610,6 +1681,23 @@ class RobotService final { } }; template + class WithGenericMethod_RestartModule : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_RestartModule() { + ::grpc::Service::MarkMethodGeneric(17); + } + ~WithGenericMethod_RestartModule() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RestartModule(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1950,6 +2038,26 @@ class RobotService final { } }; template + class WithRawMethod_RestartModule : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_RestartModule() { + ::grpc::Service::MarkMethodRaw(17); + } + ~WithRawMethod_RestartModule() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RestartModule(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRestartModule(::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(17, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawCallbackMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -2324,6 +2432,28 @@ class RobotService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_RestartModule : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RestartModule() { + ::grpc::Service::MarkMethodRawCallback(17, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RestartModule(context, request, response); })); + } + ~WithRawCallbackMethod_RestartModule() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RestartModule(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RestartModule( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -2755,7 +2885,34 @@ class RobotService final { // 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 WithStreamedUnaryMethod_RestartModule : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RestartModule() { + ::grpc::Service::MarkMethodStreamed(17, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>* streamer) { + return this->StreamedRestartModule(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RestartModule() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RestartModule(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRestartModule(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::RestartModuleRequest,::viam::robot::v1::RestartModuleResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_StreamStatus : public BaseClass { private: @@ -2784,7 +2941,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 7227bd094..410cd3653 100644 --- a/src/viam/api/robot/v1/robot.pb.cc +++ b/src/viam/api/robot/v1/robot.pb.cc @@ -554,10 +554,33 @@ struct GetCloudMetadataResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataResponseDefaultTypeInternal _GetCloudMetadataResponse_default_instance_; +PROTOBUF_CONSTEXPR RestartModuleRequest::RestartModuleRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct RestartModuleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RestartModuleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RestartModuleRequestDefaultTypeInternal() {} + union { + RestartModuleRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RestartModuleRequestDefaultTypeInternal _RestartModuleRequest_default_instance_; +PROTOBUF_CONSTEXPR RestartModuleResponse::RestartModuleResponse( + ::_pbi::ConstantInitialized){} +struct RestartModuleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RestartModuleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RestartModuleResponseDefaultTypeInternal() {} + union { + RestartModuleResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RestartModuleResponseDefaultTypeInternal _RestartModuleResponse_default_instance_; } // namespace v1 } // namespace robot } // namespace viam -static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[43]; +static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[45]; 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; @@ -887,6 +910,21 @@ const uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTIO PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, location_id_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, machine_id_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, machine_part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, id_or_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfig)}, @@ -932,6 +970,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 302, -1, -1, sizeof(::viam::robot::v1::LogResponse)}, { 308, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataRequest)}, { 314, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataResponse)}, + { 325, -1, -1, sizeof(::viam::robot::v1::RestartModuleRequest)}, + { 334, -1, -1, sizeof(::viam::robot::v1::RestartModuleResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -978,6 +1018,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::robot::v1::_LogResponse_default_instance_._instance, &::viam::robot::v1::_GetCloudMetadataRequest_default_instance_._instance, &::viam::robot::v1::_GetCloudMetadataResponse_default_instance_._instance, + &::viam::robot::v1::_RestartModuleRequest_default_instance_._instance, + &::viam::robot::v1::_RestartModuleResponse_default_instance_._instance, }; const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -1074,73 +1116,80 @@ const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTI "\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\"\314\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\022\035\n\nmachine_" - "id\030\004 \001(\tR\tmachineId\022&\n\017machine_part_id\030\005" - " \001(\tR\rmachinePartId*z\n\022PeerConnectionTyp" - "e\022$\n PEER_CONNECTION_TYPE_UNSPECIFIED\020\000\022" - "\035\n\031PEER_CONNECTION_TYPE_GRPC\020\001\022\037\n\033PEER_C" - "ONNECTION_TYPE_WEBRTC\020\0022\333\021\n\014RobotService" - "\022\200\001\n\rGetOperations\022#.viam.robot.v1.GetOp" - "erationsRequest\032$.viam.robot.v1.GetOpera" - "tionsResponse\"$\202\323\344\223\002\036\022\034/viam/api/v1/oper" - "ations/list\022x\n\013GetSessions\022!.viam.robot." - "v1.GetSessionsRequest\032\".viam.robot.v1.Ge" - "tSessionsResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/" - "sessions/list\022\177\n\rResourceNames\022#.viam.ro" - "bot.v1.ResourceNamesRequest\032$.viam.robot" - ".v1.ResourceNamesResponse\"#\202\323\344\223\002\035\022\033/viam" - "/api/v1/resources/list\022\235\001\n\023ResourceRPCSu" - "btypes\022).viam.robot.v1.ResourceRPCSubtyp" - "esRequest\032*.viam.robot.v1.ResourceRPCSub" - "typesResponse\"/\202\323\344\223\002)\022\'/viam/api/v1/reso" - "urce_rpc_subtypes/list\022\210\001\n\017CancelOperati" - "on\022%.viam.robot.v1.CancelOperationReques" - "t\032&.viam.robot.v1.CancelOperationRespons" - "e\"&\202\323\344\223\002 \"\036/viam/api/v1/operations/cance" - "l\022\215\001\n\021BlockForOperation\022\'.viam.robot.v1." - "BlockForOperationRequest\032(.viam.robot.v1" - ".BlockForOperationResponse\"%\202\323\344\223\002\037\"\035/via" - "m/api/v1/operations/block\022\224\001\n\022DiscoverCo" - "mponents\022(.viam.robot.v1.DiscoverCompone" - "ntsRequest\032).viam.robot.v1.DiscoverCompo" - "nentsResponse\")\202\323\344\223\002#\022!/viam/api/v1/disc" - "overy/components\022\220\001\n\021FrameSystemConfig\022\'" - ".viam.robot.v1.FrameSystemConfigRequest\032" - "(.viam.robot.v1.FrameSystemConfigRespons" - "e\"(\202\323\344\223\002\"\022 /viam/api/v1/frame_system/con" - "fig\022\214\001\n\rTransformPose\022#.viam.robot.v1.Tr" - "ansformPoseRequest\032$.viam.robot.v1.Trans" - "formPoseResponse\"0\202\323\344\223\002*\022(/viam/api/v1/f" - "rame_system/transform_pose\022\210\001\n\014Transform" - "PCD\022\".viam.robot.v1.TransformPCDRequest\032" - "#.viam.robot.v1.TransformPCDResponse\"/\202\323" - "\344\223\002)\022\'/viam/api/v1/frame_system/transfor" - "m_pcd\022k\n\tGetStatus\022\037.viam.robot.v1.GetSt" - "atusRequest\032 .viam.robot.v1.GetStatusRes" - "ponse\"\033\202\323\344\223\002\025\022\023/viam/api/v1/status\022}\n\014St" - "reamStatus\022\".viam.robot.v1.StreamStatusR" - "equest\032#.viam.robot.v1.StreamStatusRespo" - "nse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/status/stream0" - "\001\022g\n\007StopAll\022\035.viam.robot.v1.StopAllRequ" - "est\032\036.viam.robot.v1.StopAllResponse\"\035\202\323\344" - "\223\002\027\022\025/viam/api/v1/stop_all\022v\n\014StartSessi" - "on\022\".viam.robot.v1.StartSessionRequest\032#" - ".viam.robot.v1.StartSessionResponse\"\035\202\323\344" - "\223\002\027\"\025/viam/api/v1/sessions\022\235\001\n\024SendSessi" - "onHeartbeat\022*.viam.robot.v1.SendSessionH" - "eartbeatRequest\032+.viam.robot.v1.SendSess" - "ionHeartbeatResponse\",\202\323\344\223\002&\"$/viam/api/" - "v1/sessions/{id}/heartbeat\022V\n\003Log\022\031.viam" - ".robot.v1.LogRequest\032\032.viam.robot.v1.Log" - "Response\"\030\202\323\344\223\002\022\"\020/viam/api/v1/log\022\210\001\n\020G" - "etCloudMetadata\022&.viam.robot.v1.GetCloud" - "MetadataRequest\032\'.viam.robot.v1.GetCloud" - "MetadataResponse\"#\202\323\344\223\002\035\022\033/viam/api/v1/c" - "loud_metadataB-\n\021com.viam.robot.v1Z\030go.v" - "iam.com/api/robot/v1b\006proto3" + "adataRequest\"\320\001\n\030GetCloudMetadataRespons" + "e\022&\n\rrobot_part_id\030\001 \001(\tB\002\030\001R\013robotPartI" + "d\022$\n\016primary_org_id\030\002 \001(\tR\014primaryOrgId\022" + "\037\n\013location_id\030\003 \001(\tR\nlocationId\022\035\n\nmach" + "ine_id\030\004 \001(\tR\tmachineId\022&\n\017machine_part_" + "id\030\005 \001(\tR\rmachinePartId\"f\n\024RestartModule" + "Request\022\035\n\tmodule_id\030\001 \001(\tH\000R\010moduleId\022!" + "\n\013module_name\030\002 \001(\tH\000R\nmoduleNameB\014\n\nid_" + "or_name\"\027\n\025RestartModuleResponse*z\n\022Peer" + "ConnectionType\022$\n PEER_CONNECTION_TYPE_U" + "NSPECIFIED\020\000\022\035\n\031PEER_CONNECTION_TYPE_GRP" + "C\020\001\022\037\n\033PEER_CONNECTION_TYPE_WEBRTC\020\0022\334\022\n" + "\014RobotService\022\200\001\n\rGetOperations\022#.viam.r" + "obot.v1.GetOperationsRequest\032$.viam.robo" + "t.v1.GetOperationsResponse\"$\202\323\344\223\002\036\022\034/via" + "m/api/v1/operations/list\022x\n\013GetSessions\022" + "!.viam.robot.v1.GetSessionsRequest\032\".via" + "m.robot.v1.GetSessionsResponse\"\"\202\323\344\223\002\034\022\032" + "/viam/api/v1/sessions/list\022\177\n\rResourceNa" + "mes\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\023" + "ResourceRPCSubtypes\022).viam.robot.v1.Reso" + "urceRPCSubtypesRequest\032*.viam.robot.v1.R" + "esourceRPCSubtypesResponse\"/\202\323\344\223\002)\022\'/via" + "m/api/v1/resource_rpc_subtypes/list\022\210\001\n\017" + "CancelOperation\022%.viam.robot.v1.CancelOp" + "erationRequest\032&.viam.robot.v1.CancelOpe" + "rationResponse\"&\202\323\344\223\002 \"\036/viam/api/v1/ope" + "rations/cancel\022\215\001\n\021BlockForOperation\022\'.v" + "iam.robot.v1.BlockForOperationRequest\032(." + "viam.robot.v1.BlockForOperationResponse\"" + "%\202\323\344\223\002\037\"\035/viam/api/v1/operations/block\022\224" + "\001\n\022DiscoverComponents\022(.viam.robot.v1.Di" + "scoverComponentsRequest\032).viam.robot.v1." + "DiscoverComponentsResponse\")\202\323\344\223\002#\022!/via" + "m/api/v1/discovery/components\022\220\001\n\021FrameS" + "ystemConfig\022\'.viam.robot.v1.FrameSystemC" + "onfigRequest\032(.viam.robot.v1.FrameSystem" + "ConfigResponse\"(\202\323\344\223\002\"\022 /viam/api/v1/fra" + "me_system/config\022\214\001\n\rTransformPose\022#.via" + "m.robot.v1.TransformPoseRequest\032$.viam.r" + "obot.v1.TransformPoseResponse\"0\202\323\344\223\002*\022(/" + "viam/api/v1/frame_system/transform_pose\022" + "\210\001\n\014TransformPCD\022\".viam.robot.v1.Transfo" + "rmPCDRequest\032#.viam.robot.v1.TransformPC" + "DResponse\"/\202\323\344\223\002)\022\'/viam/api/v1/frame_sy" + "stem/transform_pcd\022k\n\tGetStatus\022\037.viam.r" + "obot.v1.GetStatusRequest\032 .viam.robot.v1" + ".GetStatusResponse\"\033\202\323\344\223\002\025\022\023/viam/api/v1" + "/status\022}\n\014StreamStatus\022\".viam.robot.v1." + "StreamStatusRequest\032#.viam.robot.v1.Stre" + "amStatusResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/s" + "tatus/stream0\001\022g\n\007StopAll\022\035.viam.robot.v" + "1.StopAllRequest\032\036.viam.robot.v1.StopAll" + "Response\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_all\022" + "v\n\014StartSession\022\".viam.robot.v1.StartSes" + "sionRequest\032#.viam.robot.v1.StartSession" + "Response\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessions\022" + "\235\001\n\024SendSessionHeartbeat\022*.viam.robot.v1" + ".SendSessionHeartbeatRequest\032+.viam.robo" + "t.v1.SendSessionHeartbeatResponse\",\202\323\344\223\002" + "&\"$/viam/api/v1/sessions/{id}/heartbeat\022" + "V\n\003Log\022\031.viam.robot.v1.LogRequest\032\032.viam" + ".robot.v1.LogResponse\"\030\202\323\344\223\002\022\"\020/viam/api" + "/v1/log\022\210\001\n\020GetCloudMetadata\022&.viam.robo" + "t.v1.GetCloudMetadataRequest\032\'.viam.robo" + "t.v1.GetCloudMetadataResponse\"#\202\323\344\223\002\035\022\033/" + "viam/api/v1/cloud_metadata\022\177\n\rRestartMod" + "ule\022#.viam.robot.v1.RestartModuleRequest" + "\032$.viam.robot.v1.RestartModuleResponse\"#" + "\202\323\344\223\002\035\"\033/viam/api/v1/restart_moduleB-\n\021c" + "om.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, @@ -1151,9 +1200,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, 6388, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, + false, false, 6650, 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, 43, + &descriptor_table_robot_2fv1_2frobot_2eproto_once, descriptor_table_robot_2fv1_2frobot_2eproto_deps, 5, 45, 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, @@ -8687,7 +8736,7 @@ const char* GetCloudMetadataResponse::_InternalParse(const char* ptr, ::_pbi::Pa uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string robot_part_id = 1 [json_name = "robotPartId"]; + // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_robot_part_id(); @@ -8766,7 +8815,7 @@ uint8_t* GetCloudMetadataResponse::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string robot_part_id = 1 [json_name = "robotPartId"]; + // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; 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()), @@ -8832,7 +8881,7 @@ size_t GetCloudMetadataResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string robot_part_id = 1 [json_name = "robotPartId"]; + // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; if (!this->_internal_robot_part_id().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -8951,6 +9000,302 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetCloudMetadataResponse::GetMetadata() const file_level_metadata_robot_2fv1_2frobot_2eproto[42]); } +// =================================================================== + +class RestartModuleRequest::_Internal { + public: +}; + +RestartModuleRequest::RestartModuleRequest(::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.RestartModuleRequest) +} +RestartModuleRequest::RestartModuleRequest(const RestartModuleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_id_or_name(); + switch (from.id_or_name_case()) { + case kModuleId: { + _internal_set_module_id(from._internal_module_id()); + break; + } + case kModuleName: { + _internal_set_module_name(from._internal_module_name()); + break; + } + case ID_OR_NAME_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.RestartModuleRequest) +} + +inline void RestartModuleRequest::SharedCtor() { +clear_has_id_or_name(); +} + +RestartModuleRequest::~RestartModuleRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.RestartModuleRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RestartModuleRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_id_or_name()) { + clear_id_or_name(); + } +} + +void RestartModuleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RestartModuleRequest::clear_id_or_name() { +// @@protoc_insertion_point(one_of_clear_start:viam.robot.v1.RestartModuleRequest) + switch (id_or_name_case()) { + case kModuleId: { + id_or_name_.module_id_.Destroy(); + break; + } + case kModuleName: { + id_or_name_.module_name_.Destroy(); + break; + } + case ID_OR_NAME_NOT_SET: { + break; + } + } + _oneof_case_[0] = ID_OR_NAME_NOT_SET; +} + + +void RestartModuleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.RestartModuleRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_id_or_name(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RestartModuleRequest::_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 module_id = 1 [json_name = "moduleId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.RestartModuleRequest.module_id")); + } else + goto handle_unusual; + continue; + // string module_name = 2 [json_name = "moduleName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_module_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.RestartModuleRequest.module_name")); + } 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* RestartModuleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.RestartModuleRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string module_id = 1 [json_name = "moduleId"]; + if (_internal_has_module_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_module_id().data(), static_cast(this->_internal_module_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.RestartModuleRequest.module_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_id(), target); + } + + // string module_name = 2 [json_name = "moduleName"]; + if (_internal_has_module_name()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_module_name().data(), static_cast(this->_internal_module_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.RestartModuleRequest.module_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_module_name(), 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.RestartModuleRequest) + return target; +} + +size_t RestartModuleRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.RestartModuleRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (id_or_name_case()) { + // string module_id = 1 [json_name = "moduleId"]; + case kModuleId: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); + break; + } + // string module_name = 2 [json_name = "moduleName"]; + case kModuleName: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_name()); + break; + } + case ID_OR_NAME_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RestartModuleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RestartModuleRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RestartModuleRequest::GetClassData() const { return &_class_data_; } + +void RestartModuleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RestartModuleRequest::MergeFrom(const RestartModuleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.RestartModuleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.id_or_name_case()) { + case kModuleId: { + _internal_set_module_id(from._internal_module_id()); + break; + } + case kModuleName: { + _internal_set_module_name(from._internal_module_name()); + break; + } + case ID_OR_NAME_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RestartModuleRequest::CopyFrom(const RestartModuleRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.RestartModuleRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RestartModuleRequest::IsInitialized() const { + return true; +} + +void RestartModuleRequest::InternalSwap(RestartModuleRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(id_or_name_, other->id_or_name_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RestartModuleRequest::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[43]); +} + +// =================================================================== + +class RestartModuleResponse::_Internal { + public: +}; + +RestartModuleResponse::RestartModuleResponse(::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.RestartModuleResponse) +} +RestartModuleResponse::RestartModuleResponse(const RestartModuleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.RestartModuleResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RestartModuleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RestartModuleResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata RestartModuleResponse::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[44]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace robot @@ -9128,6 +9473,14 @@ template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetCloudMetadataResponse* Arena::CreateMaybeMessage< ::viam::robot::v1::GetCloudMetadataResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::robot::v1::GetCloudMetadataResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::robot::v1::RestartModuleRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::RestartModuleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::RestartModuleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::RestartModuleResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::RestartModuleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::RestartModuleResponse >(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 a3b782b9d..7edcba1d6 100644 --- a/src/viam/api/robot/v1/robot.pb.h +++ b/src/viam/api/robot/v1/robot.pb.h @@ -138,6 +138,12 @@ extern ResourceRPCSubtypesRequestDefaultTypeInternal _ResourceRPCSubtypesRequest class ResourceRPCSubtypesResponse; struct ResourceRPCSubtypesResponseDefaultTypeInternal; extern ResourceRPCSubtypesResponseDefaultTypeInternal _ResourceRPCSubtypesResponse_default_instance_; +class RestartModuleRequest; +struct RestartModuleRequestDefaultTypeInternal; +extern RestartModuleRequestDefaultTypeInternal _RestartModuleRequest_default_instance_; +class RestartModuleResponse; +struct RestartModuleResponseDefaultTypeInternal; +extern RestartModuleResponseDefaultTypeInternal _RestartModuleResponse_default_instance_; class SendSessionHeartbeatRequest; struct SendSessionHeartbeatRequestDefaultTypeInternal; extern SendSessionHeartbeatRequestDefaultTypeInternal _SendSessionHeartbeatRequest_default_instance_; @@ -215,6 +221,8 @@ template<> ::viam::robot::v1::ResourceNamesResponse* Arena::CreateMaybeMessage<: template<> ::viam::robot::v1::ResourceRPCSubtype* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtype>(Arena*); template<> ::viam::robot::v1::ResourceRPCSubtypesRequest* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtypesRequest>(Arena*); template<> ::viam::robot::v1::ResourceRPCSubtypesResponse* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtypesResponse>(Arena*); +template<> ::viam::robot::v1::RestartModuleRequest* Arena::CreateMaybeMessage<::viam::robot::v1::RestartModuleRequest>(Arena*); +template<> ::viam::robot::v1::RestartModuleResponse* Arena::CreateMaybeMessage<::viam::robot::v1::RestartModuleResponse>(Arena*); template<> ::viam::robot::v1::SendSessionHeartbeatRequest* Arena::CreateMaybeMessage<::viam::robot::v1::SendSessionHeartbeatRequest>(Arena*); template<> ::viam::robot::v1::SendSessionHeartbeatResponse* Arena::CreateMaybeMessage<::viam::robot::v1::SendSessionHeartbeatResponse>(Arena*); template<> ::viam::robot::v1::Session* Arena::CreateMaybeMessage<::viam::robot::v1::Session>(Arena*); @@ -6742,14 +6750,14 @@ class GetCloudMetadataResponse final : kMachineIdFieldNumber = 4, kMachinePartIdFieldNumber = 5, }; - // string robot_part_id = 1 [json_name = "robotPartId"]; - void clear_robot_part_id(); - const std::string& robot_part_id() const; + // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; + PROTOBUF_DEPRECATED void clear_robot_part_id(); + PROTOBUF_DEPRECATED 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); + PROTOBUF_DEPRECATED void set_robot_part_id(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_robot_part_id(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_robot_part_id(); + PROTOBUF_DEPRECATED 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); @@ -6827,6 +6835,313 @@ class GetCloudMetadataResponse final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; }; +// ------------------------------------------------------------------- + +class RestartModuleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.RestartModuleRequest) */ { + public: + inline RestartModuleRequest() : RestartModuleRequest(nullptr) {} + ~RestartModuleRequest() override; + explicit PROTOBUF_CONSTEXPR RestartModuleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RestartModuleRequest(const RestartModuleRequest& from); + RestartModuleRequest(RestartModuleRequest&& from) noexcept + : RestartModuleRequest() { + *this = ::std::move(from); + } + + inline RestartModuleRequest& operator=(const RestartModuleRequest& from) { + CopyFrom(from); + return *this; + } + inline RestartModuleRequest& operator=(RestartModuleRequest&& 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 RestartModuleRequest& default_instance() { + return *internal_default_instance(); + } + enum IdOrNameCase { + kModuleId = 1, + kModuleName = 2, + ID_OR_NAME_NOT_SET = 0, + }; + + static inline const RestartModuleRequest* internal_default_instance() { + return reinterpret_cast( + &_RestartModuleRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 43; + + friend void swap(RestartModuleRequest& a, RestartModuleRequest& b) { + a.Swap(&b); + } + inline void Swap(RestartModuleRequest* 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(RestartModuleRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RestartModuleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RestartModuleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RestartModuleRequest& 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(RestartModuleRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.RestartModuleRequest"; + } + protected: + explicit RestartModuleRequest(::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 { + kModuleIdFieldNumber = 1, + kModuleNameFieldNumber = 2, + }; + // string module_id = 1 [json_name = "moduleId"]; + bool has_module_id() const; + private: + bool _internal_has_module_id() const; + public: + void clear_module_id(); + const std::string& module_id() const; + template + void set_module_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_module_id(); + PROTOBUF_NODISCARD std::string* release_module_id(); + void set_allocated_module_id(std::string* module_id); + private: + const std::string& _internal_module_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_module_id(const std::string& value); + std::string* _internal_mutable_module_id(); + public: + + // string module_name = 2 [json_name = "moduleName"]; + bool has_module_name() const; + private: + bool _internal_has_module_name() const; + public: + void clear_module_name(); + const std::string& module_name() const; + template + void set_module_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_module_name(); + PROTOBUF_NODISCARD std::string* release_module_name(); + void set_allocated_module_name(std::string* module_name); + private: + const std::string& _internal_module_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_module_name(const std::string& value); + std::string* _internal_mutable_module_name(); + public: + + void clear_id_or_name(); + IdOrNameCase id_or_name_case() const; + // @@protoc_insertion_point(class_scope:viam.robot.v1.RestartModuleRequest) + private: + class _Internal; + void set_has_module_id(); + void set_has_module_name(); + + inline bool has_id_or_name() const; + inline void clear_has_id_or_name(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union IdOrNameUnion { + constexpr IdOrNameUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_name_; + } id_or_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class RestartModuleResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.RestartModuleResponse) */ { + public: + inline RestartModuleResponse() : RestartModuleResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RestartModuleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RestartModuleResponse(const RestartModuleResponse& from); + RestartModuleResponse(RestartModuleResponse&& from) noexcept + : RestartModuleResponse() { + *this = ::std::move(from); + } + + inline RestartModuleResponse& operator=(const RestartModuleResponse& from) { + CopyFrom(from); + return *this; + } + inline RestartModuleResponse& operator=(RestartModuleResponse&& 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 RestartModuleResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RestartModuleResponse* internal_default_instance() { + return reinterpret_cast( + &_RestartModuleResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 44; + + friend void swap(RestartModuleResponse& a, RestartModuleResponse& b) { + a.Swap(&b); + } + inline void Swap(RestartModuleResponse* 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(RestartModuleResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RestartModuleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RestartModuleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RestartModuleResponse& 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.RestartModuleResponse"; + } + protected: + explicit RestartModuleResponse(::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.RestartModuleResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; // =================================================================== @@ -10067,7 +10382,7 @@ LogRequest::logs() const { // GetCloudMetadataResponse -// string robot_part_id = 1 [json_name = "robotPartId"]; +// string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; inline void GetCloudMetadataResponse::clear_robot_part_id() { robot_part_id_.ClearToEmpty(); } @@ -10317,6 +10632,177 @@ inline void GetCloudMetadataResponse::set_allocated_machine_part_id(std::string* // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) } +// ------------------------------------------------------------------- + +// RestartModuleRequest + +// string module_id = 1 [json_name = "moduleId"]; +inline bool RestartModuleRequest::_internal_has_module_id() const { + return id_or_name_case() == kModuleId; +} +inline bool RestartModuleRequest::has_module_id() const { + return _internal_has_module_id(); +} +inline void RestartModuleRequest::set_has_module_id() { + _oneof_case_[0] = kModuleId; +} +inline void RestartModuleRequest::clear_module_id() { + if (_internal_has_module_id()) { + id_or_name_.module_id_.Destroy(); + clear_has_id_or_name(); + } +} +inline const std::string& RestartModuleRequest::module_id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.RestartModuleRequest.module_id) + return _internal_module_id(); +} +template +inline void RestartModuleRequest::set_module_id(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_module_id()) { + clear_id_or_name(); + set_has_module_id(); + id_or_name_.module_id_.InitDefault(); + } + id_or_name_.module_id_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.RestartModuleRequest.module_id) +} +inline std::string* RestartModuleRequest::mutable_module_id() { + std::string* _s = _internal_mutable_module_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.RestartModuleRequest.module_id) + return _s; +} +inline const std::string& RestartModuleRequest::_internal_module_id() const { + if (_internal_has_module_id()) { + return id_or_name_.module_id_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void RestartModuleRequest::_internal_set_module_id(const std::string& value) { + if (!_internal_has_module_id()) { + clear_id_or_name(); + set_has_module_id(); + id_or_name_.module_id_.InitDefault(); + } + id_or_name_.module_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RestartModuleRequest::_internal_mutable_module_id() { + if (!_internal_has_module_id()) { + clear_id_or_name(); + set_has_module_id(); + id_or_name_.module_id_.InitDefault(); + } + return id_or_name_.module_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* RestartModuleRequest::release_module_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.RestartModuleRequest.module_id) + if (_internal_has_module_id()) { + clear_has_id_or_name(); + return id_or_name_.module_id_.Release(); + } else { + return nullptr; + } +} +inline void RestartModuleRequest::set_allocated_module_id(std::string* module_id) { + if (has_id_or_name()) { + clear_id_or_name(); + } + if (module_id != nullptr) { + set_has_module_id(); + id_or_name_.module_id_.InitAllocated(module_id, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.RestartModuleRequest.module_id) +} + +// string module_name = 2 [json_name = "moduleName"]; +inline bool RestartModuleRequest::_internal_has_module_name() const { + return id_or_name_case() == kModuleName; +} +inline bool RestartModuleRequest::has_module_name() const { + return _internal_has_module_name(); +} +inline void RestartModuleRequest::set_has_module_name() { + _oneof_case_[0] = kModuleName; +} +inline void RestartModuleRequest::clear_module_name() { + if (_internal_has_module_name()) { + id_or_name_.module_name_.Destroy(); + clear_has_id_or_name(); + } +} +inline const std::string& RestartModuleRequest::module_name() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.RestartModuleRequest.module_name) + return _internal_module_name(); +} +template +inline void RestartModuleRequest::set_module_name(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_module_name()) { + clear_id_or_name(); + set_has_module_name(); + id_or_name_.module_name_.InitDefault(); + } + id_or_name_.module_name_.Set( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.RestartModuleRequest.module_name) +} +inline std::string* RestartModuleRequest::mutable_module_name() { + std::string* _s = _internal_mutable_module_name(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.RestartModuleRequest.module_name) + return _s; +} +inline const std::string& RestartModuleRequest::_internal_module_name() const { + if (_internal_has_module_name()) { + return id_or_name_.module_name_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void RestartModuleRequest::_internal_set_module_name(const std::string& value) { + if (!_internal_has_module_name()) { + clear_id_or_name(); + set_has_module_name(); + id_or_name_.module_name_.InitDefault(); + } + id_or_name_.module_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RestartModuleRequest::_internal_mutable_module_name() { + if (!_internal_has_module_name()) { + clear_id_or_name(); + set_has_module_name(); + id_or_name_.module_name_.InitDefault(); + } + return id_or_name_.module_name_.Mutable( GetArenaForAllocation()); +} +inline std::string* RestartModuleRequest::release_module_name() { + // @@protoc_insertion_point(field_release:viam.robot.v1.RestartModuleRequest.module_name) + if (_internal_has_module_name()) { + clear_has_id_or_name(); + return id_or_name_.module_name_.Release(); + } else { + return nullptr; + } +} +inline void RestartModuleRequest::set_allocated_module_name(std::string* module_name) { + if (has_id_or_name()) { + clear_id_or_name(); + } + if (module_name != nullptr) { + set_has_module_name(); + id_or_name_.module_name_.InitAllocated(module_name, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.RestartModuleRequest.module_name) +} + +inline bool RestartModuleRequest::has_id_or_name() const { + return id_or_name_case() != ID_OR_NAME_NOT_SET; +} +inline void RestartModuleRequest::clear_has_id_or_name() { + _oneof_case_[0] = ID_OR_NAME_NOT_SET; +} +inline RestartModuleRequest::IdOrNameCase RestartModuleRequest::id_or_name_case() const { + return RestartModuleRequest::IdOrNameCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// RestartModuleResponse + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -10404,6 +10890,10 @@ inline void GetCloudMetadataResponse::set_allocated_machine_part_id(std::string* // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/service/shell/v1/shell.grpc.pb.cc b/src/viam/api/service/shell/v1/shell.grpc.pb.cc index 79f909dd5..90a20739f 100644 --- a/src/viam/api/service/shell/v1/shell.grpc.pb.cc +++ b/src/viam/api/service/shell/v1/shell.grpc.pb.cc @@ -26,6 +26,8 @@ namespace v1 { static const char* ShellService_method_names[] = { "/viam.service.shell.v1.ShellService/Shell", + "/viam.service.shell.v1.ShellService/CopyFilesToMachine", + "/viam.service.shell.v1.ShellService/CopyFilesFromMachine", "/viam.service.shell.v1.ShellService/DoCommand", }; @@ -37,7 +39,9 @@ std::unique_ptr< ShellService::Stub> ShellService::NewStub(const std::shared_ptr ShellService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) : channel_(channel), rpcmethod_Shell_(ShellService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) - , rpcmethod_DoCommand_(ShellService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CopyFilesToMachine_(ShellService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_CopyFilesFromMachine_(ShellService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_DoCommand_(ShellService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellService::Stub::ShellRaw(::grpc::ClientContext* context) { @@ -56,6 +60,38 @@ ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::via return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), cq, rpcmethod_Shell_, context, false, nullptr); } +::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* ShellService::Stub::CopyFilesToMachineRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), rpcmethod_CopyFilesToMachine_, context); +} + +void ShellService::Stub::async::CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_CopyFilesToMachine_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* ShellService::Stub::AsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesToMachine_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* ShellService::Stub::PrepareAsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesToMachine_, context, false, nullptr); +} + +::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* ShellService::Stub::CopyFilesFromMachineRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), rpcmethod_CopyFilesFromMachine_, context); +} + +void ShellService::Stub::async::CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_CopyFilesFromMachine_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* ShellService::Stub::AsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesFromMachine_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* ShellService::Stub::PrepareAsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesFromMachine_, context, false, nullptr); +} + ::grpc::Status ShellService::Stub::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DoCommand_, context, request, response); } @@ -92,6 +128,26 @@ ShellService::Service::Service() { }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ShellService_method_names[1], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< ShellService::Service, ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>( + [](ShellService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReaderWriter<::viam::service::shell::v1::CopyFilesToMachineResponse, + ::viam::service::shell::v1::CopyFilesToMachineRequest>* stream) { + return service->CopyFilesToMachine(ctx, stream); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ShellService_method_names[2], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< ShellService::Service, ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>( + [](ShellService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReaderWriter<::viam::service::shell::v1::CopyFilesFromMachineResponse, + ::viam::service::shell::v1::CopyFilesFromMachineRequest>* stream) { + return service->CopyFilesFromMachine(ctx, stream); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ShellService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ShellService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ShellService::Service* service, @@ -111,6 +167,18 @@ ::grpc::Status ShellService::Service::Shell(::grpc::ServerContext* context, ::gr return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ShellService::Service::CopyFilesToMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ShellService::Service::CopyFilesFromMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status ShellService::Service::DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { (void) context; (void) request; diff --git a/src/viam/api/service/shell/v1/shell.grpc.pb.h b/src/viam/api/service/shell/v1/shell.grpc.pb.h index 194ec14cf..07f808ff0 100644 --- a/src/viam/api/service/shell/v1/shell.grpc.pb.h +++ b/src/viam/api/service/shell/v1/shell.grpc.pb.h @@ -30,7 +30,8 @@ namespace service { namespace shell { namespace v1 { -// A ShellService service allows access to an interactive shell experience. +// A ShellService service allows access to an interactive shell experience, including +// utilities commonly found in tandem with other secure shells. class ShellService final { public: static constexpr char const* service_full_name() { @@ -49,6 +50,39 @@ class ShellService final { std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> PrepareAsyncShell(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(PrepareAsyncShellRaw(context, cq)); } + // CopyFilesToMachines copies a stream of files from a client to the connected-to machine. + // Initially, metadata is sent to describe the destination in the filesystem in addition + // to what kind of file(s) are being sent. + // Once metadata is sent, the file transfer can proceed where one-by-one, file data is sent + // until EOF per file. + // After each file is sent, the machine must respond with an ACK before the next file can + // be sent. This provides back-pressure and ordering. + // The order in which individual files are sent does not matter; that is, if traversing a + // directory, copying depth-first, breadth-first, or any other algorithm does not matter. + // Permissions and metadata on files copied are only preserved if the preserve option is + // set in the initial request metadata. + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>> CopyFilesToMachine(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>>(CopyFilesToMachineRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>> AsyncCopyFilesToMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>>(AsyncCopyFilesToMachineRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>> PrepareAsyncCopyFilesToMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>>(PrepareAsyncCopyFilesToMachineRaw(context, cq)); + } + // CopyFilesFromMachine copies a stream of files from a connected-to machine to the calling client. + // Essentially, it is the inverse of CopyFilesToMachine with the same ACK mechanism in reverse. + // The initial metadata request will request the paths to copy along with if permissions should + // be preserved (and consequently sent over the wire). + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>> CopyFilesFromMachine(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>>(CopyFilesFromMachineRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>> AsyncCopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>>(AsyncCopyFilesFromMachineRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>> PrepareAsyncCopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>>(PrepareAsyncCopyFilesFromMachineRaw(context, cq)); + } // DoCommand sends/receives arbitrary commands virtual ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { @@ -62,6 +96,23 @@ class ShellService final { virtual ~async_interface() {} // Shell starts a shell with an input and output pipe. virtual void Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) = 0; + // CopyFilesToMachines copies a stream of files from a client to the connected-to machine. + // Initially, metadata is sent to describe the destination in the filesystem in addition + // to what kind of file(s) are being sent. + // Once metadata is sent, the file transfer can proceed where one-by-one, file data is sent + // until EOF per file. + // After each file is sent, the machine must respond with an ACK before the next file can + // be sent. This provides back-pressure and ordering. + // The order in which individual files are sent does not matter; that is, if traversing a + // directory, copying depth-first, breadth-first, or any other algorithm does not matter. + // Permissions and metadata on files copied are only preserved if the preserve option is + // set in the initial request metadata. + virtual void CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) = 0; + // CopyFilesFromMachine copies a stream of files from a connected-to machine to the calling client. + // Essentially, it is the inverse of CopyFilesToMachine with the same ACK mechanism in reverse. + // The initial metadata request will request the paths to copy along with if permissions should + // be preserved (and consequently sent over the wire). + virtual void CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) = 0; // DoCommand sends/receives arbitrary commands virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -73,6 +124,12 @@ class ShellService final { virtual ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellRaw(::grpc::ClientContext* context) = 0; virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* PrepareAsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* CopyFilesToMachineRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* AsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* PrepareAsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* CopyFilesFromMachineRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* AsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* PrepareAsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; }; @@ -88,6 +145,24 @@ class ShellService final { std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> PrepareAsyncShell(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(PrepareAsyncShellRaw(context, cq)); } + std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>> CopyFilesToMachine(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>>(CopyFilesToMachineRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>> AsyncCopyFilesToMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>>(AsyncCopyFilesToMachineRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>> PrepareAsyncCopyFilesToMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>>(PrepareAsyncCopyFilesToMachineRaw(context, cq)); + } + std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>> CopyFilesFromMachine(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>>(CopyFilesFromMachineRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>> AsyncCopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>>(AsyncCopyFilesFromMachineRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>> PrepareAsyncCopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>>(PrepareAsyncCopyFilesFromMachineRaw(context, cq)); + } ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); @@ -99,6 +174,8 @@ class ShellService final { public StubInterface::async_interface { public: void Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) override; + void CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) override; + void CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: @@ -115,9 +192,17 @@ class ShellService final { ::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellRaw(::grpc::ClientContext* context) override; ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* PrepareAsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* CopyFilesToMachineRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* AsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* PrepareAsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* CopyFilesFromMachineRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* AsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* PrepareAsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; ::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_Shell_; + const ::grpc::internal::RpcMethod rpcmethod_CopyFilesToMachine_; + const ::grpc::internal::RpcMethod rpcmethod_CopyFilesFromMachine_; const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -128,6 +213,23 @@ class ShellService final { virtual ~Service(); // Shell starts a shell with an input and output pipe. virtual ::grpc::Status Shell(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* stream); + // CopyFilesToMachines copies a stream of files from a client to the connected-to machine. + // Initially, metadata is sent to describe the destination in the filesystem in addition + // to what kind of file(s) are being sent. + // Once metadata is sent, the file transfer can proceed where one-by-one, file data is sent + // until EOF per file. + // After each file is sent, the machine must respond with an ACK before the next file can + // be sent. This provides back-pressure and ordering. + // The order in which individual files are sent does not matter; that is, if traversing a + // directory, copying depth-first, breadth-first, or any other algorithm does not matter. + // Permissions and metadata on files copied are only preserved if the preserve option is + // set in the initial request metadata. + virtual ::grpc::Status CopyFilesToMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* stream); + // CopyFilesFromMachine copies a stream of files from a connected-to machine to the calling client. + // Essentially, it is the inverse of CopyFilesToMachine with the same ACK mechanism in reverse. + // The initial metadata request will request the paths to copy along with if permissions should + // be preserved (and consequently sent over the wire). + virtual ::grpc::Status CopyFilesFromMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* stream); // DoCommand sends/receives arbitrary commands virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); }; @@ -152,12 +254,52 @@ class ShellService final { } }; template + class WithAsyncMethod_CopyFilesToMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CopyFilesToMachine() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_CopyFilesToMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesToMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCopyFilesToMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(1, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CopyFilesFromMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CopyFilesFromMachine() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_CopyFilesFromMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesFromMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCopyFilesFromMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(2, context, stream, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DoCommand() { - ::grpc::Service::MarkMethodAsync(1); + ::grpc::Service::MarkMethodAsync(3); } ~WithAsyncMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -168,10 +310,10 @@ class ShellService 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(1, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_Shell > AsyncService; + typedef WithAsyncMethod_Shell > > > AsyncService; template class WithCallbackMethod_Shell : public BaseClass { private: @@ -196,18 +338,64 @@ class ShellService final { { return nullptr; } }; template + class WithCallbackMethod_CopyFilesToMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CopyFilesToMachine() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackBidiHandler< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>( + [this]( + ::grpc::CallbackServerContext* context) { return this->CopyFilesToMachine(context); })); + } + ~WithCallbackMethod_CopyFilesToMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesToMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* CopyFilesToMachine( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template + class WithCallbackMethod_CopyFilesFromMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CopyFilesFromMachine() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackBidiHandler< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>( + [this]( + ::grpc::CallbackServerContext* context) { return this->CopyFilesFromMachine(context); })); + } + ~WithCallbackMethod_CopyFilesFromMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesFromMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* CopyFilesFromMachine( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template class WithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(1, + ::grpc::Service::MarkMethodCallback(3, 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(1); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -222,7 +410,7 @@ class ShellService final { virtual ::grpc::ServerUnaryReactor* DoCommand( ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Shell > CallbackService; + typedef WithCallbackMethod_Shell > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Shell : public BaseClass { @@ -242,12 +430,46 @@ class ShellService final { } }; template + class WithGenericMethod_CopyFilesToMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CopyFilesToMachine() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_CopyFilesToMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesToMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CopyFilesFromMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CopyFilesFromMachine() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_CopyFilesFromMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesFromMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DoCommand() { - ::grpc::Service::MarkMethodGeneric(1); + ::grpc::Service::MarkMethodGeneric(3); } ~WithGenericMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -279,12 +501,52 @@ class ShellService final { } }; template + class WithRawMethod_CopyFilesToMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CopyFilesToMachine() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_CopyFilesToMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesToMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCopyFilesToMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(1, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CopyFilesFromMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CopyFilesFromMachine() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_CopyFilesFromMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesFromMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCopyFilesFromMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(2, context, stream, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DoCommand() { - ::grpc::Service::MarkMethodRaw(1); + ::grpc::Service::MarkMethodRaw(3); } ~WithRawMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -295,7 +557,7 @@ class ShellService 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(1, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -322,12 +584,58 @@ class ShellService final { { return nullptr; } }; template + class WithRawCallbackMethod_CopyFilesToMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CopyFilesToMachine() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context) { return this->CopyFilesToMachine(context); })); + } + ~WithRawCallbackMethod_CopyFilesToMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesToMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* CopyFilesToMachine( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template + class WithRawCallbackMethod_CopyFilesFromMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CopyFilesFromMachine() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context) { return this->CopyFilesFromMachine(context); })); + } + ~WithRawCallbackMethod_CopyFilesFromMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CopyFilesFromMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* CopyFilesFromMachine( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template class WithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(1, + ::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->DoCommand(context, request, response); })); @@ -349,7 +657,7 @@ class ShellService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DoCommand() { - ::grpc::Service::MarkMethodStreamed(1, + ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [this](::grpc::ServerContext* context, diff --git a/src/viam/api/service/shell/v1/shell.pb.cc b/src/viam/api/service/shell/v1/shell.pb.cc index c9b145907..25b7f7adf 100644 --- a/src/viam/api/service/shell/v1/shell.pb.cc +++ b/src/viam/api/service/shell/v1/shell.pb.cc @@ -52,12 +52,124 @@ struct ShellResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShellResponseDefaultTypeInternal _ShellResponse_default_instance_; +PROTOBUF_CONSTEXPR FileData::FileData( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mod_time_(nullptr) + , size_(int64_t{0}) + , is_dir_(false) + , eof_(false) + , mode_(0u){} +struct FileDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR FileDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FileDataDefaultTypeInternal() {} + union { + FileData _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDataDefaultTypeInternal _FileData_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , source_type_(0) + + , preserve_(false){} +struct CopyFilesToMachineRequestMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesToMachineRequestMetadataDefaultTypeInternal() {} + union { + CopyFilesToMachineRequestMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineRequestMetadataDefaultTypeInternal _CopyFilesToMachineRequestMetadata_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesToMachineRequest::CopyFilesToMachineRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct CopyFilesToMachineRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesToMachineRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesToMachineRequestDefaultTypeInternal() {} + union { + CopyFilesToMachineRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineRequestDefaultTypeInternal _CopyFilesToMachineRequest_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesToMachineResponse::CopyFilesToMachineResponse( + ::_pbi::ConstantInitialized) + : ack_last_file_(false){} +struct CopyFilesToMachineResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesToMachineResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesToMachineResponseDefaultTypeInternal() {} + union { + CopyFilesToMachineResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineResponseDefaultTypeInternal _CopyFilesToMachineResponse_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata( + ::_pbi::ConstantInitialized) + : paths_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , allow_recursion_(false) + , preserve_(false){} +struct CopyFilesFromMachineRequestMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesFromMachineRequestMetadataDefaultTypeInternal() {} + union { + CopyFilesFromMachineRequestMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineRequestMetadataDefaultTypeInternal _CopyFilesFromMachineRequestMetadata_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineRequest::CopyFilesFromMachineRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct CopyFilesFromMachineRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesFromMachineRequestDefaultTypeInternal() {} + union { + CopyFilesFromMachineRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineRequestDefaultTypeInternal _CopyFilesFromMachineRequest_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata( + ::_pbi::ConstantInitialized) + : source_type_(0) +{} +struct CopyFilesFromMachineResponseMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesFromMachineResponseMetadataDefaultTypeInternal() {} + union { + CopyFilesFromMachineResponseMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineResponseMetadataDefaultTypeInternal _CopyFilesFromMachineResponseMetadata_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineResponse::CopyFilesFromMachineResponse( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct CopyFilesFromMachineResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesFromMachineResponseDefaultTypeInternal() {} + union { + CopyFilesFromMachineResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineResponseDefaultTypeInternal _CopyFilesFromMachineResponse_default_instance_; } // namespace v1 } // namespace shell } // namespace service } // namespace viam -static ::_pb::Metadata file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[2]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[10]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fshell_2fv1_2fshell_2eproto = nullptr; const uint32_t TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -79,46 +191,193 @@ const uint32_t TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets[] PROTO PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, data_out_), PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, data_err_), PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, eof_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, size_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, is_dir_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, data_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, eof_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, mod_time_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, mode_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, source_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, destination_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, preserve_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, request_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineResponse, ack_last_file_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, paths_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, allow_recursion_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, preserve_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, request_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata, source_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, response_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::service::shell::v1::ShellRequest)}, { 9, -1, -1, sizeof(::viam::service::shell::v1::ShellResponse)}, + { 18, 31, -1, sizeof(::viam::service::shell::v1::FileData)}, + { 38, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata)}, + { 49, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineRequest)}, + { 58, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineResponse)}, + { 65, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata)}, + { 76, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineRequest)}, + { 85, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata)}, + { 92, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { &::viam::service::shell::v1::_ShellRequest_default_instance_._instance, &::viam::service::shell::v1::_ShellResponse_default_instance_._instance, + &::viam::service::shell::v1::_FileData_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesToMachineRequestMetadata_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesToMachineRequest_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesToMachineResponse_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineRequestMetadata_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineRequest_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineResponseMetadata_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineResponse_default_instance_._instance, }; const char descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\034service/shell/v1/shell.proto\022\025viam.ser" "vice.shell.v1\032\026common/v1/common.proto\032\034g" "oogle/api/annotations.proto\032\034google/prot" - "obuf/struct.proto\"j\n\014ShellRequest\022\022\n\004nam" - "e\030\001 \001(\tR\004name\022\027\n\007data_in\030\002 \001(\tR\006dataIn\022-" - "\n\005extra\030c \001(\0132\027.google.protobuf.StructR\005" - "extra\"W\n\rShellResponse\022\031\n\010data_out\030\001 \001(\t" - "R\007dataOut\022\031\n\010data_err\030\002 \001(\tR\007dataErr\022\020\n\003" - "eof\030\003 \001(\010R\003eof2\357\001\n\014ShellService\022V\n\005Shell" - "\022#.viam.service.shell.v1.ShellRequest\032$." - "viam.service.shell.v1.ShellResponse(\0010\001\022" - "\206\001\n\tDoCommand\022 .viam.common.v1.DoCommand" - "Request\032!.viam.common.v1.DoCommandRespon" - "se\"4\202\323\344\223\002.\",/viam/api/v1/service/shell/{" - "name}/do_commandB=\n\031com.viam.service.she" - "ll.v1Z go.viam.com/api/service/shell/v1b" - "\006proto3" + "obuf/struct.proto\032\037google/protobuf/times" + "tamp.proto\"j\n\014ShellRequest\022\022\n\004name\030\001 \001(\t" + "R\004name\022\027\n\007data_in\030\002 \001(\tR\006dataIn\022-\n\005extra" + "\030c \001(\0132\027.google.protobuf.StructR\005extra\"W" + "\n\rShellResponse\022\031\n\010data_out\030\001 \001(\tR\007dataO" + "ut\022\031\n\010data_err\030\002 \001(\tR\007dataErr\022\020\n\003eof\030\003 \001" + "(\010R\003eof\"\332\001\n\010FileData\022\022\n\004name\030\001 \001(\tR\004name" + "\022\022\n\004size\030\002 \001(\003R\004size\022\025\n\006is_dir\030\003 \001(\010R\005is" + "Dir\022\022\n\004data\030\004 \001(\014R\004data\022\020\n\003eof\030\005 \001(\010R\003eo" + "f\022:\n\010mod_time\030\006 \001(\0132\032.google.protobuf.Ti" + "mestampH\000R\007modTime\210\001\001\022\027\n\004mode\030\007 \001(\rH\001R\004m" + "ode\210\001\001B\013\n\t_mod_timeB\007\n\005_mode\"\361\001\n!CopyFil" + "esToMachineRequestMetadata\022\022\n\004name\030\001 \001(\t" + "R\004name\022K\n\013source_type\030\002 \001(\0162*.viam.servi" + "ce.shell.v1.CopyFilesSourceTypeR\nsourceT" + "ype\022 \n\013destination\030\003 \001(\tR\013destination\022\032\n" + "\010preserve\030\004 \001(\010R\010preserve\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"\276\001\n\031Cop" + "yFilesToMachineRequest\022V\n\010metadata\030\001 \001(\013" + "28.viam.service.shell.v1.CopyFilesToMach" + "ineRequestMetadataH\000R\010metadata\022>\n\tfile_d" + "ata\030\002 \001(\0132\037.viam.service.shell.v1.FileDa" + "taH\000R\010fileDataB\t\n\007request\"@\n\032CopyFilesTo" + "MachineResponse\022\"\n\rack_last_file\030\001 \001(\010R\013" + "ackLastFile\"\303\001\n#CopyFilesFromMachineRequ" + "estMetadata\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005paths" + "\030\002 \003(\tR\005paths\022\'\n\017allow_recursion\030\003 \001(\010R\016" + "allowRecursion\022\032\n\010preserve\030\004 \001(\010R\010preser" + "ve\022-\n\005extra\030c \001(\0132\027.google.protobuf.Stru" + "ctR\005extra\"\250\001\n\033CopyFilesFromMachineReques" + "t\022X\n\010metadata\030\001 \001(\0132:.viam.service.shell" + ".v1.CopyFilesFromMachineRequestMetadataH" + "\000R\010metadata\022$\n\rack_last_file\030\002 \001(\010H\000R\013ac" + "kLastFileB\t\n\007request\"s\n$CopyFilesFromMac" + "hineResponseMetadata\022K\n\013source_type\030\001 \001(" + "\0162*.viam.service.shell.v1.CopyFilesSourc" + "eTypeR\nsourceType\"\305\001\n\034CopyFilesFromMachi" + "neResponse\022Y\n\010metadata\030\001 \001(\0132;.viam.serv" + "ice.shell.v1.CopyFilesFromMachineRespons" + "eMetadataH\000R\010metadata\022>\n\tfile_data\030\002 \001(\013" + "2\037.viam.service.shell.v1.FileDataH\000R\010fil" + "eDataB\n\n\010response*\275\001\n\023CopyFilesSourceTyp" + "e\022&\n\"COPY_FILES_SOURCE_TYPE_UNSPECIFIED\020" + "\000\022&\n\"COPY_FILES_SOURCE_TYPE_SINGLE_FILE\020" + "\001\022+\n\'COPY_FILES_SOURCE_TYPE_SINGLE_DIREC" + "TORY\020\002\022)\n%COPY_FILES_SOURCE_TYPE_MULTIPL" + "E_FILES\020\0032\364\003\n\014ShellService\022V\n\005Shell\022#.vi" + "am.service.shell.v1.ShellRequest\032$.viam." + "service.shell.v1.ShellResponse(\0010\001\022}\n\022Co" + "pyFilesToMachine\0220.viam.service.shell.v1" + ".CopyFilesToMachineRequest\0321.viam.servic" + "e.shell.v1.CopyFilesToMachineResponse(\0010" + "\001\022\203\001\n\024CopyFilesFromMachine\0222.viam.servic" + "e.shell.v1.CopyFilesFromMachineRequest\0323" + ".viam.service.shell.v1.CopyFilesFromMach" + "ineResponse(\0010\001\022\206\001\n\tDoCommand\022 .viam.com" + "mon.v1.DoCommandRequest\032!.viam.common.v1" + ".DoCommandResponse\"4\202\323\344\223\002.\",/viam/api/v1" + "/service/shell/{name}/do_commandB=\n\031com." + "viam.service.shell.v1Z go.viam.com/api/s" + "ervice/shell/v1b\006proto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps[3] = { +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, &::descriptor_table_google_2fapi_2fannotations_2eproto, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; static ::_pbi::once_flag descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fshell_2fv1_2fshell_2eproto = { - false, false, 647, descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto, + false, false, 2543, descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto, "service/shell/v1/shell.proto", - &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps, 3, 2, + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps, 4, 10, schemas, file_default_instances, TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto, file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto, file_level_service_descriptors_service_2fshell_2fv1_2fshell_2eproto, @@ -133,6 +392,22 @@ namespace viam { namespace service { namespace shell { namespace v1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CopyFilesSourceType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fshell_2fv1_2fshell_2eproto); + return file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto[0]; +} +bool CopyFilesSourceType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + // =================================================================== @@ -694,19 +969,2337 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ShellResponse::GetMetadata() const { file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[1]); } -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace shell -} // namespace service -} // namespace viam -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellRequest* -Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellRequest >(arena); +// =================================================================== + +class FileData::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& mod_time(const FileData* msg); + static void set_has_mod_time(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_mode(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +FileData::_Internal::mod_time(const FileData* msg) { + return *msg->mod_time_; } -template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellResponse* -Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellResponse >(arena); +void FileData::clear_mod_time() { + if (mod_time_ != nullptr) mod_time_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +FileData::FileData(::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.shell.v1.FileData) +} +FileData::FileData(const FileData& 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()); + } + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } + if (from._internal_has_mod_time()) { + mod_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.mod_time_); + } else { + mod_time_ = nullptr; + } + ::memcpy(&size_, &from.size_, + static_cast(reinterpret_cast(&mode_) - + reinterpret_cast(&size_)) + sizeof(mode_)); + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.FileData) +} + +inline void FileData::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&mod_time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&mode_) - + reinterpret_cast(&mod_time_)) + sizeof(mode_)); +} + +FileData::~FileData() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.FileData) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FileData::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + data_.Destroy(); + if (this != internal_default_instance()) delete mod_time_; +} + +void FileData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FileData::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.FileData) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + data_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(mod_time_ != nullptr); + mod_time_->Clear(); + } + ::memset(&size_, 0, static_cast( + reinterpret_cast(&eof_) - + reinterpret_cast(&size_)) + sizeof(eof_)); + mode_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FileData::_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.shell.v1.FileData.name")); + } else + goto handle_unusual; + continue; + // int64 size = 2 [json_name = "size"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_dir = 3 [json_name = "isDir"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + is_dir_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes data = 4 [json_name = "data"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool eof = 5 [json_name = "eof"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + eof_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_mod_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional uint32 mode = 7 [json_name = "mode"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _Internal::set_has_mode(&has_bits); + mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* FileData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.FileData) + 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.shell.v1.FileData.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // int64 size = 2 [json_name = "size"]; + if (this->_internal_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); + } + + // bool is_dir = 3 [json_name = "isDir"]; + if (this->_internal_is_dir() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_dir(), target); + } + + // bytes data = 4 [json_name = "data"]; + if (!this->_internal_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_data(), target); + } + + // bool eof = 5 [json_name = "eof"]; + if (this->_internal_eof() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_eof(), target); + } + + // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; + if (_internal_has_mod_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::mod_time(this), + _Internal::mod_time(this).GetCachedSize(), target, stream); + } + + // optional uint32 mode = 7 [json_name = "mode"]; + if (_internal_has_mode()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_mode(), 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.shell.v1.FileData) + return target; +} + +size_t FileData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.FileData) + 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()); + } + + // bytes data = 4 [json_name = "data"]; + if (!this->_internal_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *mod_time_); + } + + // int64 size = 2 [json_name = "size"]; + if (this->_internal_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); + } + + // bool is_dir = 3 [json_name = "isDir"]; + if (this->_internal_is_dir() != 0) { + total_size += 1 + 1; + } + + // bool eof = 5 [json_name = "eof"]; + if (this->_internal_eof() != 0) { + total_size += 1 + 1; + } + + // optional uint32 mode = 7 [json_name = "mode"]; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mode()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FileData::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileData::GetClassData() const { return &_class_data_; } + +void FileData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void FileData::MergeFrom(const FileData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.FileData) + 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_data().empty()) { + _internal_set_data(from._internal_data()); + } + if (from._internal_has_mod_time()) { + _internal_mutable_mod_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_mod_time()); + } + if (from._internal_size() != 0) { + _internal_set_size(from._internal_size()); + } + if (from._internal_is_dir() != 0) { + _internal_set_is_dir(from._internal_is_dir()); + } + if (from._internal_eof() != 0) { + _internal_set_eof(from._internal_eof()); + } + if (from._internal_has_mode()) { + _internal_set_mode(from._internal_mode()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FileData::CopyFrom(const FileData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.FileData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FileData::IsInitialized() const { + return true; +} + +void FileData::InternalSwap(FileData* 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::ArenaStringPtr::InternalSwap( + &data_, lhs_arena, + &other->data_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FileData, mode_) + + sizeof(FileData::mode_) + - PROTOBUF_FIELD_OFFSET(FileData, mod_time_)>( + reinterpret_cast(&mod_time_), + reinterpret_cast(&other->mod_time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FileData::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[2]); +} + +// =================================================================== + +class CopyFilesToMachineRequestMetadata::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const CopyFilesToMachineRequestMetadata* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +CopyFilesToMachineRequestMetadata::_Internal::extra(const CopyFilesToMachineRequestMetadata* msg) { + return *msg->extra_; +} +void CopyFilesToMachineRequestMetadata::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata(::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.shell.v1.CopyFilesToMachineRequestMetadata) +} +CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata(const CopyFilesToMachineRequestMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _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()); + } + destination_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination().empty()) { + destination_.Set(from._internal_destination(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + ::memcpy(&source_type_, &from.source_type_, + static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&source_type_)) + sizeof(preserve_)); + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) +} + +inline void CopyFilesToMachineRequestMetadata::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +destination_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&extra_)) + sizeof(preserve_)); +} + +CopyFilesToMachineRequestMetadata::~CopyFilesToMachineRequestMetadata() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CopyFilesToMachineRequestMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + destination_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void CopyFilesToMachineRequestMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesToMachineRequestMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + destination_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&source_type_, 0, static_cast( + reinterpret_cast(&preserve_) - + reinterpret_cast(&source_type_)) + sizeof(preserve_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesToMachineRequestMetadata::_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 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.shell.v1.CopyFilesToMachineRequestMetadata.name")); + } else + goto handle_unusual; + continue; + // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_source_type(static_cast<::viam::service::shell::v1::CopyFilesSourceType>(val)); + } else + goto handle_unusual; + continue; + // string destination = 3 [json_name = "destination"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_destination(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination")); + } else + goto handle_unusual; + continue; + // bool preserve = 4 [json_name = "preserve"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + preserve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CopyFilesToMachineRequestMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + 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.shell.v1.CopyFilesToMachineRequestMetadata.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; + if (this->_internal_source_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_source_type(), target); + } + + // string destination = 3 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination().data(), static_cast(this->_internal_destination().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_destination(), target); + } + + // bool preserve = 4 [json_name = "preserve"]; + if (this->_internal_preserve() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_preserve(), target); + } + + // .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.shell.v1.CopyFilesToMachineRequestMetadata) + return target; +} + +size_t CopyFilesToMachineRequestMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + 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()); + } + + // string destination = 3 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); + } + + // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; + if (this->_internal_source_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); + } + + // bool preserve = 4 [json_name = "preserve"]; + if (this->_internal_preserve() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesToMachineRequestMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesToMachineRequestMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesToMachineRequestMetadata::GetClassData() const { return &_class_data_; } + +void CopyFilesToMachineRequestMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CopyFilesToMachineRequestMetadata::MergeFrom(const CopyFilesToMachineRequestMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + 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_destination().empty()) { + _internal_set_destination(from._internal_destination()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); + } + if (from._internal_source_type() != 0) { + _internal_set_source_type(from._internal_source_type()); + } + if (from._internal_preserve() != 0) { + _internal_set_preserve(from._internal_preserve()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CopyFilesToMachineRequestMetadata::CopyFrom(const CopyFilesToMachineRequestMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CopyFilesToMachineRequestMetadata::IsInitialized() const { + return true; +} + +void CopyFilesToMachineRequestMetadata::InternalSwap(CopyFilesToMachineRequestMetadata* 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( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &destination_, lhs_arena, + &other->destination_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, preserve_) + + sizeof(CopyFilesToMachineRequestMetadata::preserve_) + - PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesToMachineRequestMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[3]); +} + +// =================================================================== + +class CopyFilesToMachineRequest::_Internal { + public: + static const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& metadata(const CopyFilesToMachineRequest* msg); + static const ::viam::service::shell::v1::FileData& file_data(const CopyFilesToMachineRequest* msg); +}; + +const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& +CopyFilesToMachineRequest::_Internal::metadata(const CopyFilesToMachineRequest* msg) { + return *msg->request_.metadata_; +} +const ::viam::service::shell::v1::FileData& +CopyFilesToMachineRequest::_Internal::file_data(const CopyFilesToMachineRequest* msg) { + return *msg->request_.file_data_; +} +void CopyFilesToMachineRequest::set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + set_has_metadata(); + request_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) +} +void CopyFilesToMachineRequest::set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (file_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file_data); + if (message_arena != submessage_arena) { + file_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, file_data, submessage_arena); + } + set_has_file_data(); + request_.file_data_ = file_data; + } + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) +} +CopyFilesToMachineRequest::CopyFilesToMachineRequest(::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.shell.v1.CopyFilesToMachineRequest) +} +CopyFilesToMachineRequest::CopyFilesToMachineRequest(const CopyFilesToMachineRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_request(); + switch (from.request_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesToMachineRequestMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kFileData: { + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesToMachineRequest) +} + +inline void CopyFilesToMachineRequest::SharedCtor() { +clear_has_request(); +} + +CopyFilesToMachineRequest::~CopyFilesToMachineRequest() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesToMachineRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CopyFilesToMachineRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_request()) { + clear_request(); + } +} + +void CopyFilesToMachineRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesToMachineRequest::clear_request() { +// @@protoc_insertion_point(one_of_clear_start:viam.service.shell.v1.CopyFilesToMachineRequest) + switch (request_case()) { + case kMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; + } + break; + } + case kFileData: { + if (GetArenaForAllocation() == nullptr) { + delete request_.file_data_; + } + break; + } + case REQUEST_NOT_SET: { + break; + } + } + _oneof_case_[0] = REQUEST_NOT_SET; +} + + +void CopyFilesToMachineRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesToMachineRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_request(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesToMachineRequest::_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) { + // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_file_data(), 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* CopyFilesToMachineRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesToMachineRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + if (_internal_has_file_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::file_data(this), + _Internal::file_data(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.shell.v1.CopyFilesToMachineRequest) + return target; +} + +size_t CopyFilesToMachineRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesToMachineRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (request_case()) { + // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + case kMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_.metadata_); + break; + } + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + case kFileData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_.file_data_); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesToMachineRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesToMachineRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesToMachineRequest::GetClassData() const { return &_class_data_; } + +void CopyFilesToMachineRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CopyFilesToMachineRequest::MergeFrom(const CopyFilesToMachineRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.request_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesToMachineRequestMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kFileData: { + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CopyFilesToMachineRequest::CopyFrom(const CopyFilesToMachineRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.CopyFilesToMachineRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CopyFilesToMachineRequest::IsInitialized() const { + return true; +} + +void CopyFilesToMachineRequest::InternalSwap(CopyFilesToMachineRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(request_, other->request_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesToMachineRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[4]); +} + +// =================================================================== + +class CopyFilesToMachineResponse::_Internal { + public: +}; + +CopyFilesToMachineResponse::CopyFilesToMachineResponse(::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.shell.v1.CopyFilesToMachineResponse) +} +CopyFilesToMachineResponse::CopyFilesToMachineResponse(const CopyFilesToMachineResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ack_last_file_ = from.ack_last_file_; + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesToMachineResponse) +} + +inline void CopyFilesToMachineResponse::SharedCtor() { +ack_last_file_ = false; +} + +CopyFilesToMachineResponse::~CopyFilesToMachineResponse() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesToMachineResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CopyFilesToMachineResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void CopyFilesToMachineResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesToMachineResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesToMachineResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ack_last_file_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesToMachineResponse::_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 ack_last_file = 1 [json_name = "ackLastFile"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + ack_last_file_ = ::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* CopyFilesToMachineResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesToMachineResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool ack_last_file = 1 [json_name = "ackLastFile"]; + if (this->_internal_ack_last_file() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_ack_last_file(), 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.shell.v1.CopyFilesToMachineResponse) + return target; +} + +size_t CopyFilesToMachineResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesToMachineResponse) + 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 ack_last_file = 1 [json_name = "ackLastFile"]; + if (this->_internal_ack_last_file() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesToMachineResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesToMachineResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesToMachineResponse::GetClassData() const { return &_class_data_; } + +void CopyFilesToMachineResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CopyFilesToMachineResponse::MergeFrom(const CopyFilesToMachineResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_ack_last_file() != 0) { + _internal_set_ack_last_file(from._internal_ack_last_file()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CopyFilesToMachineResponse::CopyFrom(const CopyFilesToMachineResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.CopyFilesToMachineResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CopyFilesToMachineResponse::IsInitialized() const { + return true; +} + +void CopyFilesToMachineResponse::InternalSwap(CopyFilesToMachineResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(ack_last_file_, other->ack_last_file_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesToMachineResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[5]); +} + +// =================================================================== + +class CopyFilesFromMachineRequestMetadata::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const CopyFilesFromMachineRequestMetadata* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +CopyFilesFromMachineRequestMetadata::_Internal::extra(const CopyFilesFromMachineRequestMetadata* msg) { + return *msg->extra_; +} +void CopyFilesFromMachineRequestMetadata::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + paths_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) +} +CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata(const CopyFilesFromMachineRequestMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + paths_(from.paths_) { + _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_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + ::memcpy(&allow_recursion_, &from.allow_recursion_, + static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&allow_recursion_)) + sizeof(preserve_)); + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) +} + +inline void CopyFilesFromMachineRequestMetadata::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(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&extra_)) + sizeof(preserve_)); +} + +CopyFilesFromMachineRequestMetadata::~CopyFilesFromMachineRequestMetadata() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CopyFilesFromMachineRequestMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void CopyFilesFromMachineRequestMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesFromMachineRequestMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + paths_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&allow_recursion_, 0, static_cast( + reinterpret_cast(&preserve_) - + reinterpret_cast(&allow_recursion_)) + sizeof(preserve_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineRequestMetadata::_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 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.shell.v1.CopyFilesFromMachineRequestMetadata.name")); + } else + goto handle_unusual; + continue; + // repeated string paths = 2 [json_name = "paths"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_paths(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // bool allow_recursion = 3 [json_name = "allowRecursion"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + allow_recursion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool preserve = 4 [json_name = "preserve"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + preserve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CopyFilesFromMachineRequestMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + 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.shell.v1.CopyFilesFromMachineRequestMetadata.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // repeated string paths = 2 [json_name = "paths"]; + for (int i = 0, n = this->_internal_paths_size(); i < n; i++) { + const auto& s = this->_internal_paths(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths"); + target = stream->WriteString(2, s, target); + } + + // bool allow_recursion = 3 [json_name = "allowRecursion"]; + if (this->_internal_allow_recursion() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_allow_recursion(), target); + } + + // bool preserve = 4 [json_name = "preserve"]; + if (this->_internal_preserve() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_preserve(), target); + } + + // .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.shell.v1.CopyFilesFromMachineRequestMetadata) + return target; +} + +size_t CopyFilesFromMachineRequestMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + 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 string paths = 2 [json_name = "paths"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(paths_.size()); + for (int i = 0, n = paths_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + paths_.Get(i)); + } + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); + } + + // bool allow_recursion = 3 [json_name = "allowRecursion"]; + if (this->_internal_allow_recursion() != 0) { + total_size += 1 + 1; + } + + // bool preserve = 4 [json_name = "preserve"]; + if (this->_internal_preserve() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineRequestMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineRequestMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineRequestMetadata::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineRequestMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CopyFilesFromMachineRequestMetadata::MergeFrom(const CopyFilesFromMachineRequestMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + paths_.MergeFrom(from.paths_); + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); + } + if (from._internal_allow_recursion() != 0) { + _internal_set_allow_recursion(from._internal_allow_recursion()); + } + if (from._internal_preserve() != 0) { + _internal_set_preserve(from._internal_preserve()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CopyFilesFromMachineRequestMetadata::CopyFrom(const CopyFilesFromMachineRequestMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CopyFilesFromMachineRequestMetadata::IsInitialized() const { + return true; +} + +void CopyFilesFromMachineRequestMetadata::InternalSwap(CopyFilesFromMachineRequestMetadata* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + paths_.InternalSwap(&other->paths_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, preserve_) + + sizeof(CopyFilesFromMachineRequestMetadata::preserve_) + - PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineRequestMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[6]); +} + +// =================================================================== + +class CopyFilesFromMachineRequest::_Internal { + public: + static const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& metadata(const CopyFilesFromMachineRequest* msg); +}; + +const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& +CopyFilesFromMachineRequest::_Internal::metadata(const CopyFilesFromMachineRequest* msg) { + return *msg->request_.metadata_; +} +void CopyFilesFromMachineRequest::set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + set_has_metadata(); + request_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) +} +CopyFilesFromMachineRequest::CopyFilesFromMachineRequest(::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.shell.v1.CopyFilesFromMachineRequest) +} +CopyFilesFromMachineRequest::CopyFilesFromMachineRequest(const CopyFilesFromMachineRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_request(); + switch (from.request_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kAckLastFile: { + _internal_set_ack_last_file(from._internal_ack_last_file()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineRequest) +} + +inline void CopyFilesFromMachineRequest::SharedCtor() { +clear_has_request(); +} + +CopyFilesFromMachineRequest::~CopyFilesFromMachineRequest() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CopyFilesFromMachineRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_request()) { + clear_request(); + } +} + +void CopyFilesFromMachineRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesFromMachineRequest::clear_request() { +// @@protoc_insertion_point(one_of_clear_start:viam.service.shell.v1.CopyFilesFromMachineRequest) + switch (request_case()) { + case kMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; + } + break; + } + case kAckLastFile: { + // No need to clear + break; + } + case REQUEST_NOT_SET: { + break; + } + } + _oneof_case_[0] = REQUEST_NOT_SET; +} + + +void CopyFilesFromMachineRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_request(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineRequest::_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) { + // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool ack_last_file = 2 [json_name = "ackLastFile"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_ack_last_file(::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* CopyFilesFromMachineRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + // bool ack_last_file = 2 [json_name = "ackLastFile"]; + if (_internal_has_ack_last_file()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_ack_last_file(), 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.shell.v1.CopyFilesFromMachineRequest) + return target; +} + +size_t CopyFilesFromMachineRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (request_case()) { + // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + case kMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_.metadata_); + break; + } + // bool ack_last_file = 2 [json_name = "ackLastFile"]; + case kAckLastFile: { + total_size += 1 + 1; + break; + } + case REQUEST_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineRequest::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CopyFilesFromMachineRequest::MergeFrom(const CopyFilesFromMachineRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.request_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kAckLastFile: { + _internal_set_ack_last_file(from._internal_ack_last_file()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CopyFilesFromMachineRequest::CopyFrom(const CopyFilesFromMachineRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.CopyFilesFromMachineRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CopyFilesFromMachineRequest::IsInitialized() const { + return true; +} + +void CopyFilesFromMachineRequest::InternalSwap(CopyFilesFromMachineRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(request_, other->request_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[7]); +} + +// =================================================================== + +class CopyFilesFromMachineResponseMetadata::_Internal { + public: +}; + +CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata(::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.shell.v1.CopyFilesFromMachineResponseMetadata) +} +CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata(const CopyFilesFromMachineResponseMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + source_type_ = from.source_type_; + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) +} + +inline void CopyFilesFromMachineResponseMetadata::SharedCtor() { +source_type_ = 0; +} + +CopyFilesFromMachineResponseMetadata::~CopyFilesFromMachineResponseMetadata() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CopyFilesFromMachineResponseMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void CopyFilesFromMachineResponseMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesFromMachineResponseMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + source_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineResponseMetadata::_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) { + // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_source_type(static_cast<::viam::service::shell::v1::CopyFilesSourceType>(val)); + } 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* CopyFilesFromMachineResponseMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; + if (this->_internal_source_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_source_type(), 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.shell.v1.CopyFilesFromMachineResponseMetadata) + return target; +} + +size_t CopyFilesFromMachineResponseMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; + if (this->_internal_source_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineResponseMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineResponseMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineResponseMetadata::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineResponseMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CopyFilesFromMachineResponseMetadata::MergeFrom(const CopyFilesFromMachineResponseMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_source_type() != 0) { + _internal_set_source_type(from._internal_source_type()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CopyFilesFromMachineResponseMetadata::CopyFrom(const CopyFilesFromMachineResponseMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CopyFilesFromMachineResponseMetadata::IsInitialized() const { + return true; +} + +void CopyFilesFromMachineResponseMetadata::InternalSwap(CopyFilesFromMachineResponseMetadata* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(source_type_, other->source_type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineResponseMetadata::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[8]); +} + +// =================================================================== + +class CopyFilesFromMachineResponse::_Internal { + public: + static const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& metadata(const CopyFilesFromMachineResponse* msg); + static const ::viam::service::shell::v1::FileData& file_data(const CopyFilesFromMachineResponse* msg); +}; + +const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& +CopyFilesFromMachineResponse::_Internal::metadata(const CopyFilesFromMachineResponse* msg) { + return *msg->response_.metadata_; +} +const ::viam::service::shell::v1::FileData& +CopyFilesFromMachineResponse::_Internal::file_data(const CopyFilesFromMachineResponse* msg) { + return *msg->response_.file_data_; +} +void CopyFilesFromMachineResponse::set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_response(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + if (message_arena != submessage_arena) { + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + set_has_metadata(); + response_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) +} +void CopyFilesFromMachineResponse::set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_response(); + if (file_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file_data); + if (message_arena != submessage_arena) { + file_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, file_data, submessage_arena); + } + set_has_file_data(); + response_.file_data_ = file_data; + } + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) +} +CopyFilesFromMachineResponse::CopyFilesFromMachineResponse(::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.shell.v1.CopyFilesFromMachineResponse) +} +CopyFilesFromMachineResponse::CopyFilesFromMachineResponse(const CopyFilesFromMachineResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_response(); + switch (from.response_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kFileData: { + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineResponse) +} + +inline void CopyFilesFromMachineResponse::SharedCtor() { +clear_has_response(); +} + +CopyFilesFromMachineResponse::~CopyFilesFromMachineResponse() { + // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CopyFilesFromMachineResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_response()) { + clear_response(); + } +} + +void CopyFilesFromMachineResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesFromMachineResponse::clear_response() { +// @@protoc_insertion_point(one_of_clear_start:viam.service.shell.v1.CopyFilesFromMachineResponse) + switch (response_case()) { + case kMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete response_.metadata_; + } + break; + } + case kFileData: { + if (GetArenaForAllocation() == nullptr) { + delete response_.file_data_; + } + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + _oneof_case_[0] = RESPONSE_NOT_SET; +} + + +void CopyFilesFromMachineResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_response(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineResponse::_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) { + // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_file_data(), 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* CopyFilesFromMachineResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); + } + + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + if (_internal_has_file_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::file_data(this), + _Internal::file_data(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.shell.v1.CopyFilesFromMachineResponse) + return target; +} + +size_t CopyFilesFromMachineResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (response_case()) { + // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; + case kMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *response_.metadata_); + break; + } + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + case kFileData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *response_.file_data_); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineResponse::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CopyFilesFromMachineResponse::MergeFrom(const CopyFilesFromMachineResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.response_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kFileData: { + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CopyFilesFromMachineResponse::CopyFrom(const CopyFilesFromMachineResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.shell.v1.CopyFilesFromMachineResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CopyFilesFromMachineResponse::IsInitialized() const { + return true; +} + +void CopyFilesFromMachineResponse::InternalSwap(CopyFilesFromMachineResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(response_, other->response_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[9]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace shell +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellRequest* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellResponse* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::FileData* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::FileData >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::FileData >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesToMachineRequest* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesToMachineRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesToMachineResponse* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesToMachineResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineRequest* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineResponse* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineResponse >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/src/viam/api/service/shell/v1/shell.pb.h b/src/viam/api/service/shell/v1/shell.pb.h index 39b68d59a..a8b01d1e9 100644 --- a/src/viam/api/service/shell/v1/shell.pb.h +++ b/src/viam/api/service/shell/v1/shell.pb.h @@ -29,10 +29,12 @@ #include #include // IWYU pragma: export #include // IWYU pragma: export +#include #include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" #include +#include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_service_2fshell_2fv1_2fshell_2eproto @@ -51,6 +53,30 @@ namespace viam { namespace service { namespace shell { namespace v1 { +class CopyFilesFromMachineRequest; +struct CopyFilesFromMachineRequestDefaultTypeInternal; +extern CopyFilesFromMachineRequestDefaultTypeInternal _CopyFilesFromMachineRequest_default_instance_; +class CopyFilesFromMachineRequestMetadata; +struct CopyFilesFromMachineRequestMetadataDefaultTypeInternal; +extern CopyFilesFromMachineRequestMetadataDefaultTypeInternal _CopyFilesFromMachineRequestMetadata_default_instance_; +class CopyFilesFromMachineResponse; +struct CopyFilesFromMachineResponseDefaultTypeInternal; +extern CopyFilesFromMachineResponseDefaultTypeInternal _CopyFilesFromMachineResponse_default_instance_; +class CopyFilesFromMachineResponseMetadata; +struct CopyFilesFromMachineResponseMetadataDefaultTypeInternal; +extern CopyFilesFromMachineResponseMetadataDefaultTypeInternal _CopyFilesFromMachineResponseMetadata_default_instance_; +class CopyFilesToMachineRequest; +struct CopyFilesToMachineRequestDefaultTypeInternal; +extern CopyFilesToMachineRequestDefaultTypeInternal _CopyFilesToMachineRequest_default_instance_; +class CopyFilesToMachineRequestMetadata; +struct CopyFilesToMachineRequestMetadataDefaultTypeInternal; +extern CopyFilesToMachineRequestMetadataDefaultTypeInternal _CopyFilesToMachineRequestMetadata_default_instance_; +class CopyFilesToMachineResponse; +struct CopyFilesToMachineResponseDefaultTypeInternal; +extern CopyFilesToMachineResponseDefaultTypeInternal _CopyFilesToMachineResponse_default_instance_; +class FileData; +struct FileDataDefaultTypeInternal; +extern FileDataDefaultTypeInternal _FileData_default_instance_; class ShellRequest; struct ShellRequestDefaultTypeInternal; extern ShellRequestDefaultTypeInternal _ShellRequest_default_instance_; @@ -62,6 +88,14 @@ extern ShellResponseDefaultTypeInternal _ShellResponse_default_instance_; } // namespace service } // namespace viam PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::shell::v1::CopyFilesFromMachineRequest* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineRequest>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesFromMachineResponse* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineResponse>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesToMachineRequest* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineRequest>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineRequestMetadata>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesToMachineResponse* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineResponse>(Arena*); +template<> ::viam::service::shell::v1::FileData* Arena::CreateMaybeMessage<::viam::service::shell::v1::FileData>(Arena*); template<> ::viam::service::shell::v1::ShellRequest* Arena::CreateMaybeMessage<::viam::service::shell::v1::ShellRequest>(Arena*); template<> ::viam::service::shell::v1::ShellResponse* Arena::CreateMaybeMessage<::viam::service::shell::v1::ShellResponse>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -70,6 +104,33 @@ namespace service { namespace shell { namespace v1 { +enum CopyFilesSourceType : int { + COPY_FILES_SOURCE_TYPE_UNSPECIFIED = 0, + COPY_FILES_SOURCE_TYPE_SINGLE_FILE = 1, + COPY_FILES_SOURCE_TYPE_SINGLE_DIRECTORY = 2, + COPY_FILES_SOURCE_TYPE_MULTIPLE_FILES = 3, + CopyFilesSourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + CopyFilesSourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool CopyFilesSourceType_IsValid(int value); +constexpr CopyFilesSourceType CopyFilesSourceType_MIN = COPY_FILES_SOURCE_TYPE_UNSPECIFIED; +constexpr CopyFilesSourceType CopyFilesSourceType_MAX = COPY_FILES_SOURCE_TYPE_MULTIPLE_FILES; +constexpr int CopyFilesSourceType_ARRAYSIZE = CopyFilesSourceType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CopyFilesSourceType_descriptor(); +template +inline const std::string& CopyFilesSourceType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CopyFilesSourceType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + CopyFilesSourceType_descriptor(), enum_t_value); +} +inline bool CopyFilesSourceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CopyFilesSourceType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + CopyFilesSourceType_descriptor(), name, value); +} // =================================================================== class ShellRequest final : @@ -429,331 +490,3113 @@ class ShellResponse final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; }; -// =================================================================== - - -// =================================================================== +// ------------------------------------------------------------------- -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ShellRequest +class FileData final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.FileData) */ { + public: + inline FileData() : FileData(nullptr) {} + ~FileData() override; + explicit PROTOBUF_CONSTEXPR FileData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// string name = 1 [json_name = "name"]; -inline void ShellRequest::clear_name() { - name_.ClearToEmpty(); -} -inline const std::string& ShellRequest::name() const { - // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ShellRequest::set_name(ArgT0&& arg0, ArgT... args) { - - name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.name) -} -inline std::string* ShellRequest::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.name) - return _s; -} -inline const std::string& ShellRequest::_internal_name() const { - return name_.Get(); -} -inline void ShellRequest::_internal_set_name(const std::string& value) { - - name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ShellRequest::_internal_mutable_name() { - - return name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ShellRequest::release_name() { - // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.name) - return name_.Release(); -} -inline void ShellRequest::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()); + FileData(const FileData& from); + FileData(FileData&& from) noexcept + : FileData() { + *this = ::std::move(from); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.name) -} -// string data_in = 2 [json_name = "dataIn"]; -inline void ShellRequest::clear_data_in() { - data_in_.ClearToEmpty(); -} -inline const std::string& ShellRequest::data_in() const { - // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.data_in) - return _internal_data_in(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ShellRequest::set_data_in(ArgT0&& arg0, ArgT... args) { - - data_in_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.data_in) -} -inline std::string* ShellRequest::mutable_data_in() { - std::string* _s = _internal_mutable_data_in(); - // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.data_in) - return _s; -} -inline const std::string& ShellRequest::_internal_data_in() const { - return data_in_.Get(); -} -inline void ShellRequest::_internal_set_data_in(const std::string& value) { - - data_in_.Set(value, GetArenaForAllocation()); -} -inline std::string* ShellRequest::_internal_mutable_data_in() { - - return data_in_.Mutable(GetArenaForAllocation()); -} -inline std::string* ShellRequest::release_data_in() { - // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.data_in) - return data_in_.Release(); -} -inline void ShellRequest::set_allocated_data_in(std::string* data_in) { - if (data_in != nullptr) { - - } else { - + inline FileData& operator=(const FileData& from) { + CopyFrom(from); + return *this; } - data_in_.SetAllocated(data_in, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (data_in_.IsDefault()) { - data_in_.Set("", GetArenaForAllocation()); + inline FileData& operator=(FileData&& 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; } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.data_in) -} -// .google.protobuf.Struct extra = 99 [json_name = "extra"]; -inline bool ShellRequest::_internal_has_extra() const { - return this != internal_default_instance() && extra_ != nullptr; -} -inline bool ShellRequest::has_extra() const { - return _internal_has_extra(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Struct& ShellRequest::_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& ShellRequest::extra() const { - // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.extra) - return _internal_extra(); -} -inline void ShellRequest::unsafe_arena_set_allocated_extra( - ::PROTOBUF_NAMESPACE_ID::Struct* extra) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - extra_ = extra; - if (extra) { - - } else { - + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.ShellRequest.extra) -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::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); + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::unsafe_arena_release_extra() { - // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.extra) - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; - extra_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::_internal_mutable_extra() { - - if (extra_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); - extra_ = p; + static const FileData& default_instance() { + return *internal_default_instance(); } - return extra_; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::mutable_extra() { - ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); - // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.extra) - return _msg; -} -inline void ShellRequest::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_); + static inline const FileData* internal_default_instance() { + return reinterpret_cast( + &_FileData_default_instance_); } - 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); + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(FileData& a, FileData& b) { + a.Swap(&b); + } + inline void Swap(FileData* 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); } - - } else { - } - extra_ = extra; - // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.extra) -} + void UnsafeArenaSwap(FileData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } -// ------------------------------------------------------------------- + // implements Message ---------------------------------------------- -// ShellResponse + FileData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FileData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FileData& 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; -// string data_out = 1 [json_name = "dataOut"]; -inline void ShellResponse::clear_data_out() { - data_out_.ClearToEmpty(); -} -inline const std::string& ShellResponse::data_out() const { - // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_out) - return _internal_data_out(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ShellResponse::set_data_out(ArgT0&& arg0, ArgT... args) { - - data_out_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_out) -} -inline std::string* ShellResponse::mutable_data_out() { - std::string* _s = _internal_mutable_data_out(); - // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_out) - return _s; + 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(FileData* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.FileData"; + } + protected: + explicit FileData(::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 { + kNameFieldNumber = 1, + kDataFieldNumber = 4, + kModTimeFieldNumber = 6, + kSizeFieldNumber = 2, + kIsDirFieldNumber = 3, + kEofFieldNumber = 5, + kModeFieldNumber = 7, + }; + // 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: + + // bytes data = 4 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + + // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; + bool has_mod_time() const; + private: + bool _internal_has_mod_time() const; + public: + void clear_mod_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& mod_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_mod_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_mod_time(); + void set_allocated_mod_time(::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_mod_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_mod_time(); + public: + void unsafe_arena_set_allocated_mod_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_mod_time(); + + // int64 size = 2 [json_name = "size"]; + void clear_size(); + int64_t size() const; + void set_size(int64_t value); + private: + int64_t _internal_size() const; + void _internal_set_size(int64_t value); + public: + + // bool is_dir = 3 [json_name = "isDir"]; + void clear_is_dir(); + bool is_dir() const; + void set_is_dir(bool value); + private: + bool _internal_is_dir() const; + void _internal_set_is_dir(bool value); + public: + + // bool eof = 5 [json_name = "eof"]; + void clear_eof(); + bool eof() const; + void set_eof(bool value); + private: + bool _internal_eof() const; + void _internal_set_eof(bool value); + public: + + // optional uint32 mode = 7 [json_name = "mode"]; + bool has_mode() const; + private: + bool _internal_has_mode() const; + public: + void clear_mode(); + uint32_t mode() const; + void set_mode(uint32_t value); + private: + uint32_t _internal_mode() const; + void _internal_set_mode(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.FileData) + 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 data_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time_; + int64_t size_; + bool is_dir_; + bool eof_; + uint32_t mode_; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class CopyFilesToMachineRequestMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) */ { + public: + inline CopyFilesToMachineRequestMetadata() : CopyFilesToMachineRequestMetadata(nullptr) {} + ~CopyFilesToMachineRequestMetadata() override; + explicit PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesToMachineRequestMetadata(const CopyFilesToMachineRequestMetadata& from); + CopyFilesToMachineRequestMetadata(CopyFilesToMachineRequestMetadata&& from) noexcept + : CopyFilesToMachineRequestMetadata() { + *this = ::std::move(from); + } + + inline CopyFilesToMachineRequestMetadata& operator=(const CopyFilesToMachineRequestMetadata& from) { + CopyFrom(from); + return *this; + } + inline CopyFilesToMachineRequestMetadata& operator=(CopyFilesToMachineRequestMetadata&& 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 CopyFilesToMachineRequestMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const CopyFilesToMachineRequestMetadata* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesToMachineRequestMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(CopyFilesToMachineRequestMetadata& a, CopyFilesToMachineRequestMetadata& b) { + a.Swap(&b); + } + inline void Swap(CopyFilesToMachineRequestMetadata* 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(CopyFilesToMachineRequestMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CopyFilesToMachineRequestMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesToMachineRequestMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesToMachineRequestMetadata& 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(CopyFilesToMachineRequestMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesToMachineRequestMetadata"; + } + protected: + explicit CopyFilesToMachineRequestMetadata(::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 { + kNameFieldNumber = 1, + kDestinationFieldNumber = 3, + kExtraFieldNumber = 99, + kSourceTypeFieldNumber = 2, + kPreserveFieldNumber = 4, + }; + // 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: + + // string destination = 3 [json_name = "destination"]; + void clear_destination(); + const std::string& destination() const; + template + void set_destination(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination(); + PROTOBUF_NODISCARD std::string* release_destination(); + void set_allocated_destination(std::string* destination); + private: + const std::string& _internal_destination() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination(const std::string& value); + std::string* _internal_mutable_destination(); + public: + + // .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(); + + // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; + void clear_source_type(); + ::viam::service::shell::v1::CopyFilesSourceType source_type() const; + void set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); + private: + ::viam::service::shell::v1::CopyFilesSourceType _internal_source_type() const; + void _internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); + public: + + // bool preserve = 4 [json_name = "preserve"]; + void clear_preserve(); + bool preserve() const; + void set_preserve(bool value); + private: + bool _internal_preserve() const; + void _internal_set_preserve(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + 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::internal::ArenaStringPtr destination_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int source_type_; + bool preserve_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class CopyFilesToMachineRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineRequest) */ { + public: + inline CopyFilesToMachineRequest() : CopyFilesToMachineRequest(nullptr) {} + ~CopyFilesToMachineRequest() override; + explicit PROTOBUF_CONSTEXPR CopyFilesToMachineRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesToMachineRequest(const CopyFilesToMachineRequest& from); + CopyFilesToMachineRequest(CopyFilesToMachineRequest&& from) noexcept + : CopyFilesToMachineRequest() { + *this = ::std::move(from); + } + + inline CopyFilesToMachineRequest& operator=(const CopyFilesToMachineRequest& from) { + CopyFrom(from); + return *this; + } + inline CopyFilesToMachineRequest& operator=(CopyFilesToMachineRequest&& 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 CopyFilesToMachineRequest& default_instance() { + return *internal_default_instance(); + } + enum RequestCase { + kMetadata = 1, + kFileData = 2, + REQUEST_NOT_SET = 0, + }; + + static inline const CopyFilesToMachineRequest* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesToMachineRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(CopyFilesToMachineRequest& a, CopyFilesToMachineRequest& b) { + a.Swap(&b); + } + inline void Swap(CopyFilesToMachineRequest* 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(CopyFilesToMachineRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CopyFilesToMachineRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesToMachineRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesToMachineRequest& 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(CopyFilesToMachineRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesToMachineRequest"; + } + protected: + explicit CopyFilesToMachineRequest(::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 { + kMetadataFieldNumber = 1, + kFileDataFieldNumber = 2, + }; + // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* release_metadata(); + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata); + private: + const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& _internal_metadata() const; + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata); + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* unsafe_arena_release_metadata(); + + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + bool has_file_data() const; + private: + bool _internal_has_file_data() const; + public: + void clear_file_data(); + const ::viam::service::shell::v1::FileData& file_data() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::FileData* release_file_data(); + ::viam::service::shell::v1::FileData* mutable_file_data(); + void set_allocated_file_data(::viam::service::shell::v1::FileData* file_data); + private: + const ::viam::service::shell::v1::FileData& _internal_file_data() const; + ::viam::service::shell::v1::FileData* _internal_mutable_file_data(); + public: + void unsafe_arena_set_allocated_file_data( + ::viam::service::shell::v1::FileData* file_data); + ::viam::service::shell::v1::FileData* unsafe_arena_release_file_data(); + + void clear_request(); + RequestCase request_case() const; + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineRequest) + private: + class _Internal; + void set_has_metadata(); + void set_has_file_data(); + + inline bool has_request() const; + inline void clear_has_request(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union RequestUnion { + constexpr RequestUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata_; + ::viam::service::shell::v1::FileData* file_data_; + } request_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class CopyFilesToMachineResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineResponse) */ { + public: + inline CopyFilesToMachineResponse() : CopyFilesToMachineResponse(nullptr) {} + ~CopyFilesToMachineResponse() override; + explicit PROTOBUF_CONSTEXPR CopyFilesToMachineResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesToMachineResponse(const CopyFilesToMachineResponse& from); + CopyFilesToMachineResponse(CopyFilesToMachineResponse&& from) noexcept + : CopyFilesToMachineResponse() { + *this = ::std::move(from); + } + + inline CopyFilesToMachineResponse& operator=(const CopyFilesToMachineResponse& from) { + CopyFrom(from); + return *this; + } + inline CopyFilesToMachineResponse& operator=(CopyFilesToMachineResponse&& 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 CopyFilesToMachineResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CopyFilesToMachineResponse* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesToMachineResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(CopyFilesToMachineResponse& a, CopyFilesToMachineResponse& b) { + a.Swap(&b); + } + inline void Swap(CopyFilesToMachineResponse* 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(CopyFilesToMachineResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CopyFilesToMachineResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesToMachineResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesToMachineResponse& 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(CopyFilesToMachineResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesToMachineResponse"; + } + protected: + explicit CopyFilesToMachineResponse(::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 { + kAckLastFileFieldNumber = 1, + }; + // bool ack_last_file = 1 [json_name = "ackLastFile"]; + void clear_ack_last_file(); + bool ack_last_file() const; + void set_ack_last_file(bool value); + private: + bool _internal_ack_last_file() const; + void _internal_set_ack_last_file(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool ack_last_file_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class CopyFilesFromMachineRequestMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) */ { + public: + inline CopyFilesFromMachineRequestMetadata() : CopyFilesFromMachineRequestMetadata(nullptr) {} + ~CopyFilesFromMachineRequestMetadata() override; + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesFromMachineRequestMetadata(const CopyFilesFromMachineRequestMetadata& from); + CopyFilesFromMachineRequestMetadata(CopyFilesFromMachineRequestMetadata&& from) noexcept + : CopyFilesFromMachineRequestMetadata() { + *this = ::std::move(from); + } + + inline CopyFilesFromMachineRequestMetadata& operator=(const CopyFilesFromMachineRequestMetadata& from) { + CopyFrom(from); + return *this; + } + inline CopyFilesFromMachineRequestMetadata& operator=(CopyFilesFromMachineRequestMetadata&& 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 CopyFilesFromMachineRequestMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const CopyFilesFromMachineRequestMetadata* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesFromMachineRequestMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(CopyFilesFromMachineRequestMetadata& a, CopyFilesFromMachineRequestMetadata& b) { + a.Swap(&b); + } + inline void Swap(CopyFilesFromMachineRequestMetadata* 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(CopyFilesFromMachineRequestMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CopyFilesFromMachineRequestMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesFromMachineRequestMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineRequestMetadata& 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(CopyFilesFromMachineRequestMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata"; + } + protected: + explicit CopyFilesFromMachineRequestMetadata(::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 { + kPathsFieldNumber = 2, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kAllowRecursionFieldNumber = 3, + kPreserveFieldNumber = 4, + }; + // repeated string paths = 2 [json_name = "paths"]; + int paths_size() const; + private: + int _internal_paths_size() const; + public: + void clear_paths(); + const std::string& paths(int index) const; + std::string* mutable_paths(int index); + void set_paths(int index, const std::string& value); + void set_paths(int index, std::string&& value); + void set_paths(int index, const char* value); + void set_paths(int index, const char* value, size_t size); + std::string* add_paths(); + void add_paths(const std::string& value); + void add_paths(std::string&& value); + void add_paths(const char* value); + void add_paths(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& paths() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_paths(); + private: + const std::string& _internal_paths(int index) const; + std::string* _internal_add_paths(); + public: + + // 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: + + // .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(); + + // bool allow_recursion = 3 [json_name = "allowRecursion"]; + void clear_allow_recursion(); + bool allow_recursion() const; + void set_allow_recursion(bool value); + private: + bool _internal_allow_recursion() const; + void _internal_set_allow_recursion(bool value); + public: + + // bool preserve = 4 [json_name = "preserve"]; + void clear_preserve(); + bool preserve() const; + void set_preserve(bool value); + private: + bool _internal_preserve() const; + void _internal_set_preserve(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField paths_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool allow_recursion_; + bool preserve_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class CopyFilesFromMachineRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineRequest) */ { + public: + inline CopyFilesFromMachineRequest() : CopyFilesFromMachineRequest(nullptr) {} + ~CopyFilesFromMachineRequest() override; + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesFromMachineRequest(const CopyFilesFromMachineRequest& from); + CopyFilesFromMachineRequest(CopyFilesFromMachineRequest&& from) noexcept + : CopyFilesFromMachineRequest() { + *this = ::std::move(from); + } + + inline CopyFilesFromMachineRequest& operator=(const CopyFilesFromMachineRequest& from) { + CopyFrom(from); + return *this; + } + inline CopyFilesFromMachineRequest& operator=(CopyFilesFromMachineRequest&& 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 CopyFilesFromMachineRequest& default_instance() { + return *internal_default_instance(); + } + enum RequestCase { + kMetadata = 1, + kAckLastFile = 2, + REQUEST_NOT_SET = 0, + }; + + static inline const CopyFilesFromMachineRequest* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesFromMachineRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(CopyFilesFromMachineRequest& a, CopyFilesFromMachineRequest& b) { + a.Swap(&b); + } + inline void Swap(CopyFilesFromMachineRequest* 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(CopyFilesFromMachineRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CopyFilesFromMachineRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesFromMachineRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineRequest& 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(CopyFilesFromMachineRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesFromMachineRequest"; + } + protected: + explicit CopyFilesFromMachineRequest(::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 { + kMetadataFieldNumber = 1, + kAckLastFileFieldNumber = 2, + }; + // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* release_metadata(); + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata); + private: + const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& _internal_metadata() const; + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata); + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* unsafe_arena_release_metadata(); + + // bool ack_last_file = 2 [json_name = "ackLastFile"]; + bool has_ack_last_file() const; + private: + bool _internal_has_ack_last_file() const; + public: + void clear_ack_last_file(); + bool ack_last_file() const; + void set_ack_last_file(bool value); + private: + bool _internal_ack_last_file() const; + void _internal_set_ack_last_file(bool value); + public: + + void clear_request(); + RequestCase request_case() const; + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineRequest) + private: + class _Internal; + void set_has_metadata(); + void set_has_ack_last_file(); + + inline bool has_request() const; + inline void clear_has_request(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union RequestUnion { + constexpr RequestUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata_; + bool ack_last_file_; + } request_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class CopyFilesFromMachineResponseMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) */ { + public: + inline CopyFilesFromMachineResponseMetadata() : CopyFilesFromMachineResponseMetadata(nullptr) {} + ~CopyFilesFromMachineResponseMetadata() override; + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesFromMachineResponseMetadata(const CopyFilesFromMachineResponseMetadata& from); + CopyFilesFromMachineResponseMetadata(CopyFilesFromMachineResponseMetadata&& from) noexcept + : CopyFilesFromMachineResponseMetadata() { + *this = ::std::move(from); + } + + inline CopyFilesFromMachineResponseMetadata& operator=(const CopyFilesFromMachineResponseMetadata& from) { + CopyFrom(from); + return *this; + } + inline CopyFilesFromMachineResponseMetadata& operator=(CopyFilesFromMachineResponseMetadata&& 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 CopyFilesFromMachineResponseMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const CopyFilesFromMachineResponseMetadata* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesFromMachineResponseMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(CopyFilesFromMachineResponseMetadata& a, CopyFilesFromMachineResponseMetadata& b) { + a.Swap(&b); + } + inline void Swap(CopyFilesFromMachineResponseMetadata* 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(CopyFilesFromMachineResponseMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CopyFilesFromMachineResponseMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesFromMachineResponseMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineResponseMetadata& 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(CopyFilesFromMachineResponseMetadata* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesFromMachineResponseMetadata"; + } + protected: + explicit CopyFilesFromMachineResponseMetadata(::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 { + kSourceTypeFieldNumber = 1, + }; + // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; + void clear_source_type(); + ::viam::service::shell::v1::CopyFilesSourceType source_type() const; + void set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); + private: + ::viam::service::shell::v1::CopyFilesSourceType _internal_source_type() const; + void _internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int source_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// ------------------------------------------------------------------- + +class CopyFilesFromMachineResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineResponse) */ { + public: + inline CopyFilesFromMachineResponse() : CopyFilesFromMachineResponse(nullptr) {} + ~CopyFilesFromMachineResponse() override; + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesFromMachineResponse(const CopyFilesFromMachineResponse& from); + CopyFilesFromMachineResponse(CopyFilesFromMachineResponse&& from) noexcept + : CopyFilesFromMachineResponse() { + *this = ::std::move(from); + } + + inline CopyFilesFromMachineResponse& operator=(const CopyFilesFromMachineResponse& from) { + CopyFrom(from); + return *this; + } + inline CopyFilesFromMachineResponse& operator=(CopyFilesFromMachineResponse&& 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 CopyFilesFromMachineResponse& default_instance() { + return *internal_default_instance(); + } + enum ResponseCase { + kMetadata = 1, + kFileData = 2, + RESPONSE_NOT_SET = 0, + }; + + static inline const CopyFilesFromMachineResponse* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesFromMachineResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(CopyFilesFromMachineResponse& a, CopyFilesFromMachineResponse& b) { + a.Swap(&b); + } + inline void Swap(CopyFilesFromMachineResponse* 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(CopyFilesFromMachineResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CopyFilesFromMachineResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesFromMachineResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineResponse& 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(CopyFilesFromMachineResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesFromMachineResponse"; + } + protected: + explicit CopyFilesFromMachineResponse(::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 { + kMetadataFieldNumber = 1, + kFileDataFieldNumber = 2, + }; + // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* release_metadata(); + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata); + private: + const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& _internal_metadata() const; + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata); + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* unsafe_arena_release_metadata(); + + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + bool has_file_data() const; + private: + bool _internal_has_file_data() const; + public: + void clear_file_data(); + const ::viam::service::shell::v1::FileData& file_data() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::FileData* release_file_data(); + ::viam::service::shell::v1::FileData* mutable_file_data(); + void set_allocated_file_data(::viam::service::shell::v1::FileData* file_data); + private: + const ::viam::service::shell::v1::FileData& _internal_file_data() const; + ::viam::service::shell::v1::FileData* _internal_mutable_file_data(); + public: + void unsafe_arena_set_allocated_file_data( + ::viam::service::shell::v1::FileData* file_data); + ::viam::service::shell::v1::FileData* unsafe_arena_release_file_data(); + + void clear_response(); + ResponseCase response_case() const; + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineResponse) + private: + class _Internal; + void set_has_metadata(); + void set_has_file_data(); + + inline bool has_response() const; + inline void clear_has_response(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union ResponseUnion { + constexpr ResponseUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata_; + ::viam::service::shell::v1::FileData* file_data_; + } response_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ShellRequest + +// string name = 1 [json_name = "name"]; +inline void ShellRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& ShellRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.name) +} +inline std::string* ShellRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.name) + return _s; +} +inline const std::string& ShellRequest::_internal_name() const { + return name_.Get(); +} +inline void ShellRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.name) + return name_.Release(); +} +inline void ShellRequest::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.shell.v1.ShellRequest.name) +} + +// string data_in = 2 [json_name = "dataIn"]; +inline void ShellRequest::clear_data_in() { + data_in_.ClearToEmpty(); +} +inline const std::string& ShellRequest::data_in() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.data_in) + return _internal_data_in(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellRequest::set_data_in(ArgT0&& arg0, ArgT... args) { + + data_in_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.data_in) +} +inline std::string* ShellRequest::mutable_data_in() { + std::string* _s = _internal_mutable_data_in(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.data_in) + return _s; +} +inline const std::string& ShellRequest::_internal_data_in() const { + return data_in_.Get(); +} +inline void ShellRequest::_internal_set_data_in(const std::string& value) { + + data_in_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellRequest::_internal_mutable_data_in() { + + return data_in_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellRequest::release_data_in() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.data_in) + return data_in_.Release(); +} +inline void ShellRequest::set_allocated_data_in(std::string* data_in) { + if (data_in != nullptr) { + + } else { + + } + data_in_.SetAllocated(data_in, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_in_.IsDefault()) { + data_in_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.data_in) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ShellRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool ShellRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ShellRequest::_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& ShellRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.extra) + return _internal_extra(); +} +inline void ShellRequest::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.shell.v1.ShellRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::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* ShellRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.extra) + return _msg; +} +inline void ShellRequest::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 { + + } + extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.extra) +} + +// ------------------------------------------------------------------- + +// ShellResponse + +// string data_out = 1 [json_name = "dataOut"]; +inline void ShellResponse::clear_data_out() { + data_out_.ClearToEmpty(); +} +inline const std::string& ShellResponse::data_out() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_out) + return _internal_data_out(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellResponse::set_data_out(ArgT0&& arg0, ArgT... args) { + + data_out_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_out) +} +inline std::string* ShellResponse::mutable_data_out() { + std::string* _s = _internal_mutable_data_out(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_out) + return _s; +} +inline const std::string& ShellResponse::_internal_data_out() const { + return data_out_.Get(); +} +inline void ShellResponse::_internal_set_data_out(const std::string& value) { + + data_out_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellResponse::_internal_mutable_data_out() { + + return data_out_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellResponse::release_data_out() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_out) + return data_out_.Release(); +} +inline void ShellResponse::set_allocated_data_out(std::string* data_out) { + if (data_out != nullptr) { + + } else { + + } + data_out_.SetAllocated(data_out, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_out_.IsDefault()) { + data_out_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_out) +} + +// string data_err = 2 [json_name = "dataErr"]; +inline void ShellResponse::clear_data_err() { + data_err_.ClearToEmpty(); +} +inline const std::string& ShellResponse::data_err() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_err) + return _internal_data_err(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ShellResponse::set_data_err(ArgT0&& arg0, ArgT... args) { + + data_err_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_err) +} +inline std::string* ShellResponse::mutable_data_err() { + std::string* _s = _internal_mutable_data_err(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_err) + return _s; +} +inline const std::string& ShellResponse::_internal_data_err() const { + return data_err_.Get(); +} +inline void ShellResponse::_internal_set_data_err(const std::string& value) { + + data_err_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShellResponse::_internal_mutable_data_err() { + + return data_err_.Mutable(GetArenaForAllocation()); +} +inline std::string* ShellResponse::release_data_err() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_err) + return data_err_.Release(); +} +inline void ShellResponse::set_allocated_data_err(std::string* data_err) { + if (data_err != nullptr) { + + } else { + + } + data_err_.SetAllocated(data_err, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_err_.IsDefault()) { + data_err_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_err) +} + +// bool eof = 3 [json_name = "eof"]; +inline void ShellResponse::clear_eof() { + eof_ = false; +} +inline bool ShellResponse::_internal_eof() const { + return eof_; +} +inline bool ShellResponse::eof() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.eof) + return _internal_eof(); +} +inline void ShellResponse::_internal_set_eof(bool value) { + + eof_ = value; +} +inline void ShellResponse::set_eof(bool value) { + _internal_set_eof(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.eof) +} + +// ------------------------------------------------------------------- + +// FileData + +// string name = 1 [json_name = "name"]; +inline void FileData::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& FileData::name() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FileData::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.name) +} +inline std::string* FileData::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.FileData.name) + return _s; +} +inline const std::string& FileData::_internal_name() const { + return name_.Get(); +} +inline void FileData::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* FileData::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* FileData::release_name() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.FileData.name) + return name_.Release(); +} +inline void FileData::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.shell.v1.FileData.name) +} + +// int64 size = 2 [json_name = "size"]; +inline void FileData::clear_size() { + size_ = int64_t{0}; +} +inline int64_t FileData::_internal_size() const { + return size_; +} +inline int64_t FileData::size() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.size) + return _internal_size(); +} +inline void FileData::_internal_set_size(int64_t value) { + + size_ = value; +} +inline void FileData::set_size(int64_t value) { + _internal_set_size(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.size) +} + +// bool is_dir = 3 [json_name = "isDir"]; +inline void FileData::clear_is_dir() { + is_dir_ = false; +} +inline bool FileData::_internal_is_dir() const { + return is_dir_; +} +inline bool FileData::is_dir() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.is_dir) + return _internal_is_dir(); +} +inline void FileData::_internal_set_is_dir(bool value) { + + is_dir_ = value; +} +inline void FileData::set_is_dir(bool value) { + _internal_set_is_dir(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.is_dir) +} + +// bytes data = 4 [json_name = "data"]; +inline void FileData::clear_data() { + data_.ClearToEmpty(); +} +inline const std::string& FileData::data() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FileData::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.data) +} +inline std::string* FileData::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.FileData.data) + return _s; +} +inline const std::string& FileData::_internal_data() const { + return data_.Get(); +} +inline void FileData::_internal_set_data(const std::string& value) { + + data_.Set(value, GetArenaForAllocation()); +} +inline std::string* FileData::_internal_mutable_data() { + + return data_.Mutable(GetArenaForAllocation()); +} +inline std::string* FileData::release_data() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.FileData.data) + return data_.Release(); +} +inline void FileData::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.FileData.data) +} + +// bool eof = 5 [json_name = "eof"]; +inline void FileData::clear_eof() { + eof_ = false; +} +inline bool FileData::_internal_eof() const { + return eof_; +} +inline bool FileData::eof() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.eof) + return _internal_eof(); +} +inline void FileData::_internal_set_eof(bool value) { + + eof_ = value; +} +inline void FileData::set_eof(bool value) { + _internal_set_eof(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.eof) +} + +// optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; +inline bool FileData::_internal_has_mod_time() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || mod_time_ != nullptr); + return value; +} +inline bool FileData::has_mod_time() const { + return _internal_has_mod_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& FileData::_internal_mod_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = mod_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& FileData::mod_time() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.mod_time) + return _internal_mod_time(); +} +inline void FileData::unsafe_arena_set_allocated_mod_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mod_time_); + } + mod_time_ = mod_time; + if (mod_time) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.FileData.mod_time) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FileData::release_mod_time() { + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = mod_time_; + mod_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* FileData::unsafe_arena_release_mod_time() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.FileData.mod_time) + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = mod_time_; + mod_time_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FileData::_internal_mutable_mod_time() { + _has_bits_[0] |= 0x00000001u; + if (mod_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + mod_time_ = p; + } + return mod_time_; } -inline const std::string& ShellResponse::_internal_data_out() const { - return data_out_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FileData::mutable_mod_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_mod_time(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.FileData.mod_time) + return _msg; } -inline void ShellResponse::_internal_set_data_out(const std::string& value) { +inline void FileData::set_allocated_mod_time(::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mod_time_); + } + if (mod_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mod_time)); + if (message_arena != submessage_arena) { + mod_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, mod_time, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + mod_time_ = mod_time; + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.FileData.mod_time) +} + +// optional uint32 mode = 7 [json_name = "mode"]; +inline bool FileData::_internal_has_mode() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool FileData::has_mode() const { + return _internal_has_mode(); +} +inline void FileData::clear_mode() { + mode_ = 0u; + _has_bits_[0] &= ~0x00000002u; +} +inline uint32_t FileData::_internal_mode() const { + return mode_; +} +inline uint32_t FileData::mode() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.mode) + return _internal_mode(); +} +inline void FileData::_internal_set_mode(uint32_t value) { + _has_bits_[0] |= 0x00000002u; + mode_ = value; +} +inline void FileData::set_mode(uint32_t value) { + _internal_set_mode(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.mode) +} + +// ------------------------------------------------------------------- + +// CopyFilesToMachineRequestMetadata + +// string name = 1 [json_name = "name"]; +inline void CopyFilesToMachineRequestMetadata::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& CopyFilesToMachineRequestMetadata::name() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CopyFilesToMachineRequestMetadata::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) +} +inline std::string* CopyFilesToMachineRequestMetadata::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) + return _s; +} +inline const std::string& CopyFilesToMachineRequestMetadata::_internal_name() const { + return name_.Get(); +} +inline void CopyFilesToMachineRequestMetadata::_internal_set_name(const std::string& value) { - data_out_.Set(value, GetArenaForAllocation()); + name_.Set(value, GetArenaForAllocation()); } -inline std::string* ShellResponse::_internal_mutable_data_out() { +inline std::string* CopyFilesToMachineRequestMetadata::_internal_mutable_name() { - return data_out_.Mutable(GetArenaForAllocation()); + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* ShellResponse::release_data_out() { - // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_out) - return data_out_.Release(); +inline std::string* CopyFilesToMachineRequestMetadata::release_name() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) + return name_.Release(); +} +inline void CopyFilesToMachineRequestMetadata::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.shell.v1.CopyFilesToMachineRequestMetadata.name) +} + +// .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; +inline void CopyFilesToMachineRequestMetadata::clear_source_type() { + source_type_ = 0; +} +inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesToMachineRequestMetadata::_internal_source_type() const { + return static_cast< ::viam::service::shell::v1::CopyFilesSourceType >(source_type_); +} +inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesToMachineRequestMetadata::source_type() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.source_type) + return _internal_source_type(); +} +inline void CopyFilesToMachineRequestMetadata::_internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { + + source_type_ = value; +} +inline void CopyFilesToMachineRequestMetadata::set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { + _internal_set_source_type(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.source_type) +} + +// string destination = 3 [json_name = "destination"]; +inline void CopyFilesToMachineRequestMetadata::clear_destination() { + destination_.ClearToEmpty(); +} +inline const std::string& CopyFilesToMachineRequestMetadata::destination() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) + return _internal_destination(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CopyFilesToMachineRequestMetadata::set_destination(ArgT0&& arg0, ArgT... args) { + + destination_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) +} +inline std::string* CopyFilesToMachineRequestMetadata::mutable_destination() { + std::string* _s = _internal_mutable_destination(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) + return _s; +} +inline const std::string& CopyFilesToMachineRequestMetadata::_internal_destination() const { + return destination_.Get(); +} +inline void CopyFilesToMachineRequestMetadata::_internal_set_destination(const std::string& value) { + + destination_.Set(value, GetArenaForAllocation()); +} +inline std::string* CopyFilesToMachineRequestMetadata::_internal_mutable_destination() { + + return destination_.Mutable(GetArenaForAllocation()); +} +inline std::string* CopyFilesToMachineRequestMetadata::release_destination() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) + return destination_.Release(); +} +inline void CopyFilesToMachineRequestMetadata::set_allocated_destination(std::string* destination) { + if (destination != nullptr) { + + } else { + + } + destination_.SetAllocated(destination, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (destination_.IsDefault()) { + destination_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) +} + +// bool preserve = 4 [json_name = "preserve"]; +inline void CopyFilesToMachineRequestMetadata::clear_preserve() { + preserve_ = false; +} +inline bool CopyFilesToMachineRequestMetadata::_internal_preserve() const { + return preserve_; +} +inline bool CopyFilesToMachineRequestMetadata::preserve() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.preserve) + return _internal_preserve(); +} +inline void CopyFilesToMachineRequestMetadata::_internal_set_preserve(bool value) { + + preserve_ = value; +} +inline void CopyFilesToMachineRequestMetadata::set_preserve(bool value) { + _internal_set_preserve(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.preserve) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool CopyFilesToMachineRequestMetadata::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool CopyFilesToMachineRequestMetadata::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CopyFilesToMachineRequestMetadata::_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& CopyFilesToMachineRequestMetadata::extra() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) + return _internal_extra(); +} +inline void CopyFilesToMachineRequestMetadata::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.shell.v1.CopyFilesToMachineRequestMetadata.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesToMachineRequestMetadata::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* CopyFilesToMachineRequestMetadata::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesToMachineRequestMetadata::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesToMachineRequestMetadata::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) + return _msg; +} +inline void CopyFilesToMachineRequestMetadata::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 { + + } + extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) +} + +// ------------------------------------------------------------------- + +// CopyFilesToMachineRequest + +// .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; +inline bool CopyFilesToMachineRequest::_internal_has_metadata() const { + return request_case() == kMetadata; +} +inline bool CopyFilesToMachineRequest::has_metadata() const { + return _internal_has_metadata(); +} +inline void CopyFilesToMachineRequest::set_has_metadata() { + _oneof_case_[0] = kMetadata; +} +inline void CopyFilesToMachineRequest::clear_metadata() { + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; + } + clear_has_request(); + } +} +inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::release_metadata() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) + if (_internal_has_metadata()) { + clear_has_request(); + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* temp = request_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + request_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& CopyFilesToMachineRequest::_internal_metadata() const { + return _internal_has_metadata() + ? *request_.metadata_ + : reinterpret_cast< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata&>(::viam::service::shell::v1::_CopyFilesToMachineRequestMetadata_default_instance_); +} +inline const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& CopyFilesToMachineRequest::metadata() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) + return _internal_metadata(); +} +inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) + if (_internal_has_metadata()) { + clear_has_request(); + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* temp = request_.metadata_; + request_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CopyFilesToMachineRequest::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata) { + clear_request(); + if (metadata) { + set_has_metadata(); + request_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) +} +inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::_internal_mutable_metadata() { + if (!_internal_has_metadata()) { + clear_request(); + set_has_metadata(); + request_.metadata_ = CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata >(GetArenaForAllocation()); + } + return request_.metadata_; +} +inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::mutable_metadata() { + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) + return _msg; +} + +// .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; +inline bool CopyFilesToMachineRequest::_internal_has_file_data() const { + return request_case() == kFileData; +} +inline bool CopyFilesToMachineRequest::has_file_data() const { + return _internal_has_file_data(); +} +inline void CopyFilesToMachineRequest::set_has_file_data() { + _oneof_case_[0] = kFileData; +} +inline void CopyFilesToMachineRequest::clear_file_data() { + if (_internal_has_file_data()) { + if (GetArenaForAllocation() == nullptr) { + delete request_.file_data_; + } + clear_has_request(); + } +} +inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::release_file_data() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) + if (_internal_has_file_data()) { + clear_has_request(); + ::viam::service::shell::v1::FileData* temp = request_.file_data_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + request_.file_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::service::shell::v1::FileData& CopyFilesToMachineRequest::_internal_file_data() const { + return _internal_has_file_data() + ? *request_.file_data_ + : reinterpret_cast< ::viam::service::shell::v1::FileData&>(::viam::service::shell::v1::_FileData_default_instance_); +} +inline const ::viam::service::shell::v1::FileData& CopyFilesToMachineRequest::file_data() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) + return _internal_file_data(); +} +inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::unsafe_arena_release_file_data() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) + if (_internal_has_file_data()) { + clear_has_request(); + ::viam::service::shell::v1::FileData* temp = request_.file_data_; + request_.file_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CopyFilesToMachineRequest::unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { + clear_request(); + if (file_data) { + set_has_file_data(); + request_.file_data_ = file_data; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) +} +inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::_internal_mutable_file_data() { + if (!_internal_has_file_data()) { + clear_request(); + set_has_file_data(); + request_.file_data_ = CreateMaybeMessage< ::viam::service::shell::v1::FileData >(GetArenaForAllocation()); + } + return request_.file_data_; +} +inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::mutable_file_data() { + ::viam::service::shell::v1::FileData* _msg = _internal_mutable_file_data(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) + return _msg; +} + +inline bool CopyFilesToMachineRequest::has_request() const { + return request_case() != REQUEST_NOT_SET; +} +inline void CopyFilesToMachineRequest::clear_has_request() { + _oneof_case_[0] = REQUEST_NOT_SET; +} +inline CopyFilesToMachineRequest::RequestCase CopyFilesToMachineRequest::request_case() const { + return CopyFilesToMachineRequest::RequestCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CopyFilesToMachineResponse + +// bool ack_last_file = 1 [json_name = "ackLastFile"]; +inline void CopyFilesToMachineResponse::clear_ack_last_file() { + ack_last_file_ = false; +} +inline bool CopyFilesToMachineResponse::_internal_ack_last_file() const { + return ack_last_file_; +} +inline bool CopyFilesToMachineResponse::ack_last_file() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineResponse.ack_last_file) + return _internal_ack_last_file(); +} +inline void CopyFilesToMachineResponse::_internal_set_ack_last_file(bool value) { + + ack_last_file_ = value; +} +inline void CopyFilesToMachineResponse::set_ack_last_file(bool value) { + _internal_set_ack_last_file(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineResponse.ack_last_file) +} + +// ------------------------------------------------------------------- + +// CopyFilesFromMachineRequestMetadata + +// string name = 1 [json_name = "name"]; +inline void CopyFilesFromMachineRequestMetadata::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& CopyFilesFromMachineRequestMetadata::name() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CopyFilesFromMachineRequestMetadata::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) +} +inline std::string* CopyFilesFromMachineRequestMetadata::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) + return _s; +} +inline const std::string& CopyFilesFromMachineRequestMetadata::_internal_name() const { + return name_.Get(); +} +inline void CopyFilesFromMachineRequestMetadata::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CopyFilesFromMachineRequestMetadata::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CopyFilesFromMachineRequestMetadata::release_name() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) + return name_.Release(); } -inline void ShellResponse::set_allocated_data_out(std::string* data_out) { - if (data_out != nullptr) { +inline void CopyFilesFromMachineRequestMetadata::set_allocated_name(std::string* name) { + if (name != nullptr) { } else { } - data_out_.SetAllocated(data_out, GetArenaForAllocation()); + name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (data_out_.IsDefault()) { - data_out_.Set("", GetArenaForAllocation()); + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_out) + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) } -// string data_err = 2 [json_name = "dataErr"]; -inline void ShellResponse::clear_data_err() { - data_err_.ClearToEmpty(); +// repeated string paths = 2 [json_name = "paths"]; +inline int CopyFilesFromMachineRequestMetadata::_internal_paths_size() const { + return paths_.size(); } -inline const std::string& ShellResponse::data_err() const { - // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_err) - return _internal_data_err(); +inline int CopyFilesFromMachineRequestMetadata::paths_size() const { + return _internal_paths_size(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ShellResponse::set_data_err(ArgT0&& arg0, ArgT... args) { - - data_err_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_err) +inline void CopyFilesFromMachineRequestMetadata::clear_paths() { + paths_.Clear(); } -inline std::string* ShellResponse::mutable_data_err() { - std::string* _s = _internal_mutable_data_err(); - // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_err) +inline std::string* CopyFilesFromMachineRequestMetadata::add_paths() { + std::string* _s = _internal_add_paths(); + // @@protoc_insertion_point(field_add_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) return _s; } -inline const std::string& ShellResponse::_internal_data_err() const { - return data_err_.Get(); +inline const std::string& CopyFilesFromMachineRequestMetadata::_internal_paths(int index) const { + return paths_.Get(index); } -inline void ShellResponse::_internal_set_data_err(const std::string& value) { +inline const std::string& CopyFilesFromMachineRequestMetadata::paths(int index) const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) + return _internal_paths(index); +} +inline std::string* CopyFilesFromMachineRequestMetadata::mutable_paths(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) + return paths_.Mutable(index); +} +inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, const std::string& value) { + paths_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, std::string&& value) { + paths_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + paths_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, const char* value, size_t size) { + paths_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline std::string* CopyFilesFromMachineRequestMetadata::_internal_add_paths() { + return paths_.Add(); +} +inline void CopyFilesFromMachineRequestMetadata::add_paths(const std::string& value) { + paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline void CopyFilesFromMachineRequestMetadata::add_paths(std::string&& value) { + paths_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline void CopyFilesFromMachineRequestMetadata::add_paths(const char* value) { + GOOGLE_DCHECK(value != nullptr); + paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline void CopyFilesFromMachineRequestMetadata::add_paths(const char* value, size_t size) { + paths_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +CopyFilesFromMachineRequestMetadata::paths() const { + // @@protoc_insertion_point(field_list:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) + return paths_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +CopyFilesFromMachineRequestMetadata::mutable_paths() { + // @@protoc_insertion_point(field_mutable_list:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) + return &paths_; +} + +// bool allow_recursion = 3 [json_name = "allowRecursion"]; +inline void CopyFilesFromMachineRequestMetadata::clear_allow_recursion() { + allow_recursion_ = false; +} +inline bool CopyFilesFromMachineRequestMetadata::_internal_allow_recursion() const { + return allow_recursion_; +} +inline bool CopyFilesFromMachineRequestMetadata::allow_recursion() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.allow_recursion) + return _internal_allow_recursion(); +} +inline void CopyFilesFromMachineRequestMetadata::_internal_set_allow_recursion(bool value) { - data_err_.Set(value, GetArenaForAllocation()); + allow_recursion_ = value; } -inline std::string* ShellResponse::_internal_mutable_data_err() { +inline void CopyFilesFromMachineRequestMetadata::set_allow_recursion(bool value) { + _internal_set_allow_recursion(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.allow_recursion) +} + +// bool preserve = 4 [json_name = "preserve"]; +inline void CopyFilesFromMachineRequestMetadata::clear_preserve() { + preserve_ = false; +} +inline bool CopyFilesFromMachineRequestMetadata::_internal_preserve() const { + return preserve_; +} +inline bool CopyFilesFromMachineRequestMetadata::preserve() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.preserve) + return _internal_preserve(); +} +inline void CopyFilesFromMachineRequestMetadata::_internal_set_preserve(bool value) { - return data_err_.Mutable(GetArenaForAllocation()); + preserve_ = value; } -inline std::string* ShellResponse::release_data_err() { - // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_err) - return data_err_.Release(); +inline void CopyFilesFromMachineRequestMetadata::set_preserve(bool value) { + _internal_set_preserve(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.preserve) } -inline void ShellResponse::set_allocated_data_err(std::string* data_err) { - if (data_err != nullptr) { + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool CopyFilesFromMachineRequestMetadata::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool CopyFilesFromMachineRequestMetadata::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CopyFilesFromMachineRequestMetadata::_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& CopyFilesFromMachineRequestMetadata::extra() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) + return _internal_extra(); +} +inline void CopyFilesFromMachineRequestMetadata::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 { } - data_err_.SetAllocated(data_err, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (data_err_.IsDefault()) { - data_err_.Set("", GetArenaForAllocation()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::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_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_err) +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) + return _msg; +} +inline void CopyFilesFromMachineRequestMetadata::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 { + + } + extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) } -// bool eof = 3 [json_name = "eof"]; -inline void ShellResponse::clear_eof() { - eof_ = false; +// ------------------------------------------------------------------- + +// CopyFilesFromMachineRequest + +// .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; +inline bool CopyFilesFromMachineRequest::_internal_has_metadata() const { + return request_case() == kMetadata; } -inline bool ShellResponse::_internal_eof() const { - return eof_; +inline bool CopyFilesFromMachineRequest::has_metadata() const { + return _internal_has_metadata(); } -inline bool ShellResponse::eof() const { - // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.eof) - return _internal_eof(); +inline void CopyFilesFromMachineRequest::set_has_metadata() { + _oneof_case_[0] = kMetadata; } -inline void ShellResponse::_internal_set_eof(bool value) { +inline void CopyFilesFromMachineRequest::clear_metadata() { + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; + } + clear_has_request(); + } +} +inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::release_metadata() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) + if (_internal_has_metadata()) { + clear_has_request(); + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* temp = request_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + request_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& CopyFilesFromMachineRequest::_internal_metadata() const { + return _internal_has_metadata() + ? *request_.metadata_ + : reinterpret_cast< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata&>(::viam::service::shell::v1::_CopyFilesFromMachineRequestMetadata_default_instance_); +} +inline const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& CopyFilesFromMachineRequest::metadata() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) + return _internal_metadata(); +} +inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) + if (_internal_has_metadata()) { + clear_has_request(); + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* temp = request_.metadata_; + request_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CopyFilesFromMachineRequest::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata) { + clear_request(); + if (metadata) { + set_has_metadata(); + request_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) +} +inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::_internal_mutable_metadata() { + if (!_internal_has_metadata()) { + clear_request(); + set_has_metadata(); + request_.metadata_ = CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata >(GetArenaForAllocation()); + } + return request_.metadata_; +} +inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::mutable_metadata() { + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) + return _msg; +} + +// bool ack_last_file = 2 [json_name = "ackLastFile"]; +inline bool CopyFilesFromMachineRequest::_internal_has_ack_last_file() const { + return request_case() == kAckLastFile; +} +inline bool CopyFilesFromMachineRequest::has_ack_last_file() const { + return _internal_has_ack_last_file(); +} +inline void CopyFilesFromMachineRequest::set_has_ack_last_file() { + _oneof_case_[0] = kAckLastFile; +} +inline void CopyFilesFromMachineRequest::clear_ack_last_file() { + if (_internal_has_ack_last_file()) { + request_.ack_last_file_ = false; + clear_has_request(); + } +} +inline bool CopyFilesFromMachineRequest::_internal_ack_last_file() const { + if (_internal_has_ack_last_file()) { + return request_.ack_last_file_; + } + return false; +} +inline void CopyFilesFromMachineRequest::_internal_set_ack_last_file(bool value) { + if (!_internal_has_ack_last_file()) { + clear_request(); + set_has_ack_last_file(); + } + request_.ack_last_file_ = value; +} +inline bool CopyFilesFromMachineRequest::ack_last_file() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequest.ack_last_file) + return _internal_ack_last_file(); +} +inline void CopyFilesFromMachineRequest::set_ack_last_file(bool value) { + _internal_set_ack_last_file(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequest.ack_last_file) +} + +inline bool CopyFilesFromMachineRequest::has_request() const { + return request_case() != REQUEST_NOT_SET; +} +inline void CopyFilesFromMachineRequest::clear_has_request() { + _oneof_case_[0] = REQUEST_NOT_SET; +} +inline CopyFilesFromMachineRequest::RequestCase CopyFilesFromMachineRequest::request_case() const { + return CopyFilesFromMachineRequest::RequestCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CopyFilesFromMachineResponseMetadata + +// .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; +inline void CopyFilesFromMachineResponseMetadata::clear_source_type() { + source_type_ = 0; +} +inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesFromMachineResponseMetadata::_internal_source_type() const { + return static_cast< ::viam::service::shell::v1::CopyFilesSourceType >(source_type_); +} +inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesFromMachineResponseMetadata::source_type() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata.source_type) + return _internal_source_type(); +} +inline void CopyFilesFromMachineResponseMetadata::_internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { - eof_ = value; + source_type_ = value; } -inline void ShellResponse::set_eof(bool value) { - _internal_set_eof(value); - // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.eof) +inline void CopyFilesFromMachineResponseMetadata::set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { + _internal_set_source_type(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata.source_type) +} + +// ------------------------------------------------------------------- + +// CopyFilesFromMachineResponse + +// .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; +inline bool CopyFilesFromMachineResponse::_internal_has_metadata() const { + return response_case() == kMetadata; +} +inline bool CopyFilesFromMachineResponse::has_metadata() const { + return _internal_has_metadata(); +} +inline void CopyFilesFromMachineResponse::set_has_metadata() { + _oneof_case_[0] = kMetadata; +} +inline void CopyFilesFromMachineResponse::clear_metadata() { + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete response_.metadata_; + } + clear_has_response(); + } +} +inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::release_metadata() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) + if (_internal_has_metadata()) { + clear_has_response(); + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* temp = response_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + response_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& CopyFilesFromMachineResponse::_internal_metadata() const { + return _internal_has_metadata() + ? *response_.metadata_ + : reinterpret_cast< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata&>(::viam::service::shell::v1::_CopyFilesFromMachineResponseMetadata_default_instance_); +} +inline const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& CopyFilesFromMachineResponse::metadata() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) + return _internal_metadata(); +} +inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::unsafe_arena_release_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) + if (_internal_has_metadata()) { + clear_has_response(); + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* temp = response_.metadata_; + response_.metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CopyFilesFromMachineResponse::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata) { + clear_response(); + if (metadata) { + set_has_metadata(); + response_.metadata_ = metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) +} +inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::_internal_mutable_metadata() { + if (!_internal_has_metadata()) { + clear_response(); + set_has_metadata(); + response_.metadata_ = CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata >(GetArenaForAllocation()); + } + return response_.metadata_; +} +inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::mutable_metadata() { + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* _msg = _internal_mutable_metadata(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) + return _msg; +} + +// .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; +inline bool CopyFilesFromMachineResponse::_internal_has_file_data() const { + return response_case() == kFileData; +} +inline bool CopyFilesFromMachineResponse::has_file_data() const { + return _internal_has_file_data(); +} +inline void CopyFilesFromMachineResponse::set_has_file_data() { + _oneof_case_[0] = kFileData; +} +inline void CopyFilesFromMachineResponse::clear_file_data() { + if (_internal_has_file_data()) { + if (GetArenaForAllocation() == nullptr) { + delete response_.file_data_; + } + clear_has_response(); + } +} +inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::release_file_data() { + // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) + if (_internal_has_file_data()) { + clear_has_response(); + ::viam::service::shell::v1::FileData* temp = response_.file_data_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + response_.file_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::viam::service::shell::v1::FileData& CopyFilesFromMachineResponse::_internal_file_data() const { + return _internal_has_file_data() + ? *response_.file_data_ + : reinterpret_cast< ::viam::service::shell::v1::FileData&>(::viam::service::shell::v1::_FileData_default_instance_); +} +inline const ::viam::service::shell::v1::FileData& CopyFilesFromMachineResponse::file_data() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) + return _internal_file_data(); +} +inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::unsafe_arena_release_file_data() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) + if (_internal_has_file_data()) { + clear_has_response(); + ::viam::service::shell::v1::FileData* temp = response_.file_data_; + response_.file_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CopyFilesFromMachineResponse::unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { + clear_response(); + if (file_data) { + set_has_file_data(); + response_.file_data_ = file_data; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) +} +inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::_internal_mutable_file_data() { + if (!_internal_has_file_data()) { + clear_response(); + set_has_file_data(); + response_.file_data_ = CreateMaybeMessage< ::viam::service::shell::v1::FileData >(GetArenaForAllocation()); + } + return response_.file_data_; +} +inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::mutable_file_data() { + ::viam::service::shell::v1::FileData* _msg = _internal_mutable_file_data(); + // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) + return _msg; } +inline bool CopyFilesFromMachineResponse::has_response() const { + return response_case() != RESPONSE_NOT_SET; +} +inline void CopyFilesFromMachineResponse::clear_has_response() { + _oneof_case_[0] = RESPONSE_NOT_SET; +} +inline CopyFilesFromMachineResponse::ResponseCase CopyFilesFromMachineResponse::response_case() const { + return CopyFilesFromMachineResponse::ResponseCase(_oneof_case_[0]); +} #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -762,6 +3605,16 @@ inline void ShellResponse::set_eof(bool value) { } // namespace service } // namespace viam +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::viam::service::shell::v1::CopyFilesSourceType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::shell::v1::CopyFilesSourceType>() { + return ::viam::service::shell::v1::CopyFilesSourceType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) #include