diff --git a/src/viam/api/app/v1/app.pb.cc b/src/viam/api/app/v1/app.pb.cc index 172266cc0..4bb1fb2de 100644 --- a/src/viam/api/app/v1/app.pb.cc +++ b/src/viam/api/app/v1/app.pb.cc @@ -302,7 +302,8 @@ PROTOBUF_CONSTEXPR CreateOrganizationInviteRequest::CreateOrganizationInviteRequ ::_pbi::ConstantInitialized) : authorizations_() , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , send_email_invite_(false){} struct CreateOrganizationInviteRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR CreateOrganizationInviteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -2393,7 +2394,7 @@ const uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VA PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, organization_id_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, members_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, invites_), - ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -2402,6 +2403,11 @@ const uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VA PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, organization_id_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, email_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, authorizations_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, send_email_invite_), + ~0u, + ~0u, + ~0u, + 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -3597,153 +3603,153 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 168, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationResponse)}, { 174, -1, -1, sizeof(::viam::app::v1::ListOrganizationMembersRequest)}, { 181, -1, -1, sizeof(::viam::app::v1::ListOrganizationMembersResponse)}, - { 190, -1, -1, sizeof(::viam::app::v1::CreateOrganizationInviteRequest)}, - { 199, -1, -1, sizeof(::viam::app::v1::CreateOrganizationInviteResponse)}, - { 206, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest)}, - { 216, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse)}, - { 223, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteRequest)}, - { 231, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteResponse)}, - { 237, -1, -1, sizeof(::viam::app::v1::ResendOrganizationInviteRequest)}, - { 245, -1, -1, sizeof(::viam::app::v1::ResendOrganizationInviteResponse)}, - { 252, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberRequest)}, - { 260, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberResponse)}, - { 266, -1, -1, sizeof(::viam::app::v1::OrganizationIdentity)}, - { 274, -1, -1, sizeof(::viam::app::v1::LocationOrganization)}, - { 282, -1, -1, sizeof(::viam::app::v1::LocationAuth)}, - { 291, -1, -1, sizeof(::viam::app::v1::StorageConfig)}, - { 298, -1, -1, sizeof(::viam::app::v1::Location)}, - { 312, -1, -1, sizeof(::viam::app::v1::SharedSecret)}, - { 322, 331, -1, sizeof(::viam::app::v1::CreateLocationRequest)}, - { 334, -1, -1, sizeof(::viam::app::v1::CreateLocationResponse)}, - { 341, -1, -1, sizeof(::viam::app::v1::GetLocationRequest)}, - { 348, -1, -1, sizeof(::viam::app::v1::GetLocationResponse)}, - { 355, 365, -1, sizeof(::viam::app::v1::UpdateLocationRequest)}, - { 369, -1, -1, sizeof(::viam::app::v1::UpdateLocationResponse)}, - { 376, -1, -1, sizeof(::viam::app::v1::DeleteLocationRequest)}, - { 383, -1, -1, sizeof(::viam::app::v1::DeleteLocationResponse)}, - { 389, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationRequest)}, - { 396, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationResponse)}, - { 403, -1, -1, sizeof(::viam::app::v1::ListLocationsRequest)}, - { 410, -1, -1, sizeof(::viam::app::v1::ShareLocationRequest)}, - { 418, -1, -1, sizeof(::viam::app::v1::ShareLocationResponse)}, - { 424, -1, -1, sizeof(::viam::app::v1::UnshareLocationRequest)}, - { 432, -1, -1, sizeof(::viam::app::v1::UnshareLocationResponse)}, - { 438, -1, -1, sizeof(::viam::app::v1::ListLocationsResponse)}, - { 445, -1, -1, sizeof(::viam::app::v1::CreateLocationSecretRequest)}, - { 452, -1, -1, sizeof(::viam::app::v1::CreateLocationSecretResponse)}, - { 459, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretRequest)}, - { 467, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretResponse)}, - { 473, -1, -1, sizeof(::viam::app::v1::LocationAuthRequest)}, - { 480, -1, -1, sizeof(::viam::app::v1::LocationAuthResponse)}, - { 487, -1, -1, sizeof(::viam::app::v1::GetRobotRequest)}, - { 494, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsRequest)}, - { 501, -1, -1, sizeof(::viam::app::v1::RoverRentalRobot)}, - { 511, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsResponse)}, - { 518, -1, -1, sizeof(::viam::app::v1::GetRobotResponse)}, - { 525, -1, -1, sizeof(::viam::app::v1::GetRobotPartsRequest)}, - { 532, -1, -1, sizeof(::viam::app::v1::GetRobotPartsResponse)}, - { 539, -1, -1, sizeof(::viam::app::v1::GetRobotPartRequest)}, - { 546, -1, -1, sizeof(::viam::app::v1::GetRobotPartResponse)}, - { 554, 565, -1, sizeof(::viam::app::v1::GetRobotPartLogsRequest)}, - { 570, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsResponse)}, - { 578, 587, -1, sizeof(::viam::app::v1::TailRobotPartLogsRequest)}, - { 590, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsResponse)}, - { 597, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryRequest)}, - { 604, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryResponse)}, - { 611, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartRequest)}, - { 620, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartResponse)}, - { 627, -1, -1, sizeof(::viam::app::v1::NewRobotPartRequest)}, - { 635, -1, -1, sizeof(::viam::app::v1::NewRobotPartResponse)}, - { 642, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartRequest)}, - { 649, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysRequest)}, - { 656, -1, -1, sizeof(::viam::app::v1::APIKey)}, - { 666, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysResponse)}, - { 673, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartResponse)}, - { 679, -1, -1, sizeof(::viam::app::v1::Fragment)}, - { 695, -1, -1, sizeof(::viam::app::v1::ListFragmentsRequest)}, - { 703, -1, -1, sizeof(::viam::app::v1::ListFragmentsResponse)}, - { 710, -1, -1, sizeof(::viam::app::v1::GetFragmentRequest)}, - { 717, -1, -1, sizeof(::viam::app::v1::GetFragmentResponse)}, - { 724, -1, -1, sizeof(::viam::app::v1::CreateFragmentRequest)}, - { 733, -1, -1, sizeof(::viam::app::v1::CreateFragmentResponse)}, - { 740, 750, -1, sizeof(::viam::app::v1::UpdateFragmentRequest)}, - { 754, -1, -1, sizeof(::viam::app::v1::UpdateFragmentResponse)}, - { 761, -1, -1, sizeof(::viam::app::v1::DeleteFragmentRequest)}, - { 768, -1, -1, sizeof(::viam::app::v1::DeleteFragmentResponse)}, - { 774, -1, -1, sizeof(::viam::app::v1::ListRobotsRequest)}, - { 781, -1, -1, sizeof(::viam::app::v1::ListRobotsResponse)}, - { 788, -1, -1, sizeof(::viam::app::v1::NewRobotRequest)}, - { 796, -1, -1, sizeof(::viam::app::v1::NewRobotResponse)}, - { 803, -1, -1, sizeof(::viam::app::v1::UpdateRobotRequest)}, - { 812, -1, -1, sizeof(::viam::app::v1::UpdateRobotResponse)}, - { 819, -1, -1, sizeof(::viam::app::v1::DeleteRobotRequest)}, - { 826, -1, -1, sizeof(::viam::app::v1::DeleteRobotResponse)}, - { 832, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainRequest)}, - { 839, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainResponse)}, - { 845, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartRequest)}, - { 852, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartResponse)}, - { 858, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretRequest)}, - { 865, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretResponse)}, - { 872, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretRequest)}, - { 880, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretResponse)}, - { 886, -1, -1, sizeof(::viam::app::v1::Authorization)}, - { 899, -1, -1, sizeof(::viam::app::v1::AddRoleRequest)}, - { 906, -1, -1, sizeof(::viam::app::v1::AddRoleResponse)}, - { 912, -1, -1, sizeof(::viam::app::v1::RemoveRoleRequest)}, - { 919, -1, -1, sizeof(::viam::app::v1::RemoveRoleResponse)}, - { 925, -1, -1, sizeof(::viam::app::v1::ChangeRoleRequest)}, - { 933, -1, -1, sizeof(::viam::app::v1::ChangeRoleResponse)}, - { 939, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsRequest)}, - { 947, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsResponse)}, - { 954, -1, -1, sizeof(::viam::app::v1::CheckPermissionsRequest)}, - { 961, -1, -1, sizeof(::viam::app::v1::AuthorizedPermissions)}, - { 970, -1, -1, sizeof(::viam::app::v1::CheckPermissionsResponse)}, - { 977, -1, -1, sizeof(::viam::app::v1::ModuleVersion)}, - { 987, -1, -1, sizeof(::viam::app::v1::ModuleMetadata)}, - { 996, -1, -1, sizeof(::viam::app::v1::MLModelMetadata)}, - { 1003, -1, -1, sizeof(::viam::app::v1::RegistryItem)}, - { 1026, -1, -1, sizeof(::viam::app::v1::GetRegistryItemRequest)}, - { 1033, -1, -1, sizeof(::viam::app::v1::GetRegistryItemResponse)}, - { 1040, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemRequest)}, - { 1049, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemResponse)}, - { 1055, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemRequest)}, - { 1065, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemResponse)}, - { 1071, 1084, -1, sizeof(::viam::app::v1::ListRegistryItemsRequest)}, - { 1091, -1, -1, sizeof(::viam::app::v1::ListRegistryItemsResponse)}, - { 1098, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemRequest)}, - { 1105, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemResponse)}, - { 1111, -1, -1, sizeof(::viam::app::v1::CreateModuleRequest)}, - { 1119, -1, -1, sizeof(::viam::app::v1::CreateModuleResponse)}, - { 1127, -1, -1, sizeof(::viam::app::v1::UpdateModuleRequest)}, - { 1139, -1, -1, sizeof(::viam::app::v1::UpdateModuleResponse)}, - { 1146, -1, -1, sizeof(::viam::app::v1::Model)}, - { 1154, -1, -1, sizeof(::viam::app::v1::ModuleFileInfo)}, - { 1163, -1, -1, sizeof(::viam::app::v1::UploadModuleFileRequest)}, - { 1172, -1, -1, sizeof(::viam::app::v1::UploadModuleFileResponse)}, - { 1179, -1, -1, sizeof(::viam::app::v1::GetModuleRequest)}, - { 1186, -1, -1, sizeof(::viam::app::v1::GetModuleResponse)}, - { 1193, -1, -1, sizeof(::viam::app::v1::Module)}, - { 1211, -1, -1, sizeof(::viam::app::v1::VersionHistory)}, - { 1221, -1, -1, sizeof(::viam::app::v1::Uploads)}, - { 1229, 1236, -1, sizeof(::viam::app::v1::ListModulesRequest)}, - { 1237, -1, -1, sizeof(::viam::app::v1::ListModulesResponse)}, - { 1244, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailRequest)}, - { 1251, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailResponse)}, - { 1258, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserRequest)}, - { 1265, -1, -1, sizeof(::viam::app::v1::OrgDetails)}, - { 1273, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserResponse)}, - { 1280, -1, -1, sizeof(::viam::app::v1::CreateKeyRequest)}, - { 1288, -1, -1, sizeof(::viam::app::v1::CreateKeyResponse)}, - { 1296, -1, -1, sizeof(::viam::app::v1::DeleteKeyRequest)}, - { 1303, -1, -1, sizeof(::viam::app::v1::DeleteKeyResponse)}, - { 1309, -1, -1, sizeof(::viam::app::v1::AuthorizationDetails)}, - { 1320, -1, -1, sizeof(::viam::app::v1::APIKeyWithAuthorizations)}, - { 1328, -1, -1, sizeof(::viam::app::v1::ListKeysRequest)}, - { 1335, -1, -1, sizeof(::viam::app::v1::ListKeysResponse)}, - { 1342, -1, -1, sizeof(::viam::app::v1::RotateKeyRequest)}, - { 1349, -1, -1, sizeof(::viam::app::v1::RotateKeyResponse)}, - { 1357, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest)}, - { 1364, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse)}, + { 190, 200, -1, sizeof(::viam::app::v1::CreateOrganizationInviteRequest)}, + { 204, -1, -1, sizeof(::viam::app::v1::CreateOrganizationInviteResponse)}, + { 211, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest)}, + { 221, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse)}, + { 228, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteRequest)}, + { 236, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteResponse)}, + { 242, -1, -1, sizeof(::viam::app::v1::ResendOrganizationInviteRequest)}, + { 250, -1, -1, sizeof(::viam::app::v1::ResendOrganizationInviteResponse)}, + { 257, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberRequest)}, + { 265, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberResponse)}, + { 271, -1, -1, sizeof(::viam::app::v1::OrganizationIdentity)}, + { 279, -1, -1, sizeof(::viam::app::v1::LocationOrganization)}, + { 287, -1, -1, sizeof(::viam::app::v1::LocationAuth)}, + { 296, -1, -1, sizeof(::viam::app::v1::StorageConfig)}, + { 303, -1, -1, sizeof(::viam::app::v1::Location)}, + { 317, -1, -1, sizeof(::viam::app::v1::SharedSecret)}, + { 327, 336, -1, sizeof(::viam::app::v1::CreateLocationRequest)}, + { 339, -1, -1, sizeof(::viam::app::v1::CreateLocationResponse)}, + { 346, -1, -1, sizeof(::viam::app::v1::GetLocationRequest)}, + { 353, -1, -1, sizeof(::viam::app::v1::GetLocationResponse)}, + { 360, 370, -1, sizeof(::viam::app::v1::UpdateLocationRequest)}, + { 374, -1, -1, sizeof(::viam::app::v1::UpdateLocationResponse)}, + { 381, -1, -1, sizeof(::viam::app::v1::DeleteLocationRequest)}, + { 388, -1, -1, sizeof(::viam::app::v1::DeleteLocationResponse)}, + { 394, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationRequest)}, + { 401, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationResponse)}, + { 408, -1, -1, sizeof(::viam::app::v1::ListLocationsRequest)}, + { 415, -1, -1, sizeof(::viam::app::v1::ShareLocationRequest)}, + { 423, -1, -1, sizeof(::viam::app::v1::ShareLocationResponse)}, + { 429, -1, -1, sizeof(::viam::app::v1::UnshareLocationRequest)}, + { 437, -1, -1, sizeof(::viam::app::v1::UnshareLocationResponse)}, + { 443, -1, -1, sizeof(::viam::app::v1::ListLocationsResponse)}, + { 450, -1, -1, sizeof(::viam::app::v1::CreateLocationSecretRequest)}, + { 457, -1, -1, sizeof(::viam::app::v1::CreateLocationSecretResponse)}, + { 464, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretRequest)}, + { 472, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretResponse)}, + { 478, -1, -1, sizeof(::viam::app::v1::LocationAuthRequest)}, + { 485, -1, -1, sizeof(::viam::app::v1::LocationAuthResponse)}, + { 492, -1, -1, sizeof(::viam::app::v1::GetRobotRequest)}, + { 499, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsRequest)}, + { 506, -1, -1, sizeof(::viam::app::v1::RoverRentalRobot)}, + { 516, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsResponse)}, + { 523, -1, -1, sizeof(::viam::app::v1::GetRobotResponse)}, + { 530, -1, -1, sizeof(::viam::app::v1::GetRobotPartsRequest)}, + { 537, -1, -1, sizeof(::viam::app::v1::GetRobotPartsResponse)}, + { 544, -1, -1, sizeof(::viam::app::v1::GetRobotPartRequest)}, + { 551, -1, -1, sizeof(::viam::app::v1::GetRobotPartResponse)}, + { 559, 570, -1, sizeof(::viam::app::v1::GetRobotPartLogsRequest)}, + { 575, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsResponse)}, + { 583, 592, -1, sizeof(::viam::app::v1::TailRobotPartLogsRequest)}, + { 595, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsResponse)}, + { 602, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryRequest)}, + { 609, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryResponse)}, + { 616, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartRequest)}, + { 625, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartResponse)}, + { 632, -1, -1, sizeof(::viam::app::v1::NewRobotPartRequest)}, + { 640, -1, -1, sizeof(::viam::app::v1::NewRobotPartResponse)}, + { 647, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartRequest)}, + { 654, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysRequest)}, + { 661, -1, -1, sizeof(::viam::app::v1::APIKey)}, + { 671, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysResponse)}, + { 678, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartResponse)}, + { 684, -1, -1, sizeof(::viam::app::v1::Fragment)}, + { 700, -1, -1, sizeof(::viam::app::v1::ListFragmentsRequest)}, + { 708, -1, -1, sizeof(::viam::app::v1::ListFragmentsResponse)}, + { 715, -1, -1, sizeof(::viam::app::v1::GetFragmentRequest)}, + { 722, -1, -1, sizeof(::viam::app::v1::GetFragmentResponse)}, + { 729, -1, -1, sizeof(::viam::app::v1::CreateFragmentRequest)}, + { 738, -1, -1, sizeof(::viam::app::v1::CreateFragmentResponse)}, + { 745, 755, -1, sizeof(::viam::app::v1::UpdateFragmentRequest)}, + { 759, -1, -1, sizeof(::viam::app::v1::UpdateFragmentResponse)}, + { 766, -1, -1, sizeof(::viam::app::v1::DeleteFragmentRequest)}, + { 773, -1, -1, sizeof(::viam::app::v1::DeleteFragmentResponse)}, + { 779, -1, -1, sizeof(::viam::app::v1::ListRobotsRequest)}, + { 786, -1, -1, sizeof(::viam::app::v1::ListRobotsResponse)}, + { 793, -1, -1, sizeof(::viam::app::v1::NewRobotRequest)}, + { 801, -1, -1, sizeof(::viam::app::v1::NewRobotResponse)}, + { 808, -1, -1, sizeof(::viam::app::v1::UpdateRobotRequest)}, + { 817, -1, -1, sizeof(::viam::app::v1::UpdateRobotResponse)}, + { 824, -1, -1, sizeof(::viam::app::v1::DeleteRobotRequest)}, + { 831, -1, -1, sizeof(::viam::app::v1::DeleteRobotResponse)}, + { 837, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainRequest)}, + { 844, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainResponse)}, + { 850, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartRequest)}, + { 857, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartResponse)}, + { 863, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretRequest)}, + { 870, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretResponse)}, + { 877, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretRequest)}, + { 885, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretResponse)}, + { 891, -1, -1, sizeof(::viam::app::v1::Authorization)}, + { 904, -1, -1, sizeof(::viam::app::v1::AddRoleRequest)}, + { 911, -1, -1, sizeof(::viam::app::v1::AddRoleResponse)}, + { 917, -1, -1, sizeof(::viam::app::v1::RemoveRoleRequest)}, + { 924, -1, -1, sizeof(::viam::app::v1::RemoveRoleResponse)}, + { 930, -1, -1, sizeof(::viam::app::v1::ChangeRoleRequest)}, + { 938, -1, -1, sizeof(::viam::app::v1::ChangeRoleResponse)}, + { 944, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsRequest)}, + { 952, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsResponse)}, + { 959, -1, -1, sizeof(::viam::app::v1::CheckPermissionsRequest)}, + { 966, -1, -1, sizeof(::viam::app::v1::AuthorizedPermissions)}, + { 975, -1, -1, sizeof(::viam::app::v1::CheckPermissionsResponse)}, + { 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)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -4010,550 +4016,551 @@ const char descriptor_table_protodef_app_2fv1_2fapp_2eproto[] PROTOBUF_SECTION_V "ion_id\030\001 \001(\tR\016organizationId\0229\n\007members\030" "\002 \003(\0132\037.viam.app.v1.OrganizationMemberR\007" "members\0229\n\007invites\030\003 \003(\0132\037.viam.app.v1.O" - "rganizationInviteR\007invites\"\244\001\n\037CreateOrg" + "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\"[\n Cre" - "ateOrganizationInviteResponse\0227\n\006invite\030" - "\001 \001(\0132\037.viam.app.v1.OrganizationInviteR\006" - "invite\"\212\002\n-UpdateOrganizationInviteAutho" - "rizationsRequest\022\'\n\017organization_id\030\001 \001(" - "\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005email\022" - "I\n\022add_authorizations\030\003 \003(\0132\032.viam.app.v" - "1.AuthorizationR\021addAuthorizations\022O\n\025re" - "move_authorizations\030\004 \003(\0132\032.viam.app.v1." - "AuthorizationR\024removeAuthorizations\"i\n.U" - "pdateOrganizationInviteAuthorizationsRes" - "ponse\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1.Orga" - "nizationInviteR\006invite\"`\n\037DeleteOrganiza" - "tionInviteRequest\022\'\n\017organization_id\030\001 \001" - "(\tR\016organizationId\022\024\n\005email\030\002 \001(\tR\005email" - "\"\"\n DeleteOrganizationInviteResponse\"`\n\037" - "ResendOrganizationInviteRequest\022\'\n\017organ" - "ization_id\030\001 \001(\tR\016organizationId\022\024\n\005emai" - "l\030\002 \001(\tR\005email\"[\n ResendOrganizationInvi" - "teResponse\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1" - ".OrganizationInviteR\006invite\"c\n\037DeleteOrg" - "anizationMemberRequest\022\'\n\017organization_i" - "d\030\001 \001(\tR\016organizationId\022\027\n\007user_id\030\002 \001(\t" - "R\006userId\"\"\n DeleteOrganizationMemberResp" - "onse\":\n\024OrganizationIdentity\022\016\n\002id\030\001 \001(\t" - "R\002id\022\022\n\004name\030\002 \001(\tR\004name\"Y\n\024LocationOrga" - "nization\022\'\n\017organization_id\030\001 \001(\tR\016organ" - "izationId\022\030\n\007primary\030\002 \001(\010R\007primary\"\200\001\n\014" - "LocationAuth\022\032\n\006secret\030\001 \001(\tB\002\030\001R\006secret" - "\022\037\n\013location_id\030\002 \001(\tR\nlocationId\0223\n\007sec" - "rets\030\003 \003(\0132\031.viam.app.v1.SharedSecretR\007s" - "ecrets\"\'\n\rStorageConfig\022\026\n\006region\030\001 \001(\tR" - "\006region\"\344\002\n\010Location\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004" - "name\030\002 \001(\tR\004name\022,\n\022parent_location_id\030\004" - " \001(\tR\020parentLocationId\022-\n\004auth\030\005 \001(\0132\031.v" - "iam.app.v1.LocationAuthR\004auth\022G\n\rorganiz" - "ations\030\006 \003(\0132!.viam.app.v1.LocationOrgan" - "izationR\rorganizations\0229\n\ncreated_on\030\003 \001" - "(\0132\032.google.protobuf.TimestampR\tcreatedO" - "n\022\037\n\013robot_count\030\007 \001(\005R\nrobotCount\0222\n\006co" - "nfig\030\010 \001(\0132\032.viam.app.v1.StorageConfigR\006" - "config\"\320\002\n\014SharedSecret\022\036\n\002id\030\001 \001(\tB\016\232\204\236" - "\003\tbson:\"id\"R\002id\022*\n\006secret\030\002 \001(\tB\022\232\204\236\003\rbs" - "on:\"secret\"R\006secret\022c\n\ncreated_on\030\003 \001(\0132" - "\032.google.protobuf.TimestampB(\232\204\236\003#bson:\"" - "created_on\" json:\"created_on\"R\tcreatedOn" - "\022H\n\005state\030\004 \001(\0162\037.viam.app.v1.SharedSecr" - "et.StateB\021\232\204\236\003\014bson:\"state\"R\005state\"E\n\005St" - "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\021\n\rSTATE_ENAB" - "LED\020\001\022\022\n\016STATE_DISABLED\020\002\"\236\001\n\025CreateLoca" - "tionRequest\022\'\n\017organization_id\030\001 \001(\tR\016or" - "ganizationId\022\022\n\004name\030\002 \001(\tR\004name\0221\n\022pare" - "nt_location_id\030\003 \001(\tH\000R\020parentLocationId" - "\210\001\001B\025\n\023_parent_location_id\"K\n\026CreateLoca" + ".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" + "\'\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\"5\n\022GetLocationRe" - "quest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\"H" - "\n\023GetLocationResponse\0221\n\010location\030\001 \001(\0132" - "\025.viam.app.v1.LocationR\010location\"\314\001\n\025Upd" - "ateLocationRequest\022\037\n\013location_id\030\001 \001(\tR" - "\nlocationId\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\0221\n\022" - "parent_location_id\030\003 \001(\tH\001R\020parentLocati" - "onId\210\001\001\022\033\n\006region\030\004 \001(\tH\002R\006region\210\001\001B\007\n\005" - "_nameB\025\n\023_parent_location_idB\t\n\007_region\"" - "K\n\026UpdateLocationResponse\0221\n\010location\030\001 " - "\001(\0132\025.viam.app.v1.LocationR\010location\"8\n\025" - "DeleteLocationRequest\022\037\n\013location_id\030\001 \001" - "(\tR\nlocationId\"\030\n\026DeleteLocationResponse" - "\"N\n+GetOrganizationsWithAccessToLocation" - "Request\022\037\n\013location_id\030\001 \001(\tR\nlocationId" - "\"\212\001\n,GetOrganizationsWithAccessToLocatio" - "nResponse\022Z\n\027organization_identities\030\001 \003" - "(\0132!.viam.app.v1.OrganizationIdentityR\026o" - "rganizationIdentities\"\?\n\024ListLocationsRe" - "quest\022\'\n\017organization_id\030\001 \001(\tR\016organiza" - "tionId\"`\n\024ShareLocationRequest\022\037\n\013locati" - "on_id\030\001 \001(\tR\nlocationId\022\'\n\017organization_" - "id\030\002 \001(\tR\016organizationId\"\027\n\025ShareLocatio" - "nResponse\"b\n\026UnshareLocationRequest\022\037\n\013l" - "ocation_id\030\001 \001(\tR\nlocationId\022\'\n\017organiza" - "tion_id\030\002 \001(\tR\016organizationId\"\031\n\027Unshare" - "LocationResponse\"L\n\025ListLocationsRespons" - "e\0223\n\tlocations\030\001 \003(\0132\025.viam.app.v1.Locat" - "ionR\tlocations\">\n\033CreateLocationSecretRe" - "quest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\"M" - "\n\034CreateLocationSecretResponse\022-\n\004auth\030\001" - " \001(\0132\031.viam.app.v1.LocationAuthR\004auth\"[\n" - "\033DeleteLocationSecretRequest\022\037\n\013location" - "_id\030\001 \001(\tR\nlocationId\022\033\n\tsecret_id\030\002 \001(\t" - "R\010secretId\"\036\n\034DeleteLocationSecretRespon" - "se\"6\n\023LocationAuthRequest\022\037\n\013location_id" - "\030\001 \001(\tR\nlocationId\"E\n\024LocationAuthRespon" - "se\022-\n\004auth\030\001 \001(\0132\031.viam.app.v1.LocationA" - "uthR\004auth\"!\n\017GetRobotRequest\022\016\n\002id\030\001 \001(\t" - "R\002id\"4\n\033GetRoverRentalRobotsRequest\022\025\n\006o" - "rg_id\030\001 \001(\tR\005orgId\"\232\001\n\020RoverRentalRobot\022" - "\031\n\010robot_id\030\001 \001(\tR\007robotId\022\037\n\013location_i" - "d\030\002 \001(\tR\nlocationId\022\035\n\nrobot_name\030\003 \001(\tR" - "\trobotName\022+\n\022robot_main_part_id\030\004 \001(\tR\017" - "robotMainPartId\"U\n\034GetRoverRentalRobotsR" - "esponse\0225\n\006robots\030\001 \003(\0132\035.viam.app.v1.Ro" - "verRentalRobotR\006robots\"<\n\020GetRobotRespon" - "se\022(\n\005robot\030\001 \001(\0132\022.viam.app.v1.RobotR\005r" - "obot\"1\n\024GetRobotPartsRequest\022\031\n\010robot_id" - "\030\001 \001(\tR\007robotId\"E\n\025GetRobotPartsResponse" - "\022,\n\005parts\030\001 \003(\0132\026.viam.app.v1.RobotPartR" - "\005parts\"%\n\023GetRobotPartRequest\022\016\n\002id\030\001 \001(" - "\tR\002id\"c\n\024GetRobotPartResponse\022*\n\004part\030\001 " - "\001(\0132\026.viam.app.v1.RobotPartR\004part\022\037\n\013con" - "fig_json\030\002 \001(\tR\nconfigJson\"\301\001\n\027GetRobotP" - "artLogsRequest\022\016\n\002id\030\001 \001(\tR\002id\022#\n\013errors" - "_only\030\002 \001(\010B\002\030\001R\nerrorsOnly\022\033\n\006filter\030\003 " - "\001(\tH\000R\006filter\210\001\001\022\"\n\npage_token\030\004 \001(\tH\001R\t" - "pageToken\210\001\001\022\026\n\006levels\030\005 \003(\tR\006levelsB\t\n\007" - "_filterB\r\n\013_page_token\"p\n\030GetRobotPartLo" - "gsResponse\022,\n\004logs\030\001 \003(\0132\030.viam.common.v" - "1.LogEntryR\004logs\022&\n\017next_page_token\030\002 \001(" - "\tR\rnextPageToken\"s\n\030TailRobotPartLogsReq" - "uest\022\016\n\002id\030\001 \001(\tR\002id\022\037\n\013errors_only\030\002 \001(" - "\010R\nerrorsOnly\022\033\n\006filter\030\003 \001(\tH\000R\006filter\210" - "\001\001B\t\n\007_filter\"I\n\031TailRobotPartLogsRespon" - "se\022,\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogEnt" - "ryR\004logs\",\n\032GetRobotPartHistoryRequest\022\016" - "\n\002id\030\001 \001(\tR\002id\"[\n\033GetRobotPartHistoryRes" - "ponse\022<\n\007history\030\001 \003(\0132\".viam.app.v1.Rob" - "otPartHistoryEntryR\007history\"x\n\026UpdateRob" - "otPartRequest\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 " - "\001(\tR\004name\022:\n\014robot_config\030\003 \001(\0132\027.google" - ".protobuf.StructR\013robotConfig\"E\n\027UpdateR" - "obotPartResponse\022*\n\004part\030\001 \001(\0132\026.viam.ap" - "p.v1.RobotPartR\004part\"M\n\023NewRobotPartRequ" - "est\022\031\n\010robot_id\030\001 \001(\tR\007robotId\022\033\n\tpart_n" - "ame\030\002 \001(\tR\010partName\"/\n\024NewRobotPartRespo" - "nse\022\027\n\007part_id\030\001 \001(\tR\006partId\"1\n\026DeleteRo" - "botPartRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\"" - "3\n\026GetRobotAPIKeysRequest\022\031\n\010robot_id\030\001 " - "\001(\tR\007robotId\"y\n\006APIKey\022\016\n\002id\030\001 \001(\tR\002id\022\020" - "\n\003key\030\002 \001(\tR\003key\022\022\n\004name\030\003 \001(\tR\004name\0229\n\n" - "created_on\030\004 \001(\0132\032.google.protobuf.Times" - "tampR\tcreatedOn\"[\n\027GetRobotAPIKeysRespon" - "se\022@\n\010api_keys\030\001 \003(\0132%.viam.app.v1.APIKe" - "yWithAuthorizationsR\007apiKeys\"\031\n\027DeleteRo" - "botPartResponse\"\350\004\n\010Fragment\0223\n\002id\030\001 \001(\t" - "B#\232\204\236\003\036bson:\"_id\" json:\"id,omitempty\"R\002i" - "d\0220\n\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"" - "name\"R\004name\022Y\n\010fragment\030\003 \001(\0132\027.google.p" - "rotobuf.StructB$\232\204\236\003\037bson:\"fragment\" jso" - "n:\"fragment\"R\010fragment\022Z\n\022organization_o" - "wner\030\004 \001(\tB+\232\204\236\003&bson:\"organization_owne" - "r\" json:\"owner\"R\021organizationOwner\0228\n\006pu" - "blic\030\005 \001(\010B \232\204\236\003\033bson:\"public\" json:\"pub" - "lic\"R\006public\022Q\n\ncreated_on\030\006 \001(\0132\032.googl" - "e.protobuf.TimestampB\026\232\204\236\003\021bson:\"created" - "_on\"R\tcreatedOn\022+\n\021organization_name\030\007 \001" - "(\tR\020organizationName\022(\n\020robot_part_count" - "\030\t \001(\005R\016robotPartCount\022-\n\022organization_c" - "ount\030\n \001(\005R\021organizationCount\022+\n\022only_us" - "ed_by_owner\030\013 \001(\010R\017onlyUsedByOwner\"`\n\024Li" - "stFragmentsRequest\022\'\n\017organization_id\030\001 " - "\001(\tR\016organizationId\022\037\n\013show_public\030\002 \001(\010" - "R\nshowPublic\"L\n\025ListFragmentsResponse\0223\n" - "\tfragments\030\001 \003(\0132\025.viam.app.v1.FragmentR" - "\tfragments\"$\n\022GetFragmentRequest\022\016\n\002id\030\001" - " \001(\tR\002id\"H\n\023GetFragmentResponse\0221\n\010fragm" - "ent\030\001 \001(\0132\025.viam.app.v1.FragmentR\010fragme" - "nt\"\205\001\n\025CreateFragmentRequest\022\022\n\004name\030\001 \001" - "(\tR\004name\022/\n\006config\030\002 \001(\0132\027.google.protob" - "uf.StructR\006config\022\'\n\017organization_id\030\003 \001" - "(\tR\016organizationId\"K\n\026CreateFragmentResp" - "onse\0221\n\010fragment\030\001 \001(\0132\025.viam.app.v1.Fra" - "gmentR\010fragment\"\224\001\n\025UpdateFragmentReques" - "t\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022/\n" - "\006config\030\003 \001(\0132\027.google.protobuf.StructR\006" - "config\022\033\n\006public\030\004 \001(\010H\000R\006public\210\001\001B\t\n\007_" - "public\"K\n\026UpdateFragmentResponse\0221\n\010frag" - "ment\030\001 \001(\0132\025.viam.app.v1.FragmentR\010fragm" - "ent\"\'\n\025DeleteFragmentRequest\022\016\n\002id\030\001 \001(\t" - "R\002id\"\030\n\026DeleteFragmentResponse\"4\n\021ListRo" - "botsRequest\022\037\n\013location_id\030\001 \001(\tR\nlocati" - "onId\"@\n\022ListRobotsResponse\022*\n\006robots\030\001 \003" - "(\0132\022.viam.app.v1.RobotR\006robots\"A\n\017NewRob" - "otRequest\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010locatio" - "n\030\002 \001(\tR\010location\"\"\n\020NewRobotResponse\022\016\n" - "\002id\030\001 \001(\tR\002id\"T\n\022UpdateRobotRequest\022\016\n\002i" - "d\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\032\n\010locat" - "ion\030\003 \001(\tR\010location\"\?\n\023UpdateRobotRespon" - "se\022(\n\005robot\030\001 \001(\0132\022.viam.app.v1.RobotR\005r" - "obot\"$\n\022DeleteRobotRequest\022\016\n\002id\030\001 \001(\tR\002" - "id\"\025\n\023DeleteRobotResponse\"0\n\025MarkPartAsM" - "ainRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\"\030\n\026M" - "arkPartAsMainResponse\"4\n\031MarkPartForRest" - "artRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\"\034\n\032M" - "arkPartForRestartResponse\"7\n\034CreateRobot" - "PartSecretRequest\022\027\n\007part_id\030\001 \001(\tR\006part" - "Id\"K\n\035CreateRobotPartSecretResponse\022*\n\004p" - "art\030\001 \001(\0132\026.viam.app.v1.RobotPartR\004part\"" - "T\n\034DeleteRobotPartSecretRequest\022\027\n\007part_" - "id\030\001 \001(\tR\006partId\022\033\n\tsecret_id\030\002 \001(\tR\010sec" - "retId\"\037\n\035DeleteRobotPartSecretResponse\"\236" - "\002\n\rAuthorization\022-\n\022authorization_type\030\001" - " \001(\tR\021authorizationType\022)\n\020authorization" - "_id\030\002 \001(\tR\017authorizationId\022#\n\rresource_t" - "ype\030\003 \001(\tR\014resourceType\022\037\n\013resource_id\030\004" - " \001(\tR\nresourceId\022\037\n\013identity_id\030\005 \001(\tR\ni" - "dentityId\022\'\n\017organization_id\030\006 \001(\tR\016orga" - "nizationId\022#\n\ridentity_type\030\007 \001(\tR\014ident" - "ityType\"R\n\016AddRoleRequest\022@\n\rauthorizati" - "on\030\001 \001(\0132\032.viam.app.v1.AuthorizationR\rau" - "thorization\"\021\n\017AddRoleResponse\"U\n\021Remove" - "RoleRequest\022@\n\rauthorization\030\001 \001(\0132\032.via" - "m.app.v1.AuthorizationR\rauthorization\"\024\n" - "\022RemoveRoleResponse\"\245\001\n\021ChangeRoleReques" - "t\022G\n\021old_authorization\030\001 \001(\0132\032.viam.app." - "v1.AuthorizationR\020oldAuthorization\022G\n\021ne" - "w_authorization\030\002 \001(\0132\032.viam.app.v1.Auth" - "orizationR\020newAuthorization\"\024\n\022ChangeRol" - "eResponse\"g\n\031ListAuthorizationsRequest\022\'" - "\n\017organization_id\030\001 \001(\tR\016organizationId\022" - "!\n\014resource_ids\030\002 \003(\tR\013resourceIds\"`\n\032Li" - "stAuthorizationsResponse\022B\n\016authorizatio" - "ns\030\001 \003(\0132\032.viam.app.v1.AuthorizationR\016au" - "thorizations\"_\n\027CheckPermissionsRequest\022" - "D\n\013permissions\030\001 \003(\0132\".viam.app.v1.Autho" - "rizedPermissionsR\013permissions\"\177\n\025Authori" - "zedPermissions\022#\n\rresource_type\030\001 \001(\tR\014r" - "esourceType\022\037\n\013resource_id\030\002 \001(\tR\nresour" - "ceId\022 \n\013permissions\030\003 \003(\tR\013permissions\"u" - "\n\030CheckPermissionsResponse\022Y\n\026authorized" - "_permissions\030\001 \003(\0132\".viam.app.v1.Authori" - "zedPermissionsR\025authorizedPermissions\"\241\001" - "\n\rModuleVersion\022\030\n\007version\030\001 \001(\tR\007versio" - "n\022*\n\005files\030\002 \003(\0132\024.viam.app.v1.UploadsR\005" - "files\022*\n\006models\030\003 \003(\0132\022.viam.app.v1.Mode" - "lR\006models\022\036\n\nentrypoint\030\004 \001(\tR\nentrypoin" - "t\"\224\001\n\016ModuleMetadata\022*\n\006models\030\001 \003(\0132\022.v" - "iam.app.v1.ModelR\006models\0226\n\010versions\030\002 \003" - "(\0132\032.viam.app.v1.ModuleVersionR\010versions" - "\022\036\n\nentrypoint\030\003 \001(\tR\nentrypoint\"-\n\017MLMo" - "delMetadata\022\032\n\010versions\030\001 \003(\tR\010versions\"" - "\267\006\n\014RegistryItem\022\027\n\007item_id\030\001 \001(\tR\006itemI" - "d\022\'\n\017organization_id\030\002 \001(\tR\016organization" - "Id\022)\n\020public_namespace\030\003 \001(\tR\017publicName" - "space\022\022\n\004name\030\004 \001(\tR\004name\0225\n\004type\030\005 \001(\0162" - "!.viam.app.packages.v1.PackageTypeR\004type" - "\0227\n\nvisibility\030\006 \001(\0162\027.viam.app.v1.Visib" - "ilityR\nvisibility\022\020\n\003url\030\007 \001(\tR\003url\022 \n\013d" - "escription\030\010 \001(\tR\013description\022*\n\021total_r" - "obot_usage\030\t \001(\003R\017totalRobotUsage\022;\n\032tot" - "al_external_robot_usage\030\r \001(\003R\027totalExte" - "rnalRobotUsage\0228\n\030total_organization_usa" - "ge\030\n \001(\003R\026totalOrganizationUsage\022I\n!tota" - "l_external_organization_usage\030\016 \001(\003R\036tot" - "alExternalOrganizationUsage\022F\n\017module_me" - "tadata\030\013 \001(\0132\033.viam.app.v1.ModuleMetadat" - "aH\000R\016moduleMetadata\022J\n\021ml_model_metadata" - "\030\014 \001(\0132\034.viam.app.v1.MLModelMetadataH\000R\017" - "mlModelMetadata\0229\n\ncreated_at\030\017 \001(\0132\032.go" - "ogle.protobuf.TimestampR\tcreatedAt\0229\n\nup" - "dated_at\030\020 \001(\0132\032.google.protobuf.Timesta" - "mpR\tupdatedAtB\n\n\010metadata\"1\n\026GetRegistry" - "ItemRequest\022\027\n\007item_id\030\001 \001(\tR\006itemId\"H\n\027" - "GetRegistryItemResponse\022-\n\004item\030\001 \001(\0132\031." - "viam.app.v1.RegistryItemR\004item\"\217\001\n\031Creat" - "eRegistryItemRequest\022\'\n\017organization_id\030" - "\001 \001(\tR\016organizationId\022\022\n\004name\030\002 \001(\tR\004nam" - "e\0225\n\004type\030\003 \001(\0162!.viam.app.packages.v1.P" - "ackageTypeR\004type\"\034\n\032CreateRegistryItemRe" - "sponse\"\306\001\n\031UpdateRegistryItemRequest\022\027\n\007" - "item_id\030\001 \001(\tR\006itemId\0225\n\004type\030\002 \001(\0162!.vi" - "am.app.packages.v1.PackageTypeR\004type\022 \n\013" - "description\030\003 \001(\tR\013description\0227\n\nvisibi" - "lity\030\004 \001(\0162\027.viam.app.v1.VisibilityR\nvis" - "ibility\"\034\n\032UpdateRegistryItemResponse\"\226\003" - "\n\030ListRegistryItemsRequest\022,\n\017organizati" - "on_id\030\001 \001(\tH\000R\016organizationId\210\001\001\0227\n\005type" - "s\030\002 \003(\0162!.viam.app.packages.v1.PackageTy" - "peR\005types\022;\n\014visibilities\030\003 \003(\0162\027.viam.a" - "pp.v1.VisibilityR\014visibilities\022\034\n\tplatfo" - "rms\030\004 \003(\tR\tplatforms\022;\n\010statuses\030\005 \003(\0162\037" - ".viam.app.v1.RegistryItemStatusR\010statuse" - "s\022$\n\013search_term\030\006 \001(\tH\001R\nsearchTerm\210\001\001\022" - "\"\n\npage_token\030\007 \001(\tH\002R\tpageToken\210\001\001B\022\n\020_" - "organization_idB\016\n\014_search_termB\r\n\013_page" - "_token\"L\n\031ListRegistryItemsResponse\022/\n\005i" - "tems\030\001 \003(\0132\031.viam.app.v1.RegistryItemR\005i" - "tems\"4\n\031DeleteRegistryItemRequest\022\027\n\007ite" - "m_id\030\001 \001(\tR\006itemId\"\034\n\032DeleteRegistryItem" - "Response\"R\n\023CreateModuleRequest\022\'\n\017organ" - "ization_id\030\001 \001(\tR\016organizationId\022\022\n\004name" - "\030\002 \001(\tR\004name\"E\n\024CreateModuleResponse\022\033\n\t" - "module_id\030\001 \001(\tR\010moduleId\022\020\n\003url\030\002 \001(\tR\003" - "url\"\353\001\n\023UpdateModuleRequest\022\033\n\tmodule_id" - "\030\001 \001(\tR\010moduleId\0227\n\nvisibility\030\002 \001(\0162\027.v" - "iam.app.v1.VisibilityR\nvisibility\022\020\n\003url" - "\030\003 \001(\tR\003url\022 \n\013description\030\004 \001(\tR\013descri" - "ption\022*\n\006models\030\005 \003(\0132\022.viam.app.v1.Mode" - "lR\006models\022\036\n\nentrypoint\030\006 \001(\tR\nentrypoin" - "t\"(\n\024UpdateModuleResponse\022\020\n\003url\030\001 \001(\tR\003" - "url\"/\n\005Model\022\020\n\003api\030\001 \001(\tR\003api\022\024\n\005model\030" - "\002 \001(\tR\005model\"c\n\016ModuleFileInfo\022\033\n\tmodule" - "_id\030\001 \001(\tR\010moduleId\022\030\n\007version\030\002 \001(\tR\007ve" - "rsion\022\032\n\010platform\030\003 \001(\tR\010platform\"\207\001\n\027Up" - "loadModuleFileRequest\022G\n\020module_file_inf" - "o\030\001 \001(\0132\033.viam.app.v1.ModuleFileInfoH\000R\016" - "moduleFileInfo\022\024\n\004file\030\002 \001(\014H\000R\004fileB\r\n\013" - "module_file\",\n\030UploadModuleFileResponse\022" - "\020\n\003url\030\001 \001(\tR\003url\"/\n\020GetModuleRequest\022\033\n" - "\tmodule_id\030\001 \001(\tR\010moduleId\"@\n\021GetModuleR" - "esponse\022+\n\006module\030\001 \001(\0132\023.viam.app.v1.Mo" - "duleR\006module\"\345\003\n\006Module\022\033\n\tmodule_id\030\001 \001" - "(\tR\010moduleId\022\022\n\004name\030\002 \001(\tR\004name\0227\n\nvisi" - "bility\030\003 \001(\0162\027.viam.app.v1.VisibilityR\nv" - "isibility\0227\n\010versions\030\004 \003(\0132\033.viam.app.v" - "1.VersionHistoryR\010versions\022\020\n\003url\030\005 \001(\tR" - "\003url\022 \n\013description\030\006 \001(\tR\013description\022*" - "\n\006models\030\007 \003(\0132\022.viam.app.v1.ModelR\006mode" - "ls\022*\n\021total_robot_usage\030\010 \001(\003R\017totalRobo" - "tUsage\0228\n\030total_organization_usage\030\t \001(\003" - "R\026totalOrganizationUsage\022\'\n\017organization" - "_id\030\n \001(\tR\016organizationId\022\036\n\nentrypoint\030" - "\013 \001(\tR\nentrypoint\022)\n\020public_namespace\030\014 " - "\001(\tR\017publicNamespace\"\242\001\n\016VersionHistory\022" - "\030\n\007version\030\001 \001(\tR\007version\022*\n\005files\030\002 \003(\013" - "2\024.viam.app.v1.UploadsR\005files\022*\n\006models\030" - "\003 \003(\0132\022.viam.app.v1.ModelR\006models\022\036\n\nent" - "rypoint\030\004 \001(\tR\nentrypoint\"b\n\007Uploads\022\032\n\010" - "platform\030\001 \001(\tR\010platform\022;\n\013uploaded_at\030" - "\002 \001(\0132\032.google.protobuf.TimestampR\nuploa" - "dedAt\"V\n\022ListModulesRequest\022,\n\017organizat" - "ion_id\030\001 \001(\tH\000R\016organizationId\210\001\001B\022\n\020_or" - "ganization_id\"D\n\023ListModulesResponse\022-\n\007" - "modules\030\001 \003(\0132\023.viam.app.v1.ModuleR\007modu" - "les\"/\n\027GetUserIDByEmailRequest\022\024\n\005email\030" - "\001 \001(\tR\005email\"3\n\030GetUserIDByEmailResponse" - "\022\027\n\007user_id\030\001 \001(\tR\006userId\"9\n\036ListOrganiz" - "ationsByUserRequest\022\027\n\007user_id\030\001 \001(\tR\006us" - "erId\">\n\nOrgDetails\022\025\n\006org_id\030\001 \001(\tR\005orgI" - "d\022\031\n\010org_name\030\002 \001(\tR\007orgName\"N\n\037ListOrga" - "nizationsByUserResponse\022+\n\004orgs\030\001 \003(\0132\027." - "viam.app.v1.OrgDetailsR\004orgs\"j\n\020CreateKe" - "yRequest\022B\n\016authorizations\030\001 \003(\0132\032.viam." - "app.v1.AuthorizationR\016authorizations\022\022\n\004" - "name\030\002 \001(\tR\004name\"5\n\021CreateKeyResponse\022\020\n" - "\003key\030\001 \001(\tR\003key\022\016\n\002id\030\002 \001(\tR\002id\"\"\n\020Delet" - "eKeyRequest\022\016\n\002id\030\001 \001(\tR\002id\"\023\n\021DeleteKey" - "Response\"\315\001\n\024AuthorizationDetails\022-\n\022aut" - "horization_type\030\001 \001(\tR\021authorizationType" - "\022)\n\020authorization_id\030\002 \001(\tR\017authorizatio" - "nId\022#\n\rresource_type\030\003 \001(\tR\014resourceType" - "\022\037\n\013resource_id\030\004 \001(\tR\nresourceId\022\025\n\006org" - "_id\030\005 \001(\tR\005orgId\"\223\001\n\030APIKeyWithAuthoriza" - "tions\022,\n\007api_key\030\001 \001(\0132\023.viam.app.v1.API" - "KeyR\006apiKey\022I\n\016authorizations\030\002 \003(\0132!.vi" - "am.app.v1.AuthorizationDetailsR\016authoriz" - "ations\"(\n\017ListKeysRequest\022\025\n\006org_id\030\001 \001(" - "\tR\005orgId\"T\n\020ListKeysResponse\022@\n\010api_keys" - "\030\001 \003(\0132%.viam.app.v1.APIKeyWithAuthoriza" - "tionsR\007apiKeys\"\"\n\020RotateKeyRequest\022\016\n\002id" - "\030\001 \001(\tR\002id\"5\n\021RotateKeyResponse\022\016\n\002id\030\001 " - "\001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003key\"\?\n-CreateKeyFr" - "omExistingKeyAuthorizationsRequest\022\016\n\002id" - "\030\001 \001(\tR\002id\"R\n.CreateKeyFromExistingKeyAu" - "thorizationsResponse\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003" - "key\030\002 \001(\tR\003key*\207\001\n\022RegistryItemStatus\022$\n" - " REGISTRY_ITEM_STATUS_UNSPECIFIED\020\000\022\"\n\036R" - "EGISTRY_ITEM_STATUS_PUBLISHED\020\001\022\'\n#REGIS" - "TRY_ITEM_STATUS_IN_DEVELOPMENT\020\002*W\n\nVisi" - "bility\022\032\n\026VISIBILITY_UNSPECIFIED\020\000\022\026\n\022VI" - "SIBILITY_PRIVATE\020\001\022\025\n\021VISIBILITY_PUBLIC\020" - "\0022\3574\n\nAppService\022_\n\020GetUserIDByEmail\022$.v" - "iam.app.v1.GetUserIDByEmailRequest\032%.via" - "m.app.v1.GetUserIDByEmailResponse\022e\n\022Cre" - "ateOrganization\022&.viam.app.v1.CreateOrga" - "nizationRequest\032\'.viam.app.v1.CreateOrga" - "nizationResponse\022b\n\021ListOrganizations\022%." - "viam.app.v1.ListOrganizationsRequest\032&.v" - "iam.app.v1.ListOrganizationsResponse\022\233\001\n" - "$GetOrganizationsWithAccessToLocation\0228." - "viam.app.v1.GetOrganizationsWithAccessTo" - "LocationRequest\0329.viam.app.v1.GetOrganiz" - "ationsWithAccessToLocationResponse\022t\n\027Li" - "stOrganizationsByUser\022+.viam.app.v1.List" - "OrganizationsByUserRequest\032,.viam.app.v1" - ".ListOrganizationsByUserResponse\022\\\n\017GetO" - "rganization\022#.viam.app.v1.GetOrganizatio" - "nRequest\032$.viam.app.v1.GetOrganizationRe" - "sponse\022\233\001\n$GetOrganizationNamespaceAvail" - "ability\0228.viam.app.v1.GetOrganizationNam" - "espaceAvailabilityRequest\0329.viam.app.v1." - "GetOrganizationNamespaceAvailabilityResp" - "onse\022e\n\022UpdateOrganization\022&.viam.app.v1" - ".UpdateOrganizationRequest\032\'.viam.app.v1" - ".UpdateOrganizationResponse\022e\n\022DeleteOrg" - "anization\022&.viam.app.v1.DeleteOrganizati" - "onRequest\032\'.viam.app.v1.DeleteOrganizati" - "onResponse\022t\n\027ListOrganizationMembers\022+." - "viam.app.v1.ListOrganizationMembersReque" - "st\032,.viam.app.v1.ListOrganizationMembers" - "Response\022w\n\030CreateOrganizationInvite\022,.v" - "iam.app.v1.CreateOrganizationInviteReque" - "st\032-.viam.app.v1.CreateOrganizationInvit" - "eResponse\022\241\001\n&UpdateOrganizationInviteAu" - "thorizations\022:.viam.app.v1.UpdateOrganiz" - "ationInviteAuthorizationsRequest\032;.viam." - "app.v1.UpdateOrganizationInviteAuthoriza" - "tionsResponse\022w\n\030DeleteOrganizationMembe" - "r\022,.viam.app.v1.DeleteOrganizationMember" - "Request\032-.viam.app.v1.DeleteOrganization" - "MemberResponse\022w\n\030DeleteOrganizationInvi" - "te\022,.viam.app.v1.DeleteOrganizationInvit" - "eRequest\032-.viam.app.v1.DeleteOrganizatio" - "nInviteResponse\022w\n\030ResendOrganizationInv" - "ite\022,.viam.app.v1.ResendOrganizationInvi" - "teRequest\032-.viam.app.v1.ResendOrganizati" - "onInviteResponse\022Y\n\016CreateLocation\022\".via" - "m.app.v1.CreateLocationRequest\032#.viam.ap" - "p.v1.CreateLocationResponse\022P\n\013GetLocati" - "on\022\037.viam.app.v1.GetLocationRequest\032 .vi" - "am.app.v1.GetLocationResponse\022Y\n\016UpdateL" - "ocation\022\".viam.app.v1.UpdateLocationRequ" - "est\032#.viam.app.v1.UpdateLocationResponse" - "\022Y\n\016DeleteLocation\022\".viam.app.v1.DeleteL" - "ocationRequest\032#.viam.app.v1.DeleteLocat" - "ionResponse\022V\n\rListLocations\022!.viam.app." - "v1.ListLocationsRequest\032\".viam.app.v1.Li" - "stLocationsResponse\022V\n\rShareLocation\022!.v" - "iam.app.v1.ShareLocationRequest\032\".viam.a" - "pp.v1.ShareLocationResponse\022\\\n\017UnshareLo" - "cation\022#.viam.app.v1.UnshareLocationRequ" - "est\032$.viam.app.v1.UnshareLocationRespons" - "e\022S\n\014LocationAuth\022 .viam.app.v1.Location" - "AuthRequest\032!.viam.app.v1.LocationAuthRe" - "sponse\022k\n\024CreateLocationSecret\022(.viam.ap" - "p.v1.CreateLocationSecretRequest\032).viam." - "app.v1.CreateLocationSecretResponse\022k\n\024D" - "eleteLocationSecret\022(.viam.app.v1.Delete" - "LocationSecretRequest\032).viam.app.v1.Dele" - "teLocationSecretResponse\022G\n\010GetRobot\022\034.v" - "iam.app.v1.GetRobotRequest\032\035.viam.app.v1" - ".GetRobotResponse\022k\n\024GetRoverRentalRobot" - "s\022(.viam.app.v1.GetRoverRentalRobotsRequ" - "est\032).viam.app.v1.GetRoverRentalRobotsRe" - "sponse\022V\n\rGetRobotParts\022!.viam.app.v1.Ge" - "tRobotPartsRequest\032\".viam.app.v1.GetRobo" - "tPartsResponse\022S\n\014GetRobotPart\022 .viam.ap" - "p.v1.GetRobotPartRequest\032!.viam.app.v1.G" - "etRobotPartResponse\022_\n\020GetRobotPartLogs\022" - "$.viam.app.v1.GetRobotPartLogsRequest\032%." - "viam.app.v1.GetRobotPartLogsResponse\022d\n\021" - "TailRobotPartLogs\022%.viam.app.v1.TailRobo" - "tPartLogsRequest\032&.viam.app.v1.TailRobot" - "PartLogsResponse0\001\022h\n\023GetRobotPartHistor" - "y\022\'.viam.app.v1.GetRobotPartHistoryReque" - "st\032(.viam.app.v1.GetRobotPartHistoryResp" - "onse\022\\\n\017UpdateRobotPart\022#.viam.app.v1.Up" - "dateRobotPartRequest\032$.viam.app.v1.Updat" - "eRobotPartResponse\022S\n\014NewRobotPart\022 .via" - "m.app.v1.NewRobotPartRequest\032!.viam.app." - "v1.NewRobotPartResponse\022\\\n\017DeleteRobotPa" - "rt\022#.viam.app.v1.DeleteRobotPartRequest\032" - "$.viam.app.v1.DeleteRobotPartResponse\022\\\n" - "\017GetRobotAPIKeys\022#.viam.app.v1.GetRobotA" - "PIKeysRequest\032$.viam.app.v1.GetRobotAPIK" - "eysResponse\022Y\n\016MarkPartAsMain\022\".viam.app" - ".v1.MarkPartAsMainRequest\032#.viam.app.v1." - "MarkPartAsMainResponse\022e\n\022MarkPartForRes" - "tart\022&.viam.app.v1.MarkPartForRestartReq" - "uest\032\'.viam.app.v1.MarkPartForRestartRes" - "ponse\022n\n\025CreateRobotPartSecret\022).viam.ap" - "p.v1.CreateRobotPartSecretRequest\032*.viam" - ".app.v1.CreateRobotPartSecretResponse\022n\n" - "\025DeleteRobotPartSecret\022).viam.app.v1.Del" - "eteRobotPartSecretRequest\032*.viam.app.v1." - "DeleteRobotPartSecretResponse\022M\n\nListRob" - "ots\022\036.viam.app.v1.ListRobotsRequest\032\037.vi" - "am.app.v1.ListRobotsResponse\022G\n\010NewRobot" - "\022\034.viam.app.v1.NewRobotRequest\032\035.viam.ap" - "p.v1.NewRobotResponse\022P\n\013UpdateRobot\022\037.v" - "iam.app.v1.UpdateRobotRequest\032 .viam.app" - ".v1.UpdateRobotResponse\022P\n\013DeleteRobot\022\037" - ".viam.app.v1.DeleteRobotRequest\032 .viam.a" - "pp.v1.DeleteRobotResponse\022V\n\rListFragmen" - "ts\022!.viam.app.v1.ListFragmentsRequest\032\"." - "viam.app.v1.ListFragmentsResponse\022P\n\013Get" - "Fragment\022\037.viam.app.v1.GetFragmentReques" - "t\032 .viam.app.v1.GetFragmentResponse\022Y\n\016C" - "reateFragment\022\".viam.app.v1.CreateFragme" - "ntRequest\032#.viam.app.v1.CreateFragmentRe" - "sponse\022Y\n\016UpdateFragment\022\".viam.app.v1.U" - "pdateFragmentRequest\032#.viam.app.v1.Updat" - "eFragmentResponse\022Y\n\016DeleteFragment\022\".vi" - "am.app.v1.DeleteFragmentRequest\032#.viam.a" - "pp.v1.DeleteFragmentResponse\022D\n\007AddRole\022" - "\033.viam.app.v1.AddRoleRequest\032\034.viam.app." - "v1.AddRoleResponse\022M\n\nRemoveRole\022\036.viam." - "app.v1.RemoveRoleRequest\032\037.viam.app.v1.R" - "emoveRoleResponse\022M\n\nChangeRole\022\036.viam.a" - "pp.v1.ChangeRoleRequest\032\037.viam.app.v1.Ch" - "angeRoleResponse\022e\n\022ListAuthorizations\022&" - ".viam.app.v1.ListAuthorizationsRequest\032\'" - ".viam.app.v1.ListAuthorizationsResponse\022" - "_\n\020CheckPermissions\022$.viam.app.v1.CheckP" - "ermissionsRequest\032%.viam.app.v1.CheckPer" - "missionsResponse\022\\\n\017GetRegistryItem\022#.vi" - "am.app.v1.GetRegistryItemRequest\032$.viam." - "app.v1.GetRegistryItemResponse\022e\n\022Create" - "RegistryItem\022&.viam.app.v1.CreateRegistr" - "yItemRequest\032\'.viam.app.v1.CreateRegistr" - "yItemResponse\022e\n\022UpdateRegistryItem\022&.vi" - "am.app.v1.UpdateRegistryItemRequest\032\'.vi" - "am.app.v1.UpdateRegistryItemResponse\022b\n\021" - "ListRegistryItems\022%.viam.app.v1.ListRegi" - "stryItemsRequest\032&.viam.app.v1.ListRegis" - "tryItemsResponse\022e\n\022DeleteRegistryItem\022&" - ".viam.app.v1.DeleteRegistryItemRequest\032\'" - ".viam.app.v1.DeleteRegistryItemResponse\022" - "S\n\014CreateModule\022 .viam.app.v1.CreateModu" - "leRequest\032!.viam.app.v1.CreateModuleResp" - "onse\022S\n\014UpdateModule\022 .viam.app.v1.Updat" - "eModuleRequest\032!.viam.app.v1.UpdateModul" - "eResponse\022a\n\020UploadModuleFile\022$.viam.app" - ".v1.UploadModuleFileRequest\032%.viam.app.v" - "1.UploadModuleFileResponse(\001\022J\n\tGetModul" - "e\022\035.viam.app.v1.GetModuleRequest\032\036.viam." - "app.v1.GetModuleResponse\022P\n\013ListModules\022" - "\037.viam.app.v1.ListModulesRequest\032 .viam." - "app.v1.ListModulesResponse\022J\n\tCreateKey\022" - "\035.viam.app.v1.CreateKeyRequest\032\036.viam.ap" - "p.v1.CreateKeyResponse\022J\n\tDeleteKey\022\035.vi" - "am.app.v1.DeleteKeyRequest\032\036.viam.app.v1" - ".DeleteKeyResponse\022G\n\010ListKeys\022\034.viam.ap" - "p.v1.ListKeysRequest\032\035.viam.app.v1.ListK" - "eysResponse\022J\n\tRotateKey\022\035.viam.app.v1.R" - "otateKeyRequest\032\036.viam.app.v1.RotateKeyR" - "esponse\022\241\001\n&CreateKeyFromExistingKeyAuth" - "orizations\022:.viam.app.v1.CreateKeyFromEx" - "istingKeyAuthorizationsRequest\032;.viam.ap" - "p.v1.CreateKeyFromExistingKeyAuthorizati" - "onsResponseB\030Z\026go.viam.com/api/app/v1b\006p" - "roto3" + "p.v1.LocationR\010location\"\314\001\n\025UpdateLocati" + "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." + "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" + ".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" ; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[5] = { &::descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto, @@ -4564,7 +4571,7 @@ 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, 25445, descriptor_table_protodef_app_2fv1_2fapp_2eproto, + false, false, 25516, 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, schemas, file_default_instances, TableStruct_app_2fv1_2fapp_2eproto::offsets, @@ -9914,6 +9921,10 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationMembersResponse::GetMetadata() class CreateOrganizationInviteRequest::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_send_email_invite(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -9925,6 +9936,7 @@ CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(::PROTOBUF_NAME } CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(const CreateOrganizationInviteRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), authorizations_(from.authorizations_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); organization_id_.InitDefault(); @@ -9943,6 +9955,7 @@ CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(const CreateOrg email_.Set(from._internal_email(), GetArenaForAllocation()); } + send_email_invite_ = from.send_email_invite_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateOrganizationInviteRequest) } @@ -9955,6 +9968,7 @@ email_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING email_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +send_email_invite_ = false; } CreateOrganizationInviteRequest::~CreateOrganizationInviteRequest() { @@ -9985,11 +9999,14 @@ void CreateOrganizationInviteRequest::Clear() { authorizations_.Clear(); organization_id_.ClearToEmpty(); email_.ClearToEmpty(); + send_email_invite_ = false; + _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CreateOrganizationInviteRequest::_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); @@ -10027,6 +10044,15 @@ const char* CreateOrganizationInviteRequest::_InternalParse(const char* ptr, ::_ } else goto handle_unusual; continue; + // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_send_email_invite(&has_bits); + send_email_invite_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -10043,6 +10069,7 @@ const char* CreateOrganizationInviteRequest::_InternalParse(const char* ptr, ::_ CHK_(ptr != nullptr); } // while message_done: + _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -10084,6 +10111,12 @@ uint8_t* CreateOrganizationInviteRequest::_InternalSerialize( InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } + // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; + if (_internal_has_send_email_invite()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_send_email_invite(), 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); @@ -10121,6 +10154,12 @@ size_t CreateOrganizationInviteRequest::ByteSizeLong() const { this->_internal_email()); } + // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + 1; + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -10150,6 +10189,9 @@ void CreateOrganizationInviteRequest::MergeFrom(const CreateOrganizationInviteRe if (!from._internal_email().empty()) { _internal_set_email(from._internal_email()); } + if (from._internal_has_send_email_invite()) { + _internal_set_send_email_invite(from._internal_send_email_invite()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -10169,6 +10211,7 @@ void CreateOrganizationInviteRequest::InternalSwap(CreateOrganizationInviteReque auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); authorizations_.InternalSwap(&other->authorizations_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &organization_id_, lhs_arena, @@ -10178,6 +10221,7 @@ void CreateOrganizationInviteRequest::InternalSwap(CreateOrganizationInviteReque &email_, lhs_arena, &other->email_, rhs_arena ); + swap(send_email_invite_, other->send_email_invite_); } ::PROTOBUF_NAMESPACE_ID::Metadata CreateOrganizationInviteRequest::GetMetadata() const { diff --git a/src/viam/api/app/v1/app.pb.h b/src/viam/api/app/v1/app.pb.h index cc5dbd38a..a8dedfa83 100644 --- a/src/viam/api/app/v1/app.pb.h +++ b/src/viam/api/app/v1/app.pb.h @@ -4524,6 +4524,7 @@ class CreateOrganizationInviteRequest final : kAuthorizationsFieldNumber = 3, kOrganizationIdFieldNumber = 1, kEmailFieldNumber = 2, + kSendEmailInviteFieldNumber = 4, }; // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; int authorizations_size() const; @@ -4571,6 +4572,19 @@ class CreateOrganizationInviteRequest final : std::string* _internal_mutable_email(); public: + // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; + bool has_send_email_invite() const; + private: + bool _internal_has_send_email_invite() const; + public: + void clear_send_email_invite(); + bool send_email_invite() const; + void set_send_email_invite(bool value); + private: + bool _internal_send_email_invite() const; + void _internal_set_send_email_invite(bool value); + public: + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationInviteRequest) private: class _Internal; @@ -4578,10 +4592,12 @@ class CreateOrganizationInviteRequest 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::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + bool send_email_invite_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; }; // ------------------------------------------------------------------- @@ -31728,6 +31744,34 @@ CreateOrganizationInviteRequest::authorizations() const { return authorizations_; } +// optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; +inline bool CreateOrganizationInviteRequest::_internal_has_send_email_invite() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool CreateOrganizationInviteRequest::has_send_email_invite() const { + return _internal_has_send_email_invite(); +} +inline void CreateOrganizationInviteRequest::clear_send_email_invite() { + send_email_invite_ = false; + _has_bits_[0] &= ~0x00000001u; +} +inline bool CreateOrganizationInviteRequest::_internal_send_email_invite() const { + return send_email_invite_; +} +inline bool CreateOrganizationInviteRequest::send_email_invite() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.send_email_invite) + return _internal_send_email_invite(); +} +inline void CreateOrganizationInviteRequest::_internal_set_send_email_invite(bool value) { + _has_bits_[0] |= 0x00000001u; + send_email_invite_ = value; +} +inline void CreateOrganizationInviteRequest::set_send_email_invite(bool value) { + _internal_set_send_email_invite(value); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationInviteRequest.send_email_invite) +} + // ------------------------------------------------------------------- // CreateOrganizationInviteResponse diff --git a/src/viam/api/app/v1/end_user.grpc.pb.cc b/src/viam/api/app/v1/end_user.grpc.pb.cc index 6bbe45b36..700197792 100644 --- a/src/viam/api/app/v1/end_user.grpc.pb.cc +++ b/src/viam/api/app/v1/end_user.grpc.pb.cc @@ -26,6 +26,8 @@ namespace v1 { static const char* EndUserService_method_names[] = { "/viam.app.v1.EndUserService/IsLegalAccepted", "/viam.app.v1.EndUserService/AcceptLegal", + "/viam.app.v1.EndUserService/RegisterAuthApplication", + "/viam.app.v1.EndUserService/UpdateAuthApplication", }; std::unique_ptr< EndUserService::Stub> EndUserService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -37,6 +39,8 @@ std::unique_ptr< EndUserService::Stub> EndUserService::NewStub(const std::shared EndUserService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) : channel_(channel), rpcmethod_IsLegalAccepted_(EndUserService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_AcceptLegal_(EndUserService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RegisterAuthApplication_(EndUserService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateAuthApplication_(EndUserService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status EndUserService::Stub::IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::viam::app::v1::IsLegalAcceptedResponse* response) { @@ -85,6 +89,52 @@ ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>* EndUse return result; } +::grpc::Status EndUserService::Stub::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::viam::app::v1::RegisterAuthApplicationResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RegisterAuthApplication_, context, request, response); +} + +void EndUserService::Stub::async::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, std::move(f)); +} + +void EndUserService::Stub::async::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::RegisterAuthApplicationResponse, ::viam::app::v1::RegisterAuthApplicationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RegisterAuthApplication_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>* EndUserService::Stub::AsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRegisterAuthApplicationRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status EndUserService::Stub::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::viam::app::v1::UpdateAuthApplicationResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateAuthApplication_, context, request, response); +} + +void EndUserService::Stub::async::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, std::move(f)); +} + +void EndUserService::Stub::async::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateAuthApplicationResponse, ::viam::app::v1::UpdateAuthApplicationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateAuthApplication_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>* EndUserService::Stub::AsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncUpdateAuthApplicationRaw(context, request, cq); + result->StartCall(); + return result; +} + EndUserService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EndUserService_method_names[0], @@ -106,6 +156,26 @@ EndUserService::Service::Service() { ::viam::app::v1::AcceptLegalResponse* resp) { return service->AcceptLegal(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + EndUserService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](EndUserService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::RegisterAuthApplicationRequest* req, + ::viam::app::v1::RegisterAuthApplicationResponse* resp) { + return service->RegisterAuthApplication(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + EndUserService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](EndUserService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::UpdateAuthApplicationRequest* req, + ::viam::app::v1::UpdateAuthApplicationResponse* resp) { + return service->UpdateAuthApplication(ctx, req, resp); + }, this))); } EndUserService::Service::~Service() { @@ -125,6 +195,20 @@ ::grpc::Status EndUserService::Service::AcceptLegal(::grpc::ServerContext* conte return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status EndUserService::Service::RegisterAuthApplication(::grpc::ServerContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status EndUserService::Service::UpdateAuthApplication(::grpc::ServerContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace viam } // namespace app diff --git a/src/viam/api/app/v1/end_user.grpc.pb.h b/src/viam/api/app/v1/end_user.grpc.pb.h index 0028cc606..26f23cd03 100644 --- a/src/viam/api/app/v1/end_user.grpc.pb.h +++ b/src/viam/api/app/v1/end_user.grpc.pb.h @@ -54,6 +54,22 @@ class EndUserService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::AcceptLegalResponse>> PrepareAsyncAcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::AcceptLegalResponse>>(PrepareAsyncAcceptLegalRaw(context, request, cq)); } + // Allows users to register third party auth applications using Viam linked to the indicated organization + virtual ::grpc::Status RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::viam::app::v1::RegisterAuthApplicationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::RegisterAuthApplicationResponse>> AsyncRegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::RegisterAuthApplicationResponse>>(AsyncRegisterAuthApplicationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::RegisterAuthApplicationResponse>> PrepareAsyncRegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::RegisterAuthApplicationResponse>>(PrepareAsyncRegisterAuthApplicationRaw(context, request, cq)); + } + // Allows users to update their third party auth applications + virtual ::grpc::Status UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::viam::app::v1::UpdateAuthApplicationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateAuthApplicationResponse>> AsyncUpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateAuthApplicationResponse>>(AsyncUpdateAuthApplicationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateAuthApplicationResponse>> PrepareAsyncUpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateAuthApplicationResponse>>(PrepareAsyncUpdateAuthApplicationRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -64,6 +80,12 @@ class EndUserService final { // Marks that the specified user has accepted end user license agreements. virtual void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, std::function) = 0; virtual void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Allows users to register third party auth applications using Viam linked to the indicated organization + virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function) = 0; + virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Allows users to update their third party auth applications + virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function) = 0; + virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -73,6 +95,10 @@ class EndUserService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::IsLegalAcceptedResponse>* PrepareAsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::AcceptLegalResponse>* AsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::AcceptLegalResponse>* PrepareAsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::RegisterAuthApplicationResponse>* AsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::RegisterAuthApplicationResponse>* PrepareAsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateAuthApplicationResponse>* AsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateAuthApplicationResponse>* PrepareAsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -91,6 +117,20 @@ class EndUserService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>> PrepareAsyncAcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>>(PrepareAsyncAcceptLegalRaw(context, request, cq)); } + ::grpc::Status RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::viam::app::v1::RegisterAuthApplicationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>> AsyncRegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>>(AsyncRegisterAuthApplicationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>> PrepareAsyncRegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>>(PrepareAsyncRegisterAuthApplicationRaw(context, request, cq)); + } + ::grpc::Status UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::viam::app::v1::UpdateAuthApplicationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>> AsyncUpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>>(AsyncUpdateAuthApplicationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>> PrepareAsyncUpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>>(PrepareAsyncUpdateAuthApplicationRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -98,6 +138,10 @@ class EndUserService final { void IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, std::function) override; void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function) override; + void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function) override; + void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -113,8 +157,14 @@ class EndUserService final { ::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>* PrepareAsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>* AsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>* PrepareAsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>* AsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>* PrepareAsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>* AsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>* PrepareAsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_IsLegalAccepted_; const ::grpc::internal::RpcMethod rpcmethod_AcceptLegal_; + const ::grpc::internal::RpcMethod rpcmethod_RegisterAuthApplication_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateAuthApplication_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -127,6 +177,10 @@ class EndUserService final { virtual ::grpc::Status IsLegalAccepted(::grpc::ServerContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response); // Marks that the specified user has accepted end user license agreements. virtual ::grpc::Status AcceptLegal(::grpc::ServerContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response); + // Allows users to register third party auth applications using Viam linked to the indicated organization + virtual ::grpc::Status RegisterAuthApplication(::grpc::ServerContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response); + // Allows users to update their third party auth applications + virtual ::grpc::Status UpdateAuthApplication(::grpc::ServerContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response); }; template class WithAsyncMethod_IsLegalAccepted : public BaseClass { @@ -168,7 +222,47 @@ class EndUserService final { ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_IsLegalAccepted > AsyncService; + template + class WithAsyncMethod_RegisterAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_RegisterAuthApplication() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_RegisterAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRegisterAuthApplication(::grpc::ServerContext* context, ::viam::app::v1::RegisterAuthApplicationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::RegisterAuthApplicationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UpdateAuthApplication() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_UpdateAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateAuthApplication(::grpc::ServerContext* context, ::viam::app::v1::UpdateAuthApplicationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateAuthApplicationResponse>* 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); + } + }; + typedef WithAsyncMethod_IsLegalAccepted > > > AsyncService; template class WithCallbackMethod_IsLegalAccepted : public BaseClass { private: @@ -223,7 +317,61 @@ class EndUserService final { virtual ::grpc::ServerUnaryReactor* AcceptLegal( ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::AcceptLegalRequest* /*request*/, ::viam::app::v1::AcceptLegalResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_IsLegalAccepted > CallbackService; + template + class WithCallbackMethod_RegisterAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_RegisterAuthApplication() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response) { return this->RegisterAuthApplication(context, request, response); }));} + void SetMessageAllocatorFor_RegisterAuthApplication( + ::grpc::MessageAllocator< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_RegisterAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RegisterAuthApplication( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_UpdateAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_UpdateAuthApplication() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response) { return this->UpdateAuthApplication(context, request, response); }));} + void SetMessageAllocatorFor_UpdateAuthApplication( + ::grpc::MessageAllocator< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_UpdateAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateAuthApplication( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_IsLegalAccepted > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_IsLegalAccepted : public BaseClass { @@ -260,6 +408,40 @@ class EndUserService final { } }; template + class WithGenericMethod_RegisterAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_RegisterAuthApplication() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_RegisterAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UpdateAuthApplication() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_UpdateAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_IsLegalAccepted : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -300,6 +482,46 @@ class EndUserService final { } }; template + class WithRawMethod_RegisterAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_RegisterAuthApplication() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_RegisterAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRegisterAuthApplication(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UpdateAuthApplication() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_UpdateAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateAuthApplication(::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); + } + }; + template class WithRawCallbackMethod_IsLegalAccepted : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -344,6 +566,50 @@ class EndUserService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_RegisterAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_RegisterAuthApplication() { + ::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->RegisterAuthApplication(context, request, response); })); + } + ~WithRawCallbackMethod_RegisterAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* RegisterAuthApplication( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UpdateAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UpdateAuthApplication() { + ::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->UpdateAuthApplication(context, request, response); })); + } + ~WithRawCallbackMethod_UpdateAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateAuthApplication( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_IsLegalAccepted : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -397,9 +663,63 @@ class EndUserService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedAcceptLegal(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::AcceptLegalRequest,::viam::app::v1::AcceptLegalResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_IsLegalAccepted > StreamedUnaryService; + template + class WithStreamedUnaryMethod_RegisterAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_RegisterAuthApplication() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>* streamer) { + return this->StreamedRegisterAuthApplication(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_RegisterAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RegisterAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRegisterAuthApplication(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::RegisterAuthApplicationRequest,::viam::app::v1::RegisterAuthApplicationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateAuthApplication : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UpdateAuthApplication() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>* streamer) { + return this->StreamedUpdateAuthApplication(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UpdateAuthApplication() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateAuthApplication(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateAuthApplication(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateAuthApplicationRequest,::viam::app::v1::UpdateAuthApplicationResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_IsLegalAccepted > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_IsLegalAccepted > StreamedService; + typedef WithStreamedUnaryMethod_IsLegalAccepted > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/app/v1/end_user.pb.cc b/src/viam/api/app/v1/end_user.pb.cc index e3aaa09d2..012bdd4b0 100644 --- a/src/viam/api/app/v1/end_user.pb.cc +++ b/src/viam/api/app/v1/end_user.pb.cc @@ -68,10 +68,70 @@ struct AcceptLegalResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptLegalResponseDefaultTypeInternal _AcceptLegalResponse_default_instance_; +PROTOBUF_CONSTEXPR RegisterAuthApplicationRequest::RegisterAuthApplicationRequest( + ::_pbi::ConstantInitialized) + : origin_uris_() + , redirect_uris_() + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logout_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RegisterAuthApplicationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegisterAuthApplicationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RegisterAuthApplicationRequestDefaultTypeInternal() {} + union { + RegisterAuthApplicationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterAuthApplicationRequestDefaultTypeInternal _RegisterAuthApplicationRequest_default_instance_; +PROTOBUF_CONSTEXPR RegisterAuthApplicationResponse::RegisterAuthApplicationResponse( + ::_pbi::ConstantInitialized) + : application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RegisterAuthApplicationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegisterAuthApplicationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RegisterAuthApplicationResponseDefaultTypeInternal() {} + union { + RegisterAuthApplicationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterAuthApplicationResponseDefaultTypeInternal _RegisterAuthApplicationResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateAuthApplicationRequest::UpdateAuthApplicationRequest( + ::_pbi::ConstantInitialized) + : origin_uris_() + , redirect_uris_() + , org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logout_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateAuthApplicationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateAuthApplicationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateAuthApplicationRequestDefaultTypeInternal() {} + union { + UpdateAuthApplicationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateAuthApplicationRequestDefaultTypeInternal _UpdateAuthApplicationRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateAuthApplicationResponse::UpdateAuthApplicationResponse( + ::_pbi::ConstantInitialized) + : application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateAuthApplicationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateAuthApplicationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateAuthApplicationResponseDefaultTypeInternal() {} + union { + UpdateAuthApplicationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateAuthApplicationResponseDefaultTypeInternal _UpdateAuthApplicationResponse_default_instance_; } // namespace v1 } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fv1_2fend_5fuser_2eproto[4]; +static ::_pb::Metadata file_level_metadata_app_2fv1_2fend_5fuser_2eproto[8]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_app_2fv1_2fend_5fuser_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2fend_5fuser_2eproto = nullptr; @@ -101,12 +161,56 @@ const uint32_t TableStruct_app_2fv1_2fend_5fuser_2eproto::offsets[] PROTOBUF_SEC ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _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::RegisterAuthApplicationRequest, application_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, origin_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, redirect_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, logout_uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, _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::RegisterAuthApplicationResponse, application_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, application_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _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::UpdateAuthApplicationRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, application_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, application_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, origin_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, redirect_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, logout_uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationResponse, _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::UpdateAuthApplicationResponse, application_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationResponse, application_name_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::app::v1::IsLegalAcceptedRequest)}, { 6, -1, -1, sizeof(::viam::app::v1::IsLegalAcceptedResponse)}, { 13, -1, -1, sizeof(::viam::app::v1::AcceptLegalRequest)}, { 19, -1, -1, sizeof(::viam::app::v1::AcceptLegalResponse)}, + { 25, -1, -1, sizeof(::viam::app::v1::RegisterAuthApplicationRequest)}, + { 36, -1, -1, sizeof(::viam::app::v1::RegisterAuthApplicationResponse)}, + { 45, -1, -1, sizeof(::viam::app::v1::UpdateAuthApplicationRequest)}, + { 57, -1, -1, sizeof(::viam::app::v1::UpdateAuthApplicationResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -114,6 +218,10 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_IsLegalAcceptedResponse_default_instance_._instance, &::viam::app::v1::_AcceptLegalRequest_default_instance_._instance, &::viam::app::v1::_AcceptLegalResponse_default_instance_._instance, + &::viam::app::v1::_RegisterAuthApplicationRequest_default_instance_._instance, + &::viam::app::v1::_RegisterAuthApplicationResponse_default_instance_._instance, + &::viam::app::v1::_UpdateAuthApplicationRequest_default_instance_._instance, + &::viam::app::v1::_UpdateAuthApplicationResponse_default_instance_._instance, }; const char descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -121,19 +229,42 @@ const char descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto[] PROTOBUF_SE "IsLegalAcceptedRequest\"@\n\027IsLegalAccepte" "dResponse\022%\n\016accepted_legal\030\001 \001(\010R\raccep" "tedLegal\"\024\n\022AcceptLegalRequest\"\025\n\023Accept" - "LegalResponse2\300\001\n\016EndUserService\022\\\n\017IsLe" - "galAccepted\022#.viam.app.v1.IsLegalAccepte" - "dRequest\032$.viam.app.v1.IsLegalAcceptedRe" - "sponse\022P\n\013AcceptLegal\022\037.viam.app.v1.Acce" - "ptLegalRequest\032 .viam.app.v1.AcceptLegal" - "ResponseB\030Z\026go.viam.com/api/app/v1b\006prot" - "o3" + "LegalResponse\"\307\001\n\036RegisterAuthApplicatio" + "nRequest\022)\n\020application_name\030\001 \001(\tR\017appl" + "icationName\022\025\n\006org_id\030\002 \001(\tR\005orgId\022\037\n\013or" + "igin_uris\030\003 \003(\tR\noriginUris\022#\n\rredirect_" + "uris\030\004 \003(\tR\014redirectUris\022\035\n\nlogout_uri\030\005" + " \001(\tR\tlogoutUri\"\213\001\n\037RegisterAuthApplicat" + "ionResponse\022%\n\016application_id\030\001 \001(\tR\rapp" + "licationId\022)\n\020application_name\030\002 \001(\tR\017ap" + "plicationName\022\026\n\006secret\030\003 \001(\tR\006secret\"\354\001" + "\n\034UpdateAuthApplicationRequest\022\025\n\006org_id" + "\030\001 \001(\tR\005orgId\022%\n\016application_id\030\002 \001(\tR\ra" + "pplicationId\022)\n\020application_name\030\003 \001(\tR\017" + "applicationName\022\037\n\013origin_uris\030\004 \003(\tR\nor" + "iginUris\022#\n\rredirect_uris\030\005 \003(\tR\014redirec" + "tUris\022\035\n\nlogout_uri\030\006 \001(\tR\tlogoutUri\"q\n\035" + "UpdateAuthApplicationResponse\022%\n\016applica" + "tion_id\030\001 \001(\tR\rapplicationId\022)\n\020applicat" + "ion_name\030\002 \001(\tR\017applicationName2\246\003\n\016EndU" + "serService\022\\\n\017IsLegalAccepted\022#.viam.app" + ".v1.IsLegalAcceptedRequest\032$.viam.app.v1" + ".IsLegalAcceptedResponse\022P\n\013AcceptLegal\022" + "\037.viam.app.v1.AcceptLegalRequest\032 .viam." + "app.v1.AcceptLegalResponse\022t\n\027RegisterAu" + "thApplication\022+.viam.app.v1.RegisterAuth" + "ApplicationRequest\032,.viam.app.v1.Registe" + "rAuthApplicationResponse\022n\n\025UpdateAuthAp" + "plication\022).viam.app.v1.UpdateAuthApplic" + "ationRequest\032*.viam.app.v1.UpdateAuthApp" + "licationResponseB\030Z\026go.viam.com/api/app/" + "v1b\006proto3" ; static ::_pbi::once_flag descriptor_table_app_2fv1_2fend_5fuser_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fend_5fuser_2eproto = { - false, false, 402, descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto, + false, false, 1330, descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto, "app/v1/end_user.proto", - &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, nullptr, 0, 4, + &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, nullptr, 0, 8, schemas, file_default_instances, TableStruct_app_2fv1_2fend_5fuser_2eproto::offsets, file_level_metadata_app_2fv1_2fend_5fuser_2eproto, file_level_enum_descriptors_app_2fv1_2fend_5fuser_2eproto, file_level_service_descriptors_app_2fv1_2fend_5fuser_2eproto, @@ -436,26 +567,1358 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AcceptLegalResponse::GetMetadata() const { file_level_metadata_app_2fv1_2fend_5fuser_2eproto[3]); } -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace app -} // namespace viam -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::viam::app::v1::IsLegalAcceptedRequest* -Arena::CreateMaybeMessage< ::viam::app::v1::IsLegalAcceptedRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::app::v1::IsLegalAcceptedRequest >(arena); +// =================================================================== + +class RegisterAuthApplicationRequest::_Internal { + public: +}; + +RegisterAuthApplicationRequest::RegisterAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + origin_uris_(arena), + redirect_uris_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RegisterAuthApplicationRequest) } -template<> PROTOBUF_NOINLINE ::viam::app::v1::IsLegalAcceptedResponse* -Arena::CreateMaybeMessage< ::viam::app::v1::IsLegalAcceptedResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::app::v1::IsLegalAcceptedResponse >(arena); +RegisterAuthApplicationRequest::RegisterAuthApplicationRequest(const RegisterAuthApplicationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + origin_uris_(from.origin_uris_), + redirect_uris_(from.redirect_uris_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + logout_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logout_uri().empty()) { + logout_uri_.Set(from._internal_logout_uri(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RegisterAuthApplicationRequest) } -template<> PROTOBUF_NOINLINE ::viam::app::v1::AcceptLegalRequest* -Arena::CreateMaybeMessage< ::viam::app::v1::AcceptLegalRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::app::v1::AcceptLegalRequest >(arena); + +inline void RegisterAuthApplicationRequest::SharedCtor() { +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logout_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -template<> PROTOBUF_NOINLINE ::viam::app::v1::AcceptLegalResponse* -Arena::CreateMaybeMessage< ::viam::app::v1::AcceptLegalResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::app::v1::AcceptLegalResponse >(arena); + +RegisterAuthApplicationRequest::~RegisterAuthApplicationRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.RegisterAuthApplicationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RegisterAuthApplicationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + application_name_.Destroy(); + org_id_.Destroy(); + logout_uri_.Destroy(); +} + +void RegisterAuthApplicationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RegisterAuthApplicationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RegisterAuthApplicationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + origin_uris_.Clear(); + redirect_uris_.Clear(); + application_name_.ClearToEmpty(); + org_id_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RegisterAuthApplicationRequest::_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 application_name = 1 [json_name = "applicationName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.application_name")); + } else + goto handle_unusual; + continue; + // string org_id = 2 [json_name = "orgId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.org_id")); + } else + goto handle_unusual; + continue; + // repeated string origin_uris = 3 [json_name = "originUris"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_origin_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.origin_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string redirect_uris = 4 [json_name = "redirectUris"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_redirect_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.redirect_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // string logout_uri = 5 [json_name = "logoutUri"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_logout_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.logout_uri")); + } 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* RegisterAuthApplicationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RegisterAuthApplicationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string application_name = 1 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.application_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_application_name(), target); + } + + // string org_id = 2 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_org_id(), target); + } + + // repeated string origin_uris = 3 [json_name = "originUris"]; + for (int i = 0, n = this->_internal_origin_uris_size(); i < n; i++) { + const auto& s = this->_internal_origin_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.origin_uris"); + target = stream->WriteString(3, s, target); + } + + // repeated string redirect_uris = 4 [json_name = "redirectUris"]; + for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; i++) { + const auto& s = this->_internal_redirect_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.redirect_uris"); + target = stream->WriteString(4, s, target); + } + + // string logout_uri = 5 [json_name = "logoutUri"]; + if (!this->_internal_logout_uri().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logout_uri().data(), static_cast(this->_internal_logout_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.logout_uri"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_logout_uri(), 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.RegisterAuthApplicationRequest) + return target; +} + +size_t RegisterAuthApplicationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RegisterAuthApplicationRequest) + 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 origin_uris = 3 [json_name = "originUris"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(origin_uris_.size()); + for (int i = 0, n = origin_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + origin_uris_.Get(i)); + } + + // repeated string redirect_uris = 4 [json_name = "redirectUris"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(redirect_uris_.size()); + for (int i = 0, n = redirect_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + redirect_uris_.Get(i)); + } + + // string application_name = 1 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); + } + + // string org_id = 2 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string logout_uri = 5 [json_name = "logoutUri"]; + if (!this->_internal_logout_uri().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logout_uri()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegisterAuthApplicationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RegisterAuthApplicationRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegisterAuthApplicationRequest::GetClassData() const { return &_class_data_; } + +void RegisterAuthApplicationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RegisterAuthApplicationRequest::MergeFrom(const RegisterAuthApplicationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegisterAuthApplicationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + origin_uris_.MergeFrom(from.origin_uris_); + redirect_uris_.MergeFrom(from.redirect_uris_); + if (!from._internal_application_name().empty()) { + _internal_set_application_name(from._internal_application_name()); + } + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_logout_uri().empty()) { + _internal_set_logout_uri(from._internal_logout_uri()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RegisterAuthApplicationRequest::CopyFrom(const RegisterAuthApplicationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RegisterAuthApplicationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegisterAuthApplicationRequest::IsInitialized() const { + return true; +} + +void RegisterAuthApplicationRequest::InternalSwap(RegisterAuthApplicationRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + origin_uris_.InternalSwap(&other->origin_uris_); + redirect_uris_.InternalSwap(&other->redirect_uris_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logout_uri_, lhs_arena, + &other->logout_uri_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RegisterAuthApplicationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, + file_level_metadata_app_2fv1_2fend_5fuser_2eproto[4]); +} + +// =================================================================== + +class RegisterAuthApplicationResponse::_Internal { + public: +}; + +RegisterAuthApplicationResponse::RegisterAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.RegisterAuthApplicationResponse) +} +RegisterAuthApplicationResponse::RegisterAuthApplicationResponse(const RegisterAuthApplicationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + secret_.Set(from._internal_secret(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RegisterAuthApplicationResponse) +} + +inline void RegisterAuthApplicationResponse::SharedCtor() { +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RegisterAuthApplicationResponse::~RegisterAuthApplicationResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.RegisterAuthApplicationResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RegisterAuthApplicationResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + application_id_.Destroy(); + application_name_.Destroy(); + secret_.Destroy(); +} + +void RegisterAuthApplicationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RegisterAuthApplicationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RegisterAuthApplicationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + application_id_.ClearToEmpty(); + application_name_.ClearToEmpty(); + secret_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RegisterAuthApplicationResponse::_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 application_id = 1 [json_name = "applicationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationResponse.application_id")); + } else + goto handle_unusual; + continue; + // string application_name = 2 [json_name = "applicationName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationResponse.application_name")); + } else + goto handle_unusual; + continue; + // string secret = 3 [json_name = "secret"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationResponse.secret")); + } 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* RegisterAuthApplicationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RegisterAuthApplicationResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string application_id = 1 [json_name = "applicationId"]; + if (!this->_internal_application_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationResponse.application_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_application_id(), target); + } + + // string application_name = 2 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationResponse.application_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_name(), target); + } + + // string secret = 3 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationResponse.secret"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_secret(), 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.RegisterAuthApplicationResponse) + return target; +} + +size_t RegisterAuthApplicationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RegisterAuthApplicationResponse) + 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 application_id = 1 [json_name = "applicationId"]; + if (!this->_internal_application_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); + } + + // string application_name = 2 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); + } + + // string secret = 3 [json_name = "secret"]; + if (!this->_internal_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegisterAuthApplicationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RegisterAuthApplicationResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegisterAuthApplicationResponse::GetClassData() const { return &_class_data_; } + +void RegisterAuthApplicationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RegisterAuthApplicationResponse::MergeFrom(const RegisterAuthApplicationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegisterAuthApplicationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_application_id().empty()) { + _internal_set_application_id(from._internal_application_id()); + } + if (!from._internal_application_name().empty()) { + _internal_set_application_name(from._internal_application_name()); + } + if (!from._internal_secret().empty()) { + _internal_set_secret(from._internal_secret()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RegisterAuthApplicationResponse::CopyFrom(const RegisterAuthApplicationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RegisterAuthApplicationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegisterAuthApplicationResponse::IsInitialized() const { + return true; +} + +void RegisterAuthApplicationResponse::InternalSwap(RegisterAuthApplicationResponse* 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( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_, lhs_arena, + &other->secret_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RegisterAuthApplicationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, + file_level_metadata_app_2fv1_2fend_5fuser_2eproto[5]); +} + +// =================================================================== + +class UpdateAuthApplicationRequest::_Internal { + public: +}; + +UpdateAuthApplicationRequest::UpdateAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + origin_uris_(arena), + redirect_uris_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateAuthApplicationRequest) +} +UpdateAuthApplicationRequest::UpdateAuthApplicationRequest(const UpdateAuthApplicationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + origin_uris_(from.origin_uris_), + redirect_uris_(from.redirect_uris_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + logout_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logout_uri().empty()) { + logout_uri_.Set(from._internal_logout_uri(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateAuthApplicationRequest) +} + +inline void UpdateAuthApplicationRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logout_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UpdateAuthApplicationRequest::~UpdateAuthApplicationRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateAuthApplicationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UpdateAuthApplicationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + application_id_.Destroy(); + application_name_.Destroy(); + logout_uri_.Destroy(); +} + +void UpdateAuthApplicationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateAuthApplicationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateAuthApplicationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + origin_uris_.Clear(); + redirect_uris_.Clear(); + org_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); + application_name_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateAuthApplicationRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.org_id")); + } else + goto handle_unusual; + continue; + // string application_id = 2 [json_name = "applicationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.application_id")); + } else + goto handle_unusual; + continue; + // string application_name = 3 [json_name = "applicationName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.application_name")); + } else + goto handle_unusual; + continue; + // repeated string origin_uris = 4 [json_name = "originUris"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_origin_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.origin_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_redirect_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.redirect_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string logout_uri = 6 [json_name = "logoutUri"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_logout_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.logout_uri")); + } 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* UpdateAuthApplicationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateAuthApplicationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string application_id = 2 [json_name = "applicationId"]; + if (!this->_internal_application_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.application_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_id(), target); + } + + // string application_name = 3 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.application_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_application_name(), target); + } + + // repeated string origin_uris = 4 [json_name = "originUris"]; + for (int i = 0, n = this->_internal_origin_uris_size(); i < n; i++) { + const auto& s = this->_internal_origin_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.origin_uris"); + target = stream->WriteString(4, s, target); + } + + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; i++) { + const auto& s = this->_internal_redirect_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.redirect_uris"); + target = stream->WriteString(5, s, target); + } + + // string logout_uri = 6 [json_name = "logoutUri"]; + if (!this->_internal_logout_uri().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logout_uri().data(), static_cast(this->_internal_logout_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.logout_uri"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_logout_uri(), 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.UpdateAuthApplicationRequest) + return target; +} + +size_t UpdateAuthApplicationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateAuthApplicationRequest) + 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 origin_uris = 4 [json_name = "originUris"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(origin_uris_.size()); + for (int i = 0, n = origin_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + origin_uris_.Get(i)); + } + + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(redirect_uris_.size()); + for (int i = 0, n = redirect_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + redirect_uris_.Get(i)); + } + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string application_id = 2 [json_name = "applicationId"]; + if (!this->_internal_application_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); + } + + // string application_name = 3 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); + } + + // string logout_uri = 6 [json_name = "logoutUri"]; + if (!this->_internal_logout_uri().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logout_uri()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateAuthApplicationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateAuthApplicationRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateAuthApplicationRequest::GetClassData() const { return &_class_data_; } + +void UpdateAuthApplicationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void UpdateAuthApplicationRequest::MergeFrom(const UpdateAuthApplicationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateAuthApplicationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + origin_uris_.MergeFrom(from.origin_uris_); + redirect_uris_.MergeFrom(from.redirect_uris_); + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_application_id().empty()) { + _internal_set_application_id(from._internal_application_id()); + } + if (!from._internal_application_name().empty()) { + _internal_set_application_name(from._internal_application_name()); + } + if (!from._internal_logout_uri().empty()) { + _internal_set_logout_uri(from._internal_logout_uri()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateAuthApplicationRequest::CopyFrom(const UpdateAuthApplicationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateAuthApplicationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateAuthApplicationRequest::IsInitialized() const { + return true; +} + +void UpdateAuthApplicationRequest::InternalSwap(UpdateAuthApplicationRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + origin_uris_.InternalSwap(&other->origin_uris_); + redirect_uris_.InternalSwap(&other->redirect_uris_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logout_uri_, lhs_arena, + &other->logout_uri_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateAuthApplicationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, + file_level_metadata_app_2fv1_2fend_5fuser_2eproto[6]); +} + +// =================================================================== + +class UpdateAuthApplicationResponse::_Internal { + public: +}; + +UpdateAuthApplicationResponse::UpdateAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateAuthApplicationResponse) +} +UpdateAuthApplicationResponse::UpdateAuthApplicationResponse(const UpdateAuthApplicationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateAuthApplicationResponse) +} + +inline void UpdateAuthApplicationResponse::SharedCtor() { +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UpdateAuthApplicationResponse::~UpdateAuthApplicationResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateAuthApplicationResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UpdateAuthApplicationResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + application_id_.Destroy(); + application_name_.Destroy(); +} + +void UpdateAuthApplicationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateAuthApplicationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateAuthApplicationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + application_id_.ClearToEmpty(); + application_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateAuthApplicationResponse::_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 application_id = 1 [json_name = "applicationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationResponse.application_id")); + } else + goto handle_unusual; + continue; + // string application_name = 2 [json_name = "applicationName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationResponse.application_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* UpdateAuthApplicationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateAuthApplicationResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string application_id = 1 [json_name = "applicationId"]; + if (!this->_internal_application_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationResponse.application_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_application_id(), target); + } + + // string application_name = 2 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationResponse.application_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_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.app.v1.UpdateAuthApplicationResponse) + return target; +} + +size_t UpdateAuthApplicationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateAuthApplicationResponse) + 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 application_id = 1 [json_name = "applicationId"]; + if (!this->_internal_application_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); + } + + // string application_name = 2 [json_name = "applicationName"]; + if (!this->_internal_application_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateAuthApplicationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateAuthApplicationResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateAuthApplicationResponse::GetClassData() const { return &_class_data_; } + +void UpdateAuthApplicationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void UpdateAuthApplicationResponse::MergeFrom(const UpdateAuthApplicationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateAuthApplicationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_application_id().empty()) { + _internal_set_application_id(from._internal_application_id()); + } + if (!from._internal_application_name().empty()) { + _internal_set_application_name(from._internal_application_name()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateAuthApplicationResponse::CopyFrom(const UpdateAuthApplicationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateAuthApplicationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateAuthApplicationResponse::IsInitialized() const { + return true; +} + +void UpdateAuthApplicationResponse::InternalSwap(UpdateAuthApplicationResponse* 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( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateAuthApplicationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, + file_level_metadata_app_2fv1_2fend_5fuser_2eproto[7]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::v1::IsLegalAcceptedRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::IsLegalAcceptedRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::IsLegalAcceptedRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::IsLegalAcceptedResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::IsLegalAcceptedResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::IsLegalAcceptedResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AcceptLegalRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::AcceptLegalRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AcceptLegalRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AcceptLegalResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::AcceptLegalResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AcceptLegalResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RegisterAuthApplicationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::RegisterAuthApplicationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RegisterAuthApplicationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RegisterAuthApplicationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::RegisterAuthApplicationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RegisterAuthApplicationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateAuthApplicationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateAuthApplicationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateAuthApplicationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateAuthApplicationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateAuthApplicationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateAuthApplicationResponse >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/src/viam/api/app/v1/end_user.pb.h b/src/viam/api/app/v1/end_user.pb.h index 7127f8dba..5027f6e3f 100644 --- a/src/viam/api/app/v1/end_user.pb.h +++ b/src/viam/api/app/v1/end_user.pb.h @@ -60,6 +60,18 @@ extern IsLegalAcceptedRequestDefaultTypeInternal _IsLegalAcceptedRequest_default class IsLegalAcceptedResponse; struct IsLegalAcceptedResponseDefaultTypeInternal; extern IsLegalAcceptedResponseDefaultTypeInternal _IsLegalAcceptedResponse_default_instance_; +class RegisterAuthApplicationRequest; +struct RegisterAuthApplicationRequestDefaultTypeInternal; +extern RegisterAuthApplicationRequestDefaultTypeInternal _RegisterAuthApplicationRequest_default_instance_; +class RegisterAuthApplicationResponse; +struct RegisterAuthApplicationResponseDefaultTypeInternal; +extern RegisterAuthApplicationResponseDefaultTypeInternal _RegisterAuthApplicationResponse_default_instance_; +class UpdateAuthApplicationRequest; +struct UpdateAuthApplicationRequestDefaultTypeInternal; +extern UpdateAuthApplicationRequestDefaultTypeInternal _UpdateAuthApplicationRequest_default_instance_; +class UpdateAuthApplicationResponse; +struct UpdateAuthApplicationResponseDefaultTypeInternal; +extern UpdateAuthApplicationResponseDefaultTypeInternal _UpdateAuthApplicationResponse_default_instance_; } // namespace v1 } // namespace app } // namespace viam @@ -68,6 +80,10 @@ template<> ::viam::app::v1::AcceptLegalRequest* Arena::CreateMaybeMessage<::viam template<> ::viam::app::v1::AcceptLegalResponse* Arena::CreateMaybeMessage<::viam::app::v1::AcceptLegalResponse>(Arena*); template<> ::viam::app::v1::IsLegalAcceptedRequest* Arena::CreateMaybeMessage<::viam::app::v1::IsLegalAcceptedRequest>(Arena*); template<> ::viam::app::v1::IsLegalAcceptedResponse* Arena::CreateMaybeMessage<::viam::app::v1::IsLegalAcceptedResponse>(Arena*); +template<> ::viam::app::v1::RegisterAuthApplicationRequest* Arena::CreateMaybeMessage<::viam::app::v1::RegisterAuthApplicationRequest>(Arena*); +template<> ::viam::app::v1::RegisterAuthApplicationResponse* Arena::CreateMaybeMessage<::viam::app::v1::RegisterAuthApplicationResponse>(Arena*); +template<> ::viam::app::v1::UpdateAuthApplicationRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateAuthApplicationRequest>(Arena*); +template<> ::viam::app::v1::UpdateAuthApplicationResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateAuthApplicationResponse>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { @@ -564,48 +580,1788 @@ class AcceptLegalResponse final : typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; }; +// ------------------------------------------------------------------- + +class RegisterAuthApplicationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegisterAuthApplicationRequest) */ { + public: + inline RegisterAuthApplicationRequest() : RegisterAuthApplicationRequest(nullptr) {} + ~RegisterAuthApplicationRequest() override; + explicit PROTOBUF_CONSTEXPR RegisterAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RegisterAuthApplicationRequest(const RegisterAuthApplicationRequest& from); + RegisterAuthApplicationRequest(RegisterAuthApplicationRequest&& from) noexcept + : RegisterAuthApplicationRequest() { + *this = ::std::move(from); + } + + inline RegisterAuthApplicationRequest& operator=(const RegisterAuthApplicationRequest& from) { + CopyFrom(from); + return *this; + } + inline RegisterAuthApplicationRequest& operator=(RegisterAuthApplicationRequest&& 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 RegisterAuthApplicationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RegisterAuthApplicationRequest* internal_default_instance() { + return reinterpret_cast( + &_RegisterAuthApplicationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(RegisterAuthApplicationRequest& a, RegisterAuthApplicationRequest& b) { + a.Swap(&b); + } + inline void Swap(RegisterAuthApplicationRequest* 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(RegisterAuthApplicationRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RegisterAuthApplicationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RegisterAuthApplicationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RegisterAuthApplicationRequest& 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(RegisterAuthApplicationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RegisterAuthApplicationRequest"; + } + protected: + explicit RegisterAuthApplicationRequest(::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 { + kOriginUrisFieldNumber = 3, + kRedirectUrisFieldNumber = 4, + kApplicationNameFieldNumber = 1, + kOrgIdFieldNumber = 2, + kLogoutUriFieldNumber = 5, + }; + // repeated string origin_uris = 3 [json_name = "originUris"]; + int origin_uris_size() const; + private: + int _internal_origin_uris_size() const; + public: + void clear_origin_uris(); + const std::string& origin_uris(int index) const; + std::string* mutable_origin_uris(int index); + void set_origin_uris(int index, const std::string& value); + void set_origin_uris(int index, std::string&& value); + void set_origin_uris(int index, const char* value); + void set_origin_uris(int index, const char* value, size_t size); + std::string* add_origin_uris(); + void add_origin_uris(const std::string& value); + void add_origin_uris(std::string&& value); + void add_origin_uris(const char* value); + void add_origin_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& origin_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_origin_uris(); + private: + const std::string& _internal_origin_uris(int index) const; + std::string* _internal_add_origin_uris(); + public: + + // repeated string redirect_uris = 4 [json_name = "redirectUris"]; + int redirect_uris_size() const; + private: + int _internal_redirect_uris_size() const; + public: + void clear_redirect_uris(); + const std::string& redirect_uris(int index) const; + std::string* mutable_redirect_uris(int index); + void set_redirect_uris(int index, const std::string& value); + void set_redirect_uris(int index, std::string&& value); + void set_redirect_uris(int index, const char* value); + void set_redirect_uris(int index, const char* value, size_t size); + std::string* add_redirect_uris(); + void add_redirect_uris(const std::string& value); + void add_redirect_uris(std::string&& value); + void add_redirect_uris(const char* value); + void add_redirect_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& redirect_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_redirect_uris(); + private: + const std::string& _internal_redirect_uris(int index) const; + std::string* _internal_add_redirect_uris(); + public: + + // string application_name = 1 [json_name = "applicationName"]; + void clear_application_name(); + const std::string& application_name() const; + template + void set_application_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_name(); + PROTOBUF_NODISCARD std::string* release_application_name(); + void set_allocated_application_name(std::string* application_name); + private: + const std::string& _internal_application_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); + std::string* _internal_mutable_application_name(); + public: + + // string org_id = 2 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string logout_uri = 5 [json_name = "logoutUri"]; + void clear_logout_uri(); + const std::string& logout_uri() const; + template + void set_logout_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_logout_uri(); + PROTOBUF_NODISCARD std::string* release_logout_uri(); + void set_allocated_logout_uri(std::string* logout_uri); + private: + const std::string& _internal_logout_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri(const std::string& value); + std::string* _internal_mutable_logout_uri(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RegisterAuthApplicationRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField origin_uris_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField redirect_uris_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logout_uri_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; +}; +// ------------------------------------------------------------------- + +class RegisterAuthApplicationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegisterAuthApplicationResponse) */ { + public: + inline RegisterAuthApplicationResponse() : RegisterAuthApplicationResponse(nullptr) {} + ~RegisterAuthApplicationResponse() override; + explicit PROTOBUF_CONSTEXPR RegisterAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RegisterAuthApplicationResponse(const RegisterAuthApplicationResponse& from); + RegisterAuthApplicationResponse(RegisterAuthApplicationResponse&& from) noexcept + : RegisterAuthApplicationResponse() { + *this = ::std::move(from); + } + + inline RegisterAuthApplicationResponse& operator=(const RegisterAuthApplicationResponse& from) { + CopyFrom(from); + return *this; + } + inline RegisterAuthApplicationResponse& operator=(RegisterAuthApplicationResponse&& 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 RegisterAuthApplicationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RegisterAuthApplicationResponse* internal_default_instance() { + return reinterpret_cast( + &_RegisterAuthApplicationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(RegisterAuthApplicationResponse& a, RegisterAuthApplicationResponse& b) { + a.Swap(&b); + } + inline void Swap(RegisterAuthApplicationResponse* 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(RegisterAuthApplicationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RegisterAuthApplicationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RegisterAuthApplicationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RegisterAuthApplicationResponse& 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(RegisterAuthApplicationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RegisterAuthApplicationResponse"; + } + protected: + explicit RegisterAuthApplicationResponse(::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 { + kApplicationIdFieldNumber = 1, + kApplicationNameFieldNumber = 2, + kSecretFieldNumber = 3, + }; + // string application_id = 1 [json_name = "applicationId"]; + void clear_application_id(); + const std::string& application_id() const; + template + void set_application_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_id(); + PROTOBUF_NODISCARD std::string* release_application_id(); + void set_allocated_application_id(std::string* application_id); + private: + const std::string& _internal_application_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); + std::string* _internal_mutable_application_id(); + public: + + // string application_name = 2 [json_name = "applicationName"]; + void clear_application_name(); + const std::string& application_name() const; + template + void set_application_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_name(); + PROTOBUF_NODISCARD std::string* release_application_name(); + void set_allocated_application_name(std::string* application_name); + private: + const std::string& _internal_application_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); + std::string* _internal_mutable_application_name(); + public: + + // string secret = 3 [json_name = "secret"]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); + private: + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RegisterAuthApplicationResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateAuthApplicationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateAuthApplicationRequest) */ { + public: + inline UpdateAuthApplicationRequest() : UpdateAuthApplicationRequest(nullptr) {} + ~UpdateAuthApplicationRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateAuthApplicationRequest(const UpdateAuthApplicationRequest& from); + UpdateAuthApplicationRequest(UpdateAuthApplicationRequest&& from) noexcept + : UpdateAuthApplicationRequest() { + *this = ::std::move(from); + } + + inline UpdateAuthApplicationRequest& operator=(const UpdateAuthApplicationRequest& from) { + CopyFrom(from); + return *this; + } + inline UpdateAuthApplicationRequest& operator=(UpdateAuthApplicationRequest&& 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 UpdateAuthApplicationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateAuthApplicationRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateAuthApplicationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(UpdateAuthApplicationRequest& a, UpdateAuthApplicationRequest& b) { + a.Swap(&b); + } + inline void Swap(UpdateAuthApplicationRequest* 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(UpdateAuthApplicationRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateAuthApplicationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateAuthApplicationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateAuthApplicationRequest& 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(UpdateAuthApplicationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateAuthApplicationRequest"; + } + protected: + explicit UpdateAuthApplicationRequest(::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 { + kOriginUrisFieldNumber = 4, + kRedirectUrisFieldNumber = 5, + kOrgIdFieldNumber = 1, + kApplicationIdFieldNumber = 2, + kApplicationNameFieldNumber = 3, + kLogoutUriFieldNumber = 6, + }; + // repeated string origin_uris = 4 [json_name = "originUris"]; + int origin_uris_size() const; + private: + int _internal_origin_uris_size() const; + public: + void clear_origin_uris(); + const std::string& origin_uris(int index) const; + std::string* mutable_origin_uris(int index); + void set_origin_uris(int index, const std::string& value); + void set_origin_uris(int index, std::string&& value); + void set_origin_uris(int index, const char* value); + void set_origin_uris(int index, const char* value, size_t size); + std::string* add_origin_uris(); + void add_origin_uris(const std::string& value); + void add_origin_uris(std::string&& value); + void add_origin_uris(const char* value); + void add_origin_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& origin_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_origin_uris(); + private: + const std::string& _internal_origin_uris(int index) const; + std::string* _internal_add_origin_uris(); + public: + + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + int redirect_uris_size() const; + private: + int _internal_redirect_uris_size() const; + public: + void clear_redirect_uris(); + const std::string& redirect_uris(int index) const; + std::string* mutable_redirect_uris(int index); + void set_redirect_uris(int index, const std::string& value); + void set_redirect_uris(int index, std::string&& value); + void set_redirect_uris(int index, const char* value); + void set_redirect_uris(int index, const char* value, size_t size); + std::string* add_redirect_uris(); + void add_redirect_uris(const std::string& value); + void add_redirect_uris(std::string&& value); + void add_redirect_uris(const char* value); + void add_redirect_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& redirect_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_redirect_uris(); + private: + const std::string& _internal_redirect_uris(int index) const; + std::string* _internal_add_redirect_uris(); + public: + + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string application_id = 2 [json_name = "applicationId"]; + void clear_application_id(); + const std::string& application_id() const; + template + void set_application_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_id(); + PROTOBUF_NODISCARD std::string* release_application_id(); + void set_allocated_application_id(std::string* application_id); + private: + const std::string& _internal_application_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); + std::string* _internal_mutable_application_id(); + public: + + // string application_name = 3 [json_name = "applicationName"]; + void clear_application_name(); + const std::string& application_name() const; + template + void set_application_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_name(); + PROTOBUF_NODISCARD std::string* release_application_name(); + void set_allocated_application_name(std::string* application_name); + private: + const std::string& _internal_application_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); + std::string* _internal_mutable_application_name(); + public: + + // string logout_uri = 6 [json_name = "logoutUri"]; + void clear_logout_uri(); + const std::string& logout_uri() const; + template + void set_logout_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_logout_uri(); + PROTOBUF_NODISCARD std::string* release_logout_uri(); + void set_allocated_logout_uri(std::string* logout_uri); + private: + const std::string& _internal_logout_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri(const std::string& value); + std::string* _internal_mutable_logout_uri(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateAuthApplicationRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField origin_uris_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField redirect_uris_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logout_uri_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateAuthApplicationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateAuthApplicationResponse) */ { + public: + inline UpdateAuthApplicationResponse() : UpdateAuthApplicationResponse(nullptr) {} + ~UpdateAuthApplicationResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateAuthApplicationResponse(const UpdateAuthApplicationResponse& from); + UpdateAuthApplicationResponse(UpdateAuthApplicationResponse&& from) noexcept + : UpdateAuthApplicationResponse() { + *this = ::std::move(from); + } + + inline UpdateAuthApplicationResponse& operator=(const UpdateAuthApplicationResponse& from) { + CopyFrom(from); + return *this; + } + inline UpdateAuthApplicationResponse& operator=(UpdateAuthApplicationResponse&& 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 UpdateAuthApplicationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateAuthApplicationResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateAuthApplicationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(UpdateAuthApplicationResponse& a, UpdateAuthApplicationResponse& b) { + a.Swap(&b); + } + inline void Swap(UpdateAuthApplicationResponse* 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(UpdateAuthApplicationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateAuthApplicationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateAuthApplicationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateAuthApplicationResponse& 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(UpdateAuthApplicationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateAuthApplicationResponse"; + } + protected: + explicit UpdateAuthApplicationResponse(::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 { + kApplicationIdFieldNumber = 1, + kApplicationNameFieldNumber = 2, + }; + // string application_id = 1 [json_name = "applicationId"]; + void clear_application_id(); + const std::string& application_id() const; + template + void set_application_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_id(); + PROTOBUF_NODISCARD std::string* release_application_id(); + void set_allocated_application_id(std::string* application_id); + private: + const std::string& _internal_application_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); + std::string* _internal_mutable_application_id(); + public: + + // string application_name = 2 [json_name = "applicationName"]; + void clear_application_name(); + const std::string& application_name() const; + template + void set_application_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_name(); + PROTOBUF_NODISCARD std::string* release_application_name(); + void set_allocated_application_name(std::string* application_name); + private: + const std::string& _internal_application_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); + std::string* _internal_mutable_application_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateAuthApplicationResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; +}; // =================================================================== -// =================================================================== +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// IsLegalAcceptedRequest + +// ------------------------------------------------------------------- + +// IsLegalAcceptedResponse + +// bool accepted_legal = 1 [json_name = "acceptedLegal"]; +inline void IsLegalAcceptedResponse::clear_accepted_legal() { + accepted_legal_ = false; +} +inline bool IsLegalAcceptedResponse::_internal_accepted_legal() const { + return accepted_legal_; +} +inline bool IsLegalAcceptedResponse::accepted_legal() const { + // @@protoc_insertion_point(field_get:viam.app.v1.IsLegalAcceptedResponse.accepted_legal) + return _internal_accepted_legal(); +} +inline void IsLegalAcceptedResponse::_internal_set_accepted_legal(bool value) { + + accepted_legal_ = value; +} +inline void IsLegalAcceptedResponse::set_accepted_legal(bool value) { + _internal_set_accepted_legal(value); + // @@protoc_insertion_point(field_set:viam.app.v1.IsLegalAcceptedResponse.accepted_legal) +} + +// ------------------------------------------------------------------- + +// AcceptLegalRequest + +// ------------------------------------------------------------------- + +// AcceptLegalResponse + +// ------------------------------------------------------------------- + +// RegisterAuthApplicationRequest + +// string application_name = 1 [json_name = "applicationName"]; +inline void RegisterAuthApplicationRequest::clear_application_name() { + application_name_.ClearToEmpty(); +} +inline const std::string& RegisterAuthApplicationRequest::application_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.application_name) + return _internal_application_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationRequest::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.application_name) +} +inline std::string* RegisterAuthApplicationRequest::mutable_application_name() { + std::string* _s = _internal_mutable_application_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.application_name) + return _s; +} +inline const std::string& RegisterAuthApplicationRequest::_internal_application_name() const { + return application_name_.Get(); +} +inline void RegisterAuthApplicationRequest::_internal_set_application_name(const std::string& value) { + + application_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationRequest::_internal_mutable_application_name() { + + return application_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationRequest::release_application_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationRequest.application_name) + return application_name_.Release(); +} +inline void RegisterAuthApplicationRequest::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationRequest.application_name) +} + +// string org_id = 2 [json_name = "orgId"]; +inline void RegisterAuthApplicationRequest::clear_org_id() { + org_id_.ClearToEmpty(); +} +inline const std::string& RegisterAuthApplicationRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.org_id) +} +inline std::string* RegisterAuthApplicationRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.org_id) + return _s; +} +inline const std::string& RegisterAuthApplicationRequest::_internal_org_id() const { + return org_id_.Get(); +} +inline void RegisterAuthApplicationRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationRequest.org_id) + return org_id_.Release(); +} +inline void RegisterAuthApplicationRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationRequest.org_id) +} + +// repeated string origin_uris = 3 [json_name = "originUris"]; +inline int RegisterAuthApplicationRequest::_internal_origin_uris_size() const { + return origin_uris_.size(); +} +inline int RegisterAuthApplicationRequest::origin_uris_size() const { + return _internal_origin_uris_size(); +} +inline void RegisterAuthApplicationRequest::clear_origin_uris() { + origin_uris_.Clear(); +} +inline std::string* RegisterAuthApplicationRequest::add_origin_uris() { + std::string* _s = _internal_add_origin_uris(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) + return _s; +} +inline const std::string& RegisterAuthApplicationRequest::_internal_origin_uris(int index) const { + return origin_uris_.Get(index); +} +inline const std::string& RegisterAuthApplicationRequest::origin_uris(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) + return _internal_origin_uris(index); +} +inline std::string* RegisterAuthApplicationRequest::mutable_origin_uris(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) + return origin_uris_.Mutable(index); +} +inline void RegisterAuthApplicationRequest::set_origin_uris(int index, const std::string& value) { + origin_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline void RegisterAuthApplicationRequest::set_origin_uris(int index, std::string&& value) { + origin_uris_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline void RegisterAuthApplicationRequest::set_origin_uris(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline void RegisterAuthApplicationRequest::set_origin_uris(int index, const char* value, size_t size) { + origin_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline std::string* RegisterAuthApplicationRequest::_internal_add_origin_uris() { + return origin_uris_.Add(); +} +inline void RegisterAuthApplicationRequest::add_origin_uris(const std::string& value) { + origin_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline void RegisterAuthApplicationRequest::add_origin_uris(std::string&& value) { + origin_uris_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline void RegisterAuthApplicationRequest::add_origin_uris(const char* value) { + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline void RegisterAuthApplicationRequest::add_origin_uris(const char* value, size_t size) { + origin_uris_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +RegisterAuthApplicationRequest::origin_uris() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) + return origin_uris_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +RegisterAuthApplicationRequest::mutable_origin_uris() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) + return &origin_uris_; +} -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// IsLegalAcceptedRequest +// repeated string redirect_uris = 4 [json_name = "redirectUris"]; +inline int RegisterAuthApplicationRequest::_internal_redirect_uris_size() const { + return redirect_uris_.size(); +} +inline int RegisterAuthApplicationRequest::redirect_uris_size() const { + return _internal_redirect_uris_size(); +} +inline void RegisterAuthApplicationRequest::clear_redirect_uris() { + redirect_uris_.Clear(); +} +inline std::string* RegisterAuthApplicationRequest::add_redirect_uris() { + std::string* _s = _internal_add_redirect_uris(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) + return _s; +} +inline const std::string& RegisterAuthApplicationRequest::_internal_redirect_uris(int index) const { + return redirect_uris_.Get(index); +} +inline const std::string& RegisterAuthApplicationRequest::redirect_uris(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) + return _internal_redirect_uris(index); +} +inline std::string* RegisterAuthApplicationRequest::mutable_redirect_uris(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) + return redirect_uris_.Mutable(index); +} +inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, const std::string& value) { + redirect_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, std::string&& value) { + redirect_uris_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, const char* value, size_t size) { + redirect_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline std::string* RegisterAuthApplicationRequest::_internal_add_redirect_uris() { + return redirect_uris_.Add(); +} +inline void RegisterAuthApplicationRequest::add_redirect_uris(const std::string& value) { + redirect_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline void RegisterAuthApplicationRequest::add_redirect_uris(std::string&& value) { + redirect_uris_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline void RegisterAuthApplicationRequest::add_redirect_uris(const char* value) { + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline void RegisterAuthApplicationRequest::add_redirect_uris(const char* value, size_t size) { + redirect_uris_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +RegisterAuthApplicationRequest::redirect_uris() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) + return redirect_uris_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +RegisterAuthApplicationRequest::mutable_redirect_uris() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) + return &redirect_uris_; +} + +// string logout_uri = 5 [json_name = "logoutUri"]; +inline void RegisterAuthApplicationRequest::clear_logout_uri() { + logout_uri_.ClearToEmpty(); +} +inline const std::string& RegisterAuthApplicationRequest::logout_uri() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) + return _internal_logout_uri(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationRequest::set_logout_uri(ArgT0&& arg0, ArgT... args) { + + logout_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) +} +inline std::string* RegisterAuthApplicationRequest::mutable_logout_uri() { + std::string* _s = _internal_mutable_logout_uri(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) + return _s; +} +inline const std::string& RegisterAuthApplicationRequest::_internal_logout_uri() const { + return logout_uri_.Get(); +} +inline void RegisterAuthApplicationRequest::_internal_set_logout_uri(const std::string& value) { + + logout_uri_.Set(value, GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationRequest::_internal_mutable_logout_uri() { + + return logout_uri_.Mutable(GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationRequest::release_logout_uri() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) + return logout_uri_.Release(); +} +inline void RegisterAuthApplicationRequest::set_allocated_logout_uri(std::string* logout_uri) { + if (logout_uri != nullptr) { + + } else { + + } + logout_uri_.SetAllocated(logout_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logout_uri_.IsDefault()) { + logout_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) +} // ------------------------------------------------------------------- -// IsLegalAcceptedResponse +// RegisterAuthApplicationResponse -// bool accepted_legal = 1 [json_name = "acceptedLegal"]; -inline void IsLegalAcceptedResponse::clear_accepted_legal() { - accepted_legal_ = false; +// string application_id = 1 [json_name = "applicationId"]; +inline void RegisterAuthApplicationResponse::clear_application_id() { + application_id_.ClearToEmpty(); } -inline bool IsLegalAcceptedResponse::_internal_accepted_legal() const { - return accepted_legal_; +inline const std::string& RegisterAuthApplicationResponse::application_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationResponse.application_id) + return _internal_application_id(); } -inline bool IsLegalAcceptedResponse::accepted_legal() const { - // @@protoc_insertion_point(field_get:viam.app.v1.IsLegalAcceptedResponse.accepted_legal) - return _internal_accepted_legal(); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationResponse::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationResponse.application_id) } -inline void IsLegalAcceptedResponse::_internal_set_accepted_legal(bool value) { +inline std::string* RegisterAuthApplicationResponse::mutable_application_id() { + std::string* _s = _internal_mutable_application_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationResponse.application_id) + return _s; +} +inline const std::string& RegisterAuthApplicationResponse::_internal_application_id() const { + return application_id_.Get(); +} +inline void RegisterAuthApplicationResponse::_internal_set_application_id(const std::string& value) { - accepted_legal_ = value; + application_id_.Set(value, GetArenaForAllocation()); } -inline void IsLegalAcceptedResponse::set_accepted_legal(bool value) { - _internal_set_accepted_legal(value); - // @@protoc_insertion_point(field_set:viam.app.v1.IsLegalAcceptedResponse.accepted_legal) +inline std::string* RegisterAuthApplicationResponse::_internal_mutable_application_id() { + + return application_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationResponse::release_application_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationResponse.application_id) + return application_id_.Release(); +} +inline void RegisterAuthApplicationResponse::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationResponse.application_id) +} + +// string application_name = 2 [json_name = "applicationName"]; +inline void RegisterAuthApplicationResponse::clear_application_name() { + application_name_.ClearToEmpty(); +} +inline const std::string& RegisterAuthApplicationResponse::application_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationResponse.application_name) + return _internal_application_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationResponse::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationResponse.application_name) +} +inline std::string* RegisterAuthApplicationResponse::mutable_application_name() { + std::string* _s = _internal_mutable_application_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationResponse.application_name) + return _s; +} +inline const std::string& RegisterAuthApplicationResponse::_internal_application_name() const { + return application_name_.Get(); +} +inline void RegisterAuthApplicationResponse::_internal_set_application_name(const std::string& value) { + + application_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationResponse::_internal_mutable_application_name() { + + return application_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationResponse::release_application_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationResponse.application_name) + return application_name_.Release(); +} +inline void RegisterAuthApplicationResponse::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationResponse.application_name) +} + +// string secret = 3 [json_name = "secret"]; +inline void RegisterAuthApplicationResponse::clear_secret() { + secret_.ClearToEmpty(); +} +inline const std::string& RegisterAuthApplicationResponse::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationResponse.secret) + return _internal_secret(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationResponse::set_secret(ArgT0&& arg0, ArgT... args) { + + secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationResponse.secret) +} +inline std::string* RegisterAuthApplicationResponse::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationResponse.secret) + return _s; +} +inline const std::string& RegisterAuthApplicationResponse::_internal_secret() const { + return secret_.Get(); +} +inline void RegisterAuthApplicationResponse::_internal_set_secret(const std::string& value) { + + secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationResponse::_internal_mutable_secret() { + + return secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* RegisterAuthApplicationResponse::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationResponse.secret) + return secret_.Release(); +} +inline void RegisterAuthApplicationResponse::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_.IsDefault()) { + secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationResponse.secret) } // ------------------------------------------------------------------- -// AcceptLegalRequest +// UpdateAuthApplicationRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void UpdateAuthApplicationRequest::clear_org_id() { + org_id_.ClearToEmpty(); +} +inline const std::string& UpdateAuthApplicationRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.org_id) +} +inline std::string* UpdateAuthApplicationRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.org_id) + return _s; +} +inline const std::string& UpdateAuthApplicationRequest::_internal_org_id() const { + return org_id_.Get(); +} +inline void UpdateAuthApplicationRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.org_id) + return org_id_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.org_id) +} + +// string application_id = 2 [json_name = "applicationId"]; +inline void UpdateAuthApplicationRequest::clear_application_id() { + application_id_.ClearToEmpty(); +} +inline const std::string& UpdateAuthApplicationRequest::application_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.application_id) + return _internal_application_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.application_id) +} +inline std::string* UpdateAuthApplicationRequest::mutable_application_id() { + std::string* _s = _internal_mutable_application_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.application_id) + return _s; +} +inline const std::string& UpdateAuthApplicationRequest::_internal_application_id() const { + return application_id_.Get(); +} +inline void UpdateAuthApplicationRequest::_internal_set_application_id(const std::string& value) { + + application_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::_internal_mutable_application_id() { + + return application_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::release_application_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.application_id) + return application_id_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.application_id) +} + +// string application_name = 3 [json_name = "applicationName"]; +inline void UpdateAuthApplicationRequest::clear_application_name() { + application_name_.ClearToEmpty(); +} +inline const std::string& UpdateAuthApplicationRequest::application_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.application_name) + return _internal_application_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.application_name) +} +inline std::string* UpdateAuthApplicationRequest::mutable_application_name() { + std::string* _s = _internal_mutable_application_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.application_name) + return _s; +} +inline const std::string& UpdateAuthApplicationRequest::_internal_application_name() const { + return application_name_.Get(); +} +inline void UpdateAuthApplicationRequest::_internal_set_application_name(const std::string& value) { + + application_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::_internal_mutable_application_name() { + + return application_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::release_application_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.application_name) + return application_name_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.application_name) +} + +// repeated string origin_uris = 4 [json_name = "originUris"]; +inline int UpdateAuthApplicationRequest::_internal_origin_uris_size() const { + return origin_uris_.size(); +} +inline int UpdateAuthApplicationRequest::origin_uris_size() const { + return _internal_origin_uris_size(); +} +inline void UpdateAuthApplicationRequest::clear_origin_uris() { + origin_uris_.Clear(); +} +inline std::string* UpdateAuthApplicationRequest::add_origin_uris() { + std::string* _s = _internal_add_origin_uris(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) + return _s; +} +inline const std::string& UpdateAuthApplicationRequest::_internal_origin_uris(int index) const { + return origin_uris_.Get(index); +} +inline const std::string& UpdateAuthApplicationRequest::origin_uris(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) + return _internal_origin_uris(index); +} +inline std::string* UpdateAuthApplicationRequest::mutable_origin_uris(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) + return origin_uris_.Mutable(index); +} +inline void UpdateAuthApplicationRequest::set_origin_uris(int index, const std::string& value) { + origin_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline void UpdateAuthApplicationRequest::set_origin_uris(int index, std::string&& value) { + origin_uris_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline void UpdateAuthApplicationRequest::set_origin_uris(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline void UpdateAuthApplicationRequest::set_origin_uris(int index, const char* value, size_t size) { + origin_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline std::string* UpdateAuthApplicationRequest::_internal_add_origin_uris() { + return origin_uris_.Add(); +} +inline void UpdateAuthApplicationRequest::add_origin_uris(const std::string& value) { + origin_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline void UpdateAuthApplicationRequest::add_origin_uris(std::string&& value) { + origin_uris_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline void UpdateAuthApplicationRequest::add_origin_uris(const char* value) { + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline void UpdateAuthApplicationRequest::add_origin_uris(const char* value, size_t size) { + origin_uris_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +UpdateAuthApplicationRequest::origin_uris() const { + // @@protoc_insertion_point(field_list:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) + return origin_uris_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +UpdateAuthApplicationRequest::mutable_origin_uris() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) + return &origin_uris_; +} + +// repeated string redirect_uris = 5 [json_name = "redirectUris"]; +inline int UpdateAuthApplicationRequest::_internal_redirect_uris_size() const { + return redirect_uris_.size(); +} +inline int UpdateAuthApplicationRequest::redirect_uris_size() const { + return _internal_redirect_uris_size(); +} +inline void UpdateAuthApplicationRequest::clear_redirect_uris() { + redirect_uris_.Clear(); +} +inline std::string* UpdateAuthApplicationRequest::add_redirect_uris() { + std::string* _s = _internal_add_redirect_uris(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) + return _s; +} +inline const std::string& UpdateAuthApplicationRequest::_internal_redirect_uris(int index) const { + return redirect_uris_.Get(index); +} +inline const std::string& UpdateAuthApplicationRequest::redirect_uris(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) + return _internal_redirect_uris(index); +} +inline std::string* UpdateAuthApplicationRequest::mutable_redirect_uris(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) + return redirect_uris_.Mutable(index); +} +inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, const std::string& value) { + redirect_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, std::string&& value) { + redirect_uris_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, const char* value, size_t size) { + redirect_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline std::string* UpdateAuthApplicationRequest::_internal_add_redirect_uris() { + return redirect_uris_.Add(); +} +inline void UpdateAuthApplicationRequest::add_redirect_uris(const std::string& value) { + redirect_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline void UpdateAuthApplicationRequest::add_redirect_uris(std::string&& value) { + redirect_uris_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline void UpdateAuthApplicationRequest::add_redirect_uris(const char* value) { + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline void UpdateAuthApplicationRequest::add_redirect_uris(const char* value, size_t size) { + redirect_uris_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +UpdateAuthApplicationRequest::redirect_uris() const { + // @@protoc_insertion_point(field_list:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) + return redirect_uris_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +UpdateAuthApplicationRequest::mutable_redirect_uris() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) + return &redirect_uris_; +} + +// string logout_uri = 6 [json_name = "logoutUri"]; +inline void UpdateAuthApplicationRequest::clear_logout_uri() { + logout_uri_.ClearToEmpty(); +} +inline const std::string& UpdateAuthApplicationRequest::logout_uri() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) + return _internal_logout_uri(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_logout_uri(ArgT0&& arg0, ArgT... args) { + + logout_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) +} +inline std::string* UpdateAuthApplicationRequest::mutable_logout_uri() { + std::string* _s = _internal_mutable_logout_uri(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) + return _s; +} +inline const std::string& UpdateAuthApplicationRequest::_internal_logout_uri() const { + return logout_uri_.Get(); +} +inline void UpdateAuthApplicationRequest::_internal_set_logout_uri(const std::string& value) { + + logout_uri_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::_internal_mutable_logout_uri() { + + return logout_uri_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationRequest::release_logout_uri() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) + return logout_uri_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_logout_uri(std::string* logout_uri) { + if (logout_uri != nullptr) { + + } else { + + } + logout_uri_.SetAllocated(logout_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logout_uri_.IsDefault()) { + logout_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) +} // ------------------------------------------------------------------- -// AcceptLegalResponse +// UpdateAuthApplicationResponse + +// string application_id = 1 [json_name = "applicationId"]; +inline void UpdateAuthApplicationResponse::clear_application_id() { + application_id_.ClearToEmpty(); +} +inline const std::string& UpdateAuthApplicationResponse::application_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationResponse.application_id) + return _internal_application_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationResponse::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationResponse.application_id) +} +inline std::string* UpdateAuthApplicationResponse::mutable_application_id() { + std::string* _s = _internal_mutable_application_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationResponse.application_id) + return _s; +} +inline const std::string& UpdateAuthApplicationResponse::_internal_application_id() const { + return application_id_.Get(); +} +inline void UpdateAuthApplicationResponse::_internal_set_application_id(const std::string& value) { + + application_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationResponse::_internal_mutable_application_id() { + + return application_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationResponse::release_application_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationResponse.application_id) + return application_id_.Release(); +} +inline void UpdateAuthApplicationResponse::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationResponse.application_id) +} + +// string application_name = 2 [json_name = "applicationName"]; +inline void UpdateAuthApplicationResponse::clear_application_name() { + application_name_.ClearToEmpty(); +} +inline const std::string& UpdateAuthApplicationResponse::application_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationResponse.application_name) + return _internal_application_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationResponse::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationResponse.application_name) +} +inline std::string* UpdateAuthApplicationResponse::mutable_application_name() { + std::string* _s = _internal_mutable_application_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationResponse.application_name) + return _s; +} +inline const std::string& UpdateAuthApplicationResponse::_internal_application_name() const { + return application_name_.Get(); +} +inline void UpdateAuthApplicationResponse::_internal_set_application_name(const std::string& value) { + + application_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationResponse::_internal_mutable_application_name() { + + return application_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateAuthApplicationResponse::release_application_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationResponse.application_name) + return application_name_.Release(); +} +inline void UpdateAuthApplicationResponse::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationResponse.application_name) +} #ifdef __GNUC__ #pragma GCC diagnostic pop @@ -616,6 +2372,14 @@ inline void IsLegalAcceptedResponse::set_accepted_legal(bool value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/app/v1/robot.pb.cc b/src/viam/api/app/v1/robot.pb.cc index 7c0db5e30..07e05237d 100644 --- a/src/viam/api/app/v1/robot.pb.cc +++ b/src/viam/api/app/v1/robot.pb.cc @@ -31,6 +31,7 @@ PROTOBUF_CONSTEXPR RobotConfig::RobotConfig( , services_() , modules_() , packages_() + , overwrite_fragment_status_() , cloud_(nullptr) , network_(nullptr) , auth_(nullptr) @@ -82,6 +83,7 @@ PROTOBUF_CONSTEXPR CloudConfig::CloudConfig( , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , primary_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , machine_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , signaling_insecure_(false){} struct CloudConfigDefaultTypeInternal { PROTOBUF_CONSTEXPR CloudConfigDefaultTypeInternal() @@ -630,6 +632,7 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, modules_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, disable_partial_start_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, packages_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, overwrite_fragment_status_), ~0u, ~0u, ~0u, @@ -641,6 +644,7 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ ~0u, 3, ~0u, + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, _internal_metadata_), ~0u, // no _extensions_ @@ -673,6 +677,7 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_secrets_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, primary_org_id_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, machine_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _internal_metadata_), ~0u, // no _extensions_ @@ -1031,46 +1036,46 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, status_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 17, -1, sizeof(::viam::app::v1::RobotConfig)}, - { 28, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, - { 36, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, - { 43, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, - { 60, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, - { 76, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, - { 84, 92, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, - { 94, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, - { 109, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, - { 123, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, - { 134, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, - { 141, 150, -1, sizeof(::viam::app::v1::AuthConfig)}, - { 153, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, - { 160, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, - { 167, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, - { 175, -1, -1, sizeof(::viam::app::v1::Frame)}, - { 185, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, - { 192, -1, -1, sizeof(::viam::app::v1::Translation)}, - { 201, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, - { 207, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, - { 217, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, - { 227, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, - { 236, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, - { 246, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, - { 256, -1, -1, sizeof(::viam::app::v1::Orientation)}, - { 269, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, - { 285, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, - { 293, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, - { 301, 313, -1, sizeof(::viam::app::v1::AgentInfo)}, - { 319, 327, -1, sizeof(::viam::app::v1::ConfigRequest)}, - { 329, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, - { 336, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, - { 343, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, - { 352, -1, -1, sizeof(::viam::app::v1::LogRequest)}, - { 360, -1, -1, sizeof(::viam::app::v1::LogResponse)}, - { 366, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, - { 373, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, - { 382, 390, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, - { 392, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, - { 405, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, + { 0, 18, -1, sizeof(::viam::app::v1::RobotConfig)}, + { 30, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, + { 38, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, + { 45, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, + { 63, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, + { 79, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, + { 87, 95, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, + { 97, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, + { 112, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, + { 126, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, + { 137, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, + { 144, 153, -1, sizeof(::viam::app::v1::AuthConfig)}, + { 156, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, + { 163, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, + { 170, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, + { 178, -1, -1, sizeof(::viam::app::v1::Frame)}, + { 188, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, + { 195, -1, -1, sizeof(::viam::app::v1::Translation)}, + { 204, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, + { 210, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, + { 220, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, + { 230, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, + { 239, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, + { 249, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, + { 259, -1, -1, sizeof(::viam::app::v1::Orientation)}, + { 272, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, + { 288, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, + { 296, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, + { 304, 316, -1, sizeof(::viam::app::v1::AgentInfo)}, + { 322, 330, -1, sizeof(::viam::app::v1::ConfigRequest)}, + { 332, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, + { 339, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, + { 346, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, + { 355, -1, -1, sizeof(::viam::app::v1::LogRequest)}, + { 363, -1, -1, sizeof(::viam::app::v1::LogResponse)}, + { 369, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, + { 376, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, + { 385, 393, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, + { 395, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, + { 408, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1120,7 +1125,7 @@ const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION "\n\022app/v1/robot.proto\022\013viam.app.v1\032\026commo" "n/v1/common.proto\032\036google/protobuf/durat" "ion.proto\032\034google/protobuf/struct.proto\032" - "\026tagger/v1/tagger.proto\"\211\005\n\013RobotConfig\022" + "\026tagger/v1/tagger.proto\"\347\005\n\013RobotConfig\022" ".\n\005cloud\030\001 \001(\0132\030.viam.app.v1.CloudConfig" "R\005cloud\0223\n\007remotes\030\002 \003(\0132\031.viam.app.v1.R" "emoteConfigR\007remotes\022<\n\ncomponents\030\003 \003(\013" @@ -1135,166 +1140,169 @@ const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION ".v1.ModuleConfigR\007modules\0227\n\025disable_par" "tial_start\030\n \001(\010H\003R\023disablePartialStart\210" "\001\001\0226\n\010packages\030\013 \003(\0132\032.viam.app.v1.Packa" - "geConfigR\010packagesB\n\n\010_networkB\007\n\005_authB" - "\010\n\006_debugB\030\n\026_disable_partial_start\"8\n\016L" - "ocationSecret\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006secret\030" - "\002 \001(\tR\006secret\"+\n\023AppValidationStatus\022\024\n\005" - "error\030\001 \001(\tR\005error\"\237\003\n\013CloudConfig\022\016\n\002id" - "\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001(\tR\004fqdn\022\035\n\nlocal_" - "fqdn\030\003 \001(\tR\tlocalFqdn\022\035\n\nmanaged_by\030\004 \001(" - "\tR\tmanagedBy\022+\n\021signaling_address\030\005 \001(\tR" - "\020signalingAddress\022-\n\022signaling_insecure\030" - "\006 \001(\010R\021signalingInsecure\022+\n\017location_sec" - "ret\030\007 \001(\tB\002\030\001R\016locationSecret\022\026\n\006secret\030" - "\010 \001(\tR\006secret\022F\n\020location_secrets\030\t \003(\0132" - "\033.viam.app.v1.LocationSecretR\017locationSe" - "crets\022$\n\016primary_org_id\030\n \001(\tR\014primaryOr" - "gId\022\037\n\013location_id\030\013 \001(\tR\nlocationId\"\273\003\n" - "\017ComponentConfig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\t" - "namespace\030\002 \001(\tR\tnamespace\022\022\n\004type\030\003 \001(\t" - "R\004type\022\024\n\005model\030\004 \001(\tR\005model\022(\n\005frame\030\005 " - "\001(\0132\022.viam.app.v1.FrameR\005frame\022\035\n\ndepend" - "s_on\030\006 \003(\tR\tdependsOn\022l\n\017service_configs" - "\030\007 \003(\0132\'.viam.app.v1.ResourceLevelServic" - "eConfigB\032\232\204\236\003\025json:\"service_config\"R\016ser" - "viceConfigs\0227\n\nattributes\030\010 \001(\0132\027.google" - ".protobuf.StructR\nattributes\022\020\n\003api\030\t \001(" - "\tR\003api\022J\n\021log_configuration\030\n \001(\0132\035.viam" - ".app.v1.LogConfigurationR\020logConfigurati" - "on\"i\n\032ResourceLevelServiceConfig\022\022\n\004type" - "\030\001 \001(\tR\004type\0227\n\nattributes\030\002 \001(\0132\027.googl" - "e.protobuf.StructR\nattributes\"\324\002\n\rProces" - "sConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004n" - "ame\022\022\n\004args\030\003 \003(\tR\004args\022\020\n\003cwd\030\004 \001(\tR\003cw" - "d\022\031\n\010one_shot\030\005 \001(\010R\007oneShot\022\020\n\003log\030\006 \001(" - "\010R\003log\022\037\n\013stop_signal\030\007 \001(\005R\nstopSignal\022" - "<\n\014stop_timeout\030\010 \001(\0132\031.google.protobuf." - "DurationR\013stopTimeout\0225\n\003env\030\t \003(\0132#.via" - "m.app.v1.ProcessConfig.EnvEntryR\003env\0326\n\010" - "EnvEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(" - "\tR\005value:\0028\001\"\303\002\n\rServiceConfig\022\022\n\004name\030\001" - " \001(\tR\004name\022\034\n\tnamespace\030\002 \001(\tR\tnamespace" - "\022\022\n\004type\030\003 \001(\tR\004type\0227\n\nattributes\030\004 \001(\013" - "2\027.google.protobuf.StructR\nattributes\022\035\n" - "\ndepends_on\030\005 \003(\tR\tdependsOn\022\024\n\005model\030\006 " - "\001(\tR\005model\022\020\n\003api\030\t \001(\tR\003api\022l\n\017service_" - "configs\030\n \003(\0132\'.viam.app.v1.ResourceLeve" - "lServiceConfigB\032\232\204\236\003\025json:\"service_confi" - "g\"R\016serviceConfigs\"\305\001\n\rNetworkConfig\022\022\n\004" - "fqdn\030\001 \001(\tR\004fqdn\022!\n\014bind_address\030\002 \001(\tR\013" - "bindAddress\022\"\n\rtls_cert_file\030\003 \001(\tR\013tlsC" - "ertFile\022 \n\014tls_key_file\030\004 \001(\tR\ntlsKeyFil" - "e\0227\n\010sessions\030\005 \001(\0132\033.viam.app.v1.Sessio" - "nsConfigR\010sessions\"V\n\016SessionsConfig\022D\n\020" - "heartbeat_window\030\001 \001(\0132\031.google.protobuf" - ".DurationR\017heartbeatWindow\"\345\001\n\nAuthConfi" - "g\022:\n\010handlers\030\001 \003(\0132\036.viam.app.v1.AuthHa" - "ndlerConfigR\010handlers\022*\n\021tls_auth_entiti" - "es\030\002 \003(\tR\017tlsAuthEntities\022V\n\024external_au" - "th_config\030\003 \001(\0132\037.viam.app.v1.ExternalAu" - "thConfigH\000R\022externalAuthConfig\210\001\001B\027\n\025_ex" - "ternal_auth_config\"7\n\010JWKSFile\022+\n\004json\030\001" - " \001(\0132\027.google.protobuf.StructR\004json\"\?\n\022E" - "xternalAuthConfig\022)\n\004jwks\030\001 \001(\0132\025.viam.a" - "pp.v1.JWKSFileR\004jwks\"v\n\021AuthHandlerConfi" - "g\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Credential" - "sTypeR\004type\022/\n\006config\030\005 \001(\0132\027.google.pro" - "tobuf.StructR\006config\"\315\001\n\005Frame\022\026\n\006parent" - "\030\001 \001(\tR\006parent\022:\n\013translation\030\002 \001(\0132\030.vi" - "am.app.v1.TranslationR\013translation\022:\n\013or" - "ientation\030\003 \001(\0132\030.viam.app.v1.Orientatio" - "nR\013orientation\0224\n\010geometry\030\004 \001(\0132\030.viam." - "common.v1.GeometryR\010geometry\"(\n\020LogConfi" - "guration\022\024\n\005level\030\001 \001(\tR\005level\"7\n\013Transl" - "ation\022\014\n\001x\030\001 \001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014\n\001z\030\003" - " \001(\001R\001z\"\320\007\n\013Orientation\022O\n\016no_orientatio" - "n\030\001 \001(\0132&.viam.app.v1.Orientation.NoOrie" - "ntationH\000R\rnoOrientation\022Z\n\016vector_radia" - "ns\030\002 \001(\01321.viam.app.v1.Orientation.Orien" - "tationVectorRadiansH\000R\rvectorRadians\022Z\n\016" - "vector_degrees\030\003 \001(\01321.viam.app.v1.Orien" - "tation.OrientationVectorDegreesH\000R\rvecto" - "rDegrees\022I\n\014euler_angles\030\004 \001(\0132$.viam.ap" - "p.v1.Orientation.EulerAnglesH\000R\013eulerAng" - "les\022F\n\013axis_angles\030\005 \001(\0132#.viam.app.v1.O" - "rientation.AxisAnglesH\000R\naxisAngles\022E\n\nq" - "uaternion\030\006 \001(\0132#.viam.app.v1.Orientatio" - "n.QuaternionH\000R\nquaternion\032\017\n\rNoOrientat" - "ion\032j\n\030OrientationVectorRadians\022$\n\005theta" - "\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001" - "R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032j\n\030Orien" - "tationVectorDegrees\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003" - "\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001" - "(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032I\n\013EulerAngles\022\022\n\004ro" - "ll\030\001 \001(\001R\004roll\022\024\n\005pitch\030\002 \001(\001R\005pitch\022\020\n\003" - "yaw\030\003 \001(\001R\003yaw\032\\\n\nAxisAngles\022$\n\005theta\030\001 " - "\001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x" - "\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQuaterni" - "on\022\014\n\001w\030\001 \001(\001R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(" - "\001R\001y\022\014\n\001z\030\004 \001(\001R\001zB\006\n\004type\"\365\003\n\014RemoteCon" - "fig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007address\030\002 \001(\t" - "R\007address\022(\n\005frame\030\003 \001(\0132\022.viam.app.v1.F" - "rameR\005frame\022+\n\004auth\030\004 \001(\0132\027.viam.app.v1." - "RemoteAuthR\004auth\022\035\n\nmanaged_by\030\005 \001(\tR\tma" - "nagedBy\022\032\n\010insecure\030\006 \001(\010R\010insecure\022U\n\031c" - "onnection_check_interval\030\007 \001(\0132\031.google." - "protobuf.DurationR\027connectionCheckInterv" - "al\022H\n\022reconnect_interval\030\010 \001(\0132\031.google." - "protobuf.DurationR\021reconnectInterval\022l\n\017" - "service_configs\030\t \003(\0132\'.viam.app.v1.Reso" - "urceLevelServiceConfigB\032\232\204\236\003\025json:\"servi" - "ce_config\"R\016serviceConfigs\022\026\n\006secret\030\n \001" - "(\tR\006secret\"\306\001\n\nRemoteAuth\022E\n\013credentials" - "\030\001 \001(\0132#.viam.app.v1.RemoteAuth.Credenti" - "alsR\013credentials\022\026\n\006entity\030\002 \001(\tR\006entity" - "\032Y\n\013Credentials\0220\n\004type\030\001 \001(\0162\034.viam.app" - ".v1.CredentialsTypeR\004type\022\030\n\007payload\030\002 \001" - "(\tR\007payload\"\254\001\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR" - "\004host\022\016\n\002os\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022" - "\030\n\007version\030\004 \001(\tR\007version\022!\n\014git_revisio" - "n\030\005 \001(\tR\013gitRevision\022\037\n\010platform\030\006 \001(\tH\000" - "R\010platform\210\001\001B\013\n\t_platform\"j\n\rConfigRequ" - "est\022\016\n\002id\030\001 \001(\tR\002id\022:\n\nagent_info\030\002 \001(\0132" - "\026.viam.app.v1.AgentInfoH\000R\tagentInfo\210\001\001B" - "\r\n\013_agent_info\"B\n\016ConfigResponse\0220\n\006conf" - "ig\030\001 \001(\0132\030.viam.app.v1.RobotConfigR\006conf" - "ig\"$\n\022CertificateRequest\022\016\n\002id\030\001 \001(\tR\002id" - "\"v\n\023CertificateResponse\022\016\n\002id\030\001 \001(\tR\002id\022" - "\'\n\017tls_certificate\030\002 \001(\tR\016tlsCertificate" - "\022&\n\017tls_private_key\030\003 \001(\tR\rtlsPrivateKey" - "\"J\n\nLogRequest\022\016\n\002id\030\001 \001(\tR\002id\022,\n\004logs\030\002" - " \003(\0132\030.viam.common.v1.LogEntryR\004logs\"\r\n\013" - "LogResponse\"%\n\023NeedsRestartRequest\022\016\n\002id" - "\030\001 \001(\tR\002id\"\232\001\n\024NeedsRestartResponse\022\016\n\002i" - "d\030\001 \001(\tR\002id\022!\n\014must_restart\030\002 \001(\010R\013mustR" - "estart\022O\n\026restart_check_interval\030\003 \001(\0132\031" - ".google.protobuf.DurationR\024restartCheckI" - "nterval\"\254\002\n\014ModuleConfig\022\022\n\004name\030\001 \001(\tR\004" - "name\022\022\n\004path\030\002 \001(\tR\004path\022\033\n\tlog_level\030\003 " - "\001(\tR\010logLevel\022\022\n\004type\030\004 \001(\tR\004type\022\033\n\tmod" - "ule_id\030\005 \001(\tR\010moduleId\0224\n\003env\030\006 \003(\0132\".vi" - "am.app.v1.ModuleConfig.EnvEntryR\003env\0228\n\006" - "status\030\007 \001(\0132 .viam.app.v1.AppValidation" - "StatusR\006status\0326\n\010EnvEntry\022\020\n\003key\030\001 \001(\tR" - "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\245\001\n\rPacka" - "geConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007package\030" - "\002 \001(\tR\007package\022\030\n\007version\030\003 \001(\tR\007version" - "\022\022\n\004type\030\004 \001(\tR\004type\0228\n\006status\030\005 \001(\0132 .v" - "iam.app.v1.AppValidationStatusR\006status*\277" - "\001\n\017CredentialsType\022 \n\034CREDENTIALS_TYPE_U" - "NSPECIFIED\020\000\022\035\n\031CREDENTIALS_TYPE_INTERNA" - "L\020\001\022\034\n\030CREDENTIALS_TYPE_API_KEY\020\002\022!\n\035CRE" - "DENTIALS_TYPE_ROBOT_SECRET\020\003\022*\n&CREDENTI" - "ALS_TYPE_ROBOT_LOCATION_SECRET\020\0042\262\002\n\014Rob" - "otService\022A\n\006Config\022\032.viam.app.v1.Config" - "Request\032\033.viam.app.v1.ConfigResponse\022P\n\013" - "Certificate\022\037.viam.app.v1.CertificateReq" - "uest\032 .viam.app.v1.CertificateResponse\0228" - "\n\003Log\022\027.viam.app.v1.LogRequest\032\030.viam.ap" - "p.v1.LogResponse\022S\n\014NeedsRestart\022 .viam." - "app.v1.NeedsRestartRequest\032!.viam.app.v1" - ".NeedsRestartResponseB\030Z\026go.viam.com/api" - "/app/v1b\006proto3" + "geConfigR\010packages\022\\\n\031overwrite_fragment" + "_status\030\014 \003(\0132 .viam.app.v1.AppValidatio" + "nStatusR\027overwriteFragmentStatusB\n\n\010_net" + "workB\007\n\005_authB\010\n\006_debugB\030\n\026_disable_part" + "ial_start\"8\n\016LocationSecret\022\016\n\002id\030\001 \001(\tR" + "\002id\022\026\n\006secret\030\002 \001(\tR\006secret\"+\n\023AppValida" + "tionStatus\022\024\n\005error\030\001 \001(\tR\005error\"\276\003\n\013Clo" + "udConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001(\tR\004" + "fqdn\022\035\n\nlocal_fqdn\030\003 \001(\tR\tlocalFqdn\022\035\n\nm" + "anaged_by\030\004 \001(\tR\tmanagedBy\022+\n\021signaling_" + "address\030\005 \001(\tR\020signalingAddress\022-\n\022signa" + "ling_insecure\030\006 \001(\010R\021signalingInsecure\022+" + "\n\017location_secret\030\007 \001(\tB\002\030\001R\016locationSec" + "ret\022\026\n\006secret\030\010 \001(\tR\006secret\022F\n\020location_" + "secrets\030\t \003(\0132\033.viam.app.v1.LocationSecr" + "etR\017locationSecrets\022$\n\016primary_org_id\030\n " + "\001(\tR\014primaryOrgId\022\037\n\013location_id\030\013 \001(\tR\n" + "locationId\022\035\n\nmachine_id\030\014 \001(\tR\tmachineI" + "d\"\273\003\n\017ComponentConfig\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022\034\n\tnamespace\030\002 \001(\tR\tnamespace\022\022\n\004type\030" + "\003 \001(\tR\004type\022\024\n\005model\030\004 \001(\tR\005model\022(\n\005fra" + "me\030\005 \001(\0132\022.viam.app.v1.FrameR\005frame\022\035\n\nd" + "epends_on\030\006 \003(\tR\tdependsOn\022l\n\017service_co" + "nfigs\030\007 \003(\0132\'.viam.app.v1.ResourceLevelS" + "erviceConfigB\032\232\204\236\003\025json:\"service_config\"" + "R\016serviceConfigs\0227\n\nattributes\030\010 \001(\0132\027.g" + "oogle.protobuf.StructR\nattributes\022\020\n\003api" + "\030\t \001(\tR\003api\022J\n\021log_configuration\030\n \001(\0132\035" + ".viam.app.v1.LogConfigurationR\020logConfig" + "uration\"i\n\032ResourceLevelServiceConfig\022\022\n" + "\004type\030\001 \001(\tR\004type\0227\n\nattributes\030\002 \001(\0132\027." + "google.protobuf.StructR\nattributes\"\324\002\n\rP" + "rocessConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001" + "(\tR\004name\022\022\n\004args\030\003 \003(\tR\004args\022\020\n\003cwd\030\004 \001(" + "\tR\003cwd\022\031\n\010one_shot\030\005 \001(\010R\007oneShot\022\020\n\003log" + "\030\006 \001(\010R\003log\022\037\n\013stop_signal\030\007 \001(\005R\nstopSi" + "gnal\022<\n\014stop_timeout\030\010 \001(\0132\031.google.prot" + "obuf.DurationR\013stopTimeout\0225\n\003env\030\t \003(\0132" + "#.viam.app.v1.ProcessConfig.EnvEntryR\003en" + "v\0326\n\010EnvEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value" + "\030\002 \001(\tR\005value:\0028\001\"\303\002\n\rServiceConfig\022\022\n\004n" + "ame\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 \001(\tR\tname" + "space\022\022\n\004type\030\003 \001(\tR\004type\0227\n\nattributes\030" + "\004 \001(\0132\027.google.protobuf.StructR\nattribut" + "es\022\035\n\ndepends_on\030\005 \003(\tR\tdependsOn\022\024\n\005mod" + "el\030\006 \001(\tR\005model\022\020\n\003api\030\t \001(\tR\003api\022l\n\017ser" + "vice_configs\030\n \003(\0132\'.viam.app.v1.Resourc" + "eLevelServiceConfigB\032\232\204\236\003\025json:\"service_" + "config\"R\016serviceConfigs\"\305\001\n\rNetworkConfi" + "g\022\022\n\004fqdn\030\001 \001(\tR\004fqdn\022!\n\014bind_address\030\002 " + "\001(\tR\013bindAddress\022\"\n\rtls_cert_file\030\003 \001(\tR" + "\013tlsCertFile\022 \n\014tls_key_file\030\004 \001(\tR\ntlsK" + "eyFile\0227\n\010sessions\030\005 \001(\0132\033.viam.app.v1.S" + "essionsConfigR\010sessions\"V\n\016SessionsConfi" + "g\022D\n\020heartbeat_window\030\001 \001(\0132\031.google.pro" + "tobuf.DurationR\017heartbeatWindow\"\345\001\n\nAuth" + "Config\022:\n\010handlers\030\001 \003(\0132\036.viam.app.v1.A" + "uthHandlerConfigR\010handlers\022*\n\021tls_auth_e" + "ntities\030\002 \003(\tR\017tlsAuthEntities\022V\n\024extern" + "al_auth_config\030\003 \001(\0132\037.viam.app.v1.Exter" + "nalAuthConfigH\000R\022externalAuthConfig\210\001\001B\027" + "\n\025_external_auth_config\"7\n\010JWKSFile\022+\n\004j" + "son\030\001 \001(\0132\027.google.protobuf.StructR\004json" + "\"\?\n\022ExternalAuthConfig\022)\n\004jwks\030\001 \001(\0132\025.v" + "iam.app.v1.JWKSFileR\004jwks\"v\n\021AuthHandler" + "Config\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Crede" + "ntialsTypeR\004type\022/\n\006config\030\005 \001(\0132\027.googl" + "e.protobuf.StructR\006config\"\315\001\n\005Frame\022\026\n\006p" + "arent\030\001 \001(\tR\006parent\022:\n\013translation\030\002 \001(\013" + "2\030.viam.app.v1.TranslationR\013translation\022" + ":\n\013orientation\030\003 \001(\0132\030.viam.app.v1.Orien" + "tationR\013orientation\0224\n\010geometry\030\004 \001(\0132\030." + "viam.common.v1.GeometryR\010geometry\"(\n\020Log" + "Configuration\022\024\n\005level\030\001 \001(\tR\005level\"7\n\013T" + "ranslation\022\014\n\001x\030\001 \001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014" + "\n\001z\030\003 \001(\001R\001z\"\320\007\n\013Orientation\022O\n\016no_orien" + "tation\030\001 \001(\0132&.viam.app.v1.Orientation.N" + "oOrientationH\000R\rnoOrientation\022Z\n\016vector_" + "radians\030\002 \001(\01321.viam.app.v1.Orientation." + "OrientationVectorRadiansH\000R\rvectorRadian" + "s\022Z\n\016vector_degrees\030\003 \001(\01321.viam.app.v1." + "Orientation.OrientationVectorDegreesH\000R\r" + "vectorDegrees\022I\n\014euler_angles\030\004 \001(\0132$.vi" + "am.app.v1.Orientation.EulerAnglesH\000R\013eul" + "erAngles\022F\n\013axis_angles\030\005 \001(\0132#.viam.app" + ".v1.Orientation.AxisAnglesH\000R\naxisAngles" + "\022E\n\nquaternion\030\006 \001(\0132#.viam.app.v1.Orien" + "tation.QuaternionH\000R\nquaternion\032\017\n\rNoOri" + "entation\032j\n\030OrientationVectorRadians\022$\n\005" + "theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030" + "\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032j\n\030" + "OrientationVectorDegrees\022$\n\005theta\030\001 \001(\001B" + "\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001" + "y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032I\n\013EulerAngles\022" + "\022\n\004roll\030\001 \001(\001R\004roll\022\024\n\005pitch\030\002 \001(\001R\005pitc" + "h\022\020\n\003yaw\030\003 \001(\001R\003yaw\032\\\n\nAxisAngles\022$\n\005the" + "ta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001" + "(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQua" + "ternion\022\014\n\001w\030\001 \001(\001R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y" + "\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001zB\006\n\004type\"\365\003\n\014Remo" + "teConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007address\030" + "\002 \001(\tR\007address\022(\n\005frame\030\003 \001(\0132\022.viam.app" + ".v1.FrameR\005frame\022+\n\004auth\030\004 \001(\0132\027.viam.ap" + "p.v1.RemoteAuthR\004auth\022\035\n\nmanaged_by\030\005 \001(" + "\tR\tmanagedBy\022\032\n\010insecure\030\006 \001(\010R\010insecure" + "\022U\n\031connection_check_interval\030\007 \001(\0132\031.go" + "ogle.protobuf.DurationR\027connectionCheckI" + "nterval\022H\n\022reconnect_interval\030\010 \001(\0132\031.go" + "ogle.protobuf.DurationR\021reconnectInterva" + "l\022l\n\017service_configs\030\t \003(\0132\'.viam.app.v1" + ".ResourceLevelServiceConfigB\032\232\204\236\003\025json:\"" + "service_config\"R\016serviceConfigs\022\026\n\006secre" + "t\030\n \001(\tR\006secret\"\306\001\n\nRemoteAuth\022E\n\013creden" + "tials\030\001 \001(\0132#.viam.app.v1.RemoteAuth.Cre" + "dentialsR\013credentials\022\026\n\006entity\030\002 \001(\tR\006e" + "ntity\032Y\n\013Credentials\0220\n\004type\030\001 \001(\0162\034.via" + "m.app.v1.CredentialsTypeR\004type\022\030\n\007payloa" + "d\030\002 \001(\tR\007payload\"\254\001\n\tAgentInfo\022\022\n\004host\030\001" + " \001(\tR\004host\022\016\n\002os\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR" + "\003ips\022\030\n\007version\030\004 \001(\tR\007version\022!\n\014git_re" + "vision\030\005 \001(\tR\013gitRevision\022\037\n\010platform\030\006 " + "\001(\tH\000R\010platform\210\001\001B\013\n\t_platform\"j\n\rConfi" + "gRequest\022\016\n\002id\030\001 \001(\tR\002id\022:\n\nagent_info\030\002" + " \001(\0132\026.viam.app.v1.AgentInfoH\000R\tagentInf" + "o\210\001\001B\r\n\013_agent_info\"B\n\016ConfigResponse\0220\n" + "\006config\030\001 \001(\0132\030.viam.app.v1.RobotConfigR" + "\006config\"$\n\022CertificateRequest\022\016\n\002id\030\001 \001(" + "\tR\002id\"v\n\023CertificateResponse\022\016\n\002id\030\001 \001(\t" + "R\002id\022\'\n\017tls_certificate\030\002 \001(\tR\016tlsCertif" + "icate\022&\n\017tls_private_key\030\003 \001(\tR\rtlsPriva" + "teKey\"J\n\nLogRequest\022\016\n\002id\030\001 \001(\tR\002id\022,\n\004l" + "ogs\030\002 \003(\0132\030.viam.common.v1.LogEntryR\004log" + "s\"\r\n\013LogResponse\"%\n\023NeedsRestartRequest\022" + "\016\n\002id\030\001 \001(\tR\002id\"\232\001\n\024NeedsRestartResponse" + "\022\016\n\002id\030\001 \001(\tR\002id\022!\n\014must_restart\030\002 \001(\010R\013" + "mustRestart\022O\n\026restart_check_interval\030\003 " + "\001(\0132\031.google.protobuf.DurationR\024restartC" + "heckInterval\"\254\002\n\014ModuleConfig\022\022\n\004name\030\001 " + "\001(\tR\004name\022\022\n\004path\030\002 \001(\tR\004path\022\033\n\tlog_lev" + "el\030\003 \001(\tR\010logLevel\022\022\n\004type\030\004 \001(\tR\004type\022\033" + "\n\tmodule_id\030\005 \001(\tR\010moduleId\0224\n\003env\030\006 \003(\013" + "2\".viam.app.v1.ModuleConfig.EnvEntryR\003en" + "v\0228\n\006status\030\007 \001(\0132 .viam.app.v1.AppValid" + "ationStatusR\006status\0326\n\010EnvEntry\022\020\n\003key\030\001" + " \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\245\001\n\r" + "PackageConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007pac" + "kage\030\002 \001(\tR\007package\022\030\n\007version\030\003 \001(\tR\007ve" + "rsion\022\022\n\004type\030\004 \001(\tR\004type\0228\n\006status\030\005 \001(" + "\0132 .viam.app.v1.AppValidationStatusR\006sta" + "tus*\277\001\n\017CredentialsType\022 \n\034CREDENTIALS_T" + "YPE_UNSPECIFIED\020\000\022\035\n\031CREDENTIALS_TYPE_IN" + "TERNAL\020\001\022\034\n\030CREDENTIALS_TYPE_API_KEY\020\002\022!" + "\n\035CREDENTIALS_TYPE_ROBOT_SECRET\020\003\022*\n&CRE" + "DENTIALS_TYPE_ROBOT_LOCATION_SECRET\020\0042\262\002" + "\n\014RobotService\022A\n\006Config\022\032.viam.app.v1.C" + "onfigRequest\032\033.viam.app.v1.ConfigRespons" + "e\022P\n\013Certificate\022\037.viam.app.v1.Certifica" + "teRequest\032 .viam.app.v1.CertificateRespo" + "nse\0228\n\003Log\022\027.viam.app.v1.LogRequest\032\030.vi" + "am.app.v1.LogResponse\022S\n\014NeedsRestart\022 ." + "viam.app.v1.NeedsRestartRequest\032!.viam.a" + "pp.v1.NeedsRestartResponseB\030Z\026go.viam.co" + "m/api/app/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -1304,7 +1312,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2e }; static ::_pbi::once_flag descriptor_table_app_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto = { - false, false, 7095, descriptor_table_protodef_app_2fv1_2frobot_2eproto, + false, false, 7220, descriptor_table_protodef_app_2fv1_2frobot_2eproto, "app/v1/robot.proto", &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 4, 40, schemas, file_default_instances, TableStruct_app_2fv1_2frobot_2eproto::offsets, @@ -1380,7 +1388,8 @@ RobotConfig::RobotConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, processes_(arena), services_(arena), modules_(arena), - packages_(arena) { + packages_(arena), + overwrite_fragment_status_(arena) { SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.RobotConfig) } @@ -1392,7 +1401,8 @@ RobotConfig::RobotConfig(const RobotConfig& from) processes_(from.processes_), services_(from.services_), modules_(from.modules_), - packages_(from.packages_) { + packages_(from.packages_), + overwrite_fragment_status_(from.overwrite_fragment_status_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_cloud()) { cloud_ = new ::viam::app::v1::CloudConfig(*from.cloud_); @@ -1454,6 +1464,7 @@ void RobotConfig::Clear() { services_.Clear(); modules_.Clear(); packages_.Clear(); + overwrite_fragment_status_.Clear(); if (GetArenaForAllocation() == nullptr && cloud_ != nullptr) { delete cloud_; } @@ -1603,6 +1614,19 @@ const char* RobotConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; + // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_overwrite_fragment_status(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1714,6 +1738,14 @@ uint8_t* RobotConfig::_InternalSerialize( InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); } + // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; + for (unsigned i = 0, + n = static_cast(this->_internal_overwrite_fragment_status_size()); i < n; i++) { + const auto& repfield = this->_internal_overwrite_fragment_status(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1772,6 +1804,13 @@ size_t RobotConfig::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; + total_size += 1UL * this->_internal_overwrite_fragment_status_size(); + for (const auto& msg : this->overwrite_fragment_status_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; if (this->_internal_has_cloud()) { total_size += 1 + @@ -1834,6 +1873,7 @@ void RobotConfig::MergeFrom(const RobotConfig& from) { services_.MergeFrom(from.services_); modules_.MergeFrom(from.modules_); packages_.MergeFrom(from.packages_); + overwrite_fragment_status_.MergeFrom(from.overwrite_fragment_status_); if (from._internal_has_cloud()) { _internal_mutable_cloud()->::viam::app::v1::CloudConfig::MergeFrom(from._internal_cloud()); } @@ -1877,6 +1917,7 @@ void RobotConfig::InternalSwap(RobotConfig* other) { services_.InternalSwap(&other->services_); modules_.InternalSwap(&other->modules_); packages_.InternalSwap(&other->packages_); + overwrite_fragment_status_.InternalSwap(&other->overwrite_fragment_status_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(RobotConfig, disable_partial_start_) + sizeof(RobotConfig::disable_partial_start_) @@ -2418,6 +2459,14 @@ CloudConfig::CloudConfig(const CloudConfig& from) location_id_.Set(from._internal_location_id(), GetArenaForAllocation()); } + machine_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_machine_id().empty()) { + machine_id_.Set(from._internal_machine_id(), + GetArenaForAllocation()); + } signaling_insecure_ = from.signaling_insecure_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.CloudConfig) } @@ -2459,6 +2508,10 @@ location_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING location_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +machine_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING signaling_insecure_ = false; } @@ -2482,6 +2535,7 @@ inline void CloudConfig::SharedDtor() { secret_.Destroy(); primary_org_id_.Destroy(); location_id_.Destroy(); + machine_id_.Destroy(); } void CloudConfig::SetCachedSize(int size) const { @@ -2504,6 +2558,7 @@ void CloudConfig::Clear() { secret_.ClearToEmpty(); primary_org_id_.ClearToEmpty(); location_id_.ClearToEmpty(); + machine_id_.ClearToEmpty(); signaling_insecure_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2625,6 +2680,16 @@ const char* CloudConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; + // string machine_id = 12 [json_name = "machineId"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_machine_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.machine_id")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2758,6 +2823,16 @@ uint8_t* CloudConfig::_InternalSerialize( 11, this->_internal_location_id(), target); } + // string machine_id = 12 [json_name = "machineId"]; + if (!this->_internal_machine_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_machine_id().data(), static_cast(this->_internal_machine_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.machine_id"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_machine_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); @@ -2844,6 +2919,13 @@ size_t CloudConfig::ByteSizeLong() const { this->_internal_location_id()); } + // string machine_id = 12 [json_name = "machineId"]; + if (!this->_internal_machine_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_machine_id()); + } + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; if (this->_internal_signaling_insecure() != 0) { total_size += 1 + 1; @@ -2899,6 +2981,9 @@ void CloudConfig::MergeFrom(const CloudConfig& from) { if (!from._internal_location_id().empty()) { _internal_set_location_id(from._internal_location_id()); } + if (!from._internal_machine_id().empty()) { + _internal_set_machine_id(from._internal_machine_id()); + } if (from._internal_signaling_insecure() != 0) { _internal_set_signaling_insecure(from._internal_signaling_insecure()); } @@ -2958,6 +3043,10 @@ void CloudConfig::InternalSwap(CloudConfig* other) { &location_id_, lhs_arena, &other->location_id_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &machine_id_, lhs_arena, + &other->machine_id_, rhs_arena + ); swap(signaling_insecure_, other->signaling_insecure_); } diff --git a/src/viam/api/app/v1/robot.pb.h b/src/viam/api/app/v1/robot.pb.h index 319264e46..577f8e49f 100644 --- a/src/viam/api/app/v1/robot.pb.h +++ b/src/viam/api/app/v1/robot.pb.h @@ -380,6 +380,7 @@ class RobotConfig final : kServicesFieldNumber = 5, kModulesFieldNumber = 9, kPackagesFieldNumber = 11, + kOverwriteFragmentStatusFieldNumber = 12, kCloudFieldNumber = 1, kNetworkFieldNumber = 6, kAuthFieldNumber = 7, @@ -494,6 +495,24 @@ class RobotConfig final : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::PackageConfig >& packages() const; + // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; + int overwrite_fragment_status_size() const; + private: + int _internal_overwrite_fragment_status_size() const; + public: + void clear_overwrite_fragment_status(); + ::viam::app::v1::AppValidationStatus* mutable_overwrite_fragment_status(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >* + mutable_overwrite_fragment_status(); + private: + const ::viam::app::v1::AppValidationStatus& _internal_overwrite_fragment_status(int index) const; + ::viam::app::v1::AppValidationStatus* _internal_add_overwrite_fragment_status(); + public: + const ::viam::app::v1::AppValidationStatus& overwrite_fragment_status(int index) const; + ::viam::app::v1::AppValidationStatus* add_overwrite_fragment_status(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >& + overwrite_fragment_status() const; + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; bool has_cloud() const; private: @@ -589,6 +608,7 @@ class RobotConfig final : ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig > services_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleConfig > modules_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::PackageConfig > packages_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus > overwrite_fragment_status_; ::viam::app::v1::CloudConfig* cloud_; ::viam::app::v1::NetworkConfig* network_; ::viam::app::v1::AuthConfig* auth_; @@ -1039,6 +1059,7 @@ class CloudConfig final : kSecretFieldNumber = 8, kPrimaryOrgIdFieldNumber = 10, kLocationIdFieldNumber = 11, + kMachineIdFieldNumber = 12, kSignalingInsecureFieldNumber = 6, }; // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; @@ -1185,6 +1206,20 @@ class CloudConfig final : std::string* _internal_mutable_location_id(); public: + // string machine_id = 12 [json_name = "machineId"]; + void clear_machine_id(); + const std::string& machine_id() const; + template + void set_machine_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_machine_id(); + PROTOBUF_NODISCARD std::string* release_machine_id(); + void set_allocated_machine_id(std::string* machine_id); + private: + const std::string& _internal_machine_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id(const std::string& value); + std::string* _internal_mutable_machine_id(); + public: + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; void clear_signaling_insecure(); bool signaling_insecure() const; @@ -1211,6 +1246,7 @@ class CloudConfig final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_org_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_id_; bool signaling_insecure_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; @@ -8336,6 +8372,46 @@ RobotConfig::packages() const { return packages_; } +// repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; +inline int RobotConfig::_internal_overwrite_fragment_status_size() const { + return overwrite_fragment_status_.size(); +} +inline int RobotConfig::overwrite_fragment_status_size() const { + return _internal_overwrite_fragment_status_size(); +} +inline void RobotConfig::clear_overwrite_fragment_status() { + overwrite_fragment_status_.Clear(); +} +inline ::viam::app::v1::AppValidationStatus* RobotConfig::mutable_overwrite_fragment_status(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.overwrite_fragment_status) + return overwrite_fragment_status_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >* +RobotConfig::mutable_overwrite_fragment_status() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.overwrite_fragment_status) + return &overwrite_fragment_status_; +} +inline const ::viam::app::v1::AppValidationStatus& RobotConfig::_internal_overwrite_fragment_status(int index) const { + return overwrite_fragment_status_.Get(index); +} +inline const ::viam::app::v1::AppValidationStatus& RobotConfig::overwrite_fragment_status(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.overwrite_fragment_status) + return _internal_overwrite_fragment_status(index); +} +inline ::viam::app::v1::AppValidationStatus* RobotConfig::_internal_add_overwrite_fragment_status() { + return overwrite_fragment_status_.Add(); +} +inline ::viam::app::v1::AppValidationStatus* RobotConfig::add_overwrite_fragment_status() { + ::viam::app::v1::AppValidationStatus* _add = _internal_add_overwrite_fragment_status(); + // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.overwrite_fragment_status) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >& +RobotConfig::overwrite_fragment_status() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.overwrite_fragment_status) + return overwrite_fragment_status_; +} + // ------------------------------------------------------------------- // LocationSecret @@ -9008,6 +9084,56 @@ inline void CloudConfig::set_allocated_location_id(std::string* location_id) { // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.location_id) } +// string machine_id = 12 [json_name = "machineId"]; +inline void CloudConfig::clear_machine_id() { + machine_id_.ClearToEmpty(); +} +inline const std::string& CloudConfig::machine_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.machine_id) + return _internal_machine_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_machine_id(ArgT0&& arg0, ArgT... args) { + + machine_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.machine_id) +} +inline std::string* CloudConfig::mutable_machine_id() { + std::string* _s = _internal_mutable_machine_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.machine_id) + return _s; +} +inline const std::string& CloudConfig::_internal_machine_id() const { + return machine_id_.Get(); +} +inline void CloudConfig::_internal_set_machine_id(const std::string& value) { + + machine_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CloudConfig::_internal_mutable_machine_id() { + + return machine_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CloudConfig::release_machine_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.machine_id) + return machine_id_.Release(); +} +inline void CloudConfig::set_allocated_machine_id(std::string* machine_id) { + if (machine_id != nullptr) { + + } else { + + } + machine_id_.SetAllocated(machine_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (machine_id_.IsDefault()) { + machine_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.machine_id) +} + // ------------------------------------------------------------------- // ComponentConfig diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index d2538b65e..8ff1c3c88 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: 7e6f6e774e29406da95bd61cdcdbc8bc + commit: 7a6bc1e3207144b38e9066861e1de0ff - remote: buf.build owner: viamrobotics repository: api - commit: ae02f42bc57641ebb9f9d26216d3f875 + commit: a8f357e9f51d487db3734879ac7e1455 - 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 0ec3c45ec..6507a8cae 100644 --- a/src/viam/api/common/v1/common.pb.cc +++ b/src/viam/api/common/v1/common.pb.cc @@ -28,7 +28,8 @@ 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{}){} + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , machine_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct ResourceNameDefaultTypeInternal { PROTOBUF_CONSTEXPR ResourceNameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -451,7 +452,7 @@ static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2fv1_2fco 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) = { - ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -461,6 +462,12 @@ 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_ @@ -731,38 +738,38 @@ 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, -1, -1, sizeof(::viam::common::v1::ResourceName)}, - { 10, 18, -1, sizeof(::viam::common::v1::BoardStatus_AnalogsEntry_DoNotUse)}, - { 20, 28, -1, sizeof(::viam::common::v1::BoardStatus_DigitalInterruptsEntry_DoNotUse)}, - { 30, -1, -1, sizeof(::viam::common::v1::BoardStatus)}, - { 38, -1, -1, sizeof(::viam::common::v1::AnalogStatus)}, - { 45, -1, -1, sizeof(::viam::common::v1::DigitalInterruptStatus)}, - { 52, -1, -1, sizeof(::viam::common::v1::Pose)}, - { 65, -1, -1, sizeof(::viam::common::v1::Orientation)}, - { 75, -1, -1, sizeof(::viam::common::v1::PoseInFrame)}, - { 83, -1, -1, sizeof(::viam::common::v1::Vector3)}, - { 92, -1, -1, sizeof(::viam::common::v1::Sphere)}, - { 99, -1, -1, sizeof(::viam::common::v1::Capsule)}, - { 107, -1, -1, sizeof(::viam::common::v1::RectangularPrism)}, - { 114, -1, -1, sizeof(::viam::common::v1::Geometry)}, - { 126, -1, -1, sizeof(::viam::common::v1::GeometriesInFrame)}, - { 134, -1, -1, sizeof(::viam::common::v1::PointCloudObject)}, - { 142, -1, -1, sizeof(::viam::common::v1::GeoPoint)}, - { 150, -1, -1, sizeof(::viam::common::v1::GeoObstacle)}, - { 158, 167, -1, sizeof(::viam::common::v1::Transform)}, - { 170, -1, -1, sizeof(::viam::common::v1::WorldState)}, - { 178, -1, -1, sizeof(::viam::common::v1::ActuatorStatus)}, - { 185, 192, -1, sizeof(::viam::common::v1::ResponseMetadata)}, - { 193, -1, -1, sizeof(::viam::common::v1::DoCommandRequest)}, - { 201, -1, -1, sizeof(::viam::common::v1::DoCommandResponse)}, - { 208, -1, -1, sizeof(::viam::common::v1::GetKinematicsRequest)}, - { 216, -1, -1, sizeof(::viam::common::v1::GetKinematicsResponse)}, - { 224, -1, -1, sizeof(::viam::common::v1::GetGeometriesRequest)}, - { 232, -1, -1, sizeof(::viam::common::v1::GetGeometriesResponse)}, - { 239, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, - { 247, 255, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, - { 257, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, - { 264, -1, -1, sizeof(::viam::common::v1::LogEntry)}, + { 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)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -804,100 +811,102 @@ 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\"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\"\374\002\n\013BoardStatus\022B\n\007analogs\030\001 \003" - "(\0132(.viam.common.v1.BoardStatus.AnalogsE" - "ntryR\007analogs\022a\n\022digital_interrupts\030\002 \003(" - "\01322.viam.common.v1.BoardStatus.DigitalIn" - "terruptsEntryR\021digitalInterrupts\032X\n\014Anal" - "ogsEntry\022\020\n\003key\030\001 \001(\tR\003key\0222\n\005value\030\002 \001(" - "\0132\034.viam.common.v1.AnalogStatusR\005value:\002" - "8\001\032l\n\026DigitalInterruptsEntry\022\020\n\003key\030\001 \001(" - "\tR\003key\022<\n\005value\030\002 \001(\0132&.viam.common.v1.D" - "igitalInterruptStatusR\005value:\0028\001\"$\n\014Anal" - "ogStatus\022\024\n\005value\030\001 \001(\005R\005value\".\n\026Digita" - "lInterruptStatus\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\002" - "oY\022\017\n\003o_z\030\006 \001(\001R\002oZ\022\024\n\005theta\030\007 \001(\001R\005thet" - "a\"V\n\013Orientation\022\017\n\003o_x\030\001 \001(\001R\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\017reference_fr" - "ame\030\001 \001(\tR\016referenceFrame\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\tradius_mm\030\001 \001(\001R\010radiusMm\"" - "C\n\007Capsule\022\033\n\tradius_mm\030\001 \001(\001R\010radiusMm\022" - "\033\n\tlength_mm\030\002 \001(\001R\010lengthMm\"D\n\020Rectangu" - "larPrism\0220\n\007dims_mm\030\001 \001(\0132\027.viam.common." - "v1.Vector3R\006dimsMm\"\374\001\n\010Geometry\022,\n\006cente" - "r\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.Re" - "ctangularPrismH\000R\003box\0223\n\007capsule\030\005 \001(\0132\027" - ".viam.common.v1.CapsuleH\000R\007capsule\022\024\n\005la" - "bel\030\004 \001(\tR\005labelB\017\n\rgeometry_type\"v\n\021Geo" - "metriesInFrame\022\'\n\017reference_frame\030\001 \001(\tR" - "\016referenceFrame\0228\n\ngeometries\030\002 \003(\0132\030.vi" - "am.common.v1.GeometryR\ngeometries\"v\n\020Poi" - "ntCloudObject\022\037\n\013point_cloud\030\001 \001(\014R\npoin" - "tCloud\022A\n\ngeometries\030\002 \001(\0132!.viam.common" - ".v1.GeometriesInFrameR\ngeometries\"D\n\010Geo" - "Point\022\032\n\010latitude\030\001 \001(\001R\010latitude\022\034\n\tlon" - "gitude\030\002 \001(\001R\tlongitude\"}\n\013GeoObstacle\0224" - "\n\010location\030\001 \001(\0132\030.viam.common.v1.GeoPoi" - "ntR\010location\0228\n\ngeometries\030\002 \003(\0132\030.viam." - "common.v1.GeometryR\ngeometries\"\342\001\n\tTrans" - "form\022\'\n\017reference_frame\030\001 \001(\tR\016reference" - "Frame\022P\n\026pose_in_observer_frame\030\002 \001(\0132\033." - "viam.common.v1.PoseInFrameR\023poseInObserv" - "erFrame\022F\n\017physical_object\030\003 \001(\0132\030.viam." - "common.v1.GeometryH\000R\016physicalObject\210\001\001B" - "\022\n\020_physical_object\"\210\001\n\nWorldState\022\?\n\tob" - "stacles\030\001 \003(\0132!.viam.common.v1.Geometrie" - "sInFrameR\tobstacles\0229\n\ntransforms\030\003 \003(\0132" - "\031.viam.common.v1.TransformR\ntransforms\"-" - "\n\016ActuatorStatus\022\033\n\tis_moving\030\001 \001(\010R\010isM" - "oving\"d\n\020ResponseMetadata\022@\n\013captured_at" - "\030\001 \001(\0132\032.google.protobuf.TimestampH\000R\nca" - "pturedAt\210\001\001B\016\n\014_captured_at\"Y\n\020DoCommand" - "Request\022\022\n\004name\030\001 \001(\tR\004name\0221\n\007command\030\002" - " \001(\0132\027.google.protobuf.StructR\007command\"D" - "\n\021DoCommandResponse\022/\n\006result\030\001 \001(\0132\027.go" - "ogle.protobuf.StructR\006result\"Y\n\024GetKinem" - "aticsRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extr" - "a\030c \001(\0132\027.google.protobuf.StructR\005extra\"" - "~\n\025GetKinematicsResponse\022<\n\006format\030\001 \001(\016" - "2$.viam.common.v1.KinematicsFileFormatR\006" - "format\022\'\n\017kinematics_data\030\002 \001(\014R\016kinemat" - "icsData\"Y\n\024GetGeometriesRequest\022\022\n\004name\030" - "\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.prot" - "obuf.StructR\005extra\"Q\n\025GetGeometriesRespo" - "nse\0228\n\ngeometries\030\001 \003(\0132\030.viam.common.v1" - ".GeometryR\ngeometries\"W\n\022GetReadingsRequ" - "est\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027" - ".google.protobuf.StructR\005extra\"\271\001\n\023GetRe" - "adingsResponse\022M\n\010readings\030\001 \003(\01321.viam." - "common.v1.GetReadingsResponse.ReadingsEn" - "tryR\010readings\032S\n\rReadingsEntry\022\020\n\003key\030\001 " - "\001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.google.protobu" - "f.ValueR\005value:\0028\001\"\227\002\n\010LogEntry\022\022\n\004host\030" - "\001 \001(\tR\004host\022\024\n\005level\030\002 \001(\tR\005level\022.\n\004tim" - "e\030\003 \001(\0132\032.google.protobuf.TimestampR\004tim" - "e\022\037\n\013logger_name\030\004 \001(\tR\nloggerName\022\030\n\007me" - "ssage\030\005 \001(\tR\007message\022/\n\006caller\030\006 \001(\0132\027.g" - "oogle.protobuf.StructR\006caller\022\024\n\005stack\030\007" - " \001(\tR\005stack\022/\n\006fields\030\010 \003(\0132\027.google.pro" - "tobuf.StructR\006fields*\177\n\024KinematicsFileFo" - "rmat\022&\n\"KINEMATICS_FILE_FORMAT_UNSPECIFI" - "ED\020\000\022\036\n\032KINEMATICS_FILE_FORMAT_SVA\020\001\022\037\n\033" - "KINEMATICS_FILE_FORMAT_URDF\020\002:a\n\032safety_" - "heartbeat_monitored\022\036.google.protobuf.Me" - "thodOptions\030\244\222\005 \001(\010R\030safetyHeartbeatMoni" - "tored\210\001\001B/\n\022com.viam.common.v1Z\031go.viam." - "com/api/common/v1b\006proto3" + "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" ; static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommon_2eproto_deps[3] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, @@ -906,7 +915,7 @@ 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, 3865, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, + false, false, 3931, 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, schemas, file_default_instances, TableStruct_common_2fv1_2fcommon_2eproto::offsets, @@ -942,6 +951,10 @@ 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, @@ -951,7 +964,8 @@ 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() { + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); namespace__.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -985,6 +999,14 @@ ResourceName::ResourceName(const ResourceName& from) 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) } @@ -1005,6 +1027,10 @@ 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() { @@ -1022,6 +1048,7 @@ inline void ResourceName::SharedDtor() { type_.Destroy(); subtype_.Destroy(); name_.Destroy(); + machine_part_id_.Destroy(); } void ResourceName::SetCachedSize(int size) const { @@ -1038,11 +1065,17 @@ void ResourceName::Clear() { 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); @@ -1087,6 +1120,16 @@ const char* ResourceName::_InternalParse(const char* ptr, ::_pbi::ParseContext* } 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 @@ -1103,6 +1146,7 @@ const char* ResourceName::_InternalParse(const char* ptr, ::_pbi::ParseContext* CHK_(ptr != nullptr); } // while message_done: + _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1156,6 +1200,16 @@ uint8_t* ResourceName::_InternalSerialize( 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); @@ -1200,6 +1254,14 @@ size_t ResourceName::ByteSizeLong() const { 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_); } @@ -1234,6 +1296,9 @@ void ResourceName::MergeFrom(const ResourceName& from) { 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_); } @@ -1253,6 +1318,7 @@ void ResourceName::InternalSwap(ResourceName* other) { 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 @@ -1269,6 +1335,10 @@ void ResourceName::InternalSwap(ResourceName* other) { &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 { diff --git a/src/viam/api/common/v1/common.pb.h b/src/viam/api/common/v1/common.pb.h index 91ecc109a..59df20c61 100644 --- a/src/viam/api/common/v1/common.pb.h +++ b/src/viam/api/common/v1/common.pb.h @@ -342,6 +342,7 @@ class ResourceName final : kTypeFieldNumber = 2, kSubtypeFieldNumber = 3, kNameFieldNumber = 4, + kMachinePartIdFieldNumber = 5, }; // string namespace = 1 [json_name = "namespace"]; void clear_namespace_(); @@ -399,6 +400,24 @@ 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; @@ -406,11 +425,13 @@ 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_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_part_id_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; }; // ------------------------------------------------------------------- @@ -5473,6 +5494,74 @@ 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) +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- 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 20e1f7990..f600ccad6 100644 --- a/src/viam/api/component/board/v1/board.grpc.pb.cc +++ b/src/viam/api/component/board/v1/board.grpc.pb.cc @@ -36,6 +36,7 @@ static const char* BoardService_method_names[] = { "/viam.component.board.v1.BoardService/ReadAnalogReader", "/viam.component.board.v1.BoardService/WriteAnalog", "/viam.component.board.v1.BoardService/GetDigitalInterruptValue", + "/viam.component.board.v1.BoardService/StreamTicks", "/viam.component.board.v1.BoardService/SetPowerMode", "/viam.component.board.v1.BoardService/GetGeometries", }; @@ -58,8 +59,9 @@ BoardService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chann , 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_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) + , 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) {} ::grpc::Status BoardService::Stub::Status(::grpc::ClientContext* context, const ::viam::component::board::v1::StatusRequest& request, ::viam::component::board::v1::StatusResponse* response) { @@ -315,6 +317,22 @@ ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInter return result; } +::grpc::ClientReader< ::viam::component::board::v1::StreamTicksResponse>* BoardService::Stub::StreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), rpcmethod_StreamTicks_, context, request); +} + +void BoardService::Stub::async::StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamTicks_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>* BoardService::Stub::AsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), cq, rpcmethod_StreamTicks_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>* BoardService::Stub::PrepareAsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), cq, rpcmethod_StreamTicks_, context, request, false, nullptr); +} + ::grpc::Status BoardService::Stub::SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::viam::component::board::v1::SetPowerModeResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPowerMode_, context, request, response); } @@ -474,6 +492,16 @@ BoardService::Service::Service() { }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[11], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< BoardService::Service, ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( + [](BoardService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::component::board::v1::StreamTicksRequest* req, + ::grpc::ServerWriter<::viam::component::board::v1::StreamTicksResponse>* writer) { + return service->StreamTicks(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BoardService_method_names[12], ::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, @@ -483,7 +511,7 @@ BoardService::Service::Service() { return service->SetPowerMode(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BoardService_method_names[12], + BoardService_method_names[13], ::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, @@ -574,6 +602,13 @@ ::grpc::Status BoardService::Service::GetDigitalInterruptValue(::grpc::ServerCon return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status BoardService::Service::StreamTicks(::grpc::ServerContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status BoardService::Service::SetPowerMode(::grpc::ServerContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* 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 3998062c4..d12ef14b6 100644 --- a/src/viam/api/component/board/v1/board.grpc.pb.h +++ b/src/viam/api/component/board/v1/board.grpc.pb.h @@ -131,6 +131,16 @@ class BoardService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>> PrepareAsyncGetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>>(PrepareAsyncGetDigitalInterruptValueRaw(context, request, cq)); } + // StreamTicks starts a stream of ticks for the given digital interrupts. + std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::component::board::v1::StreamTicksResponse>> StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::component::board::v1::StreamTicksResponse>>(StreamTicksRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::board::v1::StreamTicksResponse>> AsyncStreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::board::v1::StreamTicksResponse>>(AsyncStreamTicksRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::board::v1::StreamTicksResponse>> PrepareAsyncStreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::component::board::v1::StreamTicksResponse>>(PrepareAsyncStreamTicksRaw(context, request, cq)); + } // Power Management // // `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration. @@ -189,6 +199,8 @@ class BoardService final { // GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt. virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) = 0; virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // StreamTicks starts a stream of ticks for the given digital interrupts. + virtual void StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) = 0; // Power Management // // `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration. @@ -224,6 +236,9 @@ class BoardService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::WriteAnalogResponse>* PrepareAsyncWriteAnalogRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* AsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* PrepareAsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::viam::component::board::v1::StreamTicksResponse>* StreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::board::v1::StreamTicksResponse>* AsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::board::v1::StreamTicksResponse>* PrepareAsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPowerModeResponse>* AsyncSetPowerModeRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetPowerModeResponse>* PrepareAsyncSetPowerModeRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -309,6 +324,15 @@ class BoardService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>> PrepareAsyncGetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>>(PrepareAsyncGetDigitalInterruptValueRaw(context, request, cq)); } + std::unique_ptr< ::grpc::ClientReader< ::viam::component::board::v1::StreamTicksResponse>> StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::viam::component::board::v1::StreamTicksResponse>>(StreamTicksRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>> AsyncStreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>>(AsyncStreamTicksRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>> PrepareAsyncStreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>>(PrepareAsyncStreamTicksRaw(context, request, cq)); + } ::grpc::Status SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::viam::component::board::v1::SetPowerModeResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPowerModeResponse>> AsyncSetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPowerModeResponse>>(AsyncSetPowerModeRaw(context, request, cq)); @@ -348,6 +372,7 @@ class BoardService final { void WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) override; void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) override; void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function) override; void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; @@ -385,6 +410,9 @@ class BoardService final { ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::WriteAnalogResponse>* PrepareAsyncWriteAnalogRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* AsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* PrepareAsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::viam::component::board::v1::StreamTicksResponse>* StreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request) override; + ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>* AsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>* PrepareAsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPowerModeResponse>* AsyncSetPowerModeRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) override; ::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; @@ -400,6 +428,7 @@ class BoardService final { const ::grpc::internal::RpcMethod rpcmethod_ReadAnalogReader_; const ::grpc::internal::RpcMethod rpcmethod_WriteAnalog_; const ::grpc::internal::RpcMethod rpcmethod_GetDigitalInterruptValue_; + const ::grpc::internal::RpcMethod rpcmethod_StreamTicks_; const ::grpc::internal::RpcMethod rpcmethod_SetPowerMode_; const ::grpc::internal::RpcMethod rpcmethod_GetGeometries_; }; @@ -435,6 +464,8 @@ class BoardService final { // // GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt. virtual ::grpc::Status GetDigitalInterruptValue(::grpc::ServerContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response); + // StreamTicks starts a stream of ticks for the given digital interrupts. + virtual ::grpc::Status StreamTicks(::grpc::ServerContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* writer); // Power Management // // `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration. @@ -663,12 +694,32 @@ class BoardService final { } }; template + class WithAsyncMethod_StreamTicks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_StreamTicks() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_StreamTicks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamTicks(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* /*writer*/) override { + abort(); + 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); + } + }; + template class WithAsyncMethod_SetPowerMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetPowerMode() { - ::grpc::Service::MarkMethodAsync(11); + ::grpc::Service::MarkMethodAsync(12); } ~WithAsyncMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); @@ -679,7 +730,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(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -688,7 +739,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetGeometries() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(13); } ~WithAsyncMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -699,10 +750,10 @@ 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(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_Status > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_Status > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_Status : public BaseClass { private: @@ -1001,18 +1052,40 @@ class BoardService final { ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_StreamTicks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_StreamTicks() { + ::grpc::Service::MarkMethodCallback(11, + 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); })); + } + ~WithCallbackMethod_StreamTicks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamTicks(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::viam::component::board::v1::StreamTicksResponse>* StreamTicks( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/) { return nullptr; } + }; + template class WithCallbackMethod_SetPowerMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetPowerMode() { - ::grpc::Service::MarkMethodCallback(11, + ::grpc::Service::MarkMethodCallback(12, 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(11); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1033,13 +1106,13 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(12, + ::grpc::Service::MarkMethodCallback(13, 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(12); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1054,7 +1127,7 @@ 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_Status > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Status : public BaseClass { @@ -1244,12 +1317,29 @@ class BoardService final { } }; template + class WithGenericMethod_StreamTicks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_StreamTicks() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_StreamTicks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamTicks(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_SetPowerMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetPowerMode() { - ::grpc::Service::MarkMethodGeneric(11); + ::grpc::Service::MarkMethodGeneric(12); } ~WithGenericMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); @@ -1266,7 +1356,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetGeometries() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(13); } ~WithGenericMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -1498,12 +1588,32 @@ class BoardService final { } }; template + class WithRawMethod_StreamTicks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_StreamTicks() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_StreamTicks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamTicks(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* /*writer*/) override { + abort(); + 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); + } + }; + template class WithRawMethod_SetPowerMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetPowerMode() { - ::grpc::Service::MarkMethodRaw(11); + ::grpc::Service::MarkMethodRaw(12); } ~WithRawMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); @@ -1514,7 +1624,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(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1523,7 +1633,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetGeometries() { - ::grpc::Service::MarkMethodRaw(12); + ::grpc::Service::MarkMethodRaw(13); } ~WithRawMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -1534,7 +1644,7 @@ 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(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1780,12 +1890,34 @@ class BoardService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_StreamTicks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_StreamTicks() { + ::grpc::Service::MarkMethodRawCallback(11, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->StreamTicks(context, request); })); + } + ~WithRawCallbackMethod_StreamTicks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status StreamTicks(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StreamTicks( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template class WithRawCallbackMethod_SetPowerMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetPowerMode() { - ::grpc::Service::MarkMethodRawCallback(11, + ::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->SetPowerMode(context, request, response); })); @@ -1807,7 +1939,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(12, + ::grpc::Service::MarkMethodRawCallback(13, 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); })); @@ -2126,7 +2258,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetPowerMode() { - ::grpc::Service::MarkMethodStreamed(11, + ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>( [this](::grpc::ServerContext* context, @@ -2153,7 +2285,7 @@ class BoardService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetGeometries() { - ::grpc::Service::MarkMethodStreamed(12, + ::grpc::Service::MarkMethodStreamed(13, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this](::grpc::ServerContext* context, @@ -2175,8 +2307,35 @@ class BoardService final { 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 Service SplitStreamedService; - typedef WithStreamedUnaryMethod_Status > > > > > > > > > > > > StreamedService; + template + class WithSplitStreamingMethod_StreamTicks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_StreamTicks() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::SplitServerStreamingHandler< + ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>* streamer) { + return this->StreamedStreamTicks(context, + streamer); + })); + } + ~WithSplitStreamingMethod_StreamTicks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status StreamTicks(::grpc::ServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/, ::grpc::ServerWriter< ::viam::component::board::v1::StreamTicksResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + 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; }; } // 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 e1d2b0337..719623863 100644 --- a/src/viam/api/component/board/v1/board.pb.cc +++ b/src/viam/api/component/board/v1/board.pb.cc @@ -283,6 +283,34 @@ struct GetDigitalInterruptValueResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDigitalInterruptValueResponseDefaultTypeInternal _GetDigitalInterruptValueResponse_default_instance_; +PROTOBUF_CONSTEXPR StreamTicksRequest::StreamTicksRequest( + ::_pbi::ConstantInitialized) + : pin_names_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct StreamTicksRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamTicksRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamTicksRequestDefaultTypeInternal() {} + union { + StreamTicksRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamTicksRequestDefaultTypeInternal _StreamTicksRequest_default_instance_; +PROTOBUF_CONSTEXPR StreamTicksResponse::StreamTicksResponse( + ::_pbi::ConstantInitialized) + : pin_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , time_(uint64_t{0u}) + , high_(false){} +struct StreamTicksResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamTicksResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamTicksResponseDefaultTypeInternal() {} + union { + StreamTicksResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamTicksResponseDefaultTypeInternal _StreamTicksResponse_default_instance_; PROTOBUF_CONSTEXPR SetPowerModeRequest::SetPowerModeRequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) @@ -314,7 +342,7 @@ 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[22]; +static ::_pb::Metadata file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[24]; 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; @@ -478,6 +506,24 @@ const uint32_t TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueResponse, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, _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::StreamTicksRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, pin_names_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, _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::StreamTicksResponse, pin_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, time_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, high_), PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -520,8 +566,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 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, 169, -1, sizeof(::viam::component::board::v1::SetPowerModeRequest)}, - { 173, -1, -1, sizeof(::viam::component::board::v1::SetPowerModeResponse)}, + { 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)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -545,6 +593,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::component::board::v1::_WriteAnalogResponse_default_instance_._instance, &::viam::component::board::v1::_GetDigitalInterruptValueRequest_default_instance_._instance, &::viam::component::board::v1::_GetDigitalInterruptValueResponse_default_instance_._instance, + &::viam::component::board::v1::_StreamTicksRequest_default_instance_._instance, + &::viam::component::board::v1::_StreamTicksResponse_default_instance_._instance, &::viam::component::board::v1::_SetPowerModeRequest_default_instance_._instance, &::viam::component::board::v1::_SetPowerModeResponse_default_instance_._instance, }; @@ -596,71 +646,80 @@ const char descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto[] PR "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\"\344\001\n\023SetPowerModeRequest\022\022\n\004name\030\001 \001" - "(\tR\004name\022A\n\npower_mode\030\002 \001(\0162\".viam.comp" - "onent.board.v1.PowerModeR\tpowerMode\022:\n\010d" - "uration\030\003 \001(\0132\031.google.protobuf.Duration" - "H\000R\010duration\210\001\001\022-\n\005extra\030c \001(\0132\027.google." - "protobuf.StructR\005extraB\013\n\t_duration\"\026\n\024S" - "etPowerModeResponse*[\n\tPowerMode\022\032\n\026POWE" - "R_MODE_UNSPECIFIED\020\000\022\025\n\021POWER_MODE_NORMA" - "L\020\001\022\033\n\027POWER_MODE_OFFLINE_DEEP\020\0022\332\020\n\014Boa" - "rdService\022\215\001\n\006Status\022&.viam.component.bo" - "ard.v1.StatusRequest\032\'.viam.component.bo" - "ard.v1.StatusResponse\"2\202\323\344\223\002,\022*/viam/api" - "/v1/component/board/{name}/status\022\216\001\n\007Se" - "tGPIO\022\'.viam.component.board.v1.SetGPIOR" - "equest\032(.viam.component.board.v1.SetGPIO" - "Response\"0\202\323\344\223\002*\032(/viam/api/v1/component" - "/board/{name}/gpio\022\216\001\n\007GetGPIO\022\'.viam.co" - "mponent.board.v1.GetGPIORequest\032(.viam.c" - "omponent.board.v1.GetGPIOResponse\"0\202\323\344\223\002" - "*\022(/viam/api/v1/component/board/{name}/g" - "pio\022\201\001\n\003PWM\022#.viam.component.board.v1.PW" - "MRequest\032$.viam.component.board.v1.PWMRe" - "sponse\"/\202\323\344\223\002)\022\'/viam/api/v1/component/b" - "oard/{name}/pwm\022\212\001\n\006SetPWM\022&.viam.compon" - "ent.board.v1.SetPWMRequest\032\'.viam.compon" - "ent.board.v1.SetPWMResponse\"/\202\323\344\223\002)\032\'/vi" - "am/api/v1/component/board/{name}/pwm\022\241\001\n" - "\014PWMFrequency\022,.viam.component.board.v1." - "PWMFrequencyRequest\032-.viam.component.boa" - "rd.v1.PWMFrequencyResponse\"4\202\323\344\223\002.\022,/via" - "m/api/v1/component/board/{name}/pwm_freq" - "\022\252\001\n\017SetPWMFrequency\022/.viam.component.bo" - "ard.v1.SetPWMFrequencyRequest\0320.viam.com" - "ponent.board.v1.SetPWMFrequencyResponse\"" - "4\202\323\344\223\002.\032,/viam/api/v1/component/board/{n" - "ame}/pwm_freq\022\210\001\n\tDoCommand\022 .viam.commo" - "n.v1.DoCommandRequest\032!.viam.common.v1.D" - "oCommandResponse\"6\202\323\344\223\0020\"./viam/api/v1/c" - "omponent/board/{name}/do_command\022\322\001\n\020Rea" - "dAnalogReader\0220.viam.component.board.v1." - "ReadAnalogReaderRequest\0321.viam.component" - ".board.v1.ReadAnalogReaderResponse\"Y\202\323\344\223" - "\002S\022Q/viam/api/v1/component/board/{board_" - "name}/analog_reader/{analog_reader_name}" - "/read\022\242\001\n\013WriteAnalog\022+.viam.component.b" - "oard.v1.WriteAnalogRequest\032,.viam.compon" - "ent.board.v1.WriteAnalogResponse\"8\202\323\344\223\0022" - "\0320/viam/api/v1/component/board/{name}/an" - "alog_write\022\363\001\n\030GetDigitalInterruptValue\022" - "8.viam.component.board.v1.GetDigitalInte" - "rruptValueRequest\0329.viam.component.board" - ".v1.GetDigitalInterruptValueResponse\"b\202\323" - "\344\223\002\\\022Z/viam/api/v1/component/board/{boar" - "d_name}/digital_interrupt/{digital_inter" - "rupt_name}/value\022\243\001\n\014SetPowerMode\022,.viam" - ".component.board.v1.SetPowerModeRequest\032" - "-.viam.component.board.v1.SetPowerModeRe" - "sponse\"6\202\323\344\223\0020\032./viam/api/v1/component/b" - "oard/{name}/power_mode\022\224\001\n\rGetGeometries" - "\022$.viam.common.v1.GetGeometriesRequest\032%" - ".viam.common.v1.GetGeometriesResponse\"6\202" - "\323\344\223\0020\022./viam/api/v1/component/board/{nam" - "e}/geometriesBA\n\033com.viam.component.boar" - "d.v1Z\"go.viam.com/api/component/board/v1" - "b\006proto3" + "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" ; static const ::_pbi::DescriptorTable* const descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -670,9 +729,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, 4408, descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto, + false, false, 4782, 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, 22, + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps, 4, 24, 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, @@ -4923,6 +4982,542 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetDigitalInterruptValueResponse::GetMetadata( // =================================================================== +class StreamTicksRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StreamTicksRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +StreamTicksRequest::_Internal::extra(const StreamTicksRequest* msg) { + return *msg->extra_; +} +void StreamTicksRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +StreamTicksRequest::StreamTicksRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + pin_names_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.StreamTicksRequest) +} +StreamTicksRequest::StreamTicksRequest(const StreamTicksRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + pin_names_(from.pin_names_) { + _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.StreamTicksRequest) +} + +inline void StreamTicksRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; +} + +StreamTicksRequest::~StreamTicksRequest() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.StreamTicksRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StreamTicksRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void StreamTicksRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StreamTicksRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StreamTicksRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + pin_names_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamTicksRequest::_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.StreamTicksRequest.name")); + } else + goto handle_unusual; + continue; + // repeated string pin_names = 2 [json_name = "pinNames"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_pin_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.StreamTicksRequest.pin_names")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* StreamTicksRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StreamTicksRequest) + 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.StreamTicksRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // repeated string pin_names = 2 [json_name = "pinNames"]; + for (int i = 0, n = this->_internal_pin_names_size(); i < n; i++) { + const auto& s = this->_internal_pin_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.StreamTicksRequest.pin_names"); + target = stream->WriteString(2, s, 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.StreamTicksRequest) + return target; +} + +size_t StreamTicksRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StreamTicksRequest) + 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 pin_names = 2 [json_name = "pinNames"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(pin_names_.size()); + for (int i = 0, n = pin_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + pin_names_.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_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamTicksRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamTicksRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamTicksRequest::GetClassData() const { return &_class_data_; } + +void StreamTicksRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void StreamTicksRequest::MergeFrom(const StreamTicksRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StreamTicksRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + pin_names_.MergeFrom(from.pin_names_); + 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_); +} + +void StreamTicksRequest::CopyFrom(const StreamTicksRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.StreamTicksRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamTicksRequest::IsInitialized() const { + return true; +} + +void StreamTicksRequest::InternalSwap(StreamTicksRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + pin_names_.InternalSwap(&other->pin_names_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::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]); +} + +// =================================================================== + +class StreamTicksResponse::_Internal { + public: +}; + +StreamTicksResponse::StreamTicksResponse(::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.StreamTicksResponse) +} +StreamTicksResponse::StreamTicksResponse(const StreamTicksResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + pin_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin_name().empty()) { + pin_name_.Set(from._internal_pin_name(), + GetArenaForAllocation()); + } + ::memcpy(&time_, &from.time_, + static_cast(reinterpret_cast(&high_) - + reinterpret_cast(&time_)) + sizeof(high_)); + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.StreamTicksResponse) +} + +inline void StreamTicksResponse::SharedCtor() { +pin_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&high_) - + reinterpret_cast(&time_)) + sizeof(high_)); +} + +StreamTicksResponse::~StreamTicksResponse() { + // @@protoc_insertion_point(destructor:viam.component.board.v1.StreamTicksResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StreamTicksResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + pin_name_.Destroy(); +} + +void StreamTicksResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StreamTicksResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StreamTicksResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + pin_name_.ClearToEmpty(); + ::memset(&time_, 0, static_cast( + reinterpret_cast(&high_) - + reinterpret_cast(&time_)) + sizeof(high_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamTicksResponse::_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 pin_name = 1 [json_name = "pinName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_pin_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.StreamTicksResponse.pin_name")); + } else + goto handle_unusual; + continue; + // uint64 time = 2 [json_name = "time"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool high = 3 [json_name = "high"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + high_ = ::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* StreamTicksResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StreamTicksResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string pin_name = 1 [json_name = "pinName"]; + if (!this->_internal_pin_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin_name().data(), static_cast(this->_internal_pin_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.StreamTicksResponse.pin_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_pin_name(), target); + } + + // uint64 time = 2 [json_name = "time"]; + if (this->_internal_time() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_time(), target); + } + + // bool high = 3 [json_name = "high"]; + if (this->_internal_high() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_high(), 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.component.board.v1.StreamTicksResponse) + return target; +} + +size_t StreamTicksResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StreamTicksResponse) + 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 pin_name = 1 [json_name = "pinName"]; + if (!this->_internal_pin_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin_name()); + } + + // uint64 time = 2 [json_name = "time"]; + if (this->_internal_time() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_time()); + } + + // bool high = 3 [json_name = "high"]; + if (this->_internal_high() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamTicksResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamTicksResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamTicksResponse::GetClassData() const { return &_class_data_; } + +void StreamTicksResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void StreamTicksResponse::MergeFrom(const StreamTicksResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StreamTicksResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_pin_name().empty()) { + _internal_set_pin_name(from._internal_pin_name()); + } + if (from._internal_time() != 0) { + _internal_set_time(from._internal_time()); + } + if (from._internal_high() != 0) { + _internal_set_high(from._internal_high()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StreamTicksResponse::CopyFrom(const StreamTicksResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.board.v1.StreamTicksResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StreamTicksResponse::IsInitialized() const { + return true; +} + +void StreamTicksResponse::InternalSwap(StreamTicksResponse* 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( + &pin_name_, lhs_arena, + &other->pin_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StreamTicksResponse, high_) + + sizeof(StreamTicksResponse::high_) + - PROTOBUF_FIELD_OFFSET(StreamTicksResponse, time_)>( + reinterpret_cast(&time_), + reinterpret_cast(&other->time_)); +} + +::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]); +} + +// =================================================================== + class SetPowerModeRequest::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); @@ -5251,7 +5846,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[20]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[22]); } // =================================================================== @@ -5290,7 +5885,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[21]); + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[23]); } // @@protoc_insertion_point(namespace_scope) @@ -5379,6 +5974,14 @@ template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetDigitalInterruptVa Arena::CreateMaybeMessage< ::viam::component::board::v1::GetDigitalInterruptValueResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::component::board::v1::GetDigitalInterruptValueResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StreamTicksRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::StreamTicksRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::StreamTicksRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StreamTicksResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::StreamTicksResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::StreamTicksResponse >(arena); +} template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPowerModeRequest* Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPowerModeRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPowerModeRequest >(arena); diff --git a/src/viam/api/component/board/v1/board.pb.h b/src/viam/api/component/board/v1/board.pb.h index d69ff0ffa..244ef2036 100644 --- a/src/viam/api/component/board/v1/board.pb.h +++ b/src/viam/api/component/board/v1/board.pb.h @@ -114,6 +114,12 @@ extern StatusRequestDefaultTypeInternal _StatusRequest_default_instance_; class StatusResponse; struct StatusResponseDefaultTypeInternal; extern StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; +class StreamTicksRequest; +struct StreamTicksRequestDefaultTypeInternal; +extern StreamTicksRequestDefaultTypeInternal _StreamTicksRequest_default_instance_; +class StreamTicksResponse; +struct StreamTicksResponseDefaultTypeInternal; +extern StreamTicksResponseDefaultTypeInternal _StreamTicksResponse_default_instance_; class WriteAnalogRequest; struct WriteAnalogRequestDefaultTypeInternal; extern WriteAnalogRequestDefaultTypeInternal _WriteAnalogRequest_default_instance_; @@ -145,6 +151,8 @@ template<> ::viam::component::board::v1::SetPowerModeRequest* Arena::CreateMaybe 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::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*); template<> ::viam::component::board::v1::WriteAnalogResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::WriteAnalogResponse>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -3380,6 +3388,370 @@ class GetDigitalInterruptValueResponse final : }; // ------------------------------------------------------------------- +class StreamTicksRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StreamTicksRequest) */ { + public: + inline StreamTicksRequest() : StreamTicksRequest(nullptr) {} + ~StreamTicksRequest() override; + explicit PROTOBUF_CONSTEXPR StreamTicksRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StreamTicksRequest(const StreamTicksRequest& from); + StreamTicksRequest(StreamTicksRequest&& from) noexcept + : StreamTicksRequest() { + *this = ::std::move(from); + } + + inline StreamTicksRequest& operator=(const StreamTicksRequest& from) { + CopyFrom(from); + return *this; + } + inline StreamTicksRequest& operator=(StreamTicksRequest&& 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 StreamTicksRequest& default_instance() { + return *internal_default_instance(); + } + static inline const StreamTicksRequest* internal_default_instance() { + return reinterpret_cast( + &_StreamTicksRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(StreamTicksRequest& a, StreamTicksRequest& b) { + a.Swap(&b); + } + inline void Swap(StreamTicksRequest* 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(StreamTicksRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StreamTicksRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamTicksRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamTicksRequest& 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(StreamTicksRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.StreamTicksRequest"; + } + protected: + explicit StreamTicksRequest(::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 { + kPinNamesFieldNumber = 2, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + }; + // repeated string pin_names = 2 [json_name = "pinNames"]; + int pin_names_size() const; + private: + int _internal_pin_names_size() const; + public: + void clear_pin_names(); + const std::string& pin_names(int index) const; + std::string* mutable_pin_names(int index); + void set_pin_names(int index, const std::string& value); + void set_pin_names(int index, std::string&& value); + void set_pin_names(int index, const char* value); + void set_pin_names(int index, const char* value, size_t size); + std::string* add_pin_names(); + void add_pin_names(const std::string& value); + void add_pin_names(std::string&& value); + void add_pin_names(const char* value); + void add_pin_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& pin_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_pin_names(); + private: + const std::string& _internal_pin_names(int index) const; + std::string* _internal_add_pin_names(); + 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(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.StreamTicksRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField pin_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + +class StreamTicksResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StreamTicksResponse) */ { + public: + inline StreamTicksResponse() : StreamTicksResponse(nullptr) {} + ~StreamTicksResponse() override; + explicit PROTOBUF_CONSTEXPR StreamTicksResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StreamTicksResponse(const StreamTicksResponse& from); + StreamTicksResponse(StreamTicksResponse&& from) noexcept + : StreamTicksResponse() { + *this = ::std::move(from); + } + + inline StreamTicksResponse& operator=(const StreamTicksResponse& from) { + CopyFrom(from); + return *this; + } + inline StreamTicksResponse& operator=(StreamTicksResponse&& 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 StreamTicksResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StreamTicksResponse* internal_default_instance() { + return reinterpret_cast( + &_StreamTicksResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(StreamTicksResponse& a, StreamTicksResponse& b) { + a.Swap(&b); + } + inline void Swap(StreamTicksResponse* 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(StreamTicksResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StreamTicksResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamTicksResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamTicksResponse& 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(StreamTicksResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.StreamTicksResponse"; + } + protected: + explicit StreamTicksResponse(::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 { + kPinNameFieldNumber = 1, + kTimeFieldNumber = 2, + kHighFieldNumber = 3, + }; + // string pin_name = 1 [json_name = "pinName"]; + void clear_pin_name(); + const std::string& pin_name() const; + template + void set_pin_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin_name(); + PROTOBUF_NODISCARD std::string* release_pin_name(); + void set_allocated_pin_name(std::string* pin_name); + private: + const std::string& _internal_pin_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin_name(const std::string& value); + std::string* _internal_mutable_pin_name(); + public: + + // uint64 time = 2 [json_name = "time"]; + void clear_time(); + uint64_t time() const; + void set_time(uint64_t value); + private: + uint64_t _internal_time() const; + void _internal_set_time(uint64_t value); + public: + + // bool high = 3 [json_name = "high"]; + void clear_high(); + bool high() const; + void set_high(bool value); + private: + bool _internal_high() const; + void _internal_set_high(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.StreamTicksResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_name_; + uint64_t time_; + bool high_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; +// ------------------------------------------------------------------- + class SetPowerModeRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPowerModeRequest) */ { public: @@ -3428,7 +3800,7 @@ class SetPowerModeRequest final : &_SetPowerModeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 22; friend void swap(SetPowerModeRequest& a, SetPowerModeRequest& b) { a.Swap(&b); @@ -3627,7 +3999,7 @@ class SetPowerModeResponse final : &_SetPowerModeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 23; friend void swap(SetPowerModeResponse& a, SetPowerModeResponse& b) { a.Swap(&b); @@ -5848,6 +6220,314 @@ inline void GetDigitalInterruptValueResponse::set_value(int64_t value) { // ------------------------------------------------------------------- +// StreamTicksRequest + +// string name = 1 [json_name = "name"]; +inline void StreamTicksRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& StreamTicksRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StreamTicksRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksRequest.name) +} +inline std::string* StreamTicksRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksRequest.name) + return _s; +} +inline const std::string& StreamTicksRequest::_internal_name() const { + return name_.Get(); +} +inline void StreamTicksRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StreamTicksRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StreamTicksRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.StreamTicksRequest.name) + return name_.Release(); +} +inline void StreamTicksRequest::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.StreamTicksRequest.name) +} + +// repeated string pin_names = 2 [json_name = "pinNames"]; +inline int StreamTicksRequest::_internal_pin_names_size() const { + return pin_names_.size(); +} +inline int StreamTicksRequest::pin_names_size() const { + return _internal_pin_names_size(); +} +inline void StreamTicksRequest::clear_pin_names() { + pin_names_.Clear(); +} +inline std::string* StreamTicksRequest::add_pin_names() { + std::string* _s = _internal_add_pin_names(); + // @@protoc_insertion_point(field_add_mutable:viam.component.board.v1.StreamTicksRequest.pin_names) + return _s; +} +inline const std::string& StreamTicksRequest::_internal_pin_names(int index) const { + return pin_names_.Get(index); +} +inline const std::string& StreamTicksRequest::pin_names(int index) const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksRequest.pin_names) + return _internal_pin_names(index); +} +inline std::string* StreamTicksRequest::mutable_pin_names(int index) { + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksRequest.pin_names) + return pin_names_.Mutable(index); +} +inline void StreamTicksRequest::set_pin_names(int index, const std::string& value) { + pin_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline void StreamTicksRequest::set_pin_names(int index, std::string&& value) { + pin_names_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline void StreamTicksRequest::set_pin_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + pin_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline void StreamTicksRequest::set_pin_names(int index, const char* value, size_t size) { + pin_names_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline std::string* StreamTicksRequest::_internal_add_pin_names() { + return pin_names_.Add(); +} +inline void StreamTicksRequest::add_pin_names(const std::string& value) { + pin_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline void StreamTicksRequest::add_pin_names(std::string&& value) { + pin_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline void StreamTicksRequest::add_pin_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + pin_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline void StreamTicksRequest::add_pin_names(const char* value, size_t size) { + pin_names_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.component.board.v1.StreamTicksRequest.pin_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StreamTicksRequest::pin_names() const { + // @@protoc_insertion_point(field_list:viam.component.board.v1.StreamTicksRequest.pin_names) + return pin_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StreamTicksRequest::mutable_pin_names() { + // @@protoc_insertion_point(field_mutable_list:viam.component.board.v1.StreamTicksRequest.pin_names) + return &pin_names_; +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StreamTicksRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool StreamTicksRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StreamTicksRequest::_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& StreamTicksRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksRequest.extra) + return _internal_extra(); +} +inline void StreamTicksRequest::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.StreamTicksRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamTicksRequest::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* StreamTicksRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.StreamTicksRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamTicksRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamTicksRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksRequest.extra) + return _msg; +} +inline void StreamTicksRequest::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.StreamTicksRequest.extra) +} + +// ------------------------------------------------------------------- + +// StreamTicksResponse + +// string pin_name = 1 [json_name = "pinName"]; +inline void StreamTicksResponse::clear_pin_name() { + pin_name_.ClearToEmpty(); +} +inline const std::string& StreamTicksResponse::pin_name() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksResponse.pin_name) + return _internal_pin_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StreamTicksResponse::set_pin_name(ArgT0&& arg0, ArgT... args) { + + pin_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksResponse.pin_name) +} +inline std::string* StreamTicksResponse::mutable_pin_name() { + std::string* _s = _internal_mutable_pin_name(); + // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksResponse.pin_name) + return _s; +} +inline const std::string& StreamTicksResponse::_internal_pin_name() const { + return pin_name_.Get(); +} +inline void StreamTicksResponse::_internal_set_pin_name(const std::string& value) { + + pin_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StreamTicksResponse::_internal_mutable_pin_name() { + + return pin_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StreamTicksResponse::release_pin_name() { + // @@protoc_insertion_point(field_release:viam.component.board.v1.StreamTicksResponse.pin_name) + return pin_name_.Release(); +} +inline void StreamTicksResponse::set_allocated_pin_name(std::string* pin_name) { + if (pin_name != nullptr) { + + } else { + + } + pin_name_.SetAllocated(pin_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_name_.IsDefault()) { + pin_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StreamTicksResponse.pin_name) +} + +// uint64 time = 2 [json_name = "time"]; +inline void StreamTicksResponse::clear_time() { + time_ = uint64_t{0u}; +} +inline uint64_t StreamTicksResponse::_internal_time() const { + return time_; +} +inline uint64_t StreamTicksResponse::time() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksResponse.time) + return _internal_time(); +} +inline void StreamTicksResponse::_internal_set_time(uint64_t value) { + + time_ = value; +} +inline void StreamTicksResponse::set_time(uint64_t value) { + _internal_set_time(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksResponse.time) +} + +// bool high = 3 [json_name = "high"]; +inline void StreamTicksResponse::clear_high() { + high_ = false; +} +inline bool StreamTicksResponse::_internal_high() const { + return high_; +} +inline bool StreamTicksResponse::high() const { + // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksResponse.high) + return _internal_high(); +} +inline void StreamTicksResponse::_internal_set_high(bool value) { + + high_ = value; +} +inline void StreamTicksResponse::set_high(bool value) { + _internal_set_high(value); + // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksResponse.high) +} + +// ------------------------------------------------------------------- + // SetPowerModeRequest // string name = 1 [json_name = "name"]; @@ -6141,6 +6821,10 @@ inline void SetPowerModeRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::St // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/google/api/client.pb.cc b/src/viam/api/google/api/client.pb.cc index 8679b906c..ec3cb2059 100644 --- a/src/viam/api/google/api/client.pb.cc +++ b/src/viam/api/google/api/client.pb.cc @@ -70,6 +70,7 @@ PROTOBUF_CONSTEXPR Publishing::Publishing( , github_label_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , doc_tag_prefix_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , proto_reference_documentation_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , rest_reference_documentation_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , organization_(0) {} struct PublishingDefaultTypeInternal { @@ -294,6 +295,7 @@ const uint32_t TableStruct_google_2fapi_2fclient_2eproto::offsets[] PROTOBUF_SEC PROTOBUF_FIELD_OFFSET(::google::api::Publishing, organization_), PROTOBUF_FIELD_OFFSET(::google::api::Publishing, library_settings_), PROTOBUF_FIELD_OFFSET(::google::api::Publishing, proto_reference_documentation_uri_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, rest_reference_documentation_uri_), PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -411,19 +413,19 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 0, -1, -1, sizeof(::google::api::CommonLanguageSettings)}, { 8, -1, -1, sizeof(::google::api::ClientLibrarySettings)}, { 25, -1, -1, sizeof(::google::api::Publishing)}, - { 41, 49, -1, sizeof(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse)}, - { 51, -1, -1, sizeof(::google::api::JavaSettings)}, - { 60, -1, -1, sizeof(::google::api::CppSettings)}, - { 67, -1, -1, sizeof(::google::api::PhpSettings)}, - { 74, -1, -1, sizeof(::google::api::PythonSettings)}, - { 81, -1, -1, sizeof(::google::api::NodeSettings)}, - { 88, 96, -1, sizeof(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse)}, - { 98, 106, -1, sizeof(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse)}, - { 108, -1, -1, sizeof(::google::api::DotnetSettings)}, - { 120, -1, -1, sizeof(::google::api::RubySettings)}, - { 127, -1, -1, sizeof(::google::api::GoSettings)}, - { 134, -1, -1, sizeof(::google::api::MethodSettings_LongRunning)}, - { 144, -1, -1, sizeof(::google::api::MethodSettings)}, + { 42, 50, -1, sizeof(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse)}, + { 52, -1, -1, sizeof(::google::api::JavaSettings)}, + { 61, -1, -1, sizeof(::google::api::CppSettings)}, + { 68, -1, -1, sizeof(::google::api::PhpSettings)}, + { 75, -1, -1, sizeof(::google::api::PythonSettings)}, + { 82, -1, -1, sizeof(::google::api::NodeSettings)}, + { 89, 97, -1, sizeof(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse)}, + { 99, 107, -1, sizeof(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse)}, + { 109, -1, -1, sizeof(::google::api::DotnetSettings)}, + { 121, -1, -1, sizeof(::google::api::RubySettings)}, + { 128, -1, -1, sizeof(::google::api::GoSettings)}, + { 135, -1, -1, sizeof(::google::api::MethodSettings_LongRunning)}, + { 145, -1, -1, sizeof(::google::api::MethodSettings)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -469,7 +471,7 @@ const char descriptor_table_protodef_google_2fapi_2fclient_2eproto[] PROTOBUF_SE "netSettingsR\016dotnetSettings\022=\n\rruby_sett" "ings\030\033 \001(\0132\030.google.api.RubySettingsR\014ru" "bySettings\0227\n\013go_settings\030\034 \001(\0132\026.google" - ".api.GoSettingsR\ngoSettings\"\253\004\n\nPublishi" + ".api.GoSettingsR\ngoSettings\"\364\004\n\nPublishi" "ng\022C\n\017method_settings\030\002 \003(\0132\032.google.api" ".MethodSettingsR\016methodSettings\022\"\n\rnew_i" "ssue_uri\030e \001(\tR\013newIssueUri\022+\n\021documenta" @@ -483,66 +485,70 @@ const char descriptor_table_protodef_google_2fapi_2fclient_2eproto[] PROTOBUF_SE "ary_settings\030m \003(\0132!.google.api.ClientLi" "brarySettingsR\017librarySettings\022I\n!proto_" "reference_documentation_uri\030n \001(\tR\036proto" - "ReferenceDocumentationUri\"\232\002\n\014JavaSettin" - "gs\022\'\n\017library_package\030\001 \001(\tR\016libraryPack" - "age\022_\n\023service_class_names\030\002 \003(\0132/.googl" - "e.api.JavaSettings.ServiceClassNamesEntr" - "yR\021serviceClassNames\022:\n\006common\030\003 \001(\0132\".g" - "oogle.api.CommonLanguageSettingsR\006common" - "\032D\n\026ServiceClassNamesEntry\022\020\n\003key\030\001 \001(\tR" - "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"I\n\013CppSet" - "tings\022:\n\006common\030\001 \001(\0132\".google.api.Commo" - "nLanguageSettingsR\006common\"I\n\013PhpSettings" - "\022:\n\006common\030\001 \001(\0132\".google.api.CommonLang" - "uageSettingsR\006common\"L\n\016PythonSettings\022:" + "ReferenceDocumentationUri\022G\n rest_refere" + "nce_documentation_uri\030o \001(\tR\035restReferen" + "ceDocumentationUri\"\232\002\n\014JavaSettings\022\'\n\017l" + "ibrary_package\030\001 \001(\tR\016libraryPackage\022_\n\023" + "service_class_names\030\002 \003(\0132/.google.api.J" + "avaSettings.ServiceClassNamesEntryR\021serv" + "iceClassNames\022:\n\006common\030\003 \001(\0132\".google.a" + "pi.CommonLanguageSettingsR\006common\032D\n\026Ser" + "viceClassNamesEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n" + "\005value\030\002 \001(\tR\005value:\0028\001\"I\n\013CppSettings\022:" "\n\006common\030\001 \001(\0132\".google.api.CommonLangua" - "geSettingsR\006common\"J\n\014NodeSettings\022:\n\006co" - "mmon\030\001 \001(\0132\".google.api.CommonLanguageSe" - "ttingsR\006common\"\256\004\n\016DotnetSettings\022:\n\006com" + "geSettingsR\006common\"I\n\013PhpSettings\022:\n\006com" "mon\030\001 \001(\0132\".google.api.CommonLanguageSet" - "tingsR\006common\022Z\n\020renamed_services\030\002 \003(\0132" - "/.google.api.DotnetSettings.RenamedServi" - "cesEntryR\017renamedServices\022]\n\021renamed_res" - "ources\030\003 \003(\01320.google.api.DotnetSettings" - ".RenamedResourcesEntryR\020renamedResources" - "\022+\n\021ignored_resources\030\004 \003(\tR\020ignoredReso" - "urces\0228\n\030forced_namespace_aliases\030\005 \003(\tR" - "\026forcedNamespaceAliases\0225\n\026handwritten_s" - "ignatures\030\006 \003(\tR\025handwrittenSignatures\032B" - "\n\024RenamedServicesEntry\022\020\n\003key\030\001 \001(\tR\003key" - "\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\032C\n\025RenamedRes" - "ourcesEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002" - " \001(\tR\005value:\0028\001\"J\n\014RubySettings\022:\n\006commo" + "tingsR\006common\"L\n\016PythonSettings\022:\n\006commo" "n\030\001 \001(\0132\".google.api.CommonLanguageSetti" - "ngsR\006common\"H\n\nGoSettings\022:\n\006common\030\001 \001(" - "\0132\".google.api.CommonLanguageSettingsR\006c" - "ommon\"\302\003\n\016MethodSettings\022\032\n\010selector\030\001 \001" - "(\tR\010selector\022I\n\014long_running\030\002 \001(\0132&.goo" - "gle.api.MethodSettings.LongRunningR\013long" - "Running\0222\n\025auto_populated_fields\030\003 \003(\tR\023" - "autoPopulatedFields\032\224\002\n\013LongRunning\022G\n\022i" - "nitial_poll_delay\030\001 \001(\0132\031.google.protobu" - "f.DurationR\020initialPollDelay\0222\n\025poll_del" - "ay_multiplier\030\002 \001(\002R\023pollDelayMultiplier" - "\022\?\n\016max_poll_delay\030\003 \001(\0132\031.google.protob" - "uf.DurationR\014maxPollDelay\022G\n\022total_poll_" - "timeout\030\004 \001(\0132\031.google.protobuf.Duration" - "R\020totalPollTimeout*\243\001\n\031ClientLibraryOrga" - "nization\022+\n\'CLIENT_LIBRARY_ORGANIZATION_" - "UNSPECIFIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHO" - "TOS\020\003\022\017\n\013STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003" - "GEO\020\006\022\021\n\rGENERATIVE_AI\020\007*g\n\030ClientLibrar" - "yDestination\022*\n&CLIENT_LIBRARY_DESTINATI" - "ON_UNSPECIFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_" - "MANAGER\020\024:J\n\020method_signature\022\036.google.p" - "rotobuf.MethodOptions\030\233\010 \003(\tR\017methodSign" - "ature:C\n\014default_host\022\037.google.protobuf." - "ServiceOptions\030\231\010 \001(\tR\013defaultHost:C\n\014oa" - "uth_scopes\022\037.google.protobuf.ServiceOpti" - "ons\030\232\010 \001(\tR\013oauthScopesBi\n\016com.google.ap" - "iB\013ClientProtoP\001ZAgoogle.golang.org/genp" - "roto/googleapis/api/annotations;annotati" - "ons\242\002\004GAPIb\006proto3" + "ngsR\006common\"J\n\014NodeSettings\022:\n\006common\030\001 " + "\001(\0132\".google.api.CommonLanguageSettingsR" + "\006common\"\256\004\n\016DotnetSettings\022:\n\006common\030\001 \001" + "(\0132\".google.api.CommonLanguageSettingsR\006" + "common\022Z\n\020renamed_services\030\002 \003(\0132/.googl" + "e.api.DotnetSettings.RenamedServicesEntr" + "yR\017renamedServices\022]\n\021renamed_resources\030" + "\003 \003(\01320.google.api.DotnetSettings.Rename" + "dResourcesEntryR\020renamedResources\022+\n\021ign" + "ored_resources\030\004 \003(\tR\020ignoredResources\0228" + "\n\030forced_namespace_aliases\030\005 \003(\tR\026forced" + "NamespaceAliases\0225\n\026handwritten_signatur" + "es\030\006 \003(\tR\025handwrittenSignatures\032B\n\024Renam" + "edServicesEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + "ue\030\002 \001(\tR\005value:\0028\001\032C\n\025RenamedResourcesE" + "ntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005v" + "alue:\0028\001\"J\n\014RubySettings\022:\n\006common\030\001 \001(\013" + "2\".google.api.CommonLanguageSettingsR\006co" + "mmon\"H\n\nGoSettings\022:\n\006common\030\001 \001(\0132\".goo" + "gle.api.CommonLanguageSettingsR\006common\"\302" + "\003\n\016MethodSettings\022\032\n\010selector\030\001 \001(\tR\010sel" + "ector\022I\n\014long_running\030\002 \001(\0132&.google.api" + ".MethodSettings.LongRunningR\013longRunning" + "\0222\n\025auto_populated_fields\030\003 \003(\tR\023autoPop" + "ulatedFields\032\224\002\n\013LongRunning\022G\n\022initial_" + "poll_delay\030\001 \001(\0132\031.google.protobuf.Durat" + "ionR\020initialPollDelay\0222\n\025poll_delay_mult" + "iplier\030\002 \001(\002R\023pollDelayMultiplier\022\?\n\016max" + "_poll_delay\030\003 \001(\0132\031.google.protobuf.Dura" + "tionR\014maxPollDelay\022G\n\022total_poll_timeout" + "\030\004 \001(\0132\031.google.protobuf.DurationR\020total" + "PollTimeout*\243\001\n\031ClientLibraryOrganizatio" + "n\022+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECI" + "FIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOTOS\020\003\022\017" + "\n\013STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003GEO\020\006\022\021" + "\n\rGENERATIVE_AI\020\007*g\n\030ClientLibraryDestin" + "ation\022*\n&CLIENT_LIBRARY_DESTINATION_UNSP" + "ECIFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_MANAGER" + "\020\024:J\n\020method_signature\022\036.google.protobuf" + ".MethodOptions\030\233\010 \003(\tR\017methodSignature:C" + "\n\014default_host\022\037.google.protobuf.Service" + "Options\030\231\010 \001(\tR\013defaultHost:C\n\014oauth_sco" + "pes\022\037.google.protobuf.ServiceOptions\030\232\010 " + "\001(\tR\013oauthScopes:D\n\013api_version\022\037.google" + ".protobuf.ServiceOptions\030\301\272\253\372\001 \001(\tR\napiV" + "ersionBi\n\016com.google.apiB\013ClientProtoP\001Z" + "Agoogle.golang.org/genproto/googleapis/a" + "pi/annotations;annotations\242\002\004GAPIb\006proto" + "3" ; static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fclient_2eproto_deps[3] = { &::descriptor_table_google_2fapi_2flaunch_5fstage_2eproto, @@ -551,7 +557,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fclie }; static ::_pbi::once_flag descriptor_table_google_2fapi_2fclient_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fclient_2eproto = { - false, false, 3858, descriptor_table_protodef_google_2fapi_2fclient_2eproto, + false, false, 4001, descriptor_table_protodef_google_2fapi_2fclient_2eproto, "google/api/client.proto", &descriptor_table_google_2fapi_2fclient_2eproto_once, descriptor_table_google_2fapi_2fclient_2eproto_deps, 3, 16, schemas, file_default_instances, TableStruct_google_2fapi_2fclient_2eproto::offsets, @@ -1487,6 +1493,14 @@ Publishing::Publishing(const Publishing& from) proto_reference_documentation_uri_.Set(from._internal_proto_reference_documentation_uri(), GetArenaForAllocation()); } + rest_reference_documentation_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rest_reference_documentation_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_rest_reference_documentation_uri().empty()) { + rest_reference_documentation_uri_.Set(from._internal_rest_reference_documentation_uri(), + GetArenaForAllocation()); + } organization_ = from.organization_; // @@protoc_insertion_point(copy_constructor:google.api.Publishing) } @@ -1516,6 +1530,10 @@ proto_reference_documentation_uri_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING proto_reference_documentation_uri_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +rest_reference_documentation_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rest_reference_documentation_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING organization_ = 0; } @@ -1536,6 +1554,7 @@ inline void Publishing::SharedDtor() { github_label_.Destroy(); doc_tag_prefix_.Destroy(); proto_reference_documentation_uri_.Destroy(); + rest_reference_documentation_uri_.Destroy(); } void Publishing::SetCachedSize(int size) const { @@ -1557,6 +1576,7 @@ void Publishing::Clear() { github_label_.ClearToEmpty(); doc_tag_prefix_.ClearToEmpty(); proto_reference_documentation_uri_.ClearToEmpty(); + rest_reference_documentation_uri_.ClearToEmpty(); organization_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1677,6 +1697,16 @@ const char* Publishing::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; + // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; + case 111: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_rest_reference_documentation_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.rest_reference_documentation_uri")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1799,6 +1829,16 @@ uint8_t* Publishing::_InternalSerialize( 110, this->_internal_proto_reference_documentation_uri(), target); } + // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; + if (!this->_internal_rest_reference_documentation_uri().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_rest_reference_documentation_uri().data(), static_cast(this->_internal_rest_reference_documentation_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.rest_reference_documentation_uri"); + target = stream->WriteStringMaybeAliased( + 111, this->_internal_rest_reference_documentation_uri(), 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); @@ -1879,6 +1919,13 @@ size_t Publishing::ByteSizeLong() const { this->_internal_proto_reference_documentation_uri()); } + // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; + if (!this->_internal_rest_reference_documentation_uri().empty()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_rest_reference_documentation_uri()); + } + // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; if (this->_internal_organization() != 0) { total_size += 2 + @@ -1928,6 +1975,9 @@ void Publishing::MergeFrom(const Publishing& from) { if (!from._internal_proto_reference_documentation_uri().empty()) { _internal_set_proto_reference_documentation_uri(from._internal_proto_reference_documentation_uri()); } + if (!from._internal_rest_reference_documentation_uri().empty()) { + _internal_set_rest_reference_documentation_uri(from._internal_rest_reference_documentation_uri()); + } if (from._internal_organization() != 0) { _internal_set_organization(from._internal_organization()); } @@ -1977,6 +2027,10 @@ void Publishing::InternalSwap(Publishing* other) { &proto_reference_documentation_uri_, lhs_arena, &other->proto_reference_documentation_uri_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &rest_reference_documentation_uri_, lhs_arena, + &other->rest_reference_documentation_uri_, rhs_arena + ); swap(organization_, other->organization_); } @@ -4494,6 +4548,10 @@ const std::string oauth_scopes_default(""); PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> oauth_scopes(kOauthScopesFieldNumber, oauth_scopes_default, nullptr); +const std::string api_version_default(""); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> + api_version(kApiVersionFieldNumber, api_version_default, nullptr); // @@protoc_insertion_point(namespace_scope) } // namespace api diff --git a/src/viam/api/google/api/client.pb.h b/src/viam/api/google/api/client.pb.h index 36e091865..0a1b31979 100644 --- a/src/viam/api/google/api/client.pb.h +++ b/src/viam/api/google/api/client.pb.h @@ -809,6 +809,7 @@ class Publishing final : kGithubLabelFieldNumber = 104, kDocTagPrefixFieldNumber = 106, kProtoReferenceDocumentationUriFieldNumber = 110, + kRestReferenceDocumentationUriFieldNumber = 111, kOrganizationFieldNumber = 107, }; // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; @@ -955,6 +956,20 @@ class Publishing final : std::string* _internal_mutable_proto_reference_documentation_uri(); public: + // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; + void clear_rest_reference_documentation_uri(); + const std::string& rest_reference_documentation_uri() const; + template + void set_rest_reference_documentation_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_rest_reference_documentation_uri(); + PROTOBUF_NODISCARD std::string* release_rest_reference_documentation_uri(); + void set_allocated_rest_reference_documentation_uri(std::string* rest_reference_documentation_uri); + private: + const std::string& _internal_rest_reference_documentation_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_rest_reference_documentation_uri(const std::string& value); + std::string* _internal_mutable_rest_reference_documentation_uri(); + public: + // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; void clear_organization(); ::google::api::ClientLibraryOrganization organization() const; @@ -980,6 +995,7 @@ class Publishing final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr github_label_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_tag_prefix_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proto_reference_documentation_uri_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rest_reference_documentation_uri_; int organization_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; @@ -2866,6 +2882,10 @@ static const int kOauthScopesFieldNumber = 1050; extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > oauth_scopes; +static const int kApiVersionFieldNumber = 525000001; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > + api_version; // =================================================================== @@ -4261,6 +4281,56 @@ inline void Publishing::set_allocated_proto_reference_documentation_uri(std::str // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.proto_reference_documentation_uri) } +// string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; +inline void Publishing::clear_rest_reference_documentation_uri() { + rest_reference_documentation_uri_.ClearToEmpty(); +} +inline const std::string& Publishing::rest_reference_documentation_uri() const { + // @@protoc_insertion_point(field_get:google.api.Publishing.rest_reference_documentation_uri) + return _internal_rest_reference_documentation_uri(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_rest_reference_documentation_uri(ArgT0&& arg0, ArgT... args) { + + rest_reference_documentation_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.api.Publishing.rest_reference_documentation_uri) +} +inline std::string* Publishing::mutable_rest_reference_documentation_uri() { + std::string* _s = _internal_mutable_rest_reference_documentation_uri(); + // @@protoc_insertion_point(field_mutable:google.api.Publishing.rest_reference_documentation_uri) + return _s; +} +inline const std::string& Publishing::_internal_rest_reference_documentation_uri() const { + return rest_reference_documentation_uri_.Get(); +} +inline void Publishing::_internal_set_rest_reference_documentation_uri(const std::string& value) { + + rest_reference_documentation_uri_.Set(value, GetArenaForAllocation()); +} +inline std::string* Publishing::_internal_mutable_rest_reference_documentation_uri() { + + return rest_reference_documentation_uri_.Mutable(GetArenaForAllocation()); +} +inline std::string* Publishing::release_rest_reference_documentation_uri() { + // @@protoc_insertion_point(field_release:google.api.Publishing.rest_reference_documentation_uri) + return rest_reference_documentation_uri_.Release(); +} +inline void Publishing::set_allocated_rest_reference_documentation_uri(std::string* rest_reference_documentation_uri) { + if (rest_reference_documentation_uri != nullptr) { + + } else { + + } + rest_reference_documentation_uri_.SetAllocated(rest_reference_documentation_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (rest_reference_documentation_uri_.IsDefault()) { + rest_reference_documentation_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.rest_reference_documentation_uri) +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/src/viam/api/google/api/field_info.grpc.pb.cc b/src/viam/api/google/api/field_info.grpc.pb.cc new file mode 100644 index 000000000..085ada8b8 --- /dev/null +++ b/src/viam/api/google/api/field_info.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/field_info.proto + +#include "google/api/field_info.pb.h" +#include "google/api/field_info.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace google { +namespace api { + +} // namespace google +} // namespace api + diff --git a/src/viam/api/google/api/field_info.grpc.pb.h b/src/viam/api/google/api/field_info.grpc.pb.h new file mode 100644 index 000000000..9c4943789 --- /dev/null +++ b/src/viam/api/google/api/field_info.grpc.pb.h @@ -0,0 +1,50 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: google/api/field_info.proto +// Original file comments: +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_google_2fapi_2ffield_5finfo_2eproto__INCLUDED +#define GRPC_google_2fapi_2ffield_5finfo_2eproto__INCLUDED + +#include "google/api/field_info.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace google { +namespace api { + +} // namespace api +} // namespace google + + +#endif // GRPC_google_2fapi_2ffield_5finfo_2eproto__INCLUDED diff --git a/src/viam/api/google/api/field_info.pb.cc b/src/viam/api/google/api/field_info.pb.cc new file mode 100644 index 000000000..9d087a316 --- /dev/null +++ b/src/viam/api/google/api/field_info.pb.cc @@ -0,0 +1,310 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/field_info.proto + +#include "google/api/field_info.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace google { +namespace api { +PROTOBUF_CONSTEXPR FieldInfo::FieldInfo( + ::_pbi::ConstantInitialized) + : format_(0) +{} +struct FieldInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR FieldInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FieldInfoDefaultTypeInternal() {} + union { + FieldInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldInfoDefaultTypeInternal _FieldInfo_default_instance_; +} // namespace api +} // namespace google +static ::_pb::Metadata file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[1]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2ffield_5finfo_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, format_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::FieldInfo)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::google::api::_FieldInfo_default_instance_._instance, +}; + +const char descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\033google/api/field_info.proto\022\ngoogle.ap" + "i\032 google/protobuf/descriptor.proto\"\224\001\n\t" + "FieldInfo\0224\n\006format\030\001 \001(\0162\034.google.api.F" + "ieldInfo.FormatR\006format\"Q\n\006Format\022\026\n\022FOR" + "MAT_UNSPECIFIED\020\000\022\t\n\005UUID4\020\001\022\010\n\004IPV4\020\002\022\010" + "\n\004IPV6\020\003\022\020\n\014IPV4_OR_IPV6\020\004:W\n\nfield_info" + "\022\035.google.protobuf.FieldOptions\030\314\361\371\212\001 \001(" + "\0132\025.google.api.FieldInfoR\tfieldInfoBl\n\016c" + "om.google.apiB\016FieldInfoProtoP\001ZAgoogle." + "golang.org/genproto/googleapis/api/annot" + "ations;annotations\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, +}; +static ::_pbi::once_flag descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2ffield_5finfo_2eproto = { + false, false, 433, descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto, + "google/api/field_info.proto", + &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps, 1, 1, + schemas, file_default_instances, TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets, + file_level_metadata_google_2fapi_2ffield_5finfo_2eproto, file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto, + file_level_service_descriptors_google_2fapi_2ffield_5finfo_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2ffield_5finfo_2eproto_getter() { + return &descriptor_table_google_2fapi_2ffield_5finfo_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2ffield_5finfo_2eproto(&descriptor_table_google_2fapi_2ffield_5finfo_2eproto); +namespace google { +namespace api { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldInfo_Format_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2ffield_5finfo_2eproto); + return file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto[0]; +} +bool FieldInfo_Format_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +constexpr FieldInfo_Format FieldInfo::FORMAT_UNSPECIFIED; +constexpr FieldInfo_Format FieldInfo::UUID4; +constexpr FieldInfo_Format FieldInfo::IPV4; +constexpr FieldInfo_Format FieldInfo::IPV6; +constexpr FieldInfo_Format FieldInfo::IPV4_OR_IPV6; +constexpr FieldInfo_Format FieldInfo::Format_MIN; +constexpr FieldInfo_Format FieldInfo::Format_MAX; +constexpr int FieldInfo::Format_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +// =================================================================== + +class FieldInfo::_Internal { + public: +}; + +FieldInfo::FieldInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:google.api.FieldInfo) +} +FieldInfo::FieldInfo(const FieldInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + format_ = from.format_; + // @@protoc_insertion_point(copy_constructor:google.api.FieldInfo) +} + +inline void FieldInfo::SharedCtor() { +format_ = 0; +} + +FieldInfo::~FieldInfo() { + // @@protoc_insertion_point(destructor:google.api.FieldInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FieldInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FieldInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FieldInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.FieldInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + format_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FieldInfo::_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) { + // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_format(static_cast<::google::api::FieldInfo_Format>(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* FieldInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.FieldInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; + if (this->_internal_format() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_format(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:google.api.FieldInfo) + return target; +} + +size_t FieldInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.api.FieldInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; + if (this->_internal_format() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_format()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FieldInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FieldInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldInfo::GetClassData() const { return &_class_data_; } + +void FieldInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void FieldInfo::MergeFrom(const FieldInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.FieldInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_format() != 0) { + _internal_set_format(from._internal_format()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FieldInfo::CopyFrom(const FieldInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.FieldInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FieldInfo::IsInitialized() const { + return true; +} + +void FieldInfo::InternalSwap(FieldInfo* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(format_, other->format_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FieldInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_getter, &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, + file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[0]); +} +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::FieldInfo >, 11, false> + field_info(kFieldInfoFieldNumber, ::google::api::FieldInfo::default_instance(), nullptr); + +// @@protoc_insertion_point(namespace_scope) +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::FieldInfo* +Arena::CreateMaybeMessage< ::google::api::FieldInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::FieldInfo >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/viam/api/google/api/field_info.pb.h b/src/viam/api/google/api/field_info.pb.h new file mode 100644 index 000000000..d8cfbe935 --- /dev/null +++ b/src/viam/api/google/api/field_info.pb.h @@ -0,0 +1,326 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/api/field_info.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2ffield_5finfo_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_google_2fapi_2ffield_5finfo_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2ffield_5finfo_2eproto; +namespace google { +namespace api { +class FieldInfo; +struct FieldInfoDefaultTypeInternal; +extern FieldInfoDefaultTypeInternal _FieldInfo_default_instance_; +} // namespace api +} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::FieldInfo* Arena::CreateMaybeMessage<::google::api::FieldInfo>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace api { + +enum FieldInfo_Format : int { + FieldInfo_Format_FORMAT_UNSPECIFIED = 0, + FieldInfo_Format_UUID4 = 1, + FieldInfo_Format_IPV4 = 2, + FieldInfo_Format_IPV6 = 3, + FieldInfo_Format_IPV4_OR_IPV6 = 4, + FieldInfo_Format_FieldInfo_Format_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + FieldInfo_Format_FieldInfo_Format_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool FieldInfo_Format_IsValid(int value); +constexpr FieldInfo_Format FieldInfo_Format_Format_MIN = FieldInfo_Format_FORMAT_UNSPECIFIED; +constexpr FieldInfo_Format FieldInfo_Format_Format_MAX = FieldInfo_Format_IPV4_OR_IPV6; +constexpr int FieldInfo_Format_Format_ARRAYSIZE = FieldInfo_Format_Format_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldInfo_Format_descriptor(); +template +inline const std::string& FieldInfo_Format_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FieldInfo_Format_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FieldInfo_Format_descriptor(), enum_t_value); +} +inline bool FieldInfo_Format_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldInfo_Format* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + FieldInfo_Format_descriptor(), name, value); +} +// =================================================================== + +class FieldInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.FieldInfo) */ { + public: + inline FieldInfo() : FieldInfo(nullptr) {} + ~FieldInfo() override; + explicit PROTOBUF_CONSTEXPR FieldInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FieldInfo(const FieldInfo& from); + FieldInfo(FieldInfo&& from) noexcept + : FieldInfo() { + *this = ::std::move(from); + } + + inline FieldInfo& operator=(const FieldInfo& from) { + CopyFrom(from); + return *this; + } + inline FieldInfo& operator=(FieldInfo&& 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 FieldInfo& default_instance() { + return *internal_default_instance(); + } + static inline const FieldInfo* internal_default_instance() { + return reinterpret_cast( + &_FieldInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(FieldInfo& a, FieldInfo& b) { + a.Swap(&b); + } + inline void Swap(FieldInfo* 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(FieldInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FieldInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FieldInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FieldInfo& 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(FieldInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.FieldInfo"; + } + protected: + explicit FieldInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef FieldInfo_Format Format; + static constexpr Format FORMAT_UNSPECIFIED = + FieldInfo_Format_FORMAT_UNSPECIFIED; + static constexpr Format UUID4 = + FieldInfo_Format_UUID4; + static constexpr Format IPV4 = + FieldInfo_Format_IPV4; + static constexpr Format IPV6 = + FieldInfo_Format_IPV6; + static constexpr Format IPV4_OR_IPV6 = + FieldInfo_Format_IPV4_OR_IPV6; + static inline bool Format_IsValid(int value) { + return FieldInfo_Format_IsValid(value); + } + static constexpr Format Format_MIN = + FieldInfo_Format_Format_MIN; + static constexpr Format Format_MAX = + FieldInfo_Format_Format_MAX; + static constexpr int Format_ARRAYSIZE = + FieldInfo_Format_Format_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Format_descriptor() { + return FieldInfo_Format_descriptor(); + } + template + static inline const std::string& Format_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Format_Name."); + return FieldInfo_Format_Name(enum_t_value); + } + static inline bool Format_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Format* value) { + return FieldInfo_Format_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kFormatFieldNumber = 1, + }; + // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; + void clear_format(); + ::google::api::FieldInfo_Format format() const; + void set_format(::google::api::FieldInfo_Format value); + private: + ::google::api::FieldInfo_Format _internal_format() const; + void _internal_set_format(::google::api::FieldInfo_Format value); + public: + + // @@protoc_insertion_point(class_scope:google.api.FieldInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int format_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2ffield_5finfo_2eproto; +}; +// =================================================================== + +static const int kFieldInfoFieldNumber = 291403980; +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::FieldInfo >, 11, false > + field_info; + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// FieldInfo + +// .google.api.FieldInfo.Format format = 1 [json_name = "format"]; +inline void FieldInfo::clear_format() { + format_ = 0; +} +inline ::google::api::FieldInfo_Format FieldInfo::_internal_format() const { + return static_cast< ::google::api::FieldInfo_Format >(format_); +} +inline ::google::api::FieldInfo_Format FieldInfo::format() const { + // @@protoc_insertion_point(field_get:google.api.FieldInfo.format) + return _internal_format(); +} +inline void FieldInfo::_internal_set_format(::google::api::FieldInfo_Format value) { + + format_ = value; +} +inline void FieldInfo::set_format(::google::api::FieldInfo_Format value) { + _internal_set_format(value); + // @@protoc_insertion_point(field_set:google.api.FieldInfo.format) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace api +} // namespace google + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::google::api::FieldInfo_Format> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::FieldInfo_Format>() { + return ::google::api::FieldInfo_Format_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto diff --git a/src/viam/api/module/v1/module.pb.cc b/src/viam/api/module/v1/module.pb.cc index cf27d2d4a..e45a78c35 100644 --- a/src/viam/api/module/v1/module.pb.cc +++ b/src/viam/api/module/v1/module.pb.cc @@ -121,7 +121,8 @@ struct HandlerMapDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HandlerMapDefaultTypeInternal _HandlerMap_default_instance_; PROTOBUF_CONSTEXPR ReadyRequest::ReadyRequest( ::_pbi::ConstantInitialized) - : parent_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + : parent_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , webrtc_offer_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct ReadyRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ReadyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -133,7 +134,8 @@ struct ReadyRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadyRequestDefaultTypeInternal _ReadyRequest_default_instance_; PROTOBUF_CONSTEXPR ReadyResponse::ReadyResponse( ::_pbi::ConstantInitialized) - : handlermap_(nullptr) + : webrtc_answer_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , handlermap_(nullptr) , ready_(false){} struct ReadyResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ReadyResponseDefaultTypeInternal() @@ -239,6 +241,7 @@ const uint32_t TableStruct_module_2fv1_2fmodule_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, parent_address_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, webrtc_offer_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -247,6 +250,7 @@ const uint32_t TableStruct_module_2fv1_2fmodule_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, ready_), PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, handlermap_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, webrtc_answer_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -272,9 +276,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 41, -1, -1, sizeof(::viam::module::v1::HandlerDefinition)}, { 49, -1, -1, sizeof(::viam::module::v1::HandlerMap)}, { 56, -1, -1, sizeof(::viam::module::v1::ReadyRequest)}, - { 63, -1, -1, sizeof(::viam::module::v1::ReadyResponse)}, - { 71, -1, -1, sizeof(::viam::module::v1::ValidateConfigRequest)}, - { 78, -1, -1, sizeof(::viam::module::v1::ValidateConfigResponse)}, + { 64, -1, -1, sizeof(::viam::module::v1::ReadyResponse)}, + { 73, -1, -1, sizeof(::viam::module::v1::ValidateConfigRequest)}, + { 80, -1, -1, sizeof(::viam::module::v1::ValidateConfigResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -308,27 +312,29 @@ const char descriptor_table_protodef_module_2fv1_2fmodule_2eproto[] PROTOBUF_SEC "viam.robot.v1.ResourceRPCSubtypeR\007subtyp" "e\022\026\n\006models\030\002 \003(\tR\006models\"K\n\nHandlerMap\022" "=\n\010handlers\030\001 \003(\0132!.viam.module.v1.Handl" - "erDefinitionR\010handlers\"5\n\014ReadyRequest\022%" - "\n\016parent_address\030\001 \001(\tR\rparentAddress\"a\n" - "\rReadyResponse\022\024\n\005ready\030\001 \001(\010R\005ready\022:\n\n" - "handlermap\030\002 \001(\0132\032.viam.module.v1.Handle" - "rMapR\nhandlermap\"M\n\025ValidateConfigReques" - "t\0224\n\006config\030\001 \001(\0132\034.viam.app.v1.Componen" - "tConfigR\006config\"<\n\026ValidateConfigRespons" - "e\022\"\n\014dependencies\030\001 \003(\tR\014dependencies2\337\003" - "\n\rModuleService\022V\n\013AddResource\022\".viam.mo" - "dule.v1.AddResourceRequest\032#.viam.module" - ".v1.AddResourceResponse\022n\n\023ReconfigureRe" - "source\022*.viam.module.v1.ReconfigureResou" - "rceRequest\032+.viam.module.v1.ReconfigureR" - "esourceResponse\022_\n\016RemoveResource\022%.viam" - ".module.v1.RemoveResourceRequest\032&.viam." - "module.v1.RemoveResourceResponse\022D\n\005Read" - "y\022\034.viam.module.v1.ReadyRequest\032\035.viam.m" - "odule.v1.ReadyResponse\022_\n\016ValidateConfig" - "\022%.viam.module.v1.ValidateConfigRequest\032" - "&.viam.module.v1.ValidateConfigResponseB" - "\033Z\031go.viam.com/api/module/v1b\006proto3" + "erDefinitionR\010handlers\"X\n\014ReadyRequest\022%" + "\n\016parent_address\030\001 \001(\tR\rparentAddress\022!\n" + "\014webrtc_offer\030\002 \001(\tR\013webrtcOffer\"\206\001\n\rRea" + "dyResponse\022\024\n\005ready\030\001 \001(\010R\005ready\022:\n\nhand" + "lermap\030\002 \001(\0132\032.viam.module.v1.HandlerMap" + "R\nhandlermap\022#\n\rwebrtc_answer\030\003 \001(\tR\014web" + "rtcAnswer\"M\n\025ValidateConfigRequest\0224\n\006co" + "nfig\030\001 \001(\0132\034.viam.app.v1.ComponentConfig" + "R\006config\"<\n\026ValidateConfigResponse\022\"\n\014de" + "pendencies\030\001 \003(\tR\014dependencies2\337\003\n\rModul" + "eService\022V\n\013AddResource\022\".viam.module.v1" + ".AddResourceRequest\032#.viam.module.v1.Add" + "ResourceResponse\022n\n\023ReconfigureResource\022" + "*.viam.module.v1.ReconfigureResourceRequ" + "est\032+.viam.module.v1.ReconfigureResource" + "Response\022_\n\016RemoveResource\022%.viam.module" + ".v1.RemoveResourceRequest\032&.viam.module." + "v1.RemoveResourceResponse\022D\n\005Ready\022\034.via" + "m.module.v1.ReadyRequest\032\035.viam.module.v" + "1.ReadyResponse\022_\n\016ValidateConfig\022%.viam" + ".module.v1.ValidateConfigRequest\032&.viam." + "module.v1.ValidateConfigResponseB\033Z\031go.v" + "iam.com/api/module/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_module_2fv1_2fmodule_2eproto_deps[2] = { &::descriptor_table_app_2fv1_2frobot_2eproto, @@ -336,7 +342,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_module_2fv1_2fmodul }; static ::_pbi::once_flag descriptor_table_module_2fv1_2fmodule_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_module_2fv1_2fmodule_2eproto = { - false, false, 1436, descriptor_table_protodef_module_2fv1_2fmodule_2eproto, + false, false, 1509, descriptor_table_protodef_module_2fv1_2fmodule_2eproto, "module/v1/module.proto", &descriptor_table_module_2fv1_2fmodule_2eproto_once, descriptor_table_module_2fv1_2fmodule_2eproto_deps, 2, 12, schemas, file_default_instances, TableStruct_module_2fv1_2fmodule_2eproto::offsets, @@ -1559,6 +1565,14 @@ ReadyRequest::ReadyRequest(const ReadyRequest& from) parent_address_.Set(from._internal_parent_address(), GetArenaForAllocation()); } + webrtc_offer_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_offer_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_webrtc_offer().empty()) { + webrtc_offer_.Set(from._internal_webrtc_offer(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.module.v1.ReadyRequest) } @@ -1567,6 +1581,10 @@ parent_address_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING parent_address_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +webrtc_offer_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_offer_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ReadyRequest::~ReadyRequest() { @@ -1581,6 +1599,7 @@ ReadyRequest::~ReadyRequest() { inline void ReadyRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); parent_address_.Destroy(); + webrtc_offer_.Destroy(); } void ReadyRequest::SetCachedSize(int size) const { @@ -1594,6 +1613,7 @@ void ReadyRequest::Clear() { (void) cached_has_bits; parent_address_.ClearToEmpty(); + webrtc_offer_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1613,6 +1633,16 @@ const char* ReadyRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // string webrtc_offer = 2 [json_name = "webrtcOffer"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_webrtc_offer(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.ReadyRequest.webrtc_offer")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1652,6 +1682,16 @@ uint8_t* ReadyRequest::_InternalSerialize( 1, this->_internal_parent_address(), target); } + // string webrtc_offer = 2 [json_name = "webrtcOffer"]; + if (!this->_internal_webrtc_offer().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_webrtc_offer().data(), static_cast(this->_internal_webrtc_offer().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.ReadyRequest.webrtc_offer"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_webrtc_offer(), 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); @@ -1675,6 +1715,13 @@ size_t ReadyRequest::ByteSizeLong() const { this->_internal_parent_address()); } + // string webrtc_offer = 2 [json_name = "webrtcOffer"]; + if (!this->_internal_webrtc_offer().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_webrtc_offer()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -1700,6 +1747,9 @@ void ReadyRequest::MergeFrom(const ReadyRequest& from) { if (!from._internal_parent_address().empty()) { _internal_set_parent_address(from._internal_parent_address()); } + if (!from._internal_webrtc_offer().empty()) { + _internal_set_webrtc_offer(from._internal_webrtc_offer()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -1723,6 +1773,10 @@ void ReadyRequest::InternalSwap(ReadyRequest* other) { &parent_address_, lhs_arena, &other->parent_address_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &webrtc_offer_, lhs_arena, + &other->webrtc_offer_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata ReadyRequest::GetMetadata() const { @@ -1751,6 +1805,14 @@ ReadyResponse::ReadyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, ReadyResponse::ReadyResponse(const ReadyResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + webrtc_answer_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_answer_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_webrtc_answer().empty()) { + webrtc_answer_.Set(from._internal_webrtc_answer(), + GetArenaForAllocation()); + } if (from._internal_has_handlermap()) { handlermap_ = new ::viam::module::v1::HandlerMap(*from.handlermap_); } else { @@ -1761,6 +1823,10 @@ ReadyResponse::ReadyResponse(const ReadyResponse& from) } inline void ReadyResponse::SharedCtor() { +webrtc_answer_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_answer_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&handlermap_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&ready_) - @@ -1778,6 +1844,7 @@ ReadyResponse::~ReadyResponse() { inline void ReadyResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + webrtc_answer_.Destroy(); if (this != internal_default_instance()) delete handlermap_; } @@ -1791,6 +1858,7 @@ void ReadyResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + webrtc_answer_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && handlermap_ != nullptr) { delete handlermap_; } @@ -1821,6 +1889,16 @@ const char* ReadyResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_webrtc_answer(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.ReadyResponse.webrtc_answer")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1863,6 +1941,16 @@ uint8_t* ReadyResponse::_InternalSerialize( _Internal::handlermap(this).GetCachedSize(), target, stream); } + // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; + if (!this->_internal_webrtc_answer().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_webrtc_answer().data(), static_cast(this->_internal_webrtc_answer().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.ReadyResponse.webrtc_answer"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_webrtc_answer(), 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); @@ -1879,6 +1967,13 @@ size_t ReadyResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; + if (!this->_internal_webrtc_answer().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_webrtc_answer()); + } + // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; if (this->_internal_has_handlermap()) { total_size += 1 + @@ -1913,6 +2008,9 @@ void ReadyResponse::MergeFrom(const ReadyResponse& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; + if (!from._internal_webrtc_answer().empty()) { + _internal_set_webrtc_answer(from._internal_webrtc_answer()); + } if (from._internal_has_handlermap()) { _internal_mutable_handlermap()->::viam::module::v1::HandlerMap::MergeFrom(from._internal_handlermap()); } @@ -1935,7 +2033,13 @@ bool ReadyResponse::IsInitialized() const { void ReadyResponse::InternalSwap(ReadyResponse* 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( + &webrtc_answer_, lhs_arena, + &other->webrtc_answer_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ReadyResponse, ready_) + sizeof(ReadyResponse::ready_) diff --git a/src/viam/api/module/v1/module.pb.h b/src/viam/api/module/v1/module.pb.h index 808f10dd5..7ef14bb0f 100644 --- a/src/viam/api/module/v1/module.pb.h +++ b/src/viam/api/module/v1/module.pb.h @@ -1411,6 +1411,7 @@ class ReadyRequest final : enum : int { kParentAddressFieldNumber = 1, + kWebrtcOfferFieldNumber = 2, }; // string parent_address = 1 [json_name = "parentAddress"]; void clear_parent_address(); @@ -1426,6 +1427,20 @@ class ReadyRequest final : std::string* _internal_mutable_parent_address(); public: + // string webrtc_offer = 2 [json_name = "webrtcOffer"]; + void clear_webrtc_offer(); + const std::string& webrtc_offer() const; + template + void set_webrtc_offer(ArgT0&& arg0, ArgT... args); + std::string* mutable_webrtc_offer(); + PROTOBUF_NODISCARD std::string* release_webrtc_offer(); + void set_allocated_webrtc_offer(std::string* webrtc_offer); + private: + const std::string& _internal_webrtc_offer() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_webrtc_offer(const std::string& value); + std::string* _internal_mutable_webrtc_offer(); + public: + // @@protoc_insertion_point(class_scope:viam.module.v1.ReadyRequest) private: class _Internal; @@ -1434,6 +1449,7 @@ class ReadyRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr webrtc_offer_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; }; @@ -1558,9 +1574,24 @@ class ReadyResponse final : // accessors ------------------------------------------------------- enum : int { + kWebrtcAnswerFieldNumber = 3, kHandlermapFieldNumber = 2, kReadyFieldNumber = 1, }; + // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; + void clear_webrtc_answer(); + const std::string& webrtc_answer() const; + template + void set_webrtc_answer(ArgT0&& arg0, ArgT... args); + std::string* mutable_webrtc_answer(); + PROTOBUF_NODISCARD std::string* release_webrtc_answer(); + void set_allocated_webrtc_answer(std::string* webrtc_answer); + private: + const std::string& _internal_webrtc_answer() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_webrtc_answer(const std::string& value); + std::string* _internal_mutable_webrtc_answer(); + public: + // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; bool has_handlermap() const; private: @@ -1595,6 +1626,7 @@ class ReadyResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr webrtc_answer_; ::viam::module::v1::HandlerMap* handlermap_; bool ready_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -2573,6 +2605,56 @@ inline void ReadyRequest::set_allocated_parent_address(std::string* parent_addre // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyRequest.parent_address) } +// string webrtc_offer = 2 [json_name = "webrtcOffer"]; +inline void ReadyRequest::clear_webrtc_offer() { + webrtc_offer_.ClearToEmpty(); +} +inline const std::string& ReadyRequest::webrtc_offer() const { + // @@protoc_insertion_point(field_get:viam.module.v1.ReadyRequest.webrtc_offer) + return _internal_webrtc_offer(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ReadyRequest::set_webrtc_offer(ArgT0&& arg0, ArgT... args) { + + webrtc_offer_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.module.v1.ReadyRequest.webrtc_offer) +} +inline std::string* ReadyRequest::mutable_webrtc_offer() { + std::string* _s = _internal_mutable_webrtc_offer(); + // @@protoc_insertion_point(field_mutable:viam.module.v1.ReadyRequest.webrtc_offer) + return _s; +} +inline const std::string& ReadyRequest::_internal_webrtc_offer() const { + return webrtc_offer_.Get(); +} +inline void ReadyRequest::_internal_set_webrtc_offer(const std::string& value) { + + webrtc_offer_.Set(value, GetArenaForAllocation()); +} +inline std::string* ReadyRequest::_internal_mutable_webrtc_offer() { + + return webrtc_offer_.Mutable(GetArenaForAllocation()); +} +inline std::string* ReadyRequest::release_webrtc_offer() { + // @@protoc_insertion_point(field_release:viam.module.v1.ReadyRequest.webrtc_offer) + return webrtc_offer_.Release(); +} +inline void ReadyRequest::set_allocated_webrtc_offer(std::string* webrtc_offer) { + if (webrtc_offer != nullptr) { + + } else { + + } + webrtc_offer_.SetAllocated(webrtc_offer, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (webrtc_offer_.IsDefault()) { + webrtc_offer_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyRequest.webrtc_offer) +} + // ------------------------------------------------------------------- // ReadyResponse @@ -2687,6 +2769,56 @@ inline void ReadyResponse::set_allocated_handlermap(::viam::module::v1::HandlerM // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyResponse.handlermap) } +// string webrtc_answer = 3 [json_name = "webrtcAnswer"]; +inline void ReadyResponse::clear_webrtc_answer() { + webrtc_answer_.ClearToEmpty(); +} +inline const std::string& ReadyResponse::webrtc_answer() const { + // @@protoc_insertion_point(field_get:viam.module.v1.ReadyResponse.webrtc_answer) + return _internal_webrtc_answer(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ReadyResponse::set_webrtc_answer(ArgT0&& arg0, ArgT... args) { + + webrtc_answer_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.module.v1.ReadyResponse.webrtc_answer) +} +inline std::string* ReadyResponse::mutable_webrtc_answer() { + std::string* _s = _internal_mutable_webrtc_answer(); + // @@protoc_insertion_point(field_mutable:viam.module.v1.ReadyResponse.webrtc_answer) + return _s; +} +inline const std::string& ReadyResponse::_internal_webrtc_answer() const { + return webrtc_answer_.Get(); +} +inline void ReadyResponse::_internal_set_webrtc_answer(const std::string& value) { + + webrtc_answer_.Set(value, GetArenaForAllocation()); +} +inline std::string* ReadyResponse::_internal_mutable_webrtc_answer() { + + return webrtc_answer_.Mutable(GetArenaForAllocation()); +} +inline std::string* ReadyResponse::release_webrtc_answer() { + // @@protoc_insertion_point(field_release:viam.module.v1.ReadyResponse.webrtc_answer) + return webrtc_answer_.Release(); +} +inline void ReadyResponse::set_allocated_webrtc_answer(std::string* webrtc_answer) { + if (webrtc_answer != nullptr) { + + } else { + + } + webrtc_answer_.SetAllocated(webrtc_answer, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (webrtc_answer_.IsDefault()) { + webrtc_answer_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyResponse.webrtc_answer) +} + // ------------------------------------------------------------------- // ValidateConfigRequest diff --git a/src/viam/api/robot/v1/robot.pb.cc b/src/viam/api/robot/v1/robot.pb.cc index af90ba152..7227bd094 100644 --- a/src/viam/api/robot/v1/robot.pb.cc +++ b/src/viam/api/robot/v1/robot.pb.cc @@ -542,7 +542,9 @@ PROTOBUF_CONSTEXPR GetCloudMetadataResponse::GetCloudMetadataResponse( ::_pbi::ConstantInitialized) : robot_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , primary_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , machine_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , machine_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct GetCloudMetadataResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetCloudMetadataResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -883,6 +885,8 @@ const uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTIO PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, robot_part_id_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, primary_org_id_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, machine_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, machine_part_id_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfig)}, @@ -1070,71 +1074,73 @@ 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\"\205\001\n\030GetCloudMetadataRespons" + "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*z\n\022PeerConn" - "ectionType\022$\n PEER_CONNECTION_TYPE_UNSPE" - "CIFIED\020\000\022\035\n\031PEER_CONNECTION_TYPE_GRPC\020\001\022" - "\037\n\033PEER_CONNECTION_TYPE_WEBRTC\020\0022\333\021\n\014Rob" - "otService\022\200\001\n\rGetOperations\022#.viam.robot" - ".v1.GetOperationsRequest\032$.viam.robot.v1" - ".GetOperationsResponse\"$\202\323\344\223\002\036\022\034/viam/ap" - "i/v1/operations/list\022x\n\013GetSessions\022!.vi" - "am.robot.v1.GetSessionsRequest\032\".viam.ro" - "bot.v1.GetSessionsResponse\"\"\202\323\344\223\002\034\022\032/via" - "m/api/v1/sessions/list\022\177\n\rResourceNames\022" - "#.viam.robot.v1.ResourceNamesRequest\032$.v" - "iam.robot.v1.ResourceNamesResponse\"#\202\323\344\223" - "\002\035\022\033/viam/api/v1/resources/list\022\235\001\n\023Reso" - "urceRPCSubtypes\022).viam.robot.v1.Resource" - "RPCSubtypesRequest\032*.viam.robot.v1.Resou" - "rceRPCSubtypesResponse\"/\202\323\344\223\002)\022\'/viam/ap" - "i/v1/resource_rpc_subtypes/list\022\210\001\n\017Canc" - "elOperation\022%.viam.robot.v1.CancelOperat" - "ionRequest\032&.viam.robot.v1.CancelOperati" - "onResponse\"&\202\323\344\223\002 \"\036/viam/api/v1/operati" - "ons/cancel\022\215\001\n\021BlockForOperation\022\'.viam." - "robot.v1.BlockForOperationRequest\032(.viam" - ".robot.v1.BlockForOperationResponse\"%\202\323\344" - "\223\002\037\"\035/viam/api/v1/operations/block\022\224\001\n\022D" - "iscoverComponents\022(.viam.robot.v1.Discov" - "erComponentsRequest\032).viam.robot.v1.Disc" - "overComponentsResponse\")\202\323\344\223\002#\022!/viam/ap" - "i/v1/discovery/components\022\220\001\n\021FrameSyste" - "mConfig\022\'.viam.robot.v1.FrameSystemConfi" - "gRequest\032(.viam.robot.v1.FrameSystemConf" - "igResponse\"(\202\323\344\223\002\"\022 /viam/api/v1/frame_s" - "ystem/config\022\214\001\n\rTransformPose\022#.viam.ro" - "bot.v1.TransformPoseRequest\032$.viam.robot" - ".v1.TransformPoseResponse\"0\202\323\344\223\002*\022(/viam" - "/api/v1/frame_system/transform_pose\022\210\001\n\014" - "TransformPCD\022\".viam.robot.v1.TransformPC" - "DRequest\032#.viam.robot.v1.TransformPCDRes" - "ponse\"/\202\323\344\223\002)\022\'/viam/api/v1/frame_system" - "/transform_pcd\022k\n\tGetStatus\022\037.viam.robot" - ".v1.GetStatusRequest\032 .viam.robot.v1.Get" - "StatusResponse\"\033\202\323\344\223\002\025\022\023/viam/api/v1/sta" - "tus\022}\n\014StreamStatus\022\".viam.robot.v1.Stre" - "amStatusRequest\032#.viam.robot.v1.StreamSt" - "atusResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/statu" - "s/stream0\001\022g\n\007StopAll\022\035.viam.robot.v1.St" - "opAllRequest\032\036.viam.robot.v1.StopAllResp" - "onse\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_all\022v\n\014S" - "tartSession\022\".viam.robot.v1.StartSession" - "Request\032#.viam.robot.v1.StartSessionResp" - "onse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessions\022\235\001\n\024" - "SendSessionHeartbeat\022*.viam.robot.v1.Sen" - "dSessionHeartbeatRequest\032+.viam.robot.v1" - ".SendSessionHeartbeatResponse\",\202\323\344\223\002&\"$/" - "viam/api/v1/sessions/{id}/heartbeat\022V\n\003L" - "og\022\031.viam.robot.v1.LogRequest\032\032.viam.rob" - "ot.v1.LogResponse\"\030\202\323\344\223\002\022\"\020/viam/api/v1/" - "log\022\210\001\n\020GetCloudMetadata\022&.viam.robot.v1" - ".GetCloudMetadataRequest\032\'.viam.robot.v1" - ".GetCloudMetadataResponse\"#\202\323\344\223\002\035\022\033/viam" - "/api/v1/cloud_metadataB-\n\021com.viam.robot" - ".v1Z\030go.viam.com/api/robot/v1b\006proto3" + "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" ; static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -1145,7 +1151,7 @@ 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, 6317, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, + false, false, 6388, 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, schemas, file_default_instances, TableStruct_robot_2fv1_2frobot_2eproto::offsets, @@ -8597,6 +8603,22 @@ GetCloudMetadataResponse::GetCloudMetadataResponse(const GetCloudMetadataRespons location_id_.Set(from._internal_location_id(), GetArenaForAllocation()); } + machine_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_machine_id().empty()) { + machine_id_.Set(from._internal_machine_id(), + 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_machine_part_id().empty()) { + machine_part_id_.Set(from._internal_machine_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetCloudMetadataResponse) } @@ -8613,6 +8635,14 @@ location_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING location_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +machine_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.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 } GetCloudMetadataResponse::~GetCloudMetadataResponse() { @@ -8629,6 +8659,8 @@ inline void GetCloudMetadataResponse::SharedDtor() { robot_part_id_.Destroy(); primary_org_id_.Destroy(); location_id_.Destroy(); + machine_id_.Destroy(); + machine_part_id_.Destroy(); } void GetCloudMetadataResponse::SetCachedSize(int size) const { @@ -8644,6 +8676,8 @@ void GetCloudMetadataResponse::Clear() { robot_part_id_.ClearToEmpty(); primary_org_id_.ClearToEmpty(); location_id_.ClearToEmpty(); + machine_id_.ClearToEmpty(); + machine_part_id_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -8683,6 +8717,26 @@ const char* GetCloudMetadataResponse::_InternalParse(const char* ptr, ::_pbi::Pa } else goto handle_unusual; continue; + // string machine_id = 4 [json_name = "machineId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_machine_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.machine_id")); + } else + goto handle_unusual; + continue; + // 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.robot.v1.GetCloudMetadataResponse.machine_part_id")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -8742,6 +8796,26 @@ uint8_t* GetCloudMetadataResponse::_InternalSerialize( 3, this->_internal_location_id(), target); } + // string machine_id = 4 [json_name = "machineId"]; + if (!this->_internal_machine_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_machine_id().data(), static_cast(this->_internal_machine_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.machine_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_machine_id(), target); + } + + // string machine_part_id = 5 [json_name = "machinePartId"]; + if (!this->_internal_machine_part_id().empty()) { + ::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.robot.v1.GetCloudMetadataResponse.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); @@ -8779,6 +8853,20 @@ size_t GetCloudMetadataResponse::ByteSizeLong() const { this->_internal_location_id()); } + // string machine_id = 4 [json_name = "machineId"]; + if (!this->_internal_machine_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_machine_id()); + } + + // string machine_part_id = 5 [json_name = "machinePartId"]; + if (!this->_internal_machine_part_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_machine_part_id()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -8810,6 +8898,12 @@ void GetCloudMetadataResponse::MergeFrom(const GetCloudMetadataResponse& from) { if (!from._internal_location_id().empty()) { _internal_set_location_id(from._internal_location_id()); } + if (!from._internal_machine_id().empty()) { + _internal_set_machine_id(from._internal_machine_id()); + } + if (!from._internal_machine_part_id().empty()) { + _internal_set_machine_part_id(from._internal_machine_part_id()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -8841,6 +8935,14 @@ void GetCloudMetadataResponse::InternalSwap(GetCloudMetadataResponse* other) { &location_id_, lhs_arena, &other->location_id_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &machine_id_, lhs_arena, + &other->machine_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &machine_part_id_, lhs_arena, + &other->machine_part_id_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata GetCloudMetadataResponse::GetMetadata() const { diff --git a/src/viam/api/robot/v1/robot.pb.h b/src/viam/api/robot/v1/robot.pb.h index 6b1254ad1..a3b782b9d 100644 --- a/src/viam/api/robot/v1/robot.pb.h +++ b/src/viam/api/robot/v1/robot.pb.h @@ -6739,6 +6739,8 @@ class GetCloudMetadataResponse final : kRobotPartIdFieldNumber = 1, kPrimaryOrgIdFieldNumber = 2, kLocationIdFieldNumber = 3, + kMachineIdFieldNumber = 4, + kMachinePartIdFieldNumber = 5, }; // string robot_part_id = 1 [json_name = "robotPartId"]; void clear_robot_part_id(); @@ -6782,6 +6784,34 @@ class GetCloudMetadataResponse final : std::string* _internal_mutable_location_id(); public: + // string machine_id = 4 [json_name = "machineId"]; + void clear_machine_id(); + const std::string& machine_id() const; + template + void set_machine_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_machine_id(); + PROTOBUF_NODISCARD std::string* release_machine_id(); + void set_allocated_machine_id(std::string* machine_id); + private: + const std::string& _internal_machine_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id(const std::string& value); + std::string* _internal_mutable_machine_id(); + public: + + // string machine_part_id = 5 [json_name = "machinePartId"]; + 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.robot.v1.GetCloudMetadataResponse) private: class _Internal; @@ -6792,6 +6822,8 @@ class GetCloudMetadataResponse final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_part_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_org_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_part_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; }; @@ -10185,6 +10217,106 @@ inline void GetCloudMetadataResponse::set_allocated_location_id(std::string* loc // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.location_id) } +// string machine_id = 4 [json_name = "machineId"]; +inline void GetCloudMetadataResponse::clear_machine_id() { + machine_id_.ClearToEmpty(); +} +inline const std::string& GetCloudMetadataResponse::machine_id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.machine_id) + return _internal_machine_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_machine_id(ArgT0&& arg0, ArgT... args) { + + machine_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.machine_id) +} +inline std::string* GetCloudMetadataResponse::mutable_machine_id() { + std::string* _s = _internal_mutable_machine_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.machine_id) + return _s; +} +inline const std::string& GetCloudMetadataResponse::_internal_machine_id() const { + return machine_id_.Get(); +} +inline void GetCloudMetadataResponse::_internal_set_machine_id(const std::string& value) { + + machine_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::_internal_mutable_machine_id() { + + return machine_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::release_machine_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.machine_id) + return machine_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_machine_id(std::string* machine_id) { + if (machine_id != nullptr) { + + } else { + + } + machine_id_.SetAllocated(machine_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (machine_id_.IsDefault()) { + machine_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.machine_id) +} + +// string machine_part_id = 5 [json_name = "machinePartId"]; +inline void GetCloudMetadataResponse::clear_machine_part_id() { + machine_part_id_.ClearToEmpty(); +} +inline const std::string& GetCloudMetadataResponse::machine_part_id() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) + return _internal_machine_part_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_machine_part_id(ArgT0&& arg0, ArgT... args) { + + machine_part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) +} +inline std::string* GetCloudMetadataResponse::mutable_machine_part_id() { + std::string* _s = _internal_mutable_machine_part_id(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) + return _s; +} +inline const std::string& GetCloudMetadataResponse::_internal_machine_part_id() const { + return machine_part_id_.Get(); +} +inline void GetCloudMetadataResponse::_internal_set_machine_part_id(const std::string& value) { + + machine_part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::_internal_mutable_machine_part_id() { + + return machine_part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetCloudMetadataResponse::release_machine_part_id() { + // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) + return machine_part_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_machine_part_id(std::string* machine_part_id) { + if (machine_part_id != nullptr) { + + } else { + + } + 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.robot.v1.GetCloudMetadataResponse.machine_part_id) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/src/viam/api/service/slam/v1/slam.pb.cc b/src/viam/api/service/slam/v1/slam.pb.cc index f5b4f1cb5..f25cac0a5 100644 --- a/src/viam/api/service/slam/v1/slam.pb.cc +++ b/src/viam/api/service/slam/v1/slam.pb.cc @@ -52,7 +52,8 @@ struct GetPositionResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; PROTOBUF_CONSTEXPR GetPointCloudMapRequest::GetPointCloudMapRequest( ::_pbi::ConstantInitialized) - : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , return_edited_map_(false){} struct GetPointCloudMapRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetPointCloudMapRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -112,7 +113,9 @@ struct GetPropertiesRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( ::_pbi::ConstantInitialized) - : cloud_slam_(false) + : sensor_info_() + , internal_state_file_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , cloud_slam_(false) , mapping_mode_(0) {} struct GetPropertiesResponseDefaultTypeInternal { @@ -124,12 +127,26 @@ struct GetPropertiesResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR SensorInfo::SensorInfo( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) +{} +struct SensorInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SensorInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SensorInfoDefaultTypeInternal() {} + union { + SensorInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorInfoDefaultTypeInternal _SensorInfo_default_instance_; } // namespace v1 } // namespace slam } // namespace service } // namespace viam -static ::_pb::Metadata file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[8]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto[1]; +static ::_pb::Metadata file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[9]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto[2]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fslam_2fv1_2fslam_2eproto = nullptr; const uint32_t TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -149,13 +166,16 @@ const uint32_t TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets[] PROTOBU PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, pose_), PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, component_reference_), PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, extra_), - ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, return_edited_map_), + ~0u, + 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -184,7 +204,7 @@ const uint32_t TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets[] PROTOBU ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesRequest, name_), - ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -192,16 +212,31 @@ const uint32_t TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets[] PROTOBU ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, cloud_slam_), PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, mapping_mode_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, internal_state_file_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, sensor_info_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, type_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::service::slam::v1::GetPositionRequest)}, { 7, -1, -1, sizeof(::viam::service::slam::v1::GetPositionResponse)}, - { 16, -1, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapRequest)}, - { 23, -1, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapResponse)}, - { 30, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateRequest)}, - { 37, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateResponse)}, - { 44, -1, -1, sizeof(::viam::service::slam::v1::GetPropertiesRequest)}, - { 51, -1, -1, sizeof(::viam::service::slam::v1::GetPropertiesResponse)}, + { 16, 24, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapRequest)}, + { 26, -1, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapResponse)}, + { 33, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateRequest)}, + { 40, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateResponse)}, + { 47, -1, -1, sizeof(::viam::service::slam::v1::GetPropertiesRequest)}, + { 54, 64, -1, sizeof(::viam::service::slam::v1::GetPropertiesResponse)}, + { 68, -1, -1, sizeof(::viam::service::slam::v1::SensorInfo)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -213,6 +248,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::service::slam::v1::_GetInternalStateResponse_default_instance_._instance, &::viam::service::slam::v1::_GetPropertiesRequest_default_instance_._instance, &::viam::service::slam::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::service::slam::v1::_SensorInfo_default_instance_._instance, }; const char descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -224,43 +260,54 @@ const char descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto[] PROTOB "\022(\n\004pose\030\001 \001(\0132\024.viam.common.v1.PoseR\004po" "se\022/\n\023component_reference\030\002 \001(\tR\022compone" "ntReference\022-\n\005extra\030c \001(\0132\027.google.prot" - "obuf.StructR\005extra\"-\n\027GetPointCloudMapRe" - "quest\022\022\n\004name\030\001 \001(\tR\004name\"M\n\030GetPointClo" - "udMapResponse\0221\n\025point_cloud_pcd_chunk\030\001" - " \001(\014R\022pointCloudPcdChunk\"-\n\027GetInternalS" - "tateRequest\022\022\n\004name\030\001 \001(\tR\004name\"L\n\030GetIn" - "ternalStateResponse\0220\n\024internal_state_ch" - "unk\030\001 \001(\014R\022internalStateChunk\"*\n\024GetProp" - "ertiesRequest\022\022\n\004name\030\001 \001(\tR\004name\"|\n\025Get" - "PropertiesResponse\022\035\n\ncloud_slam\030\001 \001(\010R\t" - "cloudSlam\022D\n\014mapping_mode\030\002 \001(\0162!.viam.s" - "ervice.slam.v1.MappingModeR\013mappingMode*" - "\222\001\n\013MappingMode\022\034\n\030MAPPING_MODE_UNSPECIF" - "IED\020\000\022\037\n\033MAPPING_MODE_CREATE_NEW_MAP\020\001\022\036" - "\n\032MAPPING_MODE_LOCALIZE_ONLY\020\002\022$\n MAPPIN" - "G_MODE_UPDATE_EXISTING_MAP\020\0032\254\006\n\013SLAMSer" - "vice\022\225\001\n\013GetPosition\022(.viam.service.slam" - ".v1.GetPositionRequest\032).viam.service.sl" - "am.v1.GetPositionResponse\"1\202\323\344\223\002+\022)/viam" - "/api/v1/service/slam/{name}/position\022\255\001\n" - "\020GetPointCloudMap\022-.viam.service.slam.v1" - ".GetPointCloudMapRequest\032..viam.service." - "slam.v1.GetPointCloudMapResponse\"8\202\323\344\223\0022" - "\0220/viam/api/v1/service/slam/{name}/point" - "_cloud_map0\001\022\254\001\n\020GetInternalState\022-.viam" - ".service.slam.v1.GetInternalStateRequest" - "\032..viam.service.slam.v1.GetInternalState" - "Response\"7\202\323\344\223\0021\022//viam/api/v1/service/s" - "lam/{name}/internal_state0\001\022\235\001\n\rGetPrope" - "rties\022*.viam.service.slam.v1.GetProperti" - "esRequest\032+.viam.service.slam.v1.GetProp" - "ertiesResponse\"3\202\323\344\223\002-\022+/viam/api/v1/ser" - "vice/slam/{name}/properties\022\205\001\n\tDoComman" - "d\022 .viam.common.v1.DoCommandRequest\032!.vi" - "am.common.v1.DoCommandResponse\"3\202\323\344\223\002-\"+" - "/viam/api/v1/service/slam/{name}/do_comm" - "andB;\n\030com.viam.service.slam.v1Z\037go.viam" - ".com/api/service/slam/v1b\006proto3" + "obuf.StructR\005extra\"t\n\027GetPointCloudMapRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022/\n\021return_edit" + "ed_map\030\002 \001(\010H\000R\017returnEditedMap\210\001\001B\024\n\022_r" + "eturn_edited_map\"M\n\030GetPointCloudMapResp" + "onse\0221\n\025point_cloud_pcd_chunk\030\001 \001(\014R\022poi" + "ntCloudPcdChunk\"-\n\027GetInternalStateReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\"L\n\030GetInternalSta" + "teResponse\0220\n\024internal_state_chunk\030\001 \001(\014" + "R\022internalStateChunk\"*\n\024GetPropertiesReq" + "uest\022\022\n\004name\030\001 \001(\tR\004name\"\232\002\n\025GetProperti" + "esResponse\022\035\n\ncloud_slam\030\001 \001(\010R\tcloudSla" + "m\022D\n\014mapping_mode\030\002 \001(\0162!.viam.service.s" + "lam.v1.MappingModeR\013mappingMode\022<\n\030inter" + "nal_state_file_type\030\003 \001(\tH\000R\025internalSta" + "teFileType\210\001\001\022A\n\013sensor_info\030\004 \003(\0132 .via" + "m.service.slam.v1.SensorInfoR\nsensorInfo" + "B\033\n\031_internal_state_file_type\"V\n\nSensorI" + "nfo\022\022\n\004name\030\001 \001(\tR\004name\0224\n\004type\030\002 \001(\0162 ." + "viam.service.slam.v1.SensorTypeR\004type*\222\001" + "\n\013MappingMode\022\034\n\030MAPPING_MODE_UNSPECIFIE" + "D\020\000\022\037\n\033MAPPING_MODE_CREATE_NEW_MAP\020\001\022\036\n\032" + "MAPPING_MODE_LOCALIZE_ONLY\020\002\022$\n MAPPING_" + "MODE_UPDATE_EXISTING_MAP\020\003*b\n\nSensorType" + "\022\033\n\027SENSOR_TYPE_UNSPECIFIED\020\000\022\026\n\022SENSOR_" + "TYPE_CAMERA\020\001\022\037\n\033SENSOR_TYPE_MOVEMENT_SE" + "NSOR\020\0022\254\006\n\013SLAMService\022\225\001\n\013GetPosition\022(" + ".viam.service.slam.v1.GetPositionRequest" + "\032).viam.service.slam.v1.GetPositionRespo" + "nse\"1\202\323\344\223\002+\022)/viam/api/v1/service/slam/{" + "name}/position\022\255\001\n\020GetPointCloudMap\022-.vi" + "am.service.slam.v1.GetPointCloudMapReque" + "st\032..viam.service.slam.v1.GetPointCloudM" + "apResponse\"8\202\323\344\223\0022\0220/viam/api/v1/service" + "/slam/{name}/point_cloud_map0\001\022\254\001\n\020GetIn" + "ternalState\022-.viam.service.slam.v1.GetIn" + "ternalStateRequest\032..viam.service.slam.v" + "1.GetInternalStateResponse\"7\202\323\344\223\0021\022//via" + "m/api/v1/service/slam/{name}/internal_st" + "ate0\001\022\235\001\n\rGetProperties\022*.viam.service.s" + "lam.v1.GetPropertiesRequest\032+.viam.servi" + "ce.slam.v1.GetPropertiesResponse\"3\202\323\344\223\002-" + "\022+/viam/api/v1/service/slam/{name}/prope" + "rties\022\205\001\n\tDoCommand\022 .viam.common.v1.DoC" + "ommandRequest\032!.viam.common.v1.DoCommand" + "Response\"3\202\323\344\223\002-\"+/viam/api/v1/service/s" + "lam/{name}/do_commandB;\n\030com.viam.servic" + "e.slam.v1Z\037go.viam.com/api/service/slam/" + "v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps[3] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -269,9 +316,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_service_2fslam_2fv1 }; static ::_pbi::once_flag descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fslam_2fv1_2fslam_2eproto = { - false, false, 1792, descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto, + false, false, 2210, descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto, "service/slam/v1/slam.proto", - &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps, 3, 8, + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps, 3, 9, schemas, file_default_instances, TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto, file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto, file_level_service_descriptors_service_2fslam_2fv1_2fslam_2eproto, @@ -302,6 +349,21 @@ bool MappingMode_IsValid(int value) { } } +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SensorType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); + return file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto[1]; +} +bool SensorType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + // =================================================================== @@ -799,6 +861,10 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { class GetPointCloudMapRequest::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_return_edited_map(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; GetPointCloudMapRequest::GetPointCloudMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -808,7 +874,8 @@ GetPointCloudMapRequest::GetPointCloudMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* // @@protoc_insertion_point(arena_constructor:viam.service.slam.v1.GetPointCloudMapRequest) } GetPointCloudMapRequest::GetPointCloudMapRequest(const GetPointCloudMapRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { + : ::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 @@ -818,6 +885,7 @@ GetPointCloudMapRequest::GetPointCloudMapRequest(const GetPointCloudMapRequest& name_.Set(from._internal_name(), GetArenaForAllocation()); } + return_edited_map_ = from.return_edited_map_; // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPointCloudMapRequest) } @@ -826,6 +894,7 @@ name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +return_edited_map_ = false; } GetPointCloudMapRequest::~GetPointCloudMapRequest() { @@ -853,11 +922,14 @@ void GetPointCloudMapRequest::Clear() { (void) cached_has_bits; name_.ClearToEmpty(); + return_edited_map_ = false; + _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetPointCloudMapRequest::_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); @@ -872,6 +944,15 @@ const char* GetPointCloudMapRequest::_InternalParse(const char* ptr, ::_pbi::Par } else goto handle_unusual; continue; + // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_return_edited_map(&has_bits); + return_edited_map_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -888,6 +969,7 @@ const char* GetPointCloudMapRequest::_InternalParse(const char* ptr, ::_pbi::Par CHK_(ptr != nullptr); } // while message_done: + _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -911,6 +993,12 @@ uint8_t* GetPointCloudMapRequest::_InternalSerialize( 1, this->_internal_name(), target); } + // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; + if (_internal_has_return_edited_map()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_return_edited_map(), 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); @@ -934,6 +1022,12 @@ size_t GetPointCloudMapRequest::ByteSizeLong() const { this->_internal_name()); } + // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + 1; + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -959,6 +1053,9 @@ void GetPointCloudMapRequest::MergeFrom(const GetPointCloudMapRequest& from) { if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } + if (from._internal_has_return_edited_map()) { + _internal_set_return_edited_map(from._internal_return_edited_map()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -978,10 +1075,12 @@ void GetPointCloudMapRequest::InternalSwap(GetPointCloudMapRequest* other) { 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 ); + swap(return_edited_map_, other->return_edited_map_); } ::PROTOBUF_NAMESPACE_ID::Metadata GetPointCloudMapRequest::GetMetadata() const { @@ -1764,17 +1863,32 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { class GetPropertiesResponse::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_internal_state_file_type(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; GetPropertiesResponse::GetPropertiesResponse(::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), + sensor_info_(arena) { SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.slam.v1.GetPropertiesResponse) } GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + sensor_info_(from.sensor_info_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + internal_state_file_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + internal_state_file_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_internal_state_file_type()) { + internal_state_file_type_.Set(from._internal_internal_state_file_type(), + GetArenaForAllocation()); + } ::memcpy(&cloud_slam_, &from.cloud_slam_, static_cast(reinterpret_cast(&mapping_mode_) - reinterpret_cast(&cloud_slam_)) + sizeof(mapping_mode_)); @@ -1782,6 +1896,10 @@ GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) } inline void GetPropertiesResponse::SharedCtor() { +internal_state_file_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + internal_state_file_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&cloud_slam_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&mapping_mode_) - @@ -1799,6 +1917,7 @@ GetPropertiesResponse::~GetPropertiesResponse() { inline void GetPropertiesResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + internal_state_file_type_.Destroy(); } void GetPropertiesResponse::SetCachedSize(int size) const { @@ -1811,14 +1930,21 @@ void GetPropertiesResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + sensor_info_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + internal_state_file_type_.ClearNonDefaultToEmpty(); + } ::memset(&cloud_slam_, 0, static_cast( reinterpret_cast(&mapping_mode_) - reinterpret_cast(&cloud_slam_)) + sizeof(mapping_mode_)); + _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetPropertiesResponse::_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); @@ -1840,6 +1966,29 @@ const char* GetPropertiesResponse::_InternalParse(const char* ptr, ::_pbi::Parse } else goto handle_unusual; continue; + // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_internal_state_file_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type")); + } else + goto handle_unusual; + continue; + // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sensor_info(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1856,6 +2005,7 @@ const char* GetPropertiesResponse::_InternalParse(const char* ptr, ::_pbi::Parse CHK_(ptr != nullptr); } // while message_done: + _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1882,6 +2032,24 @@ uint8_t* GetPropertiesResponse::_InternalSerialize( 2, this->_internal_mapping_mode(), target); } + // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; + if (_internal_has_internal_state_file_type()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_internal_state_file_type().data(), static_cast(this->_internal_internal_state_file_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_internal_state_file_type(), target); + } + + // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; + for (unsigned i = 0, + n = static_cast(this->_internal_sensor_info_size()); i < n; i++) { + const auto& repfield = this->_internal_sensor_info(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1898,6 +2066,21 @@ size_t GetPropertiesResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; + total_size += 1UL * this->_internal_sensor_info_size(); + for (const auto& msg : this->sensor_info_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_internal_state_file_type()); + } + // bool cloud_slam = 1 [json_name = "cloudSlam"]; if (this->_internal_cloud_slam() != 0) { total_size += 1 + 1; @@ -1931,6 +2114,10 @@ void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; + sensor_info_.MergeFrom(from.sensor_info_); + if (from._internal_has_internal_state_file_type()) { + _internal_set_internal_state_file_type(from._internal_internal_state_file_type()); + } if (from._internal_cloud_slam() != 0) { _internal_set_cloud_slam(from._internal_cloud_slam()); } @@ -1953,7 +2140,15 @@ bool GetPropertiesResponse::IsInitialized() const { void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* 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]); + sensor_info_.InternalSwap(&other->sensor_info_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &internal_state_file_type_, lhs_arena, + &other->internal_state_file_type_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, mapping_mode_) + sizeof(GetPropertiesResponse::mapping_mode_) @@ -1968,6 +2163,230 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[7]); } +// =================================================================== + +class SensorInfo::_Internal { + public: +}; + +SensorInfo::SensorInfo(::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.slam.v1.SensorInfo) +} +SensorInfo::SensorInfo(const SensorInfo& 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()); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.SensorInfo) +} + +inline void SensorInfo::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_ = 0; +} + +SensorInfo::~SensorInfo() { + // @@protoc_insertion_point(destructor:viam.service.slam.v1.SensorInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SensorInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void SensorInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SensorInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.SensorInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SensorInfo::_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.slam.v1.SensorInfo.name")); + } else + goto handle_unusual; + continue; + // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::service::slam::v1::SensorType>(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* SensorInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.SensorInfo) + 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.slam.v1.SensorInfo.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_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.slam.v1.SensorInfo) + return target; +} + +size_t SensorInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.SensorInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; + if (this->_internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SensorInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorInfo::GetClassData() const { return &_class_data_; } + +void SensorInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SensorInfo::MergeFrom(const SensorInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.SensorInfo) + 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_type() != 0) { + _internal_set_type(from._internal_type()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SensorInfo::CopyFrom(const SensorInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.slam.v1.SensorInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SensorInfo::IsInitialized() const { + return true; +} + +void SensorInfo::InternalSwap(SensorInfo* 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(type_, other->type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SensorInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, + file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[8]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace slam @@ -2006,6 +2425,10 @@ template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPropertiesResponse* Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPropertiesResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPropertiesResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::SensorInfo* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::SensorInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::SensorInfo >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/src/viam/api/service/slam/v1/slam.pb.h b/src/viam/api/service/slam/v1/slam.pb.h index 2b2e0530d..55596ab7a 100644 --- a/src/viam/api/service/slam/v1/slam.pb.h +++ b/src/viam/api/service/slam/v1/slam.pb.h @@ -76,6 +76,9 @@ extern GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_ins class GetPropertiesResponse; struct GetPropertiesResponseDefaultTypeInternal; extern GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +class SensorInfo; +struct SensorInfoDefaultTypeInternal; +extern SensorInfoDefaultTypeInternal _SensorInfo_default_instance_; } // namespace v1 } // namespace slam } // namespace service @@ -89,6 +92,7 @@ template<> ::viam::service::slam::v1::GetPositionRequest* Arena::CreateMaybeMess template<> ::viam::service::slam::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPositionResponse>(Arena*); template<> ::viam::service::slam::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPropertiesRequest>(Arena*); template<> ::viam::service::slam::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::service::slam::v1::SensorInfo* Arena::CreateMaybeMessage<::viam::service::slam::v1::SensorInfo>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { @@ -122,6 +126,32 @@ inline bool MappingMode_Parse( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( MappingMode_descriptor(), name, value); } +enum SensorType : int { + SENSOR_TYPE_UNSPECIFIED = 0, + SENSOR_TYPE_CAMERA = 1, + SENSOR_TYPE_MOVEMENT_SENSOR = 2, + SensorType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SensorType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool SensorType_IsValid(int value); +constexpr SensorType SensorType_MIN = SENSOR_TYPE_UNSPECIFIED; +constexpr SensorType SensorType_MAX = SENSOR_TYPE_MOVEMENT_SENSOR; +constexpr int SensorType_ARRAYSIZE = SensorType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SensorType_descriptor(); +template +inline const std::string& SensorType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SensorType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SensorType_descriptor(), enum_t_value); +} +inline bool SensorType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SensorType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SensorType_descriptor(), name, value); +} // =================================================================== class GetPositionRequest final : @@ -580,6 +610,7 @@ class GetPointCloudMapRequest final : enum : int { kNameFieldNumber = 1, + kReturnEditedMapFieldNumber = 2, }; // string name = 1 [json_name = "name"]; void clear_name(); @@ -595,6 +626,19 @@ class GetPointCloudMapRequest final : std::string* _internal_mutable_name(); public: + // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; + bool has_return_edited_map() const; + private: + bool _internal_has_return_edited_map() const; + public: + void clear_return_edited_map(); + bool return_edited_map() const; + void set_return_edited_map(bool value); + private: + bool _internal_return_edited_map() const; + void _internal_set_return_edited_map(bool value); + public: + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPointCloudMapRequest) private: class _Internal; @@ -602,8 +646,10 @@ class GetPointCloudMapRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + bool return_edited_map_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; }; // ------------------------------------------------------------------- @@ -1319,9 +1365,47 @@ class GetPropertiesResponse final : // accessors ------------------------------------------------------- enum : int { + kSensorInfoFieldNumber = 4, + kInternalStateFileTypeFieldNumber = 3, kCloudSlamFieldNumber = 1, kMappingModeFieldNumber = 2, }; + // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; + int sensor_info_size() const; + private: + int _internal_sensor_info_size() const; + public: + void clear_sensor_info(); + ::viam::service::slam::v1::SensorInfo* mutable_sensor_info(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >* + mutable_sensor_info(); + private: + const ::viam::service::slam::v1::SensorInfo& _internal_sensor_info(int index) const; + ::viam::service::slam::v1::SensorInfo* _internal_add_sensor_info(); + public: + const ::viam::service::slam::v1::SensorInfo& sensor_info(int index) const; + ::viam::service::slam::v1::SensorInfo* add_sensor_info(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >& + sensor_info() const; + + // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; + bool has_internal_state_file_type() const; + private: + bool _internal_has_internal_state_file_type() const; + public: + void clear_internal_state_file_type(); + const std::string& internal_state_file_type() const; + template + void set_internal_state_file_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_internal_state_file_type(); + PROTOBUF_NODISCARD std::string* release_internal_state_file_type(); + void set_allocated_internal_state_file_type(std::string* internal_state_file_type); + private: + const std::string& _internal_internal_state_file_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_internal_state_file_type(const std::string& value); + std::string* _internal_mutable_internal_state_file_type(); + public: + // bool cloud_slam = 1 [json_name = "cloudSlam"]; void clear_cloud_slam(); bool cloud_slam() const; @@ -1347,8 +1431,170 @@ class GetPropertiesResponse 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::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo > sensor_info_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr internal_state_file_type_; bool cloud_slam_; int mapping_mode_; + friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; +}; +// ------------------------------------------------------------------- + +class SensorInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.SensorInfo) */ { + public: + inline SensorInfo() : SensorInfo(nullptr) {} + ~SensorInfo() override; + explicit PROTOBUF_CONSTEXPR SensorInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SensorInfo(const SensorInfo& from); + SensorInfo(SensorInfo&& from) noexcept + : SensorInfo() { + *this = ::std::move(from); + } + + inline SensorInfo& operator=(const SensorInfo& from) { + CopyFrom(from); + return *this; + } + inline SensorInfo& operator=(SensorInfo&& 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 SensorInfo& default_instance() { + return *internal_default_instance(); + } + static inline const SensorInfo* internal_default_instance() { + return reinterpret_cast( + &_SensorInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(SensorInfo& a, SensorInfo& b) { + a.Swap(&b); + } + inline void Swap(SensorInfo* 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(SensorInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SensorInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SensorInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SensorInfo& 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(SensorInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.SensorInfo"; + } + protected: + explicit SensorInfo(::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, + kTypeFieldNumber = 2, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; + void clear_type(); + ::viam::service::slam::v1::SensorType type() const; + void set_type(::viam::service::slam::v1::SensorType value); + private: + ::viam::service::slam::v1::SensorType _internal_type() const; + void _internal_set_type(::viam::service::slam::v1::SensorType value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.SensorInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; }; @@ -1691,6 +1937,34 @@ inline void GetPointCloudMapRequest::set_allocated_name(std::string* name) { // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPointCloudMapRequest.name) } +// optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; +inline bool GetPointCloudMapRequest::_internal_has_return_edited_map() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool GetPointCloudMapRequest::has_return_edited_map() const { + return _internal_has_return_edited_map(); +} +inline void GetPointCloudMapRequest::clear_return_edited_map() { + return_edited_map_ = false; + _has_bits_[0] &= ~0x00000001u; +} +inline bool GetPointCloudMapRequest::_internal_return_edited_map() const { + return return_edited_map_; +} +inline bool GetPointCloudMapRequest::return_edited_map() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPointCloudMapRequest.return_edited_map) + return _internal_return_edited_map(); +} +inline void GetPointCloudMapRequest::_internal_set_return_edited_map(bool value) { + _has_bits_[0] |= 0x00000001u; + return_edited_map_ = value; +} +inline void GetPointCloudMapRequest::set_return_edited_map(bool value) { + _internal_set_return_edited_map(value); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPointCloudMapRequest.return_edited_map) +} + // ------------------------------------------------------------------- // GetPointCloudMapResponse @@ -1951,6 +2225,188 @@ inline void GetPropertiesResponse::set_mapping_mode(::viam::service::slam::v1::M // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPropertiesResponse.mapping_mode) } +// optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; +inline bool GetPropertiesResponse::_internal_has_internal_state_file_type() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool GetPropertiesResponse::has_internal_state_file_type() const { + return _internal_has_internal_state_file_type(); +} +inline void GetPropertiesResponse::clear_internal_state_file_type() { + internal_state_file_type_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& GetPropertiesResponse::internal_state_file_type() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) + return _internal_internal_state_file_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesResponse::set_internal_state_file_type(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + internal_state_file_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) +} +inline std::string* GetPropertiesResponse::mutable_internal_state_file_type() { + std::string* _s = _internal_mutable_internal_state_file_type(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) + return _s; +} +inline const std::string& GetPropertiesResponse::_internal_internal_state_file_type() const { + return internal_state_file_type_.Get(); +} +inline void GetPropertiesResponse::_internal_set_internal_state_file_type(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + internal_state_file_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPropertiesResponse::_internal_mutable_internal_state_file_type() { + _has_bits_[0] |= 0x00000001u; + return internal_state_file_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPropertiesResponse::release_internal_state_file_type() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) + if (!_internal_has_internal_state_file_type()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = internal_state_file_type_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (internal_state_file_type_.IsDefault()) { + internal_state_file_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetPropertiesResponse::set_allocated_internal_state_file_type(std::string* internal_state_file_type) { + if (internal_state_file_type != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + internal_state_file_type_.SetAllocated(internal_state_file_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (internal_state_file_type_.IsDefault()) { + internal_state_file_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) +} + +// repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; +inline int GetPropertiesResponse::_internal_sensor_info_size() const { + return sensor_info_.size(); +} +inline int GetPropertiesResponse::sensor_info_size() const { + return _internal_sensor_info_size(); +} +inline void GetPropertiesResponse::clear_sensor_info() { + sensor_info_.Clear(); +} +inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::mutable_sensor_info(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPropertiesResponse.sensor_info) + return sensor_info_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >* +GetPropertiesResponse::mutable_sensor_info() { + // @@protoc_insertion_point(field_mutable_list:viam.service.slam.v1.GetPropertiesResponse.sensor_info) + return &sensor_info_; +} +inline const ::viam::service::slam::v1::SensorInfo& GetPropertiesResponse::_internal_sensor_info(int index) const { + return sensor_info_.Get(index); +} +inline const ::viam::service::slam::v1::SensorInfo& GetPropertiesResponse::sensor_info(int index) const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPropertiesResponse.sensor_info) + return _internal_sensor_info(index); +} +inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::_internal_add_sensor_info() { + return sensor_info_.Add(); +} +inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::add_sensor_info() { + ::viam::service::slam::v1::SensorInfo* _add = _internal_add_sensor_info(); + // @@protoc_insertion_point(field_add:viam.service.slam.v1.GetPropertiesResponse.sensor_info) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >& +GetPropertiesResponse::sensor_info() const { + // @@protoc_insertion_point(field_list:viam.service.slam.v1.GetPropertiesResponse.sensor_info) + return sensor_info_; +} + +// ------------------------------------------------------------------- + +// SensorInfo + +// string name = 1 [json_name = "name"]; +inline void SensorInfo::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& SensorInfo::name() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.SensorInfo.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SensorInfo::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.SensorInfo.name) +} +inline std::string* SensorInfo::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.SensorInfo.name) + return _s; +} +inline const std::string& SensorInfo::_internal_name() const { + return name_.Get(); +} +inline void SensorInfo::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SensorInfo::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SensorInfo::release_name() { + // @@protoc_insertion_point(field_release:viam.service.slam.v1.SensorInfo.name) + return name_.Release(); +} +inline void SensorInfo::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.slam.v1.SensorInfo.name) +} + +// .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; +inline void SensorInfo::clear_type() { + type_ = 0; +} +inline ::viam::service::slam::v1::SensorType SensorInfo::_internal_type() const { + return static_cast< ::viam::service::slam::v1::SensorType >(type_); +} +inline ::viam::service::slam::v1::SensorType SensorInfo::type() const { + // @@protoc_insertion_point(field_get:viam.service.slam.v1.SensorInfo.type) + return _internal_type(); +} +inline void SensorInfo::_internal_set_type(::viam::service::slam::v1::SensorType value) { + + type_ = value; +} +inline void SensorInfo::set_type(::viam::service::slam::v1::SensorType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.service.slam.v1.SensorInfo.type) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1968,6 +2424,8 @@ inline void GetPropertiesResponse::set_mapping_mode(::viam::service::slam::v1::M // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -1983,6 +2441,11 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::slam::v1::MappingMode>() { return ::viam::service::slam::v1::MappingMode_descriptor(); } +template <> struct is_proto_enum< ::viam::service::slam::v1::SensorType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::slam::v1::SensorType>() { + return ::viam::service::slam::v1::SensorType_descriptor(); +} PROTOBUF_NAMESPACE_CLOSE