diff --git a/src/viam/api/CMakeLists.txt b/src/viam/api/CMakeLists.txt index 46e04c92a..88328b802 100644 --- a/src/viam/api/CMakeLists.txt +++ b/src/viam/api/CMakeLists.txt @@ -417,6 +417,7 @@ set_target_properties( ) target_include_directories(viamapi + SYSTEM PUBLIC # Unfortunately, the generated protos don't say 'viam/api' at # the beginning so we need the subdirectory include path so the diff --git a/src/viam/api/api_proto_tag.lock b/src/viam/api/api_proto_tag.lock index 919c60721..8b1378917 100644 --- a/src/viam/api/api_proto_tag.lock +++ b/src/viam/api/api_proto_tag.lock @@ -1 +1 @@ -v0.1.475 + diff --git a/src/viam/api/app/v1/billing.pb.cc b/src/viam/api/app/v1/billing.pb.cc index 81b048206..2e5edb49e 100644 --- a/src/viam/api/app/v1/billing.pb.cc +++ b/src/viam/api/app/v1/billing.pb.cc @@ -53,6 +53,35 @@ struct PaymentMethodCardDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PaymentMethodCardDefaultTypeInternal _PaymentMethodCard_default_instance_; +PROTOBUF_CONSTEXPR VerificationInfo::VerificationInfo( + ::_pbi::ConstantInitialized) + : hosted_verification_page_url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , arrival_date_(int64_t{0}){} +struct VerificationInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR VerificationInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~VerificationInfoDefaultTypeInternal() {} + union { + VerificationInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VerificationInfoDefaultTypeInternal _VerificationInfo_default_instance_; +PROTOBUF_CONSTEXPR PaymentMethodUSBankAccount::PaymentMethodUSBankAccount( + ::_pbi::ConstantInitialized) + : bank_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , last_four_digits_account_number_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , routing_number_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , account_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , verification_info_(nullptr){} +struct PaymentMethodUSBankAccountDefaultTypeInternal { + PROTOBUF_CONSTEXPR PaymentMethodUSBankAccountDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PaymentMethodUSBankAccountDefaultTypeInternal() {} + union { + PaymentMethodUSBankAccount _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PaymentMethodUSBankAccountDefaultTypeInternal _PaymentMethodUSBankAccount_default_instance_; PROTOBUF_CONSTEXPR GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest( ::_pbi::ConstantInitialized) : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} @@ -152,6 +181,7 @@ PROTOBUF_CONSTEXPR GetOrgBillingInformationResponse::GetOrgBillingInformationRes : billing_email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , billing_tier_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , method_(nullptr) + , method_us_bank_account_(nullptr) , type_(0) {} struct GetOrgBillingInformationResponseDefaultTypeInternal { @@ -313,7 +343,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace v1 } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fv1_2fbilling_2eproto[21]; +static ::_pb::Metadata file_level_metadata_app_2fv1_2fbilling_2eproto[23]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[3]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2fbilling_2eproto = nullptr; @@ -339,6 +369,30 @@ const uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTIO PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, brand_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, last_four_digits_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VerificationInfo, _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::VerificationInfo, arrival_date_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VerificationInfo, hosted_verification_page_url_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodUSBankAccount, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodUSBankAccount, _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::PaymentMethodUSBankAccount, bank_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodUSBankAccount, last_four_digits_account_number_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodUSBankAccount, routing_number_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodUSBankAccount, account_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodUSBankAccount, verification_info_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -410,10 +464,12 @@ const uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTIO PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, billing_email_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, method_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, billing_tier_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, method_us_bank_account_), ~0u, ~0u, 1, 0, + 2, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -509,30 +565,34 @@ const uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTIO static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::app::v1::InvoiceSummary)}, { 12, -1, -1, sizeof(::viam::app::v1::PaymentMethodCard)}, - { 20, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageRequest)}, - { 27, -1, -1, sizeof(::viam::app::v1::UsageCost)}, - { 35, -1, -1, sizeof(::viam::app::v1::ResourceUsageCostsBySource)}, - { 44, -1, -1, sizeof(::viam::app::v1::ResourceUsageCosts)}, - { 54, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageResponse)}, - { 75, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, - { 82, 92, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, - { 96, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, - { 103, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, - { 111, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, - { 119, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, - { 126, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailRequest)}, - { 134, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailResponse)}, - { 140, -1, -1, sizeof(::viam::app::v1::GetAvailableBillingTiersRequest)}, - { 146, -1, -1, sizeof(::viam::app::v1::GetAvailableBillingTiersResponse)}, - { 153, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationBillingTierRequest)}, - { 161, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationBillingTierResponse)}, - { 167, 177, -1, sizeof(::viam::app::v1::CreateInvoiceAndChargeImmediatelyRequest)}, - { 181, -1, -1, sizeof(::viam::app::v1::CreateInvoiceAndChargeImmediatelyResponse)}, + { 20, -1, -1, sizeof(::viam::app::v1::VerificationInfo)}, + { 28, 39, -1, sizeof(::viam::app::v1::PaymentMethodUSBankAccount)}, + { 44, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageRequest)}, + { 51, -1, -1, sizeof(::viam::app::v1::UsageCost)}, + { 59, -1, -1, sizeof(::viam::app::v1::ResourceUsageCostsBySource)}, + { 68, -1, -1, sizeof(::viam::app::v1::ResourceUsageCosts)}, + { 78, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageResponse)}, + { 99, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, + { 106, 117, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, + { 122, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, + { 129, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, + { 137, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, + { 145, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, + { 152, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailRequest)}, + { 160, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailResponse)}, + { 166, -1, -1, sizeof(::viam::app::v1::GetAvailableBillingTiersRequest)}, + { 172, -1, -1, sizeof(::viam::app::v1::GetAvailableBillingTiersResponse)}, + { 179, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationBillingTierRequest)}, + { 187, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationBillingTierResponse)}, + { 193, 203, -1, sizeof(::viam::app::v1::CreateInvoiceAndChargeImmediatelyRequest)}, + { 207, -1, -1, sizeof(::viam::app::v1::CreateInvoiceAndChargeImmediatelyResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_InvoiceSummary_default_instance_._instance, &::viam::app::v1::_PaymentMethodCard_default_instance_._instance, + &::viam::app::v1::_VerificationInfo_default_instance_._instance, + &::viam::app::v1::_PaymentMethodUSBankAccount_default_instance_._instance, &::viam::app::v1::_GetCurrentMonthUsageRequest_default_instance_._instance, &::viam::app::v1::_UsageCost_default_instance_._instance, &::viam::app::v1::_ResourceUsageCostsBySource_default_instance_._instance, @@ -565,144 +625,158 @@ const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTI "Date\0227\n\tpaid_date\030\006 \001(\0132\032.google.protobu" "f.TimestampR\010paidDate\"S\n\021PaymentMethodCa" "rd\022\024\n\005brand\030\001 \001(\tR\005brand\022(\n\020last_four_di" - "gits\030\002 \001(\tR\016lastFourDigits\"4\n\033GetCurrent" - "MonthUsageRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId" - "\"`\n\tUsageCost\022\?\n\rresource_type\030\001 \001(\0162\032.v" - "iam.app.v1.UsageCostTypeR\014resourceType\022\022" - "\n\004cost\030\002 \001(\001R\004cost\"\306\001\n\032ResourceUsageCost" - "sBySource\0228\n\013source_type\030\001 \001(\0162\027.viam.ap" - "p.v1.SourceTypeR\nsourceType\022Q\n\024resource_" - "usage_costs\030\002 \001(\0132\037.viam.app.v1.Resource" - "UsageCostsR\022resourceUsageCosts\022\033\n\ttier_n" - "ame\030\003 \001(\tR\010tierName\"\317\001\n\022ResourceUsageCos" - "ts\0227\n\013usage_costs\030\001 \003(\0132\026.viam.app.v1.Us" - "ageCostR\nusageCosts\022\032\n\010discount\030\002 \001(\001R\010d" - "iscount\022.\n\023total_with_discount\030\003 \001(\001R\021to" - "talWithDiscount\0224\n\026total_without_discoun" - "t\030\004 \001(\001R\024totalWithoutDiscount\"\315\007\n\034GetCur" - "rentMonthUsageResponse\0229\n\nstart_date\030\001 \001" - "(\0132\032.google.protobuf.TimestampR\tstartDat" - "e\0225\n\010end_date\030\002 \001(\0132\032.google.protobuf.Ti" - "mestampR\007endDate\022k\n\036resource_usage_costs" - "_by_source\030\016 \003(\0132\'.viam.app.v1.ResourceU" - "sageCostsBySourceR\032resourceUsageCostsByS" - "ource\022\032\n\010subtotal\030\017 \001(\001R\010subtotal\022;\n\030clo" - "ud_storage_usage_cost\030\003 \001(\001B\002\030\001R\025cloudSt" - "orageUsageCost\0227\n\026data_upload_usage_cost" - "\030\004 \001(\001B\002\030\001R\023dataUploadUsageCost\0225\n\025data_" - "egres_usage_cost\030\005 \001(\001B\002\030\001R\022dataEgresUsa" - "geCost\022=\n\031remote_control_usage_cost\030\006 \001(" - "\001B\002\030\001R\026remoteControlUsageCost\022A\n\033standar" - "d_compute_usage_cost\030\007 \001(\001B\002\030\001R\030standard" - "ComputeUsageCost\022+\n\017discount_amount\030\010 \001(" - "\001B\002\030\001R\016discountAmount\022=\n\031total_usage_wit" - "h_discount\030\t \001(\001B\002\030\001R\026totalUsageWithDisc" - "ount\022C\n\034total_usage_without_discount\030\n \001" - "(\001B\002\030\001R\031totalUsageWithoutDiscount\0227\n\026per" - "_machine_usage_cost\030\013 \001(\001B\002\030\001R\023perMachin" - "eUsageCost\022Q\n$binary_data_cloud_storage_" - "usage_cost\030\014 \001(\001B\002\030\001R\037binaryDataCloudSto" - "rageUsageCost\022F\n\036other_cloud_storage_usa" - "ge_cost\030\r \001(\001B\002\030\001R\032otherCloudStorageUsag" - "eCost\"8\n\037GetOrgBillingInformationRequest" - "\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\374\001\n GetOrgBillin" - "gInformationResponse\0222\n\004type\030\001 \001(\0162\036.via" - "m.app.v1.PaymentMethodTypeR\004type\022#\n\rbill" - "ing_email\030\002 \001(\tR\014billingEmail\022;\n\006method\030" - "\003 \001(\0132\036.viam.app.v1.PaymentMethodCardH\000R" - "\006method\210\001\001\022&\n\014billing_tier\030\004 \001(\tH\001R\013bill" - "ingTier\210\001\001B\t\n\007_methodB\017\n\r_billing_tier\"2" - "\n\031GetInvoicesSummaryRequest\022\025\n\006org_id\030\001 " - "\001(\tR\005orgId\"\206\001\n\032GetInvoicesSummaryRespons" - "e\022/\n\023outstanding_balance\030\001 \001(\001R\022outstand" - "ingBalance\0227\n\010invoices\030\002 \003(\0132\033.viam.app." - "v1.InvoiceSummaryR\010invoices\"=\n\024GetInvoic" - "ePdfRequest\022\016\n\002id\030\001 \001(\tR\002id\022\025\n\006org_id\030\002 " - "\001(\tR\005orgId\"-\n\025GetInvoicePdfResponse\022\024\n\005c" - "hunk\030\001 \001(\014R\005chunk\"z\n\037SendPaymentRequired" - "EmailRequest\022&\n\017customer_org_id\030\001 \001(\tR\rc" - "ustomerOrgId\022/\n\024billing_owner_org_id\030\002 \001" - "(\tR\021billingOwnerOrgId\"\"\n SendPaymentRequ" - "iredEmailResponse\"!\n\037GetAvailableBilling" - "TiersRequest\"8\n GetAvailableBillingTiers" - "Response\022\024\n\005tiers\030\001 \003(\tR\005tiers\"r\n$Update" - "OrganizationBillingTierRequest\022\'\n\017organi" - "zation_id\030\001 \001(\tR\016organizationId\022!\n\014billi" - "ng_tier\030\002 \001(\tR\013billingTier\"\'\n%UpdateOrga" - "nizationBillingTierResponse\"\356\001\n(CreateIn" - "voiceAndChargeImmediatelyRequest\022\'\n\020org_" - "id_to_charge\030\001 \001(\tR\rorgIdToCharge\022\026\n\006amo" - "unt\030\002 \001(\001R\006amount\022%\n\013description\030\003 \001(\tH\000" - "R\013description\210\001\001\0222\n\023org_id_for_branding\030" - "\004 \001(\tH\001R\020orgIdForBranding\210\001\001B\016\n\014_descrip" - "tionB\026\n\024_org_id_for_branding\"+\n)CreateIn" - "voiceAndChargeImmediatelyResponse*V\n\021Pay" - "mentMethodType\022#\n\037PAYMENT_METHOD_TYPE_UN" - "SPECIFIED\020\000\022\034\n\030PAYMENT_METHOD_TYPE_CARD\020" - "\001*\250\010\n\rUsageCostType\022\037\n\033USAGE_COST_TYPE_U" - "NSPECIFIED\020\000\022#\n\033USAGE_COST_TYPE_DATA_UPL" - "OAD\020\001\032\002\010\001\022#\n\033USAGE_COST_TYPE_DATA_EGRESS" - "\020\002\032\002\010\001\022\"\n\036USAGE_COST_TYPE_REMOTE_CONTROL" - "\020\003\022$\n USAGE_COST_TYPE_STANDARD_COMPUTE\020\004" - "\022%\n\035USAGE_COST_TYPE_CLOUD_STORAGE\020\005\032\002\010\001\022" - "-\n)USAGE_COST_TYPE_BINARY_DATA_CLOUD_STO" - "RAGE\020\006\022+\n#USAGE_COST_TYPE_OTHER_CLOUD_ST" - "ORAGE\020\007\032\002\010\001\022\037\n\033USAGE_COST_TYPE_PER_MACHI" - "NE\020\010\022(\n$USAGE_COST_TYPE_TRIGGER_NOTIFICA" - "TION\020\t\022.\n*USAGE_COST_TYPE_TABULAR_DATA_C" - "LOUD_STORAGE\020\n\0220\n,USAGE_COST_TYPE_CONFIG" - "_HISTORY_CLOUD_STORAGE\020\013\022&\n\"USAGE_COST_T" - "YPE_LOGS_CLOUD_STORAGE\020\014\022/\n+USAGE_COST_T" - "YPE_TRAINING_LOGS_CLOUD_STORAGE\020\r\022*\n&USA" - "GE_COST_TYPE_PACKAGES_CLOUD_STORAGE\020\016\022&\n" - "\"USAGE_COST_TYPE_BINARY_DATA_UPLOAD\020\017\022\'\n" - "#USAGE_COST_TYPE_TABULAR_DATA_UPLOAD\020\020\022\037" - "\n\033USAGE_COST_TYPE_LOGS_UPLOAD\020\021\022&\n\"USAGE" - "_COST_TYPE_BINARY_DATA_EGRESS\020\022\022\'\n#USAGE" - "_COST_TYPE_TABULAR_DATA_EGRESS\020\023\022\037\n\033USAG" - "E_COST_TYPE_LOGS_EGRESS\020\024\022(\n$USAGE_COST_" - "TYPE_TRAINING_LOGS_EGRESS\020\025\0227\n3USAGE_COS" - "T_TYPE_TABULAR_DATA_DATABASE_CLOUD_STORA" - "GE\020\026\0221\n-USAGE_COST_TYPE_TABULAR_DATA_DAT" - "ABASE_COMPUTE\020\027\0223\n/USAGE_COST_TYPE_BINAR" - "Y_DATA_CROSS_REGION_EGRESS\020\030*X\n\nSourceTy" - "pe\022\033\n\027SOURCE_TYPE_UNSPECIFIED\020\000\022\023\n\017SOURC" - "E_TYPE_ORG\020\001\022\030\n\024SOURCE_TYPE_FRAGMENT\020\0022\307" - "\007\n\016BillingService\022k\n\024GetCurrentMonthUsag" - "e\022(.viam.app.v1.GetCurrentMonthUsageRequ" - "est\032).viam.app.v1.GetCurrentMonthUsageRe" - "sponse\022w\n\030GetOrgBillingInformation\022,.via" - "m.app.v1.GetOrgBillingInformationRequest" - "\032-.viam.app.v1.GetOrgBillingInformationR" - "esponse\022e\n\022GetInvoicesSummary\022&.viam.app" - ".v1.GetInvoicesSummaryRequest\032\'.viam.app" - ".v1.GetInvoicesSummaryResponse\022X\n\rGetInv" - "oicePdf\022!.viam.app.v1.GetInvoicePdfReque" - "st\032\".viam.app.v1.GetInvoicePdfResponse0\001" - "\022w\n\030SendPaymentRequiredEmail\022,.viam.app." - "v1.SendPaymentRequiredEmailRequest\032-.via" - "m.app.v1.SendPaymentRequiredEmailRespons" - "e\022w\n\030GetAvailableBillingTiers\022,.viam.app" - ".v1.GetAvailableBillingTiersRequest\032-.vi" - "am.app.v1.GetAvailableBillingTiersRespon" - "se\022\206\001\n\035UpdateOrganizationBillingTier\0221.v" - "iam.app.v1.UpdateOrganizationBillingTier" - "Request\0322.viam.app.v1.UpdateOrganization" - "BillingTierResponse\022\222\001\n!CreateInvoiceAnd" - "ChargeImmediately\0225.viam.app.v1.CreateIn" - "voiceAndChargeImmediatelyRequest\0326.viam." - "app.v1.CreateInvoiceAndChargeImmediately" - "ResponseB\030Z\026go.viam.com/api/app/v1b\006prot" - "o3" + "gits\030\002 \001(\tR\016lastFourDigits\"v\n\020Verificati" + "onInfo\022!\n\014arrival_date\030\001 \001(\003R\013arrivalDat" + "e\022\?\n\034hosted_verification_page_url\030\002 \001(\tR" + "\031hostedVerificationPageUrl\"\260\002\n\032PaymentMe" + "thodUSBankAccount\022\033\n\tbank_name\030\001 \001(\tR\010ba" + "nkName\022D\n\037last_four_digits_account_numbe" + "r\030\002 \001(\tR\033lastFourDigitsAccountNumber\022%\n\016" + "routing_number\030\003 \001(\tR\rroutingNumber\022!\n\014a" + "ccount_type\030\004 \001(\tR\013accountType\022O\n\021verifi" + "cation_info\030\005 \001(\0132\035.viam.app.v1.Verifica" + "tionInfoH\000R\020verificationInfo\210\001\001B\024\n\022_veri" + "fication_info\"4\n\033GetCurrentMonthUsageReq" + "uest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"`\n\tUsageCost" + "\022\?\n\rresource_type\030\001 \001(\0162\032.viam.app.v1.Us" + "ageCostTypeR\014resourceType\022\022\n\004cost\030\002 \001(\001R" + "\004cost\"\306\001\n\032ResourceUsageCostsBySource\0228\n\013" + "source_type\030\001 \001(\0162\027.viam.app.v1.SourceTy" + "peR\nsourceType\022Q\n\024resource_usage_costs\030\002" + " \001(\0132\037.viam.app.v1.ResourceUsageCostsR\022r" + "esourceUsageCosts\022\033\n\ttier_name\030\003 \001(\tR\010ti" + "erName\"\317\001\n\022ResourceUsageCosts\0227\n\013usage_c" + "osts\030\001 \003(\0132\026.viam.app.v1.UsageCostR\nusag" + "eCosts\022\032\n\010discount\030\002 \001(\001R\010discount\022.\n\023to" + "tal_with_discount\030\003 \001(\001R\021totalWithDiscou" + "nt\0224\n\026total_without_discount\030\004 \001(\001R\024tota" + "lWithoutDiscount\"\315\007\n\034GetCurrentMonthUsag" + "eResponse\0229\n\nstart_date\030\001 \001(\0132\032.google.p" + "rotobuf.TimestampR\tstartDate\0225\n\010end_date" + "\030\002 \001(\0132\032.google.protobuf.TimestampR\007endD" + "ate\022k\n\036resource_usage_costs_by_source\030\016 " + "\003(\0132\'.viam.app.v1.ResourceUsageCostsBySo" + "urceR\032resourceUsageCostsBySource\022\032\n\010subt" + "otal\030\017 \001(\001R\010subtotal\022;\n\030cloud_storage_us" + "age_cost\030\003 \001(\001B\002\030\001R\025cloudStorageUsageCos" + "t\0227\n\026data_upload_usage_cost\030\004 \001(\001B\002\030\001R\023d" + "ataUploadUsageCost\0225\n\025data_egres_usage_c" + "ost\030\005 \001(\001B\002\030\001R\022dataEgresUsageCost\022=\n\031rem" + "ote_control_usage_cost\030\006 \001(\001B\002\030\001R\026remote" + "ControlUsageCost\022A\n\033standard_compute_usa" + "ge_cost\030\007 \001(\001B\002\030\001R\030standardComputeUsageC" + "ost\022+\n\017discount_amount\030\010 \001(\001B\002\030\001R\016discou" + "ntAmount\022=\n\031total_usage_with_discount\030\t " + "\001(\001B\002\030\001R\026totalUsageWithDiscount\022C\n\034total" + "_usage_without_discount\030\n \001(\001B\002\030\001R\031total" + "UsageWithoutDiscount\0227\n\026per_machine_usag" + "e_cost\030\013 \001(\001B\002\030\001R\023perMachineUsageCost\022Q\n" + "$binary_data_cloud_storage_usage_cost\030\014 " + "\001(\001B\002\030\001R\037binaryDataCloudStorageUsageCost" + "\022F\n\036other_cloud_storage_usage_cost\030\r \001(\001" + "B\002\030\001R\032otherCloudStorageUsageCost\"8\n\037GetO" + "rgBillingInformationRequest\022\025\n\006org_id\030\001 " + "\001(\tR\005orgId\"\372\002\n GetOrgBillingInformationR" + "esponse\0222\n\004type\030\001 \001(\0162\036.viam.app.v1.Paym" + "entMethodTypeR\004type\022#\n\rbilling_email\030\002 \001" + "(\tR\014billingEmail\022;\n\006method\030\003 \001(\0132\036.viam." + "app.v1.PaymentMethodCardH\000R\006method\210\001\001\022&\n" + "\014billing_tier\030\004 \001(\tH\001R\013billingTier\210\001\001\022a\n" + "\026method_us_bank_account\030\005 \001(\0132\'.viam.app" + ".v1.PaymentMethodUSBankAccountH\002R\023method" + "UsBankAccount\210\001\001B\t\n\007_methodB\017\n\r_billing_" + "tierB\031\n\027_method_us_bank_account\"2\n\031GetIn" + "voicesSummaryRequest\022\025\n\006org_id\030\001 \001(\tR\005or" + "gId\"\206\001\n\032GetInvoicesSummaryResponse\022/\n\023ou" + "tstanding_balance\030\001 \001(\001R\022outstandingBala" + "nce\0227\n\010invoices\030\002 \003(\0132\033.viam.app.v1.Invo" + "iceSummaryR\010invoices\"=\n\024GetInvoicePdfReq" + "uest\022\016\n\002id\030\001 \001(\tR\002id\022\025\n\006org_id\030\002 \001(\tR\005or" + "gId\"-\n\025GetInvoicePdfResponse\022\024\n\005chunk\030\001 " + "\001(\014R\005chunk\"z\n\037SendPaymentRequiredEmailRe" + "quest\022&\n\017customer_org_id\030\001 \001(\tR\rcustomer" + "OrgId\022/\n\024billing_owner_org_id\030\002 \001(\tR\021bil" + "lingOwnerOrgId\"\"\n SendPaymentRequiredEma" + "ilResponse\"!\n\037GetAvailableBillingTiersRe" + "quest\"8\n GetAvailableBillingTiersRespons" + "e\022\024\n\005tiers\030\001 \003(\tR\005tiers\"r\n$UpdateOrganiz" + "ationBillingTierRequest\022\'\n\017organization_" + "id\030\001 \001(\tR\016organizationId\022!\n\014billing_tier" + "\030\002 \001(\tR\013billingTier\"\'\n%UpdateOrganizatio" + "nBillingTierResponse\"\356\001\n(CreateInvoiceAn" + "dChargeImmediatelyRequest\022\'\n\020org_id_to_c" + "harge\030\001 \001(\tR\rorgIdToCharge\022\026\n\006amount\030\002 \001" + "(\001R\006amount\022%\n\013description\030\003 \001(\tH\000R\013descr" + "iption\210\001\001\0222\n\023org_id_for_branding\030\004 \001(\tH\001" + "R\020orgIdForBranding\210\001\001B\016\n\014_descriptionB\026\n" + "\024_org_id_for_branding\"+\n)CreateInvoiceAn" + "dChargeImmediatelyResponse*}\n\021PaymentMet" + "hodType\022#\n\037PAYMENT_METHOD_TYPE_UNSPECIFI" + "ED\020\000\022\034\n\030PAYMENT_METHOD_TYPE_CARD\020\001\022%\n!PA" + "YMENT_METHOD_TYPE_USBANKACCOUNT\020\002*\250\010\n\rUs" + "ageCostType\022\037\n\033USAGE_COST_TYPE_UNSPECIFI" + "ED\020\000\022#\n\033USAGE_COST_TYPE_DATA_UPLOAD\020\001\032\002\010" + "\001\022#\n\033USAGE_COST_TYPE_DATA_EGRESS\020\002\032\002\010\001\022\"" + "\n\036USAGE_COST_TYPE_REMOTE_CONTROL\020\003\022$\n US" + "AGE_COST_TYPE_STANDARD_COMPUTE\020\004\022%\n\035USAG" + "E_COST_TYPE_CLOUD_STORAGE\020\005\032\002\010\001\022-\n)USAGE" + "_COST_TYPE_BINARY_DATA_CLOUD_STORAGE\020\006\022+" + "\n#USAGE_COST_TYPE_OTHER_CLOUD_STORAGE\020\007\032" + "\002\010\001\022\037\n\033USAGE_COST_TYPE_PER_MACHINE\020\010\022(\n$" + "USAGE_COST_TYPE_TRIGGER_NOTIFICATION\020\t\022." + "\n*USAGE_COST_TYPE_TABULAR_DATA_CLOUD_STO" + "RAGE\020\n\0220\n,USAGE_COST_TYPE_CONFIG_HISTORY" + "_CLOUD_STORAGE\020\013\022&\n\"USAGE_COST_TYPE_LOGS" + "_CLOUD_STORAGE\020\014\022/\n+USAGE_COST_TYPE_TRAI" + "NING_LOGS_CLOUD_STORAGE\020\r\022*\n&USAGE_COST_" + "TYPE_PACKAGES_CLOUD_STORAGE\020\016\022&\n\"USAGE_C" + "OST_TYPE_BINARY_DATA_UPLOAD\020\017\022\'\n#USAGE_C" + "OST_TYPE_TABULAR_DATA_UPLOAD\020\020\022\037\n\033USAGE_" + "COST_TYPE_LOGS_UPLOAD\020\021\022&\n\"USAGE_COST_TY" + "PE_BINARY_DATA_EGRESS\020\022\022\'\n#USAGE_COST_TY" + "PE_TABULAR_DATA_EGRESS\020\023\022\037\n\033USAGE_COST_T" + "YPE_LOGS_EGRESS\020\024\022(\n$USAGE_COST_TYPE_TRA" + "INING_LOGS_EGRESS\020\025\0227\n3USAGE_COST_TYPE_T" + "ABULAR_DATA_DATABASE_CLOUD_STORAGE\020\026\0221\n-" + "USAGE_COST_TYPE_TABULAR_DATA_DATABASE_CO" + "MPUTE\020\027\0223\n/USAGE_COST_TYPE_BINARY_DATA_C" + "ROSS_REGION_EGRESS\020\030*X\n\nSourceType\022\033\n\027SO" + "URCE_TYPE_UNSPECIFIED\020\000\022\023\n\017SOURCE_TYPE_O" + "RG\020\001\022\030\n\024SOURCE_TYPE_FRAGMENT\020\0022\307\007\n\016Billi" + "ngService\022k\n\024GetCurrentMonthUsage\022(.viam" + ".app.v1.GetCurrentMonthUsageRequest\032).vi" + "am.app.v1.GetCurrentMonthUsageResponse\022w" + "\n\030GetOrgBillingInformation\022,.viam.app.v1" + ".GetOrgBillingInformationRequest\032-.viam." + "app.v1.GetOrgBillingInformationResponse\022" + "e\n\022GetInvoicesSummary\022&.viam.app.v1.GetI" + "nvoicesSummaryRequest\032\'.viam.app.v1.GetI" + "nvoicesSummaryResponse\022X\n\rGetInvoicePdf\022" + "!.viam.app.v1.GetInvoicePdfRequest\032\".via" + "m.app.v1.GetInvoicePdfResponse0\001\022w\n\030Send" + "PaymentRequiredEmail\022,.viam.app.v1.SendP" + "aymentRequiredEmailRequest\032-.viam.app.v1" + ".SendPaymentRequiredEmailResponse\022w\n\030Get" + "AvailableBillingTiers\022,.viam.app.v1.GetA" + "vailableBillingTiersRequest\032-.viam.app.v" + "1.GetAvailableBillingTiersResponse\022\206\001\n\035U" + "pdateOrganizationBillingTier\0221.viam.app." + "v1.UpdateOrganizationBillingTierRequest\032" + "2.viam.app.v1.UpdateOrganizationBillingT" + "ierResponse\022\222\001\n!CreateInvoiceAndChargeIm" + "mediately\0225.viam.app.v1.CreateInvoiceAnd" + "ChargeImmediatelyRequest\0326.viam.app.v1.C" + "reateInvoiceAndChargeImmediatelyResponse" + "B\030Z\026go.viam.com/api/app/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fbilling_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; static ::_pbi::once_flag descriptor_table_app_2fv1_2fbilling_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fbilling_2eproto = { - false, false, 5522, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, + false, false, 6114, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, "app/v1/billing.proto", - &descriptor_table_app_2fv1_2fbilling_2eproto_once, descriptor_table_app_2fv1_2fbilling_2eproto_deps, 1, 21, + &descriptor_table_app_2fv1_2fbilling_2eproto_once, descriptor_table_app_2fv1_2fbilling_2eproto_deps, 1, 23, schemas, file_default_instances, TableStruct_app_2fv1_2fbilling_2eproto::offsets, file_level_metadata_app_2fv1_2fbilling_2eproto, file_level_enum_descriptors_app_2fv1_2fbilling_2eproto, file_level_service_descriptors_app_2fv1_2fbilling_2eproto, @@ -724,6 +798,7 @@ bool PaymentMethodType_IsValid(int value) { switch (value) { case 0: case 1: + case 2: return true; default: return false; @@ -1455,6 +1530,619 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PaymentMethodCard::GetMetadata() const { // =================================================================== +class VerificationInfo::_Internal { + public: +}; + +VerificationInfo::VerificationInfo(::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.VerificationInfo) +} +VerificationInfo::VerificationInfo(const VerificationInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + hosted_verification_page_url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + hosted_verification_page_url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_hosted_verification_page_url().empty()) { + hosted_verification_page_url_.Set(from._internal_hosted_verification_page_url(), + GetArenaForAllocation()); + } + arrival_date_ = from.arrival_date_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.VerificationInfo) +} + +inline void VerificationInfo::SharedCtor() { +hosted_verification_page_url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + hosted_verification_page_url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +arrival_date_ = int64_t{0}; +} + +VerificationInfo::~VerificationInfo() { + // @@protoc_insertion_point(destructor:viam.app.v1.VerificationInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void VerificationInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + hosted_verification_page_url_.Destroy(); +} + +void VerificationInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void VerificationInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.VerificationInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hosted_verification_page_url_.ClearToEmpty(); + arrival_date_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VerificationInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 arrival_date = 1 [json_name = "arrivalDate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + arrival_date_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string hosted_verification_page_url = 2 [json_name = "hostedVerificationPageUrl"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_hosted_verification_page_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.VerificationInfo.hosted_verification_page_url")); + } 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* VerificationInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.VerificationInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 arrival_date = 1 [json_name = "arrivalDate"]; + if (this->_internal_arrival_date() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_arrival_date(), target); + } + + // string hosted_verification_page_url = 2 [json_name = "hostedVerificationPageUrl"]; + if (!this->_internal_hosted_verification_page_url().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_hosted_verification_page_url().data(), static_cast(this->_internal_hosted_verification_page_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.VerificationInfo.hosted_verification_page_url"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_hosted_verification_page_url(), 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.VerificationInfo) + return target; +} + +size_t VerificationInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.VerificationInfo) + 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 hosted_verification_page_url = 2 [json_name = "hostedVerificationPageUrl"]; + if (!this->_internal_hosted_verification_page_url().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_hosted_verification_page_url()); + } + + // int64 arrival_date = 1 [json_name = "arrivalDate"]; + if (this->_internal_arrival_date() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_arrival_date()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VerificationInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + VerificationInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VerificationInfo::GetClassData() const { return &_class_data_; } + +void VerificationInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void VerificationInfo::MergeFrom(const VerificationInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.VerificationInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_hosted_verification_page_url().empty()) { + _internal_set_hosted_verification_page_url(from._internal_hosted_verification_page_url()); + } + if (from._internal_arrival_date() != 0) { + _internal_set_arrival_date(from._internal_arrival_date()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void VerificationInfo::CopyFrom(const VerificationInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.VerificationInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VerificationInfo::IsInitialized() const { + return true; +} + +void VerificationInfo::InternalSwap(VerificationInfo* 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( + &hosted_verification_page_url_, lhs_arena, + &other->hosted_verification_page_url_, rhs_arena + ); + swap(arrival_date_, other->arrival_date_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VerificationInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, + file_level_metadata_app_2fv1_2fbilling_2eproto[2]); +} + +// =================================================================== + +class PaymentMethodUSBankAccount::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static const ::viam::app::v1::VerificationInfo& verification_info(const PaymentMethodUSBankAccount* msg); + static void set_has_verification_info(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::viam::app::v1::VerificationInfo& +PaymentMethodUSBankAccount::_Internal::verification_info(const PaymentMethodUSBankAccount* msg) { + return *msg->verification_info_; +} +PaymentMethodUSBankAccount::PaymentMethodUSBankAccount(::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.PaymentMethodUSBankAccount) +} +PaymentMethodUSBankAccount::PaymentMethodUSBankAccount(const PaymentMethodUSBankAccount& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + bank_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + bank_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_bank_name().empty()) { + bank_name_.Set(from._internal_bank_name(), + GetArenaForAllocation()); + } + last_four_digits_account_number_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + last_four_digits_account_number_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_last_four_digits_account_number().empty()) { + last_four_digits_account_number_.Set(from._internal_last_four_digits_account_number(), + GetArenaForAllocation()); + } + routing_number_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + routing_number_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_routing_number().empty()) { + routing_number_.Set(from._internal_routing_number(), + GetArenaForAllocation()); + } + account_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + account_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_account_type().empty()) { + account_type_.Set(from._internal_account_type(), + GetArenaForAllocation()); + } + if (from._internal_has_verification_info()) { + verification_info_ = new ::viam::app::v1::VerificationInfo(*from.verification_info_); + } else { + verification_info_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.PaymentMethodUSBankAccount) +} + +inline void PaymentMethodUSBankAccount::SharedCtor() { +bank_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + bank_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +last_four_digits_account_number_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + last_four_digits_account_number_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +routing_number_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + routing_number_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +account_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + account_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +verification_info_ = nullptr; +} + +PaymentMethodUSBankAccount::~PaymentMethodUSBankAccount() { + // @@protoc_insertion_point(destructor:viam.app.v1.PaymentMethodUSBankAccount) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PaymentMethodUSBankAccount::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + bank_name_.Destroy(); + last_four_digits_account_number_.Destroy(); + routing_number_.Destroy(); + account_type_.Destroy(); + if (this != internal_default_instance()) delete verification_info_; +} + +void PaymentMethodUSBankAccount::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PaymentMethodUSBankAccount::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.PaymentMethodUSBankAccount) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bank_name_.ClearToEmpty(); + last_four_digits_account_number_.ClearToEmpty(); + routing_number_.ClearToEmpty(); + account_type_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(verification_info_ != nullptr); + verification_info_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PaymentMethodUSBankAccount::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string bank_name = 1 [json_name = "bankName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_bank_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PaymentMethodUSBankAccount.bank_name")); + } else + goto handle_unusual; + continue; + // string last_four_digits_account_number = 2 [json_name = "lastFourDigitsAccountNumber"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_last_four_digits_account_number(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PaymentMethodUSBankAccount.last_four_digits_account_number")); + } else + goto handle_unusual; + continue; + // string routing_number = 3 [json_name = "routingNumber"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_routing_number(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PaymentMethodUSBankAccount.routing_number")); + } else + goto handle_unusual; + continue; + // string account_type = 4 [json_name = "accountType"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_account_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PaymentMethodUSBankAccount.account_type")); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.VerificationInfo verification_info = 5 [json_name = "verificationInfo"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_verification_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PaymentMethodUSBankAccount::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.PaymentMethodUSBankAccount) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string bank_name = 1 [json_name = "bankName"]; + if (!this->_internal_bank_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_bank_name().data(), static_cast(this->_internal_bank_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PaymentMethodUSBankAccount.bank_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_bank_name(), target); + } + + // string last_four_digits_account_number = 2 [json_name = "lastFourDigitsAccountNumber"]; + if (!this->_internal_last_four_digits_account_number().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_last_four_digits_account_number().data(), static_cast(this->_internal_last_four_digits_account_number().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PaymentMethodUSBankAccount.last_four_digits_account_number"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_last_four_digits_account_number(), target); + } + + // string routing_number = 3 [json_name = "routingNumber"]; + if (!this->_internal_routing_number().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_routing_number().data(), static_cast(this->_internal_routing_number().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PaymentMethodUSBankAccount.routing_number"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_routing_number(), target); + } + + // string account_type = 4 [json_name = "accountType"]; + if (!this->_internal_account_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_account_type().data(), static_cast(this->_internal_account_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PaymentMethodUSBankAccount.account_type"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_account_type(), target); + } + + // optional .viam.app.v1.VerificationInfo verification_info = 5 [json_name = "verificationInfo"]; + if (_internal_has_verification_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::verification_info(this), + _Internal::verification_info(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.app.v1.PaymentMethodUSBankAccount) + return target; +} + +size_t PaymentMethodUSBankAccount::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.PaymentMethodUSBankAccount) + 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 bank_name = 1 [json_name = "bankName"]; + if (!this->_internal_bank_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_bank_name()); + } + + // string last_four_digits_account_number = 2 [json_name = "lastFourDigitsAccountNumber"]; + if (!this->_internal_last_four_digits_account_number().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_last_four_digits_account_number()); + } + + // string routing_number = 3 [json_name = "routingNumber"]; + if (!this->_internal_routing_number().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_routing_number()); + } + + // string account_type = 4 [json_name = "accountType"]; + if (!this->_internal_account_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_account_type()); + } + + // optional .viam.app.v1.VerificationInfo verification_info = 5 [json_name = "verificationInfo"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *verification_info_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PaymentMethodUSBankAccount::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PaymentMethodUSBankAccount::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PaymentMethodUSBankAccount::GetClassData() const { return &_class_data_; } + +void PaymentMethodUSBankAccount::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PaymentMethodUSBankAccount::MergeFrom(const PaymentMethodUSBankAccount& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.PaymentMethodUSBankAccount) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_bank_name().empty()) { + _internal_set_bank_name(from._internal_bank_name()); + } + if (!from._internal_last_four_digits_account_number().empty()) { + _internal_set_last_four_digits_account_number(from._internal_last_four_digits_account_number()); + } + if (!from._internal_routing_number().empty()) { + _internal_set_routing_number(from._internal_routing_number()); + } + if (!from._internal_account_type().empty()) { + _internal_set_account_type(from._internal_account_type()); + } + if (from._internal_has_verification_info()) { + _internal_mutable_verification_info()->::viam::app::v1::VerificationInfo::MergeFrom(from._internal_verification_info()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PaymentMethodUSBankAccount::CopyFrom(const PaymentMethodUSBankAccount& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.PaymentMethodUSBankAccount) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PaymentMethodUSBankAccount::IsInitialized() const { + return true; +} + +void PaymentMethodUSBankAccount::InternalSwap(PaymentMethodUSBankAccount* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &bank_name_, lhs_arena, + &other->bank_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &last_four_digits_account_number_, lhs_arena, + &other->last_four_digits_account_number_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &routing_number_, lhs_arena, + &other->routing_number_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &account_type_, lhs_arena, + &other->account_type_, rhs_arena + ); + swap(verification_info_, other->verification_info_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PaymentMethodUSBankAccount::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, + file_level_metadata_app_2fv1_2fbilling_2eproto[3]); +} + +// =================================================================== + class GetCurrentMonthUsageRequest::_Internal { public: }; @@ -1645,7 +2333,7 @@ void GetCurrentMonthUsageRequest::InternalSwap(GetCurrentMonthUsageRequest* othe ::PROTOBUF_NAMESPACE_ID::Metadata GetCurrentMonthUsageRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[2]); + file_level_metadata_app_2fv1_2fbilling_2eproto[4]); } // =================================================================== @@ -1865,7 +2553,7 @@ void UsageCost::InternalSwap(UsageCost* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UsageCost::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[3]); + file_level_metadata_app_2fv1_2fbilling_2eproto[5]); } // =================================================================== @@ -2137,7 +2825,7 @@ void ResourceUsageCostsBySource::InternalSwap(ResourceUsageCostsBySource* other) ::PROTOBUF_NAMESPACE_ID::Metadata ResourceUsageCostsBySource::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[4]); + file_level_metadata_app_2fv1_2fbilling_2eproto[6]); } // =================================================================== @@ -2433,7 +3121,7 @@ void ResourceUsageCosts::InternalSwap(ResourceUsageCosts* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ResourceUsageCosts::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[5]); + file_level_metadata_app_2fv1_2fbilling_2eproto[7]); } // =================================================================== @@ -3127,7 +3815,7 @@ void GetCurrentMonthUsageResponse::InternalSwap(GetCurrentMonthUsageResponse* ot ::PROTOBUF_NAMESPACE_ID::Metadata GetCurrentMonthUsageResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[6]); + file_level_metadata_app_2fv1_2fbilling_2eproto[8]); } // =================================================================== @@ -3322,7 +4010,7 @@ void GetOrgBillingInformationRequest::InternalSwap(GetOrgBillingInformationReque ::PROTOBUF_NAMESPACE_ID::Metadata GetOrgBillingInformationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[7]); + file_level_metadata_app_2fv1_2fbilling_2eproto[9]); } // =================================================================== @@ -3337,12 +4025,20 @@ class GetOrgBillingInformationResponse::_Internal { static void set_has_billing_tier(HasBits* has_bits) { (*has_bits)[0] |= 1u; } + static const ::viam::app::v1::PaymentMethodUSBankAccount& method_us_bank_account(const GetOrgBillingInformationResponse* msg); + static void set_has_method_us_bank_account(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } }; const ::viam::app::v1::PaymentMethodCard& GetOrgBillingInformationResponse::_Internal::method(const GetOrgBillingInformationResponse* msg) { return *msg->method_; } +const ::viam::app::v1::PaymentMethodUSBankAccount& +GetOrgBillingInformationResponse::_Internal::method_us_bank_account(const GetOrgBillingInformationResponse* msg) { + return *msg->method_us_bank_account_; +} GetOrgBillingInformationResponse::GetOrgBillingInformationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -3374,6 +4070,11 @@ GetOrgBillingInformationResponse::GetOrgBillingInformationResponse(const GetOrgB } else { method_ = nullptr; } + if (from._internal_has_method_us_bank_account()) { + method_us_bank_account_ = new ::viam::app::v1::PaymentMethodUSBankAccount(*from.method_us_bank_account_); + } else { + method_us_bank_account_ = nullptr; + } type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrgBillingInformationResponse) } @@ -3407,6 +4108,7 @@ inline void GetOrgBillingInformationResponse::SharedDtor() { billing_email_.Destroy(); billing_tier_.Destroy(); if (this != internal_default_instance()) delete method_; + if (this != internal_default_instance()) delete method_us_bank_account_; } void GetOrgBillingInformationResponse::SetCachedSize(int size) const { @@ -3421,7 +4123,7 @@ void GetOrgBillingInformationResponse::Clear() { billing_email_.ClearToEmpty(); cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { billing_tier_.ClearNonDefaultToEmpty(); } @@ -3429,6 +4131,10 @@ void GetOrgBillingInformationResponse::Clear() { GOOGLE_DCHECK(method_ != nullptr); method_->Clear(); } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(method_us_bank_account_ != nullptr); + method_us_bank_account_->Clear(); + } } type_ = 0; _has_bits_.Clear(); @@ -3479,6 +4185,14 @@ const char* GetOrgBillingInformationResponse::_InternalParse(const char* ptr, :: } else goto handle_unusual; continue; + // optional .viam.app.v1.PaymentMethodUSBankAccount method_us_bank_account = 5 [json_name = "methodUsBankAccount"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_method_us_bank_account(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -3543,6 +4257,13 @@ uint8_t* GetOrgBillingInformationResponse::_InternalSerialize( 4, this->_internal_billing_tier(), target); } + // optional .viam.app.v1.PaymentMethodUSBankAccount method_us_bank_account = 5 [json_name = "methodUsBankAccount"]; + if (_internal_has_method_us_bank_account()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::method_us_bank_account(this), + _Internal::method_us_bank_account(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); @@ -3567,7 +4288,7 @@ size_t GetOrgBillingInformationResponse::ByteSizeLong() const { } cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { // optional string billing_tier = 4 [json_name = "billingTier"]; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -3582,6 +4303,13 @@ size_t GetOrgBillingInformationResponse::ByteSizeLong() const { *method_); } + // optional .viam.app.v1.PaymentMethodUSBankAccount method_us_bank_account = 5 [json_name = "methodUsBankAccount"]; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *method_us_bank_account_); + } + } // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { @@ -3615,13 +4343,16 @@ void GetOrgBillingInformationResponse::MergeFrom(const GetOrgBillingInformationR _internal_set_billing_email(from._internal_billing_email()); } cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_billing_tier(from._internal_billing_tier()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_method()->::viam::app::v1::PaymentMethodCard::MergeFrom(from._internal_method()); } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_method_us_bank_account()->::viam::app::v1::PaymentMethodUSBankAccount::MergeFrom(from._internal_method_us_bank_account()); + } } if (from._internal_type() != 0) { _internal_set_type(from._internal_type()); @@ -3665,7 +4396,7 @@ void GetOrgBillingInformationResponse::InternalSwap(GetOrgBillingInformationResp ::PROTOBUF_NAMESPACE_ID::Metadata GetOrgBillingInformationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[8]); + file_level_metadata_app_2fv1_2fbilling_2eproto[10]); } // =================================================================== @@ -3860,7 +4591,7 @@ void GetInvoicesSummaryRequest::InternalSwap(GetInvoicesSummaryRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicesSummaryRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[9]); + file_level_metadata_app_2fv1_2fbilling_2eproto[11]); } // =================================================================== @@ -4076,7 +4807,7 @@ void GetInvoicesSummaryResponse::InternalSwap(GetInvoicesSummaryResponse* other) ::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicesSummaryResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[10]); + file_level_metadata_app_2fv1_2fbilling_2eproto[12]); } // =================================================================== @@ -4319,7 +5050,7 @@ void GetInvoicePdfRequest::InternalSwap(GetInvoicePdfRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicePdfRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[11]); + file_level_metadata_app_2fv1_2fbilling_2eproto[13]); } // =================================================================== @@ -4509,7 +5240,7 @@ void GetInvoicePdfResponse::InternalSwap(GetInvoicePdfResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicePdfResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[12]); + file_level_metadata_app_2fv1_2fbilling_2eproto[14]); } // =================================================================== @@ -4752,7 +5483,7 @@ void SendPaymentRequiredEmailRequest::InternalSwap(SendPaymentRequiredEmailReque ::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentRequiredEmailRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[13]); + file_level_metadata_app_2fv1_2fbilling_2eproto[15]); } // =================================================================== @@ -4791,7 +5522,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendPaymentRequiredEmailRespon ::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentRequiredEmailResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[14]); + file_level_metadata_app_2fv1_2fbilling_2eproto[16]); } // =================================================================== @@ -4830,7 +5561,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAvailableBillingTiersReques ::PROTOBUF_NAMESPACE_ID::Metadata GetAvailableBillingTiersRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[15]); + file_level_metadata_app_2fv1_2fbilling_2eproto[17]); } // =================================================================== @@ -5013,7 +5744,7 @@ void GetAvailableBillingTiersResponse::InternalSwap(GetAvailableBillingTiersResp ::PROTOBUF_NAMESPACE_ID::Metadata GetAvailableBillingTiersResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[16]); + file_level_metadata_app_2fv1_2fbilling_2eproto[18]); } // =================================================================== @@ -5256,7 +5987,7 @@ void UpdateOrganizationBillingTierRequest::InternalSwap(UpdateOrganizationBillin ::PROTOBUF_NAMESPACE_ID::Metadata UpdateOrganizationBillingTierRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[17]); + file_level_metadata_app_2fv1_2fbilling_2eproto[19]); } // =================================================================== @@ -5295,7 +6026,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateOrganizationBillingTierR ::PROTOBUF_NAMESPACE_ID::Metadata UpdateOrganizationBillingTierResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[18]); + file_level_metadata_app_2fv1_2fbilling_2eproto[20]); } // =================================================================== @@ -5649,7 +6380,7 @@ void CreateInvoiceAndChargeImmediatelyRequest::InternalSwap(CreateInvoiceAndChar ::PROTOBUF_NAMESPACE_ID::Metadata CreateInvoiceAndChargeImmediatelyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[19]); + file_level_metadata_app_2fv1_2fbilling_2eproto[21]); } // =================================================================== @@ -5688,7 +6419,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateInvoiceAndChargeImmediat ::PROTOBUF_NAMESPACE_ID::Metadata CreateInvoiceAndChargeImmediatelyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, - file_level_metadata_app_2fv1_2fbilling_2eproto[20]); + file_level_metadata_app_2fv1_2fbilling_2eproto[22]); } // @@protoc_insertion_point(namespace_scope) @@ -5704,6 +6435,14 @@ template<> PROTOBUF_NOINLINE ::viam::app::v1::PaymentMethodCard* Arena::CreateMaybeMessage< ::viam::app::v1::PaymentMethodCard >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::PaymentMethodCard >(arena); } +template<> PROTOBUF_NOINLINE ::viam::app::v1::VerificationInfo* +Arena::CreateMaybeMessage< ::viam::app::v1::VerificationInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::VerificationInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::PaymentMethodUSBankAccount* +Arena::CreateMaybeMessage< ::viam::app::v1::PaymentMethodUSBankAccount >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::PaymentMethodUSBankAccount >(arena); +} template<> PROTOBUF_NOINLINE ::viam::app::v1::GetCurrentMonthUsageRequest* Arena::CreateMaybeMessage< ::viam::app::v1::GetCurrentMonthUsageRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::GetCurrentMonthUsageRequest >(arena); diff --git a/src/viam/api/app/v1/billing.pb.h b/src/viam/api/app/v1/billing.pb.h index 472ec44bd..656239f30 100644 --- a/src/viam/api/app/v1/billing.pb.h +++ b/src/viam/api/app/v1/billing.pb.h @@ -92,6 +92,9 @@ extern InvoiceSummaryDefaultTypeInternal _InvoiceSummary_default_instance_; class PaymentMethodCard; struct PaymentMethodCardDefaultTypeInternal; extern PaymentMethodCardDefaultTypeInternal _PaymentMethodCard_default_instance_; +class PaymentMethodUSBankAccount; +struct PaymentMethodUSBankAccountDefaultTypeInternal; +extern PaymentMethodUSBankAccountDefaultTypeInternal _PaymentMethodUSBankAccount_default_instance_; class ResourceUsageCosts; struct ResourceUsageCostsDefaultTypeInternal; extern ResourceUsageCostsDefaultTypeInternal _ResourceUsageCosts_default_instance_; @@ -113,6 +116,9 @@ extern UpdateOrganizationBillingTierResponseDefaultTypeInternal _UpdateOrganizat class UsageCost; struct UsageCostDefaultTypeInternal; extern UsageCostDefaultTypeInternal _UsageCost_default_instance_; +class VerificationInfo; +struct VerificationInfoDefaultTypeInternal; +extern VerificationInfoDefaultTypeInternal _VerificationInfo_default_instance_; } // namespace v1 } // namespace app } // namespace viam @@ -131,6 +137,7 @@ template<> ::viam::app::v1::GetOrgBillingInformationRequest* Arena::CreateMaybeM template<> ::viam::app::v1::GetOrgBillingInformationResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetOrgBillingInformationResponse>(Arena*); template<> ::viam::app::v1::InvoiceSummary* Arena::CreateMaybeMessage<::viam::app::v1::InvoiceSummary>(Arena*); template<> ::viam::app::v1::PaymentMethodCard* Arena::CreateMaybeMessage<::viam::app::v1::PaymentMethodCard>(Arena*); +template<> ::viam::app::v1::PaymentMethodUSBankAccount* Arena::CreateMaybeMessage<::viam::app::v1::PaymentMethodUSBankAccount>(Arena*); template<> ::viam::app::v1::ResourceUsageCosts* Arena::CreateMaybeMessage<::viam::app::v1::ResourceUsageCosts>(Arena*); template<> ::viam::app::v1::ResourceUsageCostsBySource* Arena::CreateMaybeMessage<::viam::app::v1::ResourceUsageCostsBySource>(Arena*); template<> ::viam::app::v1::SendPaymentRequiredEmailRequest* Arena::CreateMaybeMessage<::viam::app::v1::SendPaymentRequiredEmailRequest>(Arena*); @@ -138,6 +145,7 @@ template<> ::viam::app::v1::SendPaymentRequiredEmailResponse* Arena::CreateMaybe template<> ::viam::app::v1::UpdateOrganizationBillingTierRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOrganizationBillingTierRequest>(Arena*); template<> ::viam::app::v1::UpdateOrganizationBillingTierResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOrganizationBillingTierResponse>(Arena*); template<> ::viam::app::v1::UsageCost* Arena::CreateMaybeMessage<::viam::app::v1::UsageCost>(Arena*); +template<> ::viam::app::v1::VerificationInfo* Arena::CreateMaybeMessage<::viam::app::v1::VerificationInfo>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { @@ -146,12 +154,13 @@ namespace v1 { enum PaymentMethodType : int { PAYMENT_METHOD_TYPE_UNSPECIFIED = 0, PAYMENT_METHOD_TYPE_CARD = 1, + PAYMENT_METHOD_TYPE_USBANKACCOUNT = 2, PaymentMethodType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), PaymentMethodType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool PaymentMethodType_IsValid(int value); constexpr PaymentMethodType PaymentMethodType_MIN = PAYMENT_METHOD_TYPE_UNSPECIFIED; -constexpr PaymentMethodType PaymentMethodType_MAX = PAYMENT_METHOD_TYPE_CARD; +constexpr PaymentMethodType PaymentMethodType_MAX = PAYMENT_METHOD_TYPE_USBANKACCOUNT; constexpr int PaymentMethodType_ARRAYSIZE = PaymentMethodType_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentMethodType_descriptor(); @@ -643,6 +652,382 @@ class PaymentMethodCard final : }; // ------------------------------------------------------------------- +class VerificationInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.VerificationInfo) */ { + public: + inline VerificationInfo() : VerificationInfo(nullptr) {} + ~VerificationInfo() override; + explicit PROTOBUF_CONSTEXPR VerificationInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + VerificationInfo(const VerificationInfo& from); + VerificationInfo(VerificationInfo&& from) noexcept + : VerificationInfo() { + *this = ::std::move(from); + } + + inline VerificationInfo& operator=(const VerificationInfo& from) { + CopyFrom(from); + return *this; + } + inline VerificationInfo& operator=(VerificationInfo&& 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 VerificationInfo& default_instance() { + return *internal_default_instance(); + } + static inline const VerificationInfo* internal_default_instance() { + return reinterpret_cast( + &_VerificationInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(VerificationInfo& a, VerificationInfo& b) { + a.Swap(&b); + } + inline void Swap(VerificationInfo* 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(VerificationInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + VerificationInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const VerificationInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const VerificationInfo& 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(VerificationInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.VerificationInfo"; + } + protected: + explicit VerificationInfo(::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 { + kHostedVerificationPageUrlFieldNumber = 2, + kArrivalDateFieldNumber = 1, + }; + // string hosted_verification_page_url = 2 [json_name = "hostedVerificationPageUrl"]; + void clear_hosted_verification_page_url(); + const std::string& hosted_verification_page_url() const; + template + void set_hosted_verification_page_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_hosted_verification_page_url(); + PROTOBUF_NODISCARD std::string* release_hosted_verification_page_url(); + void set_allocated_hosted_verification_page_url(std::string* hosted_verification_page_url); + private: + const std::string& _internal_hosted_verification_page_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_hosted_verification_page_url(const std::string& value); + std::string* _internal_mutable_hosted_verification_page_url(); + public: + + // int64 arrival_date = 1 [json_name = "arrivalDate"]; + void clear_arrival_date(); + int64_t arrival_date() const; + void set_arrival_date(int64_t value); + private: + int64_t _internal_arrival_date() const; + void _internal_set_arrival_date(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.VerificationInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hosted_verification_page_url_; + int64_t arrival_date_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +}; +// ------------------------------------------------------------------- + +class PaymentMethodUSBankAccount final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.PaymentMethodUSBankAccount) */ { + public: + inline PaymentMethodUSBankAccount() : PaymentMethodUSBankAccount(nullptr) {} + ~PaymentMethodUSBankAccount() override; + explicit PROTOBUF_CONSTEXPR PaymentMethodUSBankAccount(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PaymentMethodUSBankAccount(const PaymentMethodUSBankAccount& from); + PaymentMethodUSBankAccount(PaymentMethodUSBankAccount&& from) noexcept + : PaymentMethodUSBankAccount() { + *this = ::std::move(from); + } + + inline PaymentMethodUSBankAccount& operator=(const PaymentMethodUSBankAccount& from) { + CopyFrom(from); + return *this; + } + inline PaymentMethodUSBankAccount& operator=(PaymentMethodUSBankAccount&& 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 PaymentMethodUSBankAccount& default_instance() { + return *internal_default_instance(); + } + static inline const PaymentMethodUSBankAccount* internal_default_instance() { + return reinterpret_cast( + &_PaymentMethodUSBankAccount_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(PaymentMethodUSBankAccount& a, PaymentMethodUSBankAccount& b) { + a.Swap(&b); + } + inline void Swap(PaymentMethodUSBankAccount* 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(PaymentMethodUSBankAccount* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PaymentMethodUSBankAccount* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PaymentMethodUSBankAccount& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PaymentMethodUSBankAccount& 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(PaymentMethodUSBankAccount* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.PaymentMethodUSBankAccount"; + } + protected: + explicit PaymentMethodUSBankAccount(::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 { + kBankNameFieldNumber = 1, + kLastFourDigitsAccountNumberFieldNumber = 2, + kRoutingNumberFieldNumber = 3, + kAccountTypeFieldNumber = 4, + kVerificationInfoFieldNumber = 5, + }; + // string bank_name = 1 [json_name = "bankName"]; + void clear_bank_name(); + const std::string& bank_name() const; + template + void set_bank_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_bank_name(); + PROTOBUF_NODISCARD std::string* release_bank_name(); + void set_allocated_bank_name(std::string* bank_name); + private: + const std::string& _internal_bank_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bank_name(const std::string& value); + std::string* _internal_mutable_bank_name(); + public: + + // string last_four_digits_account_number = 2 [json_name = "lastFourDigitsAccountNumber"]; + void clear_last_four_digits_account_number(); + const std::string& last_four_digits_account_number() const; + template + void set_last_four_digits_account_number(ArgT0&& arg0, ArgT... args); + std::string* mutable_last_four_digits_account_number(); + PROTOBUF_NODISCARD std::string* release_last_four_digits_account_number(); + void set_allocated_last_four_digits_account_number(std::string* last_four_digits_account_number); + private: + const std::string& _internal_last_four_digits_account_number() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_four_digits_account_number(const std::string& value); + std::string* _internal_mutable_last_four_digits_account_number(); + public: + + // string routing_number = 3 [json_name = "routingNumber"]; + void clear_routing_number(); + const std::string& routing_number() const; + template + void set_routing_number(ArgT0&& arg0, ArgT... args); + std::string* mutable_routing_number(); + PROTOBUF_NODISCARD std::string* release_routing_number(); + void set_allocated_routing_number(std::string* routing_number); + private: + const std::string& _internal_routing_number() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_routing_number(const std::string& value); + std::string* _internal_mutable_routing_number(); + public: + + // string account_type = 4 [json_name = "accountType"]; + void clear_account_type(); + const std::string& account_type() const; + template + void set_account_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_account_type(); + PROTOBUF_NODISCARD std::string* release_account_type(); + void set_allocated_account_type(std::string* account_type); + private: + const std::string& _internal_account_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_account_type(const std::string& value); + std::string* _internal_mutable_account_type(); + public: + + // optional .viam.app.v1.VerificationInfo verification_info = 5 [json_name = "verificationInfo"]; + bool has_verification_info() const; + private: + bool _internal_has_verification_info() const; + public: + void clear_verification_info(); + const ::viam::app::v1::VerificationInfo& verification_info() const; + PROTOBUF_NODISCARD ::viam::app::v1::VerificationInfo* release_verification_info(); + ::viam::app::v1::VerificationInfo* mutable_verification_info(); + void set_allocated_verification_info(::viam::app::v1::VerificationInfo* verification_info); + private: + const ::viam::app::v1::VerificationInfo& _internal_verification_info() const; + ::viam::app::v1::VerificationInfo* _internal_mutable_verification_info(); + public: + void unsafe_arena_set_allocated_verification_info( + ::viam::app::v1::VerificationInfo* verification_info); + ::viam::app::v1::VerificationInfo* unsafe_arena_release_verification_info(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.PaymentMethodUSBankAccount) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bank_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_four_digits_account_number_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr routing_number_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr account_type_; + ::viam::app::v1::VerificationInfo* verification_info_; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +}; +// ------------------------------------------------------------------- + class GetCurrentMonthUsageRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetCurrentMonthUsageRequest) */ { public: @@ -691,7 +1076,7 @@ class GetCurrentMonthUsageRequest final : &_GetCurrentMonthUsageRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 4; friend void swap(GetCurrentMonthUsageRequest& a, GetCurrentMonthUsageRequest& b) { a.Swap(&b); @@ -839,7 +1224,7 @@ class UsageCost final : &_UsageCost_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 5; friend void swap(UsageCost& a, UsageCost& b) { a.Swap(&b); @@ -993,7 +1378,7 @@ class ResourceUsageCostsBySource final : &_ResourceUsageCostsBySource_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 6; friend void swap(ResourceUsageCostsBySource& a, ResourceUsageCostsBySource& b) { a.Swap(&b); @@ -1172,7 +1557,7 @@ class ResourceUsageCosts final : &_ResourceUsageCosts_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 7; friend void swap(ResourceUsageCosts& a, ResourceUsageCosts& b) { a.Swap(&b); @@ -1357,7 +1742,7 @@ class GetCurrentMonthUsageResponse final : &_GetCurrentMonthUsageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 8; friend void swap(GetCurrentMonthUsageResponse& a, GetCurrentMonthUsageResponse& b) { a.Swap(&b); @@ -1681,7 +2066,7 @@ class GetOrgBillingInformationRequest final : &_GetOrgBillingInformationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 9; friend void swap(GetOrgBillingInformationRequest& a, GetOrgBillingInformationRequest& b) { a.Swap(&b); @@ -1829,7 +2214,7 @@ class GetOrgBillingInformationResponse final : &_GetOrgBillingInformationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 10; friend void swap(GetOrgBillingInformationResponse& a, GetOrgBillingInformationResponse& b) { a.Swap(&b); @@ -1903,6 +2288,7 @@ class GetOrgBillingInformationResponse final : kBillingEmailFieldNumber = 2, kBillingTierFieldNumber = 4, kMethodFieldNumber = 3, + kMethodUsBankAccountFieldNumber = 5, kTypeFieldNumber = 1, }; // string billing_email = 2 [json_name = "billingEmail"]; @@ -1955,6 +2341,24 @@ class GetOrgBillingInformationResponse final : ::viam::app::v1::PaymentMethodCard* method); ::viam::app::v1::PaymentMethodCard* unsafe_arena_release_method(); + // optional .viam.app.v1.PaymentMethodUSBankAccount method_us_bank_account = 5 [json_name = "methodUsBankAccount"]; + bool has_method_us_bank_account() const; + private: + bool _internal_has_method_us_bank_account() const; + public: + void clear_method_us_bank_account(); + const ::viam::app::v1::PaymentMethodUSBankAccount& method_us_bank_account() const; + PROTOBUF_NODISCARD ::viam::app::v1::PaymentMethodUSBankAccount* release_method_us_bank_account(); + ::viam::app::v1::PaymentMethodUSBankAccount* mutable_method_us_bank_account(); + void set_allocated_method_us_bank_account(::viam::app::v1::PaymentMethodUSBankAccount* method_us_bank_account); + private: + const ::viam::app::v1::PaymentMethodUSBankAccount& _internal_method_us_bank_account() const; + ::viam::app::v1::PaymentMethodUSBankAccount* _internal_mutable_method_us_bank_account(); + public: + void unsafe_arena_set_allocated_method_us_bank_account( + ::viam::app::v1::PaymentMethodUSBankAccount* method_us_bank_account); + ::viam::app::v1::PaymentMethodUSBankAccount* unsafe_arena_release_method_us_bank_account(); + // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; void clear_type(); ::viam::app::v1::PaymentMethodType type() const; @@ -1976,6 +2380,7 @@ class GetOrgBillingInformationResponse final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr billing_email_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr billing_tier_; ::viam::app::v1::PaymentMethodCard* method_; + ::viam::app::v1::PaymentMethodUSBankAccount* method_us_bank_account_; int type_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; }; @@ -2029,7 +2434,7 @@ class GetInvoicesSummaryRequest final : &_GetInvoicesSummaryRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 11; friend void swap(GetInvoicesSummaryRequest& a, GetInvoicesSummaryRequest& b) { a.Swap(&b); @@ -2177,7 +2582,7 @@ class GetInvoicesSummaryResponse final : &_GetInvoicesSummaryResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 12; friend void swap(GetInvoicesSummaryResponse& a, GetInvoicesSummaryResponse& b) { a.Swap(&b); @@ -2340,7 +2745,7 @@ class GetInvoicePdfRequest final : &_GetInvoicePdfRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 13; friend void swap(GetInvoicePdfRequest& a, GetInvoicePdfRequest& b) { a.Swap(&b); @@ -2504,7 +2909,7 @@ class GetInvoicePdfResponse final : &_GetInvoicePdfResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 14; friend void swap(GetInvoicePdfResponse& a, GetInvoicePdfResponse& b) { a.Swap(&b); @@ -2652,7 +3057,7 @@ class SendPaymentRequiredEmailRequest final : &_SendPaymentRequiredEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 15; friend void swap(SendPaymentRequiredEmailRequest& a, SendPaymentRequiredEmailRequest& b) { a.Swap(&b); @@ -2815,7 +3220,7 @@ class SendPaymentRequiredEmailResponse final : &_SendPaymentRequiredEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 16; friend void swap(SendPaymentRequiredEmailResponse& a, SendPaymentRequiredEmailResponse& b) { a.Swap(&b); @@ -2931,7 +3336,7 @@ class GetAvailableBillingTiersRequest final : &_GetAvailableBillingTiersRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 17; friend void swap(GetAvailableBillingTiersRequest& a, GetAvailableBillingTiersRequest& b) { a.Swap(&b); @@ -3048,7 +3453,7 @@ class GetAvailableBillingTiersResponse final : &_GetAvailableBillingTiersResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 18; friend void swap(GetAvailableBillingTiersResponse& a, GetAvailableBillingTiersResponse& b) { a.Swap(&b); @@ -3206,7 +3611,7 @@ class UpdateOrganizationBillingTierRequest final : &_UpdateOrganizationBillingTierRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 19; friend void swap(UpdateOrganizationBillingTierRequest& a, UpdateOrganizationBillingTierRequest& b) { a.Swap(&b); @@ -3369,7 +3774,7 @@ class UpdateOrganizationBillingTierResponse final : &_UpdateOrganizationBillingTierResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 20; friend void swap(UpdateOrganizationBillingTierResponse& a, UpdateOrganizationBillingTierResponse& b) { a.Swap(&b); @@ -3486,7 +3891,7 @@ class CreateInvoiceAndChargeImmediatelyRequest final : &_CreateInvoiceAndChargeImmediatelyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 21; friend void swap(CreateInvoiceAndChargeImmediatelyRequest& a, CreateInvoiceAndChargeImmediatelyRequest& b) { a.Swap(&b); @@ -3685,7 +4090,7 @@ class CreateInvoiceAndChargeImmediatelyResponse final : &_CreateInvoiceAndChargeImmediatelyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 22; friend void swap(CreateInvoiceAndChargeImmediatelyResponse& a, CreateInvoiceAndChargeImmediatelyResponse& b) { a.Swap(&b); @@ -4244,6 +4649,374 @@ inline void PaymentMethodCard::set_allocated_last_four_digits(std::string* last_ // ------------------------------------------------------------------- +// VerificationInfo + +// int64 arrival_date = 1 [json_name = "arrivalDate"]; +inline void VerificationInfo::clear_arrival_date() { + arrival_date_ = int64_t{0}; +} +inline int64_t VerificationInfo::_internal_arrival_date() const { + return arrival_date_; +} +inline int64_t VerificationInfo::arrival_date() const { + // @@protoc_insertion_point(field_get:viam.app.v1.VerificationInfo.arrival_date) + return _internal_arrival_date(); +} +inline void VerificationInfo::_internal_set_arrival_date(int64_t value) { + + arrival_date_ = value; +} +inline void VerificationInfo::set_arrival_date(int64_t value) { + _internal_set_arrival_date(value); + // @@protoc_insertion_point(field_set:viam.app.v1.VerificationInfo.arrival_date) +} + +// string hosted_verification_page_url = 2 [json_name = "hostedVerificationPageUrl"]; +inline void VerificationInfo::clear_hosted_verification_page_url() { + hosted_verification_page_url_.ClearToEmpty(); +} +inline const std::string& VerificationInfo::hosted_verification_page_url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.VerificationInfo.hosted_verification_page_url) + return _internal_hosted_verification_page_url(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void VerificationInfo::set_hosted_verification_page_url(ArgT0&& arg0, ArgT... args) { + + hosted_verification_page_url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.VerificationInfo.hosted_verification_page_url) +} +inline std::string* VerificationInfo::mutable_hosted_verification_page_url() { + std::string* _s = _internal_mutable_hosted_verification_page_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.VerificationInfo.hosted_verification_page_url) + return _s; +} +inline const std::string& VerificationInfo::_internal_hosted_verification_page_url() const { + return hosted_verification_page_url_.Get(); +} +inline void VerificationInfo::_internal_set_hosted_verification_page_url(const std::string& value) { + + hosted_verification_page_url_.Set(value, GetArenaForAllocation()); +} +inline std::string* VerificationInfo::_internal_mutable_hosted_verification_page_url() { + + return hosted_verification_page_url_.Mutable(GetArenaForAllocation()); +} +inline std::string* VerificationInfo::release_hosted_verification_page_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.VerificationInfo.hosted_verification_page_url) + return hosted_verification_page_url_.Release(); +} +inline void VerificationInfo::set_allocated_hosted_verification_page_url(std::string* hosted_verification_page_url) { + if (hosted_verification_page_url != nullptr) { + + } else { + + } + hosted_verification_page_url_.SetAllocated(hosted_verification_page_url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (hosted_verification_page_url_.IsDefault()) { + hosted_verification_page_url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.VerificationInfo.hosted_verification_page_url) +} + +// ------------------------------------------------------------------- + +// PaymentMethodUSBankAccount + +// string bank_name = 1 [json_name = "bankName"]; +inline void PaymentMethodUSBankAccount::clear_bank_name() { + bank_name_.ClearToEmpty(); +} +inline const std::string& PaymentMethodUSBankAccount::bank_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.PaymentMethodUSBankAccount.bank_name) + return _internal_bank_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PaymentMethodUSBankAccount::set_bank_name(ArgT0&& arg0, ArgT... args) { + + bank_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.PaymentMethodUSBankAccount.bank_name) +} +inline std::string* PaymentMethodUSBankAccount::mutable_bank_name() { + std::string* _s = _internal_mutable_bank_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.PaymentMethodUSBankAccount.bank_name) + return _s; +} +inline const std::string& PaymentMethodUSBankAccount::_internal_bank_name() const { + return bank_name_.Get(); +} +inline void PaymentMethodUSBankAccount::_internal_set_bank_name(const std::string& value) { + + bank_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::_internal_mutable_bank_name() { + + return bank_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::release_bank_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.PaymentMethodUSBankAccount.bank_name) + return bank_name_.Release(); +} +inline void PaymentMethodUSBankAccount::set_allocated_bank_name(std::string* bank_name) { + if (bank_name != nullptr) { + + } else { + + } + bank_name_.SetAllocated(bank_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (bank_name_.IsDefault()) { + bank_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PaymentMethodUSBankAccount.bank_name) +} + +// string last_four_digits_account_number = 2 [json_name = "lastFourDigitsAccountNumber"]; +inline void PaymentMethodUSBankAccount::clear_last_four_digits_account_number() { + last_four_digits_account_number_.ClearToEmpty(); +} +inline const std::string& PaymentMethodUSBankAccount::last_four_digits_account_number() const { + // @@protoc_insertion_point(field_get:viam.app.v1.PaymentMethodUSBankAccount.last_four_digits_account_number) + return _internal_last_four_digits_account_number(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PaymentMethodUSBankAccount::set_last_four_digits_account_number(ArgT0&& arg0, ArgT... args) { + + last_four_digits_account_number_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.PaymentMethodUSBankAccount.last_four_digits_account_number) +} +inline std::string* PaymentMethodUSBankAccount::mutable_last_four_digits_account_number() { + std::string* _s = _internal_mutable_last_four_digits_account_number(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.PaymentMethodUSBankAccount.last_four_digits_account_number) + return _s; +} +inline const std::string& PaymentMethodUSBankAccount::_internal_last_four_digits_account_number() const { + return last_four_digits_account_number_.Get(); +} +inline void PaymentMethodUSBankAccount::_internal_set_last_four_digits_account_number(const std::string& value) { + + last_four_digits_account_number_.Set(value, GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::_internal_mutable_last_four_digits_account_number() { + + return last_four_digits_account_number_.Mutable(GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::release_last_four_digits_account_number() { + // @@protoc_insertion_point(field_release:viam.app.v1.PaymentMethodUSBankAccount.last_four_digits_account_number) + return last_four_digits_account_number_.Release(); +} +inline void PaymentMethodUSBankAccount::set_allocated_last_four_digits_account_number(std::string* last_four_digits_account_number) { + if (last_four_digits_account_number != nullptr) { + + } else { + + } + last_four_digits_account_number_.SetAllocated(last_four_digits_account_number, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (last_four_digits_account_number_.IsDefault()) { + last_four_digits_account_number_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PaymentMethodUSBankAccount.last_four_digits_account_number) +} + +// string routing_number = 3 [json_name = "routingNumber"]; +inline void PaymentMethodUSBankAccount::clear_routing_number() { + routing_number_.ClearToEmpty(); +} +inline const std::string& PaymentMethodUSBankAccount::routing_number() const { + // @@protoc_insertion_point(field_get:viam.app.v1.PaymentMethodUSBankAccount.routing_number) + return _internal_routing_number(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PaymentMethodUSBankAccount::set_routing_number(ArgT0&& arg0, ArgT... args) { + + routing_number_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.PaymentMethodUSBankAccount.routing_number) +} +inline std::string* PaymentMethodUSBankAccount::mutable_routing_number() { + std::string* _s = _internal_mutable_routing_number(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.PaymentMethodUSBankAccount.routing_number) + return _s; +} +inline const std::string& PaymentMethodUSBankAccount::_internal_routing_number() const { + return routing_number_.Get(); +} +inline void PaymentMethodUSBankAccount::_internal_set_routing_number(const std::string& value) { + + routing_number_.Set(value, GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::_internal_mutable_routing_number() { + + return routing_number_.Mutable(GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::release_routing_number() { + // @@protoc_insertion_point(field_release:viam.app.v1.PaymentMethodUSBankAccount.routing_number) + return routing_number_.Release(); +} +inline void PaymentMethodUSBankAccount::set_allocated_routing_number(std::string* routing_number) { + if (routing_number != nullptr) { + + } else { + + } + routing_number_.SetAllocated(routing_number, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (routing_number_.IsDefault()) { + routing_number_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PaymentMethodUSBankAccount.routing_number) +} + +// string account_type = 4 [json_name = "accountType"]; +inline void PaymentMethodUSBankAccount::clear_account_type() { + account_type_.ClearToEmpty(); +} +inline const std::string& PaymentMethodUSBankAccount::account_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.PaymentMethodUSBankAccount.account_type) + return _internal_account_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PaymentMethodUSBankAccount::set_account_type(ArgT0&& arg0, ArgT... args) { + + account_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.PaymentMethodUSBankAccount.account_type) +} +inline std::string* PaymentMethodUSBankAccount::mutable_account_type() { + std::string* _s = _internal_mutable_account_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.PaymentMethodUSBankAccount.account_type) + return _s; +} +inline const std::string& PaymentMethodUSBankAccount::_internal_account_type() const { + return account_type_.Get(); +} +inline void PaymentMethodUSBankAccount::_internal_set_account_type(const std::string& value) { + + account_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::_internal_mutable_account_type() { + + return account_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* PaymentMethodUSBankAccount::release_account_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.PaymentMethodUSBankAccount.account_type) + return account_type_.Release(); +} +inline void PaymentMethodUSBankAccount::set_allocated_account_type(std::string* account_type) { + if (account_type != nullptr) { + + } else { + + } + account_type_.SetAllocated(account_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (account_type_.IsDefault()) { + account_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PaymentMethodUSBankAccount.account_type) +} + +// optional .viam.app.v1.VerificationInfo verification_info = 5 [json_name = "verificationInfo"]; +inline bool PaymentMethodUSBankAccount::_internal_has_verification_info() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || verification_info_ != nullptr); + return value; +} +inline bool PaymentMethodUSBankAccount::has_verification_info() const { + return _internal_has_verification_info(); +} +inline void PaymentMethodUSBankAccount::clear_verification_info() { + if (verification_info_ != nullptr) verification_info_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::viam::app::v1::VerificationInfo& PaymentMethodUSBankAccount::_internal_verification_info() const { + const ::viam::app::v1::VerificationInfo* p = verification_info_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_VerificationInfo_default_instance_); +} +inline const ::viam::app::v1::VerificationInfo& PaymentMethodUSBankAccount::verification_info() const { + // @@protoc_insertion_point(field_get:viam.app.v1.PaymentMethodUSBankAccount.verification_info) + return _internal_verification_info(); +} +inline void PaymentMethodUSBankAccount::unsafe_arena_set_allocated_verification_info( + ::viam::app::v1::VerificationInfo* verification_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(verification_info_); + } + verification_info_ = verification_info; + if (verification_info) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.PaymentMethodUSBankAccount.verification_info) +} +inline ::viam::app::v1::VerificationInfo* PaymentMethodUSBankAccount::release_verification_info() { + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::VerificationInfo* temp = verification_info_; + verification_info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::VerificationInfo* PaymentMethodUSBankAccount::unsafe_arena_release_verification_info() { + // @@protoc_insertion_point(field_release:viam.app.v1.PaymentMethodUSBankAccount.verification_info) + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::VerificationInfo* temp = verification_info_; + verification_info_ = nullptr; + return temp; +} +inline ::viam::app::v1::VerificationInfo* PaymentMethodUSBankAccount::_internal_mutable_verification_info() { + _has_bits_[0] |= 0x00000001u; + if (verification_info_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::VerificationInfo>(GetArenaForAllocation()); + verification_info_ = p; + } + return verification_info_; +} +inline ::viam::app::v1::VerificationInfo* PaymentMethodUSBankAccount::mutable_verification_info() { + ::viam::app::v1::VerificationInfo* _msg = _internal_mutable_verification_info(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.PaymentMethodUSBankAccount.verification_info) + return _msg; +} +inline void PaymentMethodUSBankAccount::set_allocated_verification_info(::viam::app::v1::VerificationInfo* verification_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete verification_info_; + } + if (verification_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(verification_info); + if (message_arena != submessage_arena) { + verification_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, verification_info, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + verification_info_ = verification_info; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PaymentMethodUSBankAccount.verification_info) +} + +// ------------------------------------------------------------------- + // GetCurrentMonthUsageRequest // string org_id = 1 [json_name = "orgId"]; @@ -5348,6 +6121,96 @@ inline void GetOrgBillingInformationResponse::set_allocated_billing_tier(std::st // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrgBillingInformationResponse.billing_tier) } +// optional .viam.app.v1.PaymentMethodUSBankAccount method_us_bank_account = 5 [json_name = "methodUsBankAccount"]; +inline bool GetOrgBillingInformationResponse::_internal_has_method_us_bank_account() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || method_us_bank_account_ != nullptr); + return value; +} +inline bool GetOrgBillingInformationResponse::has_method_us_bank_account() const { + return _internal_has_method_us_bank_account(); +} +inline void GetOrgBillingInformationResponse::clear_method_us_bank_account() { + if (method_us_bank_account_ != nullptr) method_us_bank_account_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::viam::app::v1::PaymentMethodUSBankAccount& GetOrgBillingInformationResponse::_internal_method_us_bank_account() const { + const ::viam::app::v1::PaymentMethodUSBankAccount* p = method_us_bank_account_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_PaymentMethodUSBankAccount_default_instance_); +} +inline const ::viam::app::v1::PaymentMethodUSBankAccount& GetOrgBillingInformationResponse::method_us_bank_account() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetOrgBillingInformationResponse.method_us_bank_account) + return _internal_method_us_bank_account(); +} +inline void GetOrgBillingInformationResponse::unsafe_arena_set_allocated_method_us_bank_account( + ::viam::app::v1::PaymentMethodUSBankAccount* method_us_bank_account) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(method_us_bank_account_); + } + method_us_bank_account_ = method_us_bank_account; + if (method_us_bank_account) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetOrgBillingInformationResponse.method_us_bank_account) +} +inline ::viam::app::v1::PaymentMethodUSBankAccount* GetOrgBillingInformationResponse::release_method_us_bank_account() { + _has_bits_[0] &= ~0x00000004u; + ::viam::app::v1::PaymentMethodUSBankAccount* temp = method_us_bank_account_; + method_us_bank_account_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::PaymentMethodUSBankAccount* GetOrgBillingInformationResponse::unsafe_arena_release_method_us_bank_account() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetOrgBillingInformationResponse.method_us_bank_account) + _has_bits_[0] &= ~0x00000004u; + ::viam::app::v1::PaymentMethodUSBankAccount* temp = method_us_bank_account_; + method_us_bank_account_ = nullptr; + return temp; +} +inline ::viam::app::v1::PaymentMethodUSBankAccount* GetOrgBillingInformationResponse::_internal_mutable_method_us_bank_account() { + _has_bits_[0] |= 0x00000004u; + if (method_us_bank_account_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::PaymentMethodUSBankAccount>(GetArenaForAllocation()); + method_us_bank_account_ = p; + } + return method_us_bank_account_; +} +inline ::viam::app::v1::PaymentMethodUSBankAccount* GetOrgBillingInformationResponse::mutable_method_us_bank_account() { + ::viam::app::v1::PaymentMethodUSBankAccount* _msg = _internal_mutable_method_us_bank_account(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrgBillingInformationResponse.method_us_bank_account) + return _msg; +} +inline void GetOrgBillingInformationResponse::set_allocated_method_us_bank_account(::viam::app::v1::PaymentMethodUSBankAccount* method_us_bank_account) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete method_us_bank_account_; + } + if (method_us_bank_account) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(method_us_bank_account); + if (message_arena != submessage_arena) { + method_us_bank_account = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, method_us_bank_account, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + method_us_bank_account_ = method_us_bank_account; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrgBillingInformationResponse.method_us_bank_account) +} + // ------------------------------------------------------------------- // GetInvoicesSummaryRequest @@ -6180,6 +7043,10 @@ inline void CreateInvoiceAndChargeImmediatelyRequest::set_allocated_org_id_for_b // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index ad03c3f87..a39160898 100644 --- a/src/viam/api/buf.lock +++ b/src/viam/api/buf.lock @@ -8,7 +8,7 @@ deps: - remote: buf.build owner: viamrobotics repository: api - commit: 62132a8359d946918eb4169b339a0f3a + commit: 76735db689f9436182a51cc4f94efd59 - remote: buf.build owner: viamrobotics repository: goutils diff --git a/src/viam/api/service/motion/v1/motion.pb.cc b/src/viam/api/service/motion/v1/motion.pb.cc index a98a26712..27b086e3f 100644 --- a/src/viam/api/service/motion/v1/motion.pb.cc +++ b/src/viam/api/service/motion/v1/motion.pb.cc @@ -27,8 +27,9 @@ namespace v1 { PROTOBUF_CONSTEXPR MoveRequest::MoveRequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , destination_(nullptr) - , component_name_(nullptr) + , component_name_deprecated_(nullptr) , world_state_(nullptr) , constraints_(nullptr) , extra_(nullptr){} @@ -57,9 +58,11 @@ PROTOBUF_CONSTEXPR MoveOnMapRequest::MoveOnMapRequest( ::_pbi::ConstantInitialized) : obstacles_() , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , slam_service_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , destination_(nullptr) - , component_name_(nullptr) - , slam_service_name_(nullptr) + , component_name_deprecated_(nullptr) + , slam_service_name_deprecated_(nullptr) , motion_configuration_(nullptr) , extra_(nullptr){} struct MoveOnMapRequestDefaultTypeInternal { @@ -85,8 +88,10 @@ struct MoveOnMapResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapResponseDefaultTypeInternal _MoveOnMapResponse_default_instance_; PROTOBUF_CONSTEXPR ObstacleDetector::ObstacleDetector( ::_pbi::ConstantInitialized) - : vision_service_(nullptr) - , camera_(nullptr){} + : vision_service_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , camera_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , vision_service_deprecated_(nullptr) + , camera_deprecated_(nullptr){} struct ObstacleDetectorDefaultTypeInternal { PROTOBUF_CONSTEXPR ObstacleDetectorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -118,9 +123,11 @@ PROTOBUF_CONSTEXPR MoveOnGlobeRequest::MoveOnGlobeRequest( : obstacles_() , bounding_regions_() , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , movement_sensor_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , destination_(nullptr) - , component_name_(nullptr) - , movement_sensor_name_(nullptr) + , component_name_deprecated_(nullptr) + , movement_sensor_name_deprecated_(nullptr) , motion_configuration_(nullptr) , extra_(nullptr) , heading_(0){} @@ -150,7 +157,8 @@ PROTOBUF_CONSTEXPR GetPoseRequest::GetPoseRequest( : supplemental_transforms_() , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , destination_frame_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , component_name_(nullptr) + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_deprecated_(nullptr) , extra_(nullptr){} struct GetPoseRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetPoseRequestDefaultTypeInternal() @@ -176,7 +184,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT PROTOBUF_CONSTEXPR StopPlanRequest::StopPlanRequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , component_name_(nullptr) + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_deprecated_(nullptr) , extra_(nullptr){} struct StopPlanRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StopPlanRequestDefaultTypeInternal() @@ -228,7 +237,8 @@ PROTOBUF_CONSTEXPR GetPlanRequest::GetPlanRequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , component_name_(nullptr) + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_deprecated_(nullptr) , extra_(nullptr) , last_plan_only_(false){} struct GetPlanRequestDefaultTypeInternal { @@ -349,7 +359,8 @@ PROTOBUF_CONSTEXPR PlanStatusWithID::PlanStatusWithID( ::_pbi::ConstantInitialized) : plan_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , component_name_(nullptr) + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_deprecated_(nullptr) , status_(nullptr){} struct PlanStatusWithIDDefaultTypeInternal { PROTOBUF_CONSTEXPR PlanStatusWithIDDefaultTypeInternal() @@ -380,7 +391,8 @@ PROTOBUF_CONSTEXPR Plan::Plan( : steps_() , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , component_name_(nullptr){} + , component_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_deprecated_(nullptr){} struct PlanDefaultTypeInternal { PROTOBUF_CONSTEXPR PlanDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -442,9 +454,10 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, destination_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, component_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, world_state_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, constraints_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, component_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, extra_), ~0u, ~0u, @@ -452,6 +465,7 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO 0, 1, ~0u, + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -467,10 +481,12 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, destination_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, slam_service_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, component_name_deprecated_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, slam_service_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, motion_configuration_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, obstacles_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, slam_service_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, extra_), ~0u, ~0u, @@ -479,6 +495,8 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO 0, ~0u, ~0u, + ~0u, + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -492,6 +510,8 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, vision_service_deprecated_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, camera_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, vision_service_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, camera_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _has_bits_), @@ -521,11 +541,13 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, destination_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, heading_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, movement_sensor_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, component_name_deprecated_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, movement_sensor_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, obstacles_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, motion_configuration_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, bounding_regions_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, movement_sensor_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, extra_), ~0u, ~0u, @@ -536,6 +558,8 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO 0, ~0u, ~0u, + ~0u, + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -550,9 +574,10 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, component_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, destination_frame_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, supplemental_transforms_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, component_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, extra_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseResponse, _internal_metadata_), @@ -568,6 +593,7 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, component_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, component_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, extra_), ~0u, // no _has_bits_ @@ -599,15 +625,17 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, component_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, last_plan_only_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, execution_id_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, component_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, extra_), ~0u, ~0u, ~0u, 0, ~0u, + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -685,9 +713,10 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, plan_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, component_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, execution_id_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, status_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, component_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _internal_metadata_), ~0u, // no _extensions_ @@ -707,9 +736,10 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, component_name_deprecated_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, execution_id_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, steps_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, component_name_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -736,35 +766,35 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ComponentState, pose_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 12, -1, sizeof(::viam::service::motion::v1::MoveRequest)}, - { 18, -1, -1, sizeof(::viam::service::motion::v1::MoveResponse)}, - { 25, 38, -1, sizeof(::viam::service::motion::v1::MoveOnMapRequest)}, - { 45, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapResponse)}, - { 52, -1, -1, sizeof(::viam::service::motion::v1::ObstacleDetector)}, - { 60, 72, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, - { 78, 93, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, - { 102, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, - { 109, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, - { 120, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, - { 127, -1, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, - { 136, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, - { 142, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, - { 151, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, - { 158, 169, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, - { 174, -1, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, - { 182, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, - { 192, 200, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, - { 202, 210, -1, sizeof(::viam::service::motion::v1::PseudolinearConstraint)}, - { 212, 219, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, - { 220, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, - { 228, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, - { 235, -1, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, - { 244, -1, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, - { 254, 263, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, - { 266, -1, -1, sizeof(::viam::service::motion::v1::Plan)}, - { 276, 284, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, - { 286, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, - { 293, -1, -1, sizeof(::viam::service::motion::v1::ComponentState)}, + { 0, 13, -1, sizeof(::viam::service::motion::v1::MoveRequest)}, + { 20, -1, -1, sizeof(::viam::service::motion::v1::MoveResponse)}, + { 27, 42, -1, sizeof(::viam::service::motion::v1::MoveOnMapRequest)}, + { 51, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapResponse)}, + { 58, -1, -1, sizeof(::viam::service::motion::v1::ObstacleDetector)}, + { 68, 80, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, + { 86, 103, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, + { 114, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, + { 121, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, + { 133, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, + { 140, -1, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, + { 150, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, + { 156, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, + { 165, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, + { 172, 184, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, + { 190, -1, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, + { 198, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, + { 208, 216, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, + { 218, 226, -1, sizeof(::viam::service::motion::v1::PseudolinearConstraint)}, + { 228, 235, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, + { 236, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, + { 244, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, + { 251, -1, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, + { 260, -1, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, + { 271, 280, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, + { 283, -1, -1, sizeof(::viam::service::motion::v1::Plan)}, + { 294, 302, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, + { 304, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, + { 311, -1, -1, sizeof(::viam::service::motion::v1::ComponentState)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -804,185 +834,204 @@ const char descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto[] PR "ervice.motion.v1\032\026common/v1/common.proto" "\032\034google/api/annotations.proto\032\034google/p" "rotobuf/struct.proto\032\037google/protobuf/ti" - "mestamp.proto\"\202\003\n\013MoveRequest\022\022\n\004name\030\001 " + "mestamp.proto\"\302\003\n\013MoveRequest\022\022\n\004name\030\001 " "\001(\tR\004name\022=\n\013destination\030\002 \001(\0132\033.viam.co" - "mmon.v1.PoseInFrameR\013destination\022C\n\016comp" - "onent_name\030\003 \001(\0132\034.viam.common.v1.Resour" - "ceNameR\rcomponentName\022@\n\013world_state\030\004 \001" - "(\0132\032.viam.common.v1.WorldStateH\000R\nworldS" - "tate\210\001\001\022J\n\013constraints\030\005 \001(\0132#.viam.serv" - "ice.motion.v1.ConstraintsH\001R\013constraints" - "\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" - "uctR\005extraB\016\n\014_world_stateB\016\n\014_constrain" - "ts\"(\n\014MoveResponse\022\030\n\007success\030\001 \001(\010R\007suc" - "cess\"\322\003\n\020MoveOnMapRequest\022\022\n\004name\030\001 \001(\tR" - "\004name\0226\n\013destination\030\002 \001(\0132\024.viam.common" - ".v1.PoseR\013destination\022C\n\016component_name\030" - "\003 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" - "ponentName\022H\n\021slam_service_name\030\004 \001(\0132\034." - "viam.common.v1.ResourceNameR\017slamService" - "Name\022c\n\024motion_configuration\030\005 \001(\0132+.via" - "m.service.motion.v1.MotionConfigurationH" - "\000R\023motionConfiguration\210\001\001\0226\n\tobstacles\030\006" - " \003(\0132\030.viam.common.v1.GeometryR\tobstacle" - "s\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" - "tR\005extraB\027\n\025_motion_configuration\"6\n\021Mov" - "eOnMapResponse\022!\n\014execution_id\030\001 \001(\tR\013ex" - "ecutionId\"\215\001\n\020ObstacleDetector\022C\n\016vision" - "_service\030\001 \001(\0132\034.viam.common.v1.Resource" - "NameR\rvisionService\0224\n\006camera\030\002 \001(\0132\034.vi" - "am.common.v1.ResourceNameR\006camera\"\230\004\n\023Mo" - "tionConfiguration\022W\n\022obstacle_detectors\030" - "\001 \003(\0132(.viam.service.motion.v1.ObstacleD" - "etectorR\021obstacleDetectors\022F\n\035position_p" - "olling_frequency_hz\030\002 \001(\001H\000R\032positionPol" - "lingFrequencyHz\210\001\001\022F\n\035obstacle_polling_f" - "requency_hz\030\003 \001(\001H\001R\032obstaclePollingFreq" - "uencyHz\210\001\001\022-\n\020plan_deviation_m\030\004 \001(\001H\002R\016" - "planDeviationM\210\001\001\022,\n\020linear_m_per_sec\030\005 " - "\001(\001H\003R\rlinearMPerSec\210\001\001\0224\n\024angular_degs_" - "per_sec\030\006 \001(\001H\004R\021angularDegsPerSec\210\001\001B \n" - "\036_position_polling_frequency_hzB \n\036_obst" - "acle_polling_frequency_hzB\023\n\021_plan_devia" - "tion_mB\023\n\021_linear_m_per_secB\027\n\025_angular_" - "degs_per_sec\"\324\004\n\022MoveOnGlobeRequest\022\022\n\004n" - "ame\030\001 \001(\tR\004name\022:\n\013destination\030\002 \001(\0132\030.v" - "iam.common.v1.GeoPointR\013destination\022\035\n\007h" - "eading\030\003 \001(\001H\000R\007heading\210\001\001\022C\n\016component_" - "name\030\004 \001(\0132\034.viam.common.v1.ResourceName" - "R\rcomponentName\022N\n\024movement_sensor_name\030" - "\005 \001(\0132\034.viam.common.v1.ResourceNameR\022mov" - "ementSensorName\0229\n\tobstacles\030\006 \003(\0132\033.via" + "mmon.v1.PoseInFrameR\013destination\022\\\n\031comp" + "onent_name_deprecated\030\003 \001(\0132\034.viam.commo" + "n.v1.ResourceNameB\002\030\001R\027componentNameDepr" + "ecated\022@\n\013world_state\030\004 \001(\0132\032.viam.commo" + "n.v1.WorldStateH\000R\nworldState\210\001\001\022J\n\013cons" + "traints\030\005 \001(\0132#.viam.service.motion.v1.C" + "onstraintsH\001R\013constraints\210\001\001\022%\n\016componen" + "t_name\030\006 \001(\tR\rcomponentName\022-\n\005extra\030c \001" + "(\0132\027.google.protobuf.StructR\005extraB\016\n\014_w" + "orld_stateB\016\n\014_constraints\"(\n\014MoveRespon" + "se\022\030\n\007success\030\001 \001(\010R\007success\"\327\004\n\020MoveOnM" + "apRequest\022\022\n\004name\030\001 \001(\tR\004name\0226\n\013destina" + "tion\030\002 \001(\0132\024.viam.common.v1.PoseR\013destin" + "ation\022\\\n\031component_name_deprecated\030\003 \001(\013" + "2\034.viam.common.v1.ResourceNameB\002\030\001R\027comp" + "onentNameDeprecated\022a\n\034slam_service_name" + "_deprecated\030\004 \001(\0132\034.viam.common.v1.Resou" + "rceNameB\002\030\001R\031slamServiceNameDeprecated\022c" + "\n\024motion_configuration\030\005 \001(\0132+.viam.serv" + "ice.motion.v1.MotionConfigurationH\000R\023mot" + "ionConfiguration\210\001\001\0226\n\tobstacles\030\006 \003(\0132\030" + ".viam.common.v1.GeometryR\tobstacles\022%\n\016c" + "omponent_name\030\007 \001(\tR\rcomponentName\022*\n\021sl" + "am_service_name\030\010 \001(\tR\017slamServiceName\022-" + "\n\005extra\030c \001(\0132\027.google.protobuf.StructR\005" + "extraB\027\n\025_motion_configuration\"6\n\021MoveOn" + "MapResponse\022!\n\014execution_id\030\001 \001(\tR\013execu" + "tionId\"\376\001\n\020ObstacleDetector\022\\\n\031vision_se" + "rvice_deprecated\030\001 \001(\0132\034.viam.common.v1." + "ResourceNameB\002\030\001R\027visionServiceDeprecate" + "d\022M\n\021camera_deprecated\030\002 \001(\0132\034.viam.comm" + "on.v1.ResourceNameB\002\030\001R\020cameraDeprecated" + "\022%\n\016vision_service\030\003 \001(\tR\rvisionService\022" + "\026\n\006camera\030\004 \001(\tR\006camera\"\230\004\n\023MotionConfig" + "uration\022W\n\022obstacle_detectors\030\001 \003(\0132(.vi" + "am.service.motion.v1.ObstacleDetectorR\021o" + "bstacleDetectors\022F\n\035position_polling_fre" + "quency_hz\030\002 \001(\001H\000R\032positionPollingFreque" + "ncyHz\210\001\001\022F\n\035obstacle_polling_frequency_h" + "z\030\003 \001(\001H\001R\032obstaclePollingFrequencyHz\210\001\001" + "\022-\n\020plan_deviation_m\030\004 \001(\001H\002R\016planDeviat" + "ionM\210\001\001\022,\n\020linear_m_per_sec\030\005 \001(\001H\003R\rlin" + "earMPerSec\210\001\001\0224\n\024angular_degs_per_sec\030\006 " + "\001(\001H\004R\021angularDegsPerSec\210\001\001B \n\036_position" + "_polling_frequency_hzB \n\036_obstacle_polli" + "ng_frequency_hzB\023\n\021_plan_deviation_mB\023\n\021" + "_linear_m_per_secB\027\n\025_angular_degs_per_s" + "ec\"\337\005\n\022MoveOnGlobeRequest\022\022\n\004name\030\001 \001(\tR" + "\004name\022:\n\013destination\030\002 \001(\0132\030.viam.common" + ".v1.GeoPointR\013destination\022\035\n\007heading\030\003 \001" + "(\001H\000R\007heading\210\001\001\022\\\n\031component_name_depre" + "cated\030\004 \001(\0132\034.viam.common.v1.ResourceNam" + "eB\002\030\001R\027componentNameDeprecated\022g\n\037moveme" + "nt_sensor_name_deprecated\030\005 \001(\0132\034.viam.c" + "ommon.v1.ResourceNameB\002\030\001R\034movementSenso" + "rNameDeprecated\0229\n\tobstacles\030\006 \003(\0132\033.via" "m.common.v1.GeoGeometryR\tobstacles\022c\n\024mo" "tion_configuration\030\007 \001(\0132+.viam.service." "motion.v1.MotionConfigurationH\001R\023motionC" "onfiguration\210\001\001\022F\n\020bounding_regions\030\010 \003(" "\0132\033.viam.common.v1.GeoGeometryR\017bounding" - "Regions\022-\n\005extra\030c \001(\0132\027.google.protobuf" - ".StructR\005extraB\n\n\010_headingB\027\n\025_motion_co" - "nfiguration\"8\n\023MoveOnGlobeResponse\022!\n\014ex" - "ecution_id\030\001 \001(\tR\013executionId\"\235\002\n\016GetPos" - "eRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016componen" - "t_name\030\002 \001(\0132\034.viam.common.v1.ResourceNa" - "meR\rcomponentName\022+\n\021destination_frame\030\003" - " \001(\tR\020destinationFrame\022R\n\027supplemental_t" - "ransforms\030\004 \003(\0132\031.viam.common.v1.Transfo" - "rmR\026supplementalTransforms\022-\n\005extra\030c \001(" - "\0132\027.google.protobuf.StructR\005extra:\002\030\001\"F\n" - "\017GetPoseResponse\022/\n\004pose\030\001 \001(\0132\033.viam.co" - "mmon.v1.PoseInFrameR\004pose:\002\030\001\"\231\001\n\017StopPl" - "anRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016compone" - "nt_name\030\002 \001(\0132\034.viam.common.v1.ResourceN" - "ameR\rcomponentName\022-\n\005extra\030c \001(\0132\027.goog" - "le.protobuf.StructR\005extra\"\022\n\020StopPlanRes" - "ponse\"\210\001\n\027ListPlanStatusesRequest\022\022\n\004nam" - "e\030\001 \001(\tR\004name\022*\n\021only_active_plans\030\002 \001(\010" - "R\017onlyActivePlans\022-\n\005extra\030c \001(\0132\027.googl" - "e.protobuf.StructR\005extra\"y\n\030ListPlanStat" - "usesResponse\022]\n\026plan_statuses_with_ids\030\001" - " \003(\0132(.viam.service.motion.v1.PlanStatus" - "WithIDR\023planStatusesWithIds\"\367\001\n\016GetPlanR" - "equest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016component_" - "name\030\002 \001(\0132\034.viam.common.v1.ResourceName" - "R\rcomponentName\022$\n\016last_plan_only\030\003 \001(\010R" - "\014lastPlanOnly\022&\n\014execution_id\030\004 \001(\tH\000R\013e" - "xecutionId\210\001\001\022-\n\005extra\030c \001(\0132\027.google.pr" - "otobuf.StructR\005extraB\017\n\r_execution_id\"\301\001" - "\n\017GetPlanResponse\022_\n\030current_plan_with_s" - "tatus\030\001 \001(\0132&.viam.service.motion.v1.Pla" - "nWithStatusR\025currentPlanWithStatus\022M\n\016re" - "plan_history\030\002 \003(\0132&.viam.service.motion" - ".v1.PlanWithStatusR\rreplanHistory\"\234\003\n\013Co" - "nstraints\022U\n\021linear_constraint\030\001 \003(\0132(.v" - "iam.service.motion.v1.LinearConstraintR\020" - "linearConstraint\022d\n\026orientation_constrai" - "nt\030\002 \003(\0132-.viam.service.motion.v1.Orient" - "ationConstraintR\025orientationConstraint\022g" - "\n\027collision_specification\030\003 \003(\0132..viam.s" - "ervice.motion.v1.CollisionSpecificationR" - "\026collisionSpecification\022g\n\027pseudolinear_" - "constraint\030\004 \003(\0132..viam.service.motion.v" - "1.PseudolinearConstraintR\026pseudolinearCo" - "nstraint\"\273\001\n\020LinearConstraint\022/\n\021line_to" - "lerance_mm\030\001 \001(\002H\000R\017lineToleranceMm\210\001\001\022A" - "\n\032orientation_tolerance_degs\030\002 \001(\002H\001R\030or" - "ientationToleranceDegs\210\001\001B\024\n\022_line_toler" - "ance_mmB\035\n\033_orientation_tolerance_degs\"\323" - "\001\n\026PseudolinearConstraint\0227\n\025line_tolera" - "nce_factor\030\001 \001(\002H\000R\023lineToleranceFactor\210" - "\001\001\022E\n\034orientation_tolerance_factor\030\002 \001(\002" - "H\001R\032orientationToleranceFactor\210\001\001B\030\n\026_li" - "ne_tolerance_factorB\037\n\035_orientation_tole" - "rance_factor\"y\n\025OrientationConstraint\022A\n" - "\032orientation_tolerance_degs\030\001 \001(\002H\000R\030ori" - "entationToleranceDegs\210\001\001B\035\n\033_orientation" - "_tolerance_degs\"\301\001\n\026CollisionSpecificati" - "on\022]\n\006allows\030\001 \003(\0132E.viam.service.motion" - ".v1.CollisionSpecification.AllowedFrameC" - "ollisionsR\006allows\032H\n\026AllowedFrameCollisi" - "ons\022\026\n\006frame1\030\001 \001(\tR\006frame1\022\026\n\006frame2\030\002 " - "\001(\tR\006frame2\"\311\001\n\016PlanWithStatus\0220\n\004plan\030\001" - " \001(\0132\034.viam.service.motion.v1.PlanR\004plan" - "\022:\n\006status\030\002 \001(\0132\".viam.service.motion.v" - "1.PlanStatusR\006status\022I\n\016status_history\030\003" - " \003(\0132\".viam.service.motion.v1.PlanStatus" - "R\rstatusHistory\"\317\001\n\020PlanStatusWithID\022\027\n\007" - "plan_id\030\001 \001(\tR\006planId\022C\n\016component_name\030" - "\002 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" - "ponentName\022!\n\014execution_id\030\003 \001(\tR\013execut" - "ionId\022:\n\006status\030\004 \001(\0132\".viam.service.mot" - "ion.v1.PlanStatusR\006status\"\247\001\n\nPlanStatus" - "\0227\n\005state\030\001 \001(\0162!.viam.service.motion.v1" - ".PlanStateR\005state\0228\n\ttimestamp\030\002 \001(\0132\032.g" - "oogle.protobuf.TimestampR\ttimestamp\022\033\n\006r" - "eason\030\003 \001(\tH\000R\006reason\210\001\001B\t\n\007_reason\"\266\001\n\004" - "Plan\022\016\n\002id\030\001 \001(\tR\002id\022C\n\016component_name\030\002" - " \001(\0132\034.viam.common.v1.ResourceNameR\rcomp" - "onentName\022!\n\014execution_id\030\003 \001(\tR\013executi" - "onId\0226\n\005steps\030\004 \003(\0132 .viam.service.motio" - "n.v1.PlanStepR\005steps\"\253\001\n\010PlanStep\022>\n\004ste" - "p\030\001 \003(\0132*.viam.service.motion.v1.PlanSte" - "p.StepEntryR\004step\032_\n\tStepEntry\022\020\n\003key\030\001 " - "\001(\tR\003key\022<\n\005value\030\002 \001(\0132&.viam.service.m" - "otion.v1.ComponentStateR\005value:\0028\001\":\n\016Co" - "mponentState\022(\n\004pose\030\001 \001(\0132\024.viam.common" - ".v1.PoseR\004pose*\214\001\n\tPlanState\022\032\n\026PLAN_STA" - "TE_UNSPECIFIED\020\000\022\032\n\026PLAN_STATE_IN_PROGRE" - "SS\020\001\022\026\n\022PLAN_STATE_STOPPED\020\002\022\030\n\024PLAN_STA" - "TE_SUCCEEDED\020\003\022\025\n\021PLAN_STATE_FAILED\020\0042\314\t" - "\n\rMotionService\022\202\001\n\004Move\022#.viam.service." - "motion.v1.MoveRequest\032$.viam.service.mot" - "ion.v1.MoveResponse\"/\202\323\344\223\002)\"\'/viam/api/v" - "1/service/motion/{name}/move\022\230\001\n\tMoveOnM" - "ap\022(.viam.service.motion.v1.MoveOnMapReq" - "uest\032).viam.service.motion.v1.MoveOnMapR" - "esponse\"6\202\323\344\223\0020\"./viam/api/v1/service/mo" - "tion/{name}/move_on_map\022\240\001\n\013MoveOnGlobe\022" - "*.viam.service.motion.v1.MoveOnGlobeRequ" - "est\032+.viam.service.motion.v1.MoveOnGlobe" - "Response\"8\202\323\344\223\0022\"0/viam/api/v1/service/m" - "otion/{name}/move_on_globe\022\216\001\n\007GetPose\022&" - ".viam.service.motion.v1.GetPoseRequest\032\'" - ".viam.service.motion.v1.GetPoseResponse\"" - "2\210\002\001\202\323\344\223\002)\022\'/viam/api/v1/service/motion/" - "{name}/pose\022\223\001\n\010StopPlan\022\'.viam.service." - "motion.v1.StopPlanRequest\032(.viam.service" - ".motion.v1.StopPlanResponse\"4\202\323\344\223\002.\032,/vi" - "am/api/v1/service/motion/{name}/stop_pla" - "n\022\264\001\n\020ListPlanStatuses\022/.viam.service.mo" - "tion.v1.ListPlanStatusesRequest\0320.viam.s" - "ervice.motion.v1.ListPlanStatusesRespons" - "e\"=\202\323\344\223\0027\0225/viam/api/v1/service/motion/{" - "name}/list_plan_statuses\022\217\001\n\007GetPlan\022&.v" - "iam.service.motion.v1.GetPlanRequest\032\'.v" - "iam.service.motion.v1.GetPlanResponse\"3\202" - "\323\344\223\002-\022+/viam/api/v1/service/motion/{name" - "}/get_plan\022\207\001\n\tDoCommand\022 .viam.common.v" - "1.DoCommandRequest\032!.viam.common.v1.DoCo" - "mmandResponse\"5\202\323\344\223\002/\"-/viam/api/v1/serv" - "ice/motion/{name}/do_commandB\?\n\032com.viam" - ".service.motion.v1Z!go.viam.com/api/serv" - "ice/motion/v1b\006proto3" + "Regions\022%\n\016component_name\030\t \001(\tR\rcompone" + "ntName\0220\n\024movement_sensor_name\030\n \001(\tR\022mo" + "vementSensorName\022-\n\005extra\030c \001(\0132\027.google" + ".protobuf.StructR\005extraB\n\n\010_headingB\027\n\025_" + "motion_configuration\"8\n\023MoveOnGlobeRespo" + "nse\022!\n\014execution_id\030\001 \001(\tR\013executionId\"\335" + "\002\n\016GetPoseRequest\022\022\n\004name\030\001 \001(\tR\004name\022\\\n" + "\031component_name_deprecated\030\002 \001(\0132\034.viam." + "common.v1.ResourceNameB\002\030\001R\027componentNam" + "eDeprecated\022+\n\021destination_frame\030\003 \001(\tR\020" + "destinationFrame\022R\n\027supplemental_transfo" + "rms\030\004 \003(\0132\031.viam.common.v1.TransformR\026su" + "pplementalTransforms\022%\n\016component_name\030\005" + " \001(\tR\rcomponentName\022-\n\005extra\030c \001(\0132\027.goo" + "gle.protobuf.StructR\005extra:\002\030\001\"F\n\017GetPos" + "eResponse\022/\n\004pose\030\001 \001(\0132\033.viam.common.v1" + ".PoseInFrameR\004pose:\002\030\001\"\331\001\n\017StopPlanReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\022\\\n\031component_name" + "_deprecated\030\002 \001(\0132\034.viam.common.v1.Resou" + "rceNameB\002\030\001R\027componentNameDeprecated\022%\n\016" + "component_name\030\003 \001(\tR\rcomponentName\022-\n\005e" + "xtra\030c \001(\0132\027.google.protobuf.StructR\005ext" + "ra\"\022\n\020StopPlanResponse\"\210\001\n\027ListPlanStatu" + "sesRequest\022\022\n\004name\030\001 \001(\tR\004name\022*\n\021only_a" + "ctive_plans\030\002 \001(\010R\017onlyActivePlans\022-\n\005ex" + "tra\030c \001(\0132\027.google.protobuf.StructR\005extr" + "a\"y\n\030ListPlanStatusesResponse\022]\n\026plan_st" + "atuses_with_ids\030\001 \003(\0132(.viam.service.mot" + "ion.v1.PlanStatusWithIDR\023planStatusesWit" + "hIds\"\267\002\n\016GetPlanRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022\\\n\031component_name_deprecated\030\002 \001(\0132\034" + ".viam.common.v1.ResourceNameB\002\030\001R\027compon" + "entNameDeprecated\022$\n\016last_plan_only\030\003 \001(" + "\010R\014lastPlanOnly\022&\n\014execution_id\030\004 \001(\tH\000R" + "\013executionId\210\001\001\022%\n\016component_name\030\005 \001(\tR" + "\rcomponentName\022-\n\005extra\030c \001(\0132\027.google.p" + "rotobuf.StructR\005extraB\017\n\r_execution_id\"\301" + "\001\n\017GetPlanResponse\022_\n\030current_plan_with_" + "status\030\001 \001(\0132&.viam.service.motion.v1.Pl" + "anWithStatusR\025currentPlanWithStatus\022M\n\016r" + "eplan_history\030\002 \003(\0132&.viam.service.motio" + "n.v1.PlanWithStatusR\rreplanHistory\"\234\003\n\013C" + "onstraints\022U\n\021linear_constraint\030\001 \003(\0132(." + "viam.service.motion.v1.LinearConstraintR" + "\020linearConstraint\022d\n\026orientation_constra" + "int\030\002 \003(\0132-.viam.service.motion.v1.Orien" + "tationConstraintR\025orientationConstraint\022" + "g\n\027collision_specification\030\003 \003(\0132..viam." + "service.motion.v1.CollisionSpecification" + "R\026collisionSpecification\022g\n\027pseudolinear" + "_constraint\030\004 \003(\0132..viam.service.motion." + "v1.PseudolinearConstraintR\026pseudolinearC" + "onstraint\"\273\001\n\020LinearConstraint\022/\n\021line_t" + "olerance_mm\030\001 \001(\002H\000R\017lineToleranceMm\210\001\001\022" + "A\n\032orientation_tolerance_degs\030\002 \001(\002H\001R\030o" + "rientationToleranceDegs\210\001\001B\024\n\022_line_tole" + "rance_mmB\035\n\033_orientation_tolerance_degs\"" + "\323\001\n\026PseudolinearConstraint\0227\n\025line_toler" + "ance_factor\030\001 \001(\002H\000R\023lineToleranceFactor" + "\210\001\001\022E\n\034orientation_tolerance_factor\030\002 \001(" + "\002H\001R\032orientationToleranceFactor\210\001\001B\030\n\026_l" + "ine_tolerance_factorB\037\n\035_orientation_tol" + "erance_factor\"y\n\025OrientationConstraint\022A" + "\n\032orientation_tolerance_degs\030\001 \001(\002H\000R\030or" + "ientationToleranceDegs\210\001\001B\035\n\033_orientatio" + "n_tolerance_degs\"\301\001\n\026CollisionSpecificat" + "ion\022]\n\006allows\030\001 \003(\0132E.viam.service.motio" + "n.v1.CollisionSpecification.AllowedFrame" + "CollisionsR\006allows\032H\n\026AllowedFrameCollis" + "ions\022\026\n\006frame1\030\001 \001(\tR\006frame1\022\026\n\006frame2\030\002" + " \001(\tR\006frame2\"\311\001\n\016PlanWithStatus\0220\n\004plan\030" + "\001 \001(\0132\034.viam.service.motion.v1.PlanR\004pla" + "n\022:\n\006status\030\002 \001(\0132\".viam.service.motion." + "v1.PlanStatusR\006status\022I\n\016status_history\030" + "\003 \003(\0132\".viam.service.motion.v1.PlanStatu" + "sR\rstatusHistory\"\217\002\n\020PlanStatusWithID\022\027\n" + "\007plan_id\030\001 \001(\tR\006planId\022\\\n\031component_name" + "_deprecated\030\002 \001(\0132\034.viam.common.v1.Resou" + "rceNameB\002\030\001R\027componentNameDeprecated\022!\n\014" + "execution_id\030\003 \001(\tR\013executionId\022:\n\006statu" + "s\030\004 \001(\0132\".viam.service.motion.v1.PlanSta" + "tusR\006status\022%\n\016component_name\030\005 \001(\tR\rcom" + "ponentName\"\247\001\n\nPlanStatus\0227\n\005state\030\001 \001(\016" + "2!.viam.service.motion.v1.PlanStateR\005sta" + "te\0228\n\ttimestamp\030\002 \001(\0132\032.google.protobuf." + "TimestampR\ttimestamp\022\033\n\006reason\030\003 \001(\tH\000R\006" + "reason\210\001\001B\t\n\007_reason\"\366\001\n\004Plan\022\016\n\002id\030\001 \001(" + "\tR\002id\022\\\n\031component_name_deprecated\030\002 \001(\013" + "2\034.viam.common.v1.ResourceNameB\002\030\001R\027comp" + "onentNameDeprecated\022!\n\014execution_id\030\003 \001(" + "\tR\013executionId\0226\n\005steps\030\004 \003(\0132 .viam.ser" + "vice.motion.v1.PlanStepR\005steps\022%\n\016compon" + "ent_name\030\005 \001(\tR\rcomponentName\"\253\001\n\010PlanSt" + "ep\022>\n\004step\030\001 \003(\0132*.viam.service.motion.v" + "1.PlanStep.StepEntryR\004step\032_\n\tStepEntry\022" + "\020\n\003key\030\001 \001(\tR\003key\022<\n\005value\030\002 \001(\0132&.viam." + "service.motion.v1.ComponentStateR\005value:" + "\0028\001\":\n\016ComponentState\022(\n\004pose\030\001 \001(\0132\024.vi" + "am.common.v1.PoseR\004pose*\214\001\n\tPlanState\022\032\n" + "\026PLAN_STATE_UNSPECIFIED\020\000\022\032\n\026PLAN_STATE_" + "IN_PROGRESS\020\001\022\026\n\022PLAN_STATE_STOPPED\020\002\022\030\n" + "\024PLAN_STATE_SUCCEEDED\020\003\022\025\n\021PLAN_STATE_FA" + "ILED\020\0042\314\t\n\rMotionService\022\202\001\n\004Move\022#.viam" + ".service.motion.v1.MoveRequest\032$.viam.se" + "rvice.motion.v1.MoveResponse\"/\202\323\344\223\002)\"\'/v" + "iam/api/v1/service/motion/{name}/move\022\230\001" + "\n\tMoveOnMap\022(.viam.service.motion.v1.Mov" + "eOnMapRequest\032).viam.service.motion.v1.M" + "oveOnMapResponse\"6\202\323\344\223\0020\"./viam/api/v1/s" + "ervice/motion/{name}/move_on_map\022\240\001\n\013Mov" + "eOnGlobe\022*.viam.service.motion.v1.MoveOn" + "GlobeRequest\032+.viam.service.motion.v1.Mo" + "veOnGlobeResponse\"8\202\323\344\223\0022\"0/viam/api/v1/" + "service/motion/{name}/move_on_globe\022\216\001\n\007" + "GetPose\022&.viam.service.motion.v1.GetPose" + "Request\032\'.viam.service.motion.v1.GetPose" + "Response\"2\210\002\001\202\323\344\223\002)\022\'/viam/api/v1/servic" + "e/motion/{name}/pose\022\223\001\n\010StopPlan\022\'.viam" + ".service.motion.v1.StopPlanRequest\032(.via" + "m.service.motion.v1.StopPlanResponse\"4\202\323" + "\344\223\002.\032,/viam/api/v1/service/motion/{name}" + "/stop_plan\022\264\001\n\020ListPlanStatuses\022/.viam.s" + "ervice.motion.v1.ListPlanStatusesRequest" + "\0320.viam.service.motion.v1.ListPlanStatus" + "esResponse\"=\202\323\344\223\0027\0225/viam/api/v1/service" + "/motion/{name}/list_plan_statuses\022\217\001\n\007Ge" + "tPlan\022&.viam.service.motion.v1.GetPlanRe" + "quest\032\'.viam.service.motion.v1.GetPlanRe" + "sponse\"3\202\323\344\223\002-\022+/viam/api/v1/service/mot" + "ion/{name}/get_plan\022\207\001\n\tDoCommand\022 .viam" + ".common.v1.DoCommandRequest\032!.viam.commo" + "n.v1.DoCommandResponse\"5\202\323\344\223\002/\"-/viam/ap" + "i/v1/service/motion/{name}/do_commandB\?\n" + "\032com.viam.service.motion.v1Z!go.viam.com" + "/api/service/motion/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -992,7 +1041,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2f }; static ::_pbi::once_flag descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto = { - false, false, 7301, descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, + false, false, 8070, descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, "service/motion/v1/motion.proto", &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps, 4, 29, schemas, file_default_instances, TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets, @@ -1033,7 +1082,7 @@ class MoveRequest::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::PoseInFrame& destination(const MoveRequest* msg); - static const ::viam::common::v1::ResourceName& component_name(const MoveRequest* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const MoveRequest* msg); static const ::viam::common::v1::WorldState& world_state(const MoveRequest* msg); static void set_has_world_state(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -1050,8 +1099,8 @@ MoveRequest::_Internal::destination(const MoveRequest* msg) { return *msg->destination_; } const ::viam::common::v1::ResourceName& -MoveRequest::_Internal::component_name(const MoveRequest* msg) { - return *msg->component_name_; +MoveRequest::_Internal::component_name_deprecated(const MoveRequest* msg) { + return *msg->component_name_deprecated_; } const ::viam::common::v1::WorldState& MoveRequest::_Internal::world_state(const MoveRequest* msg) { @@ -1071,11 +1120,11 @@ void MoveRequest::clear_destination() { } destination_ = nullptr; } -void MoveRequest::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void MoveRequest::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } void MoveRequest::clear_world_state() { if (world_state_ != nullptr) world_state_->Clear(); @@ -1105,15 +1154,23 @@ MoveRequest::MoveRequest(const MoveRequest& from) name_.Set(from._internal_name(), GetArenaForAllocation()); } + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } if (from._internal_has_destination()) { destination_ = new ::viam::common::v1::PoseInFrame(*from.destination_); } else { destination_ = nullptr; } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } if (from._internal_has_world_state()) { world_state_ = new ::viam::common::v1::WorldState(*from.world_state_); @@ -1138,6 +1195,10 @@ name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&destination_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&extra_) - @@ -1156,8 +1217,9 @@ MoveRequest::~MoveRequest() { inline void MoveRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); + component_name_.Destroy(); if (this != internal_default_instance()) delete destination_; - if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete component_name_deprecated_; if (this != internal_default_instance()) delete world_state_; if (this != internal_default_instance()) delete constraints_; if (this != internal_default_instance()) delete extra_; @@ -1174,14 +1236,15 @@ void MoveRequest::Clear() { (void) cached_has_bits; name_.ClearToEmpty(); + component_name_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { delete destination_; } destination_ = nullptr; - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -1226,10 +1289,10 @@ const char* MoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1250,6 +1313,16 @@ const char* MoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; + // string component_name = 6 [json_name = "componentName"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveRequest.component_name")); + } else + goto handle_unusual; + continue; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; case 99: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { @@ -1305,11 +1378,11 @@ uint8_t* MoveRequest::_InternalSerialize( _Internal::destination(this).GetCachedSize(), target, stream); } - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(3, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); } // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; @@ -1326,6 +1399,16 @@ uint8_t* MoveRequest::_InternalSerialize( _Internal::constraints(this).GetCachedSize(), target, stream); } + // string component_name = 6 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveRequest.component_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_component_name(), target); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; if (this->_internal_has_extra()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -1356,6 +1439,13 @@ size_t MoveRequest::ByteSizeLong() const { this->_internal_name()); } + // string component_name = 6 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; if (this->_internal_has_destination()) { total_size += 1 + @@ -1363,11 +1453,11 @@ size_t MoveRequest::ByteSizeLong() const { *destination_); } - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } cached_has_bits = _has_bits_[0]; @@ -1419,11 +1509,14 @@ void MoveRequest::MergeFrom(const MoveRequest& from) { if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } if (from._internal_has_destination()) { _internal_mutable_destination()->::viam::common::v1::PoseInFrame::MergeFrom(from._internal_destination()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { @@ -1461,6 +1554,10 @@ void MoveRequest::InternalSwap(MoveRequest* other) { &name_, lhs_arena, &other->name_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MoveRequest, extra_) + sizeof(MoveRequest::extra_) @@ -1652,8 +1749,8 @@ class MoveOnMapRequest::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::Pose& destination(const MoveOnMapRequest* msg); - static const ::viam::common::v1::ResourceName& component_name(const MoveOnMapRequest* msg); - static const ::viam::common::v1::ResourceName& slam_service_name(const MoveOnMapRequest* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const MoveOnMapRequest* msg); + static const ::viam::common::v1::ResourceName& slam_service_name_deprecated(const MoveOnMapRequest* msg); static const ::viam::service::motion::v1::MotionConfiguration& motion_configuration(const MoveOnMapRequest* msg); static void set_has_motion_configuration(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -1666,12 +1763,12 @@ MoveOnMapRequest::_Internal::destination(const MoveOnMapRequest* msg) { return *msg->destination_; } const ::viam::common::v1::ResourceName& -MoveOnMapRequest::_Internal::component_name(const MoveOnMapRequest* msg) { - return *msg->component_name_; +MoveOnMapRequest::_Internal::component_name_deprecated(const MoveOnMapRequest* msg) { + return *msg->component_name_deprecated_; } const ::viam::common::v1::ResourceName& -MoveOnMapRequest::_Internal::slam_service_name(const MoveOnMapRequest* msg) { - return *msg->slam_service_name_; +MoveOnMapRequest::_Internal::slam_service_name_deprecated(const MoveOnMapRequest* msg) { + return *msg->slam_service_name_deprecated_; } const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapRequest::_Internal::motion_configuration(const MoveOnMapRequest* msg) { @@ -1687,17 +1784,17 @@ void MoveOnMapRequest::clear_destination() { } destination_ = nullptr; } -void MoveOnMapRequest::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void MoveOnMapRequest::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } -void MoveOnMapRequest::clear_slam_service_name() { - if (GetArenaForAllocation() == nullptr && slam_service_name_ != nullptr) { - delete slam_service_name_; +void MoveOnMapRequest::clear_slam_service_name_deprecated() { + if (GetArenaForAllocation() == nullptr && slam_service_name_deprecated_ != nullptr) { + delete slam_service_name_deprecated_; } - slam_service_name_ = nullptr; + slam_service_name_deprecated_ = nullptr; } void MoveOnMapRequest::clear_obstacles() { obstacles_.Clear(); @@ -1728,20 +1825,36 @@ MoveOnMapRequest::MoveOnMapRequest(const MoveOnMapRequest& from) name_.Set(from._internal_name(), GetArenaForAllocation()); } + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } + slam_service_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + slam_service_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_slam_service_name().empty()) { + slam_service_name_.Set(from._internal_slam_service_name(), + GetArenaForAllocation()); + } if (from._internal_has_destination()) { destination_ = new ::viam::common::v1::Pose(*from.destination_); } else { destination_ = nullptr; } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } - if (from._internal_has_slam_service_name()) { - slam_service_name_ = new ::viam::common::v1::ResourceName(*from.slam_service_name_); + if (from._internal_has_slam_service_name_deprecated()) { + slam_service_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.slam_service_name_deprecated_); } else { - slam_service_name_ = nullptr; + slam_service_name_deprecated_ = nullptr; } if (from._internal_has_motion_configuration()) { motion_configuration_ = new ::viam::service::motion::v1::MotionConfiguration(*from.motion_configuration_); @@ -1761,6 +1874,14 @@ name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +slam_service_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + slam_service_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&destination_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&extra_) - @@ -1779,9 +1900,11 @@ MoveOnMapRequest::~MoveOnMapRequest() { inline void MoveOnMapRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); + component_name_.Destroy(); + slam_service_name_.Destroy(); if (this != internal_default_instance()) delete destination_; - if (this != internal_default_instance()) delete component_name_; - if (this != internal_default_instance()) delete slam_service_name_; + if (this != internal_default_instance()) delete component_name_deprecated_; + if (this != internal_default_instance()) delete slam_service_name_deprecated_; if (this != internal_default_instance()) delete motion_configuration_; if (this != internal_default_instance()) delete extra_; } @@ -1798,18 +1921,20 @@ void MoveOnMapRequest::Clear() { obstacles_.Clear(); name_.ClearToEmpty(); + component_name_.ClearToEmpty(); + slam_service_name_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { delete destination_; } destination_ = nullptr; - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; - if (GetArenaForAllocation() == nullptr && slam_service_name_ != nullptr) { - delete slam_service_name_; + component_name_deprecated_ = nullptr; + if (GetArenaForAllocation() == nullptr && slam_service_name_deprecated_ != nullptr) { + delete slam_service_name_deprecated_; } - slam_service_name_ = nullptr; + slam_service_name_deprecated_ = nullptr; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(motion_configuration_ != nullptr); @@ -1848,18 +1973,18 @@ const char* MoveOnMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; + // .viam.common.v1.ResourceName slam_service_name_deprecated = 4 [json_name = "slamServiceNameDeprecated", deprecated = true]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_slam_service_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_slam_service_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1885,6 +2010,26 @@ const char* MoveOnMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte } else goto handle_unusual; continue; + // string component_name = 7 [json_name = "componentName"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnMapRequest.component_name")); + } else + goto handle_unusual; + continue; + // string slam_service_name = 8 [json_name = "slamServiceName"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_slam_service_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnMapRequest.slam_service_name")); + } else + goto handle_unusual; + continue; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; case 99: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { @@ -1940,18 +2085,18 @@ uint8_t* MoveOnMapRequest::_InternalSerialize( _Internal::destination(this).GetCachedSize(), target, stream); } - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(3, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); } - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - if (this->_internal_has_slam_service_name()) { + // .viam.common.v1.ResourceName slam_service_name_deprecated = 4 [json_name = "slamServiceNameDeprecated", deprecated = true]; + if (this->_internal_has_slam_service_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::slam_service_name(this), - _Internal::slam_service_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(4, _Internal::slam_service_name_deprecated(this), + _Internal::slam_service_name_deprecated(this).GetCachedSize(), target, stream); } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; @@ -1969,6 +2114,26 @@ uint8_t* MoveOnMapRequest::_InternalSerialize( InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } + // string component_name = 7 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnMapRequest.component_name"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_component_name(), target); + } + + // string slam_service_name = 8 [json_name = "slamServiceName"]; + if (!this->_internal_slam_service_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_slam_service_name().data(), static_cast(this->_internal_slam_service_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnMapRequest.slam_service_name"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_slam_service_name(), target); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; if (this->_internal_has_extra()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -2006,6 +2171,20 @@ size_t MoveOnMapRequest::ByteSizeLong() const { this->_internal_name()); } + // string component_name = 7 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string slam_service_name = 8 [json_name = "slamServiceName"]; + if (!this->_internal_slam_service_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_slam_service_name()); + } + // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; if (this->_internal_has_destination()) { total_size += 1 + @@ -2013,18 +2192,18 @@ size_t MoveOnMapRequest::ByteSizeLong() const { *destination_); } - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - if (this->_internal_has_slam_service_name()) { + // .viam.common.v1.ResourceName slam_service_name_deprecated = 4 [json_name = "slamServiceNameDeprecated", deprecated = true]; + if (this->_internal_has_slam_service_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *slam_service_name_); + *slam_service_name_deprecated_); } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; @@ -2068,14 +2247,20 @@ void MoveOnMapRequest::MergeFrom(const MoveOnMapRequest& from) { if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_slam_service_name().empty()) { + _internal_set_slam_service_name(from._internal_slam_service_name()); + } if (from._internal_has_destination()) { _internal_mutable_destination()->::viam::common::v1::Pose::MergeFrom(from._internal_destination()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } - if (from._internal_has_slam_service_name()) { - _internal_mutable_slam_service_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_slam_service_name()); + if (from._internal_has_slam_service_name_deprecated()) { + _internal_mutable_slam_service_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_slam_service_name_deprecated()); } if (from._internal_has_motion_configuration()) { _internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom(from._internal_motion_configuration()); @@ -2108,6 +2293,14 @@ void MoveOnMapRequest::InternalSwap(MoveOnMapRequest* other) { &name_, lhs_arena, &other->name_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &slam_service_name_, lhs_arena, + &other->slam_service_name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, extra_) + sizeof(MoveOnMapRequest::extra_) @@ -2321,29 +2514,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapResponse::GetMetadata() const { class ObstacleDetector::_Internal { public: - static const ::viam::common::v1::ResourceName& vision_service(const ObstacleDetector* msg); - static const ::viam::common::v1::ResourceName& camera(const ObstacleDetector* msg); + static const ::viam::common::v1::ResourceName& vision_service_deprecated(const ObstacleDetector* msg); + static const ::viam::common::v1::ResourceName& camera_deprecated(const ObstacleDetector* msg); }; const ::viam::common::v1::ResourceName& -ObstacleDetector::_Internal::vision_service(const ObstacleDetector* msg) { - return *msg->vision_service_; +ObstacleDetector::_Internal::vision_service_deprecated(const ObstacleDetector* msg) { + return *msg->vision_service_deprecated_; } const ::viam::common::v1::ResourceName& -ObstacleDetector::_Internal::camera(const ObstacleDetector* msg) { - return *msg->camera_; +ObstacleDetector::_Internal::camera_deprecated(const ObstacleDetector* msg) { + return *msg->camera_deprecated_; } -void ObstacleDetector::clear_vision_service() { - if (GetArenaForAllocation() == nullptr && vision_service_ != nullptr) { - delete vision_service_; +void ObstacleDetector::clear_vision_service_deprecated() { + if (GetArenaForAllocation() == nullptr && vision_service_deprecated_ != nullptr) { + delete vision_service_deprecated_; } - vision_service_ = nullptr; + vision_service_deprecated_ = nullptr; } -void ObstacleDetector::clear_camera() { - if (GetArenaForAllocation() == nullptr && camera_ != nullptr) { - delete camera_; +void ObstacleDetector::clear_camera_deprecated() { + if (GetArenaForAllocation() == nullptr && camera_deprecated_ != nullptr) { + delete camera_deprecated_; } - camera_ = nullptr; + camera_deprecated_ = nullptr; } ObstacleDetector::ObstacleDetector(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -2354,24 +2547,48 @@ ObstacleDetector::ObstacleDetector(::PROTOBUF_NAMESPACE_ID::Arena* arena, ObstacleDetector::ObstacleDetector(const ObstacleDetector& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_vision_service()) { - vision_service_ = new ::viam::common::v1::ResourceName(*from.vision_service_); + vision_service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + vision_service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_vision_service().empty()) { + vision_service_.Set(from._internal_vision_service(), + GetArenaForAllocation()); + } + camera_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera().empty()) { + camera_.Set(from._internal_camera(), + GetArenaForAllocation()); + } + if (from._internal_has_vision_service_deprecated()) { + vision_service_deprecated_ = new ::viam::common::v1::ResourceName(*from.vision_service_deprecated_); } else { - vision_service_ = nullptr; + vision_service_deprecated_ = nullptr; } - if (from._internal_has_camera()) { - camera_ = new ::viam::common::v1::ResourceName(*from.camera_); + if (from._internal_has_camera_deprecated()) { + camera_deprecated_ = new ::viam::common::v1::ResourceName(*from.camera_deprecated_); } else { - camera_ = nullptr; + camera_deprecated_ = nullptr; } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.ObstacleDetector) } inline void ObstacleDetector::SharedCtor() { +vision_service_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + vision_service_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +camera_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&vision_service_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&camera_) - - reinterpret_cast(&vision_service_)) + sizeof(camera_)); + reinterpret_cast(&vision_service_deprecated_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&camera_deprecated_) - + reinterpret_cast(&vision_service_deprecated_)) + sizeof(camera_deprecated_)); } ObstacleDetector::~ObstacleDetector() { @@ -2385,8 +2602,10 @@ ObstacleDetector::~ObstacleDetector() { inline void ObstacleDetector::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete vision_service_; - if (this != internal_default_instance()) delete camera_; + vision_service_.Destroy(); + camera_.Destroy(); + if (this != internal_default_instance()) delete vision_service_deprecated_; + if (this != internal_default_instance()) delete camera_deprecated_; } void ObstacleDetector::SetCachedSize(int size) const { @@ -2399,14 +2618,16 @@ void ObstacleDetector::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && vision_service_ != nullptr) { - delete vision_service_; + vision_service_.ClearToEmpty(); + camera_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && vision_service_deprecated_ != nullptr) { + delete vision_service_deprecated_; } - vision_service_ = nullptr; - if (GetArenaForAllocation() == nullptr && camera_ != nullptr) { - delete camera_; + vision_service_deprecated_ = nullptr; + if (GetArenaForAllocation() == nullptr && camera_deprecated_ != nullptr) { + delete camera_deprecated_; } - camera_ = nullptr; + camera_deprecated_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2416,19 +2637,39 @@ const char* ObstacleDetector::_InternalParse(const char* ptr, ::_pbi::ParseConte uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; + // .viam.common.v1.ResourceName vision_service_deprecated = 1 [json_name = "visionServiceDeprecated", deprecated = true]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_vision_service(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_vision_service_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; + // .viam.common.v1.ResourceName camera_deprecated = 2 [json_name = "cameraDeprecated", deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_camera(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_camera_deprecated(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string vision_service = 3 [json_name = "visionService"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_vision_service(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.ObstacleDetector.vision_service")); + } else + goto handle_unusual; + continue; + // string camera = 4 [json_name = "camera"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_camera(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.ObstacleDetector.camera")); } else goto handle_unusual; continue; @@ -2461,18 +2702,38 @@ uint8_t* ObstacleDetector::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - if (this->_internal_has_vision_service()) { + // .viam.common.v1.ResourceName vision_service_deprecated = 1 [json_name = "visionServiceDeprecated", deprecated = true]; + if (this->_internal_has_vision_service_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::vision_service(this), - _Internal::vision_service(this).GetCachedSize(), target, stream); + InternalWriteMessage(1, _Internal::vision_service_deprecated(this), + _Internal::vision_service_deprecated(this).GetCachedSize(), target, stream); } - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - if (this->_internal_has_camera()) { + // .viam.common.v1.ResourceName camera_deprecated = 2 [json_name = "cameraDeprecated", deprecated = true]; + if (this->_internal_has_camera_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::camera(this), - _Internal::camera(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, _Internal::camera_deprecated(this), + _Internal::camera_deprecated(this).GetCachedSize(), target, stream); + } + + // string vision_service = 3 [json_name = "visionService"]; + if (!this->_internal_vision_service().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vision_service().data(), static_cast(this->_internal_vision_service().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.ObstacleDetector.vision_service"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_vision_service(), target); + } + + // string camera = 4 [json_name = "camera"]; + if (!this->_internal_camera().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera().data(), static_cast(this->_internal_camera().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.ObstacleDetector.camera"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_camera(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2491,18 +2752,32 @@ size_t ObstacleDetector::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - if (this->_internal_has_vision_service()) { + // string vision_service = 3 [json_name = "visionService"]; + if (!this->_internal_vision_service().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vision_service()); + } + + // string camera = 4 [json_name = "camera"]; + if (!this->_internal_camera().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera()); + } + + // .viam.common.v1.ResourceName vision_service_deprecated = 1 [json_name = "visionServiceDeprecated", deprecated = true]; + if (this->_internal_has_vision_service_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *vision_service_); + *vision_service_deprecated_); } - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - if (this->_internal_has_camera()) { + // .viam.common.v1.ResourceName camera_deprecated = 2 [json_name = "cameraDeprecated", deprecated = true]; + if (this->_internal_has_camera_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_); + *camera_deprecated_); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); @@ -2527,11 +2802,17 @@ void ObstacleDetector::MergeFrom(const ObstacleDetector& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_vision_service()) { - _internal_mutable_vision_service()->::viam::common::v1::ResourceName::MergeFrom(from._internal_vision_service()); + if (!from._internal_vision_service().empty()) { + _internal_set_vision_service(from._internal_vision_service()); + } + if (!from._internal_camera().empty()) { + _internal_set_camera(from._internal_camera()); } - if (from._internal_has_camera()) { - _internal_mutable_camera()->::viam::common::v1::ResourceName::MergeFrom(from._internal_camera()); + if (from._internal_has_vision_service_deprecated()) { + _internal_mutable_vision_service_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_vision_service_deprecated()); + } + if (from._internal_has_camera_deprecated()) { + _internal_mutable_camera_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_camera_deprecated()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -2549,13 +2830,23 @@ bool ObstacleDetector::IsInitialized() const { void ObstacleDetector::InternalSwap(ObstacleDetector* 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( + &vision_service_, lhs_arena, + &other->vision_service_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &camera_, lhs_arena, + &other->camera_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ObstacleDetector, camera_) - + sizeof(ObstacleDetector::camera_) - - PROTOBUF_FIELD_OFFSET(ObstacleDetector, vision_service_)>( - reinterpret_cast(&vision_service_), - reinterpret_cast(&other->vision_service_)); + PROTOBUF_FIELD_OFFSET(ObstacleDetector, camera_deprecated_) + + sizeof(ObstacleDetector::camera_deprecated_) + - PROTOBUF_FIELD_OFFSET(ObstacleDetector, vision_service_deprecated_)>( + reinterpret_cast(&vision_service_deprecated_), + reinterpret_cast(&other->vision_service_deprecated_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ObstacleDetector::GetMetadata() const { @@ -2913,8 +3204,8 @@ class MoveOnGlobeRequest::_Internal { static void set_has_heading(HasBits* has_bits) { (*has_bits)[0] |= 2u; } - static const ::viam::common::v1::ResourceName& component_name(const MoveOnGlobeRequest* msg); - static const ::viam::common::v1::ResourceName& movement_sensor_name(const MoveOnGlobeRequest* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const MoveOnGlobeRequest* msg); + static const ::viam::common::v1::ResourceName& movement_sensor_name_deprecated(const MoveOnGlobeRequest* msg); static const ::viam::service::motion::v1::MotionConfiguration& motion_configuration(const MoveOnGlobeRequest* msg); static void set_has_motion_configuration(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -2927,12 +3218,12 @@ MoveOnGlobeRequest::_Internal::destination(const MoveOnGlobeRequest* msg) { return *msg->destination_; } const ::viam::common::v1::ResourceName& -MoveOnGlobeRequest::_Internal::component_name(const MoveOnGlobeRequest* msg) { - return *msg->component_name_; +MoveOnGlobeRequest::_Internal::component_name_deprecated(const MoveOnGlobeRequest* msg) { + return *msg->component_name_deprecated_; } const ::viam::common::v1::ResourceName& -MoveOnGlobeRequest::_Internal::movement_sensor_name(const MoveOnGlobeRequest* msg) { - return *msg->movement_sensor_name_; +MoveOnGlobeRequest::_Internal::movement_sensor_name_deprecated(const MoveOnGlobeRequest* msg) { + return *msg->movement_sensor_name_deprecated_; } const ::viam::service::motion::v1::MotionConfiguration& MoveOnGlobeRequest::_Internal::motion_configuration(const MoveOnGlobeRequest* msg) { @@ -2948,17 +3239,17 @@ void MoveOnGlobeRequest::clear_destination() { } destination_ = nullptr; } -void MoveOnGlobeRequest::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void MoveOnGlobeRequest::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } -void MoveOnGlobeRequest::clear_movement_sensor_name() { - if (GetArenaForAllocation() == nullptr && movement_sensor_name_ != nullptr) { - delete movement_sensor_name_; +void MoveOnGlobeRequest::clear_movement_sensor_name_deprecated() { + if (GetArenaForAllocation() == nullptr && movement_sensor_name_deprecated_ != nullptr) { + delete movement_sensor_name_deprecated_; } - movement_sensor_name_ = nullptr; + movement_sensor_name_deprecated_ = nullptr; } void MoveOnGlobeRequest::clear_obstacles() { obstacles_.Clear(); @@ -2994,20 +3285,36 @@ MoveOnGlobeRequest::MoveOnGlobeRequest(const MoveOnGlobeRequest& from) name_.Set(from._internal_name(), GetArenaForAllocation()); } + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } + movement_sensor_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + movement_sensor_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_movement_sensor_name().empty()) { + movement_sensor_name_.Set(from._internal_movement_sensor_name(), + GetArenaForAllocation()); + } if (from._internal_has_destination()) { destination_ = new ::viam::common::v1::GeoPoint(*from.destination_); } else { destination_ = nullptr; } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } - if (from._internal_has_movement_sensor_name()) { - movement_sensor_name_ = new ::viam::common::v1::ResourceName(*from.movement_sensor_name_); + if (from._internal_has_movement_sensor_name_deprecated()) { + movement_sensor_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.movement_sensor_name_deprecated_); } else { - movement_sensor_name_ = nullptr; + movement_sensor_name_deprecated_ = nullptr; } if (from._internal_has_motion_configuration()) { motion_configuration_ = new ::viam::service::motion::v1::MotionConfiguration(*from.motion_configuration_); @@ -3028,6 +3335,14 @@ name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +movement_sensor_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + movement_sensor_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&destination_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&heading_) - @@ -3046,9 +3361,11 @@ MoveOnGlobeRequest::~MoveOnGlobeRequest() { inline void MoveOnGlobeRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); + component_name_.Destroy(); + movement_sensor_name_.Destroy(); if (this != internal_default_instance()) delete destination_; - if (this != internal_default_instance()) delete component_name_; - if (this != internal_default_instance()) delete movement_sensor_name_; + if (this != internal_default_instance()) delete component_name_deprecated_; + if (this != internal_default_instance()) delete movement_sensor_name_deprecated_; if (this != internal_default_instance()) delete motion_configuration_; if (this != internal_default_instance()) delete extra_; } @@ -3066,18 +3383,20 @@ void MoveOnGlobeRequest::Clear() { obstacles_.Clear(); bounding_regions_.Clear(); name_.ClearToEmpty(); + component_name_.ClearToEmpty(); + movement_sensor_name_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { delete destination_; } destination_ = nullptr; - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; - if (GetArenaForAllocation() == nullptr && movement_sensor_name_ != nullptr) { - delete movement_sensor_name_; + component_name_deprecated_ = nullptr; + if (GetArenaForAllocation() == nullptr && movement_sensor_name_deprecated_ != nullptr) { + delete movement_sensor_name_deprecated_; } - movement_sensor_name_ = nullptr; + movement_sensor_name_deprecated_ = nullptr; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(motion_configuration_ != nullptr); @@ -3126,18 +3445,18 @@ const char* MoveOnGlobeRequest::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 4 [json_name = "componentNameDeprecated", deprecated = true]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; + // .viam.common.v1.ResourceName movement_sensor_name_deprecated = 5 [json_name = "movementSensorNameDeprecated", deprecated = true]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_movement_sensor_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_movement_sensor_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -3176,6 +3495,26 @@ const char* MoveOnGlobeRequest::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; + // string component_name = 9 [json_name = "componentName"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnGlobeRequest.component_name")); + } else + goto handle_unusual; + continue; + // string movement_sensor_name = 10 [json_name = "movementSensorName"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_movement_sensor_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name")); + } else + goto handle_unusual; + continue; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; case 99: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { @@ -3237,18 +3576,18 @@ uint8_t* MoveOnGlobeRequest::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_heading(), target); } - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 4 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(4, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); } - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - if (this->_internal_has_movement_sensor_name()) { + // .viam.common.v1.ResourceName movement_sensor_name_deprecated = 5 [json_name = "movementSensorNameDeprecated", deprecated = true]; + if (this->_internal_has_movement_sensor_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::movement_sensor_name(this), - _Internal::movement_sensor_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(5, _Internal::movement_sensor_name_deprecated(this), + _Internal::movement_sensor_name_deprecated(this).GetCachedSize(), target, stream); } // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; @@ -3274,6 +3613,26 @@ uint8_t* MoveOnGlobeRequest::_InternalSerialize( InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); } + // string component_name = 9 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnGlobeRequest.component_name"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_component_name(), target); + } + + // string movement_sensor_name = 10 [json_name = "movementSensorName"]; + if (!this->_internal_movement_sensor_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_movement_sensor_name().data(), static_cast(this->_internal_movement_sensor_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_movement_sensor_name(), target); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; if (this->_internal_has_extra()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -3318,6 +3677,20 @@ size_t MoveOnGlobeRequest::ByteSizeLong() const { this->_internal_name()); } + // string component_name = 9 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // string movement_sensor_name = 10 [json_name = "movementSensorName"]; + if (!this->_internal_movement_sensor_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_movement_sensor_name()); + } + // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; if (this->_internal_has_destination()) { total_size += 1 + @@ -3325,18 +3698,18 @@ size_t MoveOnGlobeRequest::ByteSizeLong() const { *destination_); } - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 4 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - if (this->_internal_has_movement_sensor_name()) { + // .viam.common.v1.ResourceName movement_sensor_name_deprecated = 5 [json_name = "movementSensorNameDeprecated", deprecated = true]; + if (this->_internal_has_movement_sensor_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *movement_sensor_name_); + *movement_sensor_name_deprecated_); } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; @@ -3386,14 +3759,20 @@ void MoveOnGlobeRequest::MergeFrom(const MoveOnGlobeRequest& from) { if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } + if (!from._internal_movement_sensor_name().empty()) { + _internal_set_movement_sensor_name(from._internal_movement_sensor_name()); + } if (from._internal_has_destination()) { _internal_mutable_destination()->::viam::common::v1::GeoPoint::MergeFrom(from._internal_destination()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } - if (from._internal_has_movement_sensor_name()) { - _internal_mutable_movement_sensor_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_movement_sensor_name()); + if (from._internal_has_movement_sensor_name_deprecated()) { + _internal_mutable_movement_sensor_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_movement_sensor_name_deprecated()); } if (from._internal_has_motion_configuration()) { _internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom(from._internal_motion_configuration()); @@ -3430,6 +3809,14 @@ void MoveOnGlobeRequest::InternalSwap(MoveOnGlobeRequest* other) { &name_, lhs_arena, &other->name_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &movement_sensor_name_, lhs_arena, + &other->movement_sensor_name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, heading_) + sizeof(MoveOnGlobeRequest::heading_) @@ -3643,23 +4030,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnGlobeResponse::GetMetadata() const { class GetPoseRequest::_Internal { public: - static const ::viam::common::v1::ResourceName& component_name(const GetPoseRequest* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const GetPoseRequest* msg); static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPoseRequest* msg); }; const ::viam::common::v1::ResourceName& -GetPoseRequest::_Internal::component_name(const GetPoseRequest* msg) { - return *msg->component_name_; +GetPoseRequest::_Internal::component_name_deprecated(const GetPoseRequest* msg) { + return *msg->component_name_deprecated_; } const ::PROTOBUF_NAMESPACE_ID::Struct& GetPoseRequest::_Internal::extra(const GetPoseRequest* msg) { return *msg->extra_; } -void GetPoseRequest::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void GetPoseRequest::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } void GetPoseRequest::clear_supplemental_transforms() { supplemental_transforms_.Clear(); @@ -3697,10 +4084,18 @@ GetPoseRequest::GetPoseRequest(const GetPoseRequest& from) destination_frame_.Set(from._internal_destination_frame(), GetArenaForAllocation()); } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } if (from._internal_has_extra()) { extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); @@ -3719,10 +4114,14 @@ destination_frame_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING destination_frame_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&component_name_) - reinterpret_cast(this)), + reinterpret_cast(&component_name_deprecated_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&extra_) - - reinterpret_cast(&component_name_)) + sizeof(extra_)); + reinterpret_cast(&component_name_deprecated_)) + sizeof(extra_)); } GetPoseRequest::~GetPoseRequest() { @@ -3738,7 +4137,8 @@ inline void GetPoseRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); destination_frame_.Destroy(); - if (this != internal_default_instance()) delete component_name_; + component_name_.Destroy(); + if (this != internal_default_instance()) delete component_name_deprecated_; if (this != internal_default_instance()) delete extra_; } @@ -3755,10 +4155,11 @@ void GetPoseRequest::Clear() { supplemental_transforms_.Clear(); name_.ClearToEmpty(); destination_frame_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + component_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { delete extra_; } @@ -3782,10 +4183,10 @@ const char* GetPoseRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -3813,6 +4214,16 @@ const char* GetPoseRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; + // string component_name = 5 [json_name = "componentName"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.GetPoseRequest.component_name")); + } else + goto handle_unusual; + continue; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; case 99: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { @@ -3860,11 +4271,11 @@ uint8_t* GetPoseRequest::_InternalSerialize( 1, this->_internal_name(), target); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); } // string destination_frame = 3 [json_name = "destinationFrame"]; @@ -3885,6 +4296,16 @@ uint8_t* GetPoseRequest::_InternalSerialize( InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.GetPoseRequest.component_name"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_component_name(), target); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; if (this->_internal_has_extra()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -3929,11 +4350,18 @@ size_t GetPoseRequest::ByteSizeLong() const { this->_internal_destination_frame()); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; @@ -3972,8 +4400,11 @@ void GetPoseRequest::MergeFrom(const GetPoseRequest& from) { if (!from._internal_destination_frame().empty()) { _internal_set_destination_frame(from._internal_destination_frame()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } if (from._internal_has_extra()) { _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); @@ -4006,12 +4437,16 @@ void GetPoseRequest::InternalSwap(GetPoseRequest* other) { &destination_frame_, lhs_arena, &other->destination_frame_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(GetPoseRequest, extra_) + sizeof(GetPoseRequest::extra_) - - PROTOBUF_FIELD_OFFSET(GetPoseRequest, component_name_)>( - reinterpret_cast(&component_name_), - reinterpret_cast(&other->component_name_)); + - PROTOBUF_FIELD_OFFSET(GetPoseRequest, component_name_deprecated_)>( + reinterpret_cast(&component_name_deprecated_), + reinterpret_cast(&other->component_name_deprecated_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GetPoseRequest::GetMetadata() const { @@ -4217,23 +4652,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetPoseResponse::GetMetadata() const { class StopPlanRequest::_Internal { public: - static const ::viam::common::v1::ResourceName& component_name(const StopPlanRequest* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const StopPlanRequest* msg); static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopPlanRequest* msg); }; const ::viam::common::v1::ResourceName& -StopPlanRequest::_Internal::component_name(const StopPlanRequest* msg) { - return *msg->component_name_; +StopPlanRequest::_Internal::component_name_deprecated(const StopPlanRequest* msg) { + return *msg->component_name_deprecated_; } const ::PROTOBUF_NAMESPACE_ID::Struct& StopPlanRequest::_Internal::extra(const StopPlanRequest* msg) { return *msg->extra_; } -void StopPlanRequest::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void StopPlanRequest::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } void StopPlanRequest::clear_extra() { if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { @@ -4258,10 +4693,18 @@ StopPlanRequest::StopPlanRequest(const StopPlanRequest& from) name_.Set(from._internal_name(), GetArenaForAllocation()); } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } if (from._internal_has_extra()) { extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); @@ -4276,10 +4719,14 @@ name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&component_name_) - reinterpret_cast(this)), + reinterpret_cast(&component_name_deprecated_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&extra_) - - reinterpret_cast(&component_name_)) + sizeof(extra_)); + reinterpret_cast(&component_name_deprecated_)) + sizeof(extra_)); } StopPlanRequest::~StopPlanRequest() { @@ -4294,7 +4741,8 @@ StopPlanRequest::~StopPlanRequest() { inline void StopPlanRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); - if (this != internal_default_instance()) delete component_name_; + component_name_.Destroy(); + if (this != internal_default_instance()) delete component_name_deprecated_; if (this != internal_default_instance()) delete extra_; } @@ -4309,10 +4757,11 @@ void StopPlanRequest::Clear() { (void) cached_has_bits; name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + component_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { delete extra_; } @@ -4336,11 +4785,21 @@ const char* StopPlanRequest::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string component_name = 3 [json_name = "componentName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.StopPlanRequest.component_name")); } else goto handle_unusual; continue; @@ -4391,11 +4850,21 @@ uint8_t* StopPlanRequest::_InternalSerialize( 1, this->_internal_name(), target); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); + } + + // string component_name = 3 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.StopPlanRequest.component_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_component_name(), target); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; @@ -4428,11 +4897,18 @@ size_t StopPlanRequest::ByteSizeLong() const { this->_internal_name()); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // string component_name = 3 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; @@ -4467,8 +4943,11 @@ void StopPlanRequest::MergeFrom(const StopPlanRequest& from) { if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } if (from._internal_has_extra()) { _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); @@ -4496,12 +4975,16 @@ void StopPlanRequest::InternalSwap(StopPlanRequest* other) { &name_, lhs_arena, &other->name_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(StopPlanRequest, extra_) + sizeof(StopPlanRequest::extra_) - - PROTOBUF_FIELD_OFFSET(StopPlanRequest, component_name_)>( - reinterpret_cast(&component_name_), - reinterpret_cast(&other->component_name_)); + - PROTOBUF_FIELD_OFFSET(StopPlanRequest, component_name_deprecated_)>( + reinterpret_cast(&component_name_deprecated_), + reinterpret_cast(&other->component_name_deprecated_)); } ::PROTOBUF_NAMESPACE_ID::Metadata StopPlanRequest::GetMetadata() const { @@ -5007,7 +5490,7 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ListPlanStatusesResponse::GetMetadata() const class GetPlanRequest::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); - static const ::viam::common::v1::ResourceName& component_name(const GetPlanRequest* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const GetPlanRequest* msg); static void set_has_execution_id(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -5015,18 +5498,18 @@ class GetPlanRequest::_Internal { }; const ::viam::common::v1::ResourceName& -GetPlanRequest::_Internal::component_name(const GetPlanRequest* msg) { - return *msg->component_name_; +GetPlanRequest::_Internal::component_name_deprecated(const GetPlanRequest* msg) { + return *msg->component_name_deprecated_; } const ::PROTOBUF_NAMESPACE_ID::Struct& GetPlanRequest::_Internal::extra(const GetPlanRequest* msg) { return *msg->extra_; } -void GetPlanRequest::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void GetPlanRequest::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } void GetPlanRequest::clear_extra() { if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { @@ -5060,10 +5543,18 @@ GetPlanRequest::GetPlanRequest(const GetPlanRequest& from) execution_id_.Set(from._internal_execution_id(), GetArenaForAllocation()); } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } if (from._internal_has_extra()) { extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); @@ -5083,10 +5574,14 @@ execution_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING execution_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&component_name_) - reinterpret_cast(this)), + reinterpret_cast(&component_name_deprecated_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&last_plan_only_) - - reinterpret_cast(&component_name_)) + sizeof(last_plan_only_)); + reinterpret_cast(&component_name_deprecated_)) + sizeof(last_plan_only_)); } GetPlanRequest::~GetPlanRequest() { @@ -5102,7 +5597,8 @@ inline void GetPlanRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); execution_id_.Destroy(); - if (this != internal_default_instance()) delete component_name_; + component_name_.Destroy(); + if (this != internal_default_instance()) delete component_name_deprecated_; if (this != internal_default_instance()) delete extra_; } @@ -5121,10 +5617,11 @@ void GetPlanRequest::Clear() { if (cached_has_bits & 0x00000001u) { execution_id_.ClearNonDefaultToEmpty(); } - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + component_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { delete extra_; } @@ -5151,10 +5648,10 @@ const char* GetPlanRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -5177,6 +5674,16 @@ const char* GetPlanRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; + // string component_name = 5 [json_name = "componentName"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.GetPlanRequest.component_name")); + } else + goto handle_unusual; + continue; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; case 99: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { @@ -5225,11 +5732,11 @@ uint8_t* GetPlanRequest::_InternalSerialize( 1, this->_internal_name(), target); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); } // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; @@ -5248,6 +5755,16 @@ uint8_t* GetPlanRequest::_InternalSerialize( 4, this->_internal_execution_id(), target); } + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.GetPlanRequest.component_name"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_component_name(), target); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; if (this->_internal_has_extra()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -5286,11 +5803,18 @@ size_t GetPlanRequest::ByteSizeLong() const { this->_internal_execution_id()); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; @@ -5333,8 +5857,11 @@ void GetPlanRequest::MergeFrom(const GetPlanRequest& from) { if (from._internal_has_execution_id()) { _internal_set_execution_id(from._internal_execution_id()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } if (from._internal_has_extra()) { _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); @@ -5370,12 +5897,16 @@ void GetPlanRequest::InternalSwap(GetPlanRequest* other) { &execution_id_, lhs_arena, &other->execution_id_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(GetPlanRequest, last_plan_only_) + sizeof(GetPlanRequest::last_plan_only_) - - PROTOBUF_FIELD_OFFSET(GetPlanRequest, component_name_)>( - reinterpret_cast(&component_name_), - reinterpret_cast(&other->component_name_)); + - PROTOBUF_FIELD_OFFSET(GetPlanRequest, component_name_deprecated_)>( + reinterpret_cast(&component_name_deprecated_), + reinterpret_cast(&other->component_name_deprecated_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GetPlanRequest::GetMetadata() const { @@ -7214,23 +7745,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PlanWithStatus::GetMetadata() const { class PlanStatusWithID::_Internal { public: - static const ::viam::common::v1::ResourceName& component_name(const PlanStatusWithID* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const PlanStatusWithID* msg); static const ::viam::service::motion::v1::PlanStatus& status(const PlanStatusWithID* msg); }; const ::viam::common::v1::ResourceName& -PlanStatusWithID::_Internal::component_name(const PlanStatusWithID* msg) { - return *msg->component_name_; +PlanStatusWithID::_Internal::component_name_deprecated(const PlanStatusWithID* msg) { + return *msg->component_name_deprecated_; } const ::viam::service::motion::v1::PlanStatus& PlanStatusWithID::_Internal::status(const PlanStatusWithID* msg) { return *msg->status_; } -void PlanStatusWithID::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void PlanStatusWithID::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } PlanStatusWithID::PlanStatusWithID(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -7257,10 +7788,18 @@ PlanStatusWithID::PlanStatusWithID(const PlanStatusWithID& from) execution_id_.Set(from._internal_execution_id(), GetArenaForAllocation()); } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } if (from._internal_has_status()) { status_ = new ::viam::service::motion::v1::PlanStatus(*from.status_); @@ -7279,10 +7818,14 @@ execution_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING execution_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&component_name_) - reinterpret_cast(this)), + reinterpret_cast(&component_name_deprecated_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&component_name_)) + sizeof(status_)); + reinterpret_cast(&component_name_deprecated_)) + sizeof(status_)); } PlanStatusWithID::~PlanStatusWithID() { @@ -7298,7 +7841,8 @@ inline void PlanStatusWithID::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); plan_id_.Destroy(); execution_id_.Destroy(); - if (this != internal_default_instance()) delete component_name_; + component_name_.Destroy(); + if (this != internal_default_instance()) delete component_name_deprecated_; if (this != internal_default_instance()) delete status_; } @@ -7314,10 +7858,11 @@ void PlanStatusWithID::Clear() { plan_id_.ClearToEmpty(); execution_id_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + component_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; if (GetArenaForAllocation() == nullptr && status_ != nullptr) { delete status_; } @@ -7341,10 +7886,10 @@ const char* PlanStatusWithID::_InternalParse(const char* ptr, ::_pbi::ParseConte } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -7367,6 +7912,16 @@ const char* PlanStatusWithID::_InternalParse(const char* ptr, ::_pbi::ParseConte } else goto handle_unusual; continue; + // string component_name = 5 [json_name = "componentName"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.PlanStatusWithID.component_name")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -7406,11 +7961,11 @@ uint8_t* PlanStatusWithID::_InternalSerialize( 1, this->_internal_plan_id(), target); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); } // string execution_id = 3 [json_name = "executionId"]; @@ -7430,6 +7985,16 @@ uint8_t* PlanStatusWithID::_InternalSerialize( _Internal::status(this).GetCachedSize(), target, stream); } + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.PlanStatusWithID.component_name"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_component_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); @@ -7460,11 +8025,18 @@ size_t PlanStatusWithID::ByteSizeLong() const { this->_internal_execution_id()); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; @@ -7502,8 +8074,11 @@ void PlanStatusWithID::MergeFrom(const PlanStatusWithID& from) { if (!from._internal_execution_id().empty()) { _internal_set_execution_id(from._internal_execution_id()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } if (from._internal_has_status()) { _internal_mutable_status()->::viam::service::motion::v1::PlanStatus::MergeFrom(from._internal_status()); @@ -7535,12 +8110,16 @@ void PlanStatusWithID::InternalSwap(PlanStatusWithID* other) { &execution_id_, lhs_arena, &other->execution_id_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PlanStatusWithID, status_) + sizeof(PlanStatusWithID::status_) - - PROTOBUF_FIELD_OFFSET(PlanStatusWithID, component_name_)>( - reinterpret_cast(&component_name_), - reinterpret_cast(&other->component_name_)); + - PROTOBUF_FIELD_OFFSET(PlanStatusWithID, component_name_deprecated_)>( + reinterpret_cast(&component_name_deprecated_), + reinterpret_cast(&other->component_name_deprecated_)); } ::PROTOBUF_NAMESPACE_ID::Metadata PlanStatusWithID::GetMetadata() const { @@ -7844,18 +8423,18 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PlanStatus::GetMetadata() const { class Plan::_Internal { public: - static const ::viam::common::v1::ResourceName& component_name(const Plan* msg); + static const ::viam::common::v1::ResourceName& component_name_deprecated(const Plan* msg); }; const ::viam::common::v1::ResourceName& -Plan::_Internal::component_name(const Plan* msg) { - return *msg->component_name_; +Plan::_Internal::component_name_deprecated(const Plan* msg) { + return *msg->component_name_deprecated_; } -void Plan::clear_component_name() { - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; +void Plan::clear_component_name_deprecated() { + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } Plan::Plan(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -7884,10 +8463,18 @@ Plan::Plan(const Plan& from) execution_id_.Set(from._internal_execution_id(), GetArenaForAllocation()); } - if (from._internal_has_component_name()) { - component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + component_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_component_name().empty()) { + component_name_.Set(from._internal_component_name(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name_deprecated()) { + component_name_deprecated_ = new ::viam::common::v1::ResourceName(*from.component_name_deprecated_); } else { - component_name_ = nullptr; + component_name_deprecated_ = nullptr; } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.Plan) } @@ -7901,7 +8488,11 @@ execution_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING execution_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -component_name_ = nullptr; +component_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + component_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_deprecated_ = nullptr; } Plan::~Plan() { @@ -7917,7 +8508,8 @@ inline void Plan::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); id_.Destroy(); execution_id_.Destroy(); - if (this != internal_default_instance()) delete component_name_; + component_name_.Destroy(); + if (this != internal_default_instance()) delete component_name_deprecated_; } void Plan::SetCachedSize(int size) const { @@ -7933,10 +8525,11 @@ void Plan::Clear() { steps_.Clear(); id_.ClearToEmpty(); execution_id_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { - delete component_name_; + component_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_deprecated_ != nullptr) { + delete component_name_deprecated_; } - component_name_ = nullptr; + component_name_deprecated_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -7956,10 +8549,10 @@ const char* Plan::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_component_name_deprecated(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -7987,6 +8580,16 @@ const char* Plan::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; + // string component_name = 5 [json_name = "componentName"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_component_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.Plan.component_name")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -8026,11 +8629,11 @@ uint8_t* Plan::_InternalSerialize( 1, this->_internal_id(), target); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::component_name(this), - _Internal::component_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, _Internal::component_name_deprecated(this), + _Internal::component_name_deprecated(this).GetCachedSize(), target, stream); } // string execution_id = 3 [json_name = "executionId"]; @@ -8051,6 +8654,16 @@ uint8_t* Plan::_InternalSerialize( InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_component_name().data(), static_cast(this->_internal_component_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.Plan.component_name"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_component_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); @@ -8088,11 +8701,18 @@ size_t Plan::ByteSizeLong() const { this->_internal_execution_id()); } - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (this->_internal_has_component_name()) { + // string component_name = 5 [json_name = "componentName"]; + if (!this->_internal_component_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_component_name()); + } + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + if (this->_internal_has_component_name_deprecated()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *component_name_); + *component_name_deprecated_); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); @@ -8124,8 +8744,11 @@ void Plan::MergeFrom(const Plan& from) { if (!from._internal_execution_id().empty()) { _internal_set_execution_id(from._internal_execution_id()); } - if (from._internal_has_component_name()) { - _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + if (!from._internal_component_name().empty()) { + _internal_set_component_name(from._internal_component_name()); + } + if (from._internal_has_component_name_deprecated()) { + _internal_mutable_component_name_deprecated()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name_deprecated()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -8155,7 +8778,11 @@ void Plan::InternalSwap(Plan* other) { &execution_id_, lhs_arena, &other->execution_id_, rhs_arena ); - swap(component_name_, other->component_name_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &component_name_, lhs_arena, + &other->component_name_, rhs_arena + ); + swap(component_name_deprecated_, other->component_name_deprecated_); } ::PROTOBUF_NAMESPACE_ID::Metadata Plan::GetMetadata() const { diff --git a/src/viam/api/service/motion/v1/motion.pb.h b/src/viam/api/service/motion/v1/motion.pb.h index 88aca2dca..09b34a12f 100644 --- a/src/viam/api/service/motion/v1/motion.pb.h +++ b/src/viam/api/service/motion/v1/motion.pb.h @@ -334,8 +334,9 @@ class MoveRequest final : enum : int { kNameFieldNumber = 1, + kComponentNameFieldNumber = 6, kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 3, + kComponentNameDeprecatedFieldNumber = 3, kWorldStateFieldNumber = 4, kConstraintsFieldNumber = 5, kExtraFieldNumber = 99, @@ -354,6 +355,20 @@ class MoveRequest final : std::string* _internal_mutable_name(); public: + // string component_name = 6 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; bool has_destination() const; private: @@ -372,23 +387,23 @@ class MoveRequest final : ::viam::common::v1::PoseInFrame* destination); ::viam::common::v1::PoseInFrame* unsafe_arena_release_destination(); - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - bool has_component_name() const; + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; private: - bool _internal_has_component_name() const; + bool _internal_has_component_name_deprecated() const; public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; bool has_world_state() const; @@ -454,8 +469,9 @@ class MoveRequest final : ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; ::viam::common::v1::PoseInFrame* destination_; - ::viam::common::v1::ResourceName* component_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; ::viam::common::v1::WorldState* world_state_; ::viam::service::motion::v1::Constraints* constraints_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; @@ -727,9 +743,11 @@ class MoveOnMapRequest final : enum : int { kObstaclesFieldNumber = 6, kNameFieldNumber = 1, + kComponentNameFieldNumber = 7, + kSlamServiceNameFieldNumber = 8, kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 3, - kSlamServiceNameFieldNumber = 4, + kComponentNameDeprecatedFieldNumber = 3, + kSlamServiceNameDeprecatedFieldNumber = 4, kMotionConfigurationFieldNumber = 5, kExtraFieldNumber = 99, }; @@ -765,6 +783,34 @@ class MoveOnMapRequest final : std::string* _internal_mutable_name(); public: + // string component_name = 7 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string slam_service_name = 8 [json_name = "slamServiceName"]; + void clear_slam_service_name(); + const std::string& slam_service_name() const; + template + void set_slam_service_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_slam_service_name(); + PROTOBUF_NODISCARD std::string* release_slam_service_name(); + void set_allocated_slam_service_name(std::string* slam_service_name); + private: + const std::string& _internal_slam_service_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_slam_service_name(const std::string& value); + std::string* _internal_mutable_slam_service_name(); + public: + // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; bool has_destination() const; private: @@ -783,41 +829,41 @@ class MoveOnMapRequest final : ::viam::common::v1::Pose* destination); ::viam::common::v1::Pose* unsafe_arena_release_destination(); - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - bool has_component_name() const; + // .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; private: - bool _internal_has_component_name() const; + bool _internal_has_component_name_deprecated() const; public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - bool has_slam_service_name() const; + // .viam.common.v1.ResourceName slam_service_name_deprecated = 4 [json_name = "slamServiceNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_slam_service_name_deprecated() const; private: - bool _internal_has_slam_service_name() const; + bool _internal_has_slam_service_name_deprecated() const; public: - void clear_slam_service_name(); - const ::viam::common::v1::ResourceName& slam_service_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_slam_service_name(); - ::viam::common::v1::ResourceName* mutable_slam_service_name(); - void set_allocated_slam_service_name(::viam::common::v1::ResourceName* slam_service_name); + PROTOBUF_DEPRECATED void clear_slam_service_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& slam_service_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_slam_service_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_slam_service_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_slam_service_name_deprecated(::viam::common::v1::ResourceName* slam_service_name_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_slam_service_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_slam_service_name(); + const ::viam::common::v1::ResourceName& _internal_slam_service_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_slam_service_name_deprecated(); public: - void unsafe_arena_set_allocated_slam_service_name( - ::viam::common::v1::ResourceName* slam_service_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_slam_service_name(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_slam_service_name_deprecated( + ::viam::common::v1::ResourceName* slam_service_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_slam_service_name_deprecated(); // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; bool has_motion_configuration() const; @@ -866,9 +912,11 @@ class MoveOnMapRequest final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry > obstacles_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr slam_service_name_; ::viam::common::v1::Pose* destination_; - ::viam::common::v1::ResourceName* component_name_; - ::viam::common::v1::ResourceName* slam_service_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; + ::viam::common::v1::ResourceName* slam_service_name_deprecated_; ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; @@ -1142,44 +1190,74 @@ class ObstacleDetector final : // accessors ------------------------------------------------------- enum : int { - kVisionServiceFieldNumber = 1, - kCameraFieldNumber = 2, + kVisionServiceFieldNumber = 3, + kCameraFieldNumber = 4, + kVisionServiceDeprecatedFieldNumber = 1, + kCameraDeprecatedFieldNumber = 2, }; - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - bool has_vision_service() const; + // string vision_service = 3 [json_name = "visionService"]; + void clear_vision_service(); + const std::string& vision_service() const; + template + void set_vision_service(ArgT0&& arg0, ArgT... args); + std::string* mutable_vision_service(); + PROTOBUF_NODISCARD std::string* release_vision_service(); + void set_allocated_vision_service(std::string* vision_service); private: - bool _internal_has_vision_service() const; + const std::string& _internal_vision_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vision_service(const std::string& value); + std::string* _internal_mutable_vision_service(); public: - void clear_vision_service(); - const ::viam::common::v1::ResourceName& vision_service() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_vision_service(); - ::viam::common::v1::ResourceName* mutable_vision_service(); - void set_allocated_vision_service(::viam::common::v1::ResourceName* vision_service); + + // string camera = 4 [json_name = "camera"]; + void clear_camera(); + const std::string& camera() const; + template + void set_camera(ArgT0&& arg0, ArgT... args); + std::string* mutable_camera(); + PROTOBUF_NODISCARD std::string* release_camera(); + void set_allocated_camera(std::string* camera); private: - const ::viam::common::v1::ResourceName& _internal_vision_service() const; - ::viam::common::v1::ResourceName* _internal_mutable_vision_service(); + const std::string& _internal_camera() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera(const std::string& value); + std::string* _internal_mutable_camera(); public: - void unsafe_arena_set_allocated_vision_service( - ::viam::common::v1::ResourceName* vision_service); - ::viam::common::v1::ResourceName* unsafe_arena_release_vision_service(); - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - bool has_camera() const; + // .viam.common.v1.ResourceName vision_service_deprecated = 1 [json_name = "visionServiceDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_vision_service_deprecated() const; private: - bool _internal_has_camera() const; + bool _internal_has_vision_service_deprecated() const; public: - void clear_camera(); - const ::viam::common::v1::ResourceName& camera() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_camera(); - ::viam::common::v1::ResourceName* mutable_camera(); - void set_allocated_camera(::viam::common::v1::ResourceName* camera); + PROTOBUF_DEPRECATED void clear_vision_service_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& vision_service_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_vision_service_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_vision_service_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_vision_service_deprecated(::viam::common::v1::ResourceName* vision_service_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_camera() const; - ::viam::common::v1::ResourceName* _internal_mutable_camera(); + const ::viam::common::v1::ResourceName& _internal_vision_service_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_vision_service_deprecated(); public: - void unsafe_arena_set_allocated_camera( - ::viam::common::v1::ResourceName* camera); - ::viam::common::v1::ResourceName* unsafe_arena_release_camera(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_vision_service_deprecated( + ::viam::common::v1::ResourceName* vision_service_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_vision_service_deprecated(); + + // .viam.common.v1.ResourceName camera_deprecated = 2 [json_name = "cameraDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_camera_deprecated() const; + private: + bool _internal_has_camera_deprecated() const; + public: + PROTOBUF_DEPRECATED void clear_camera_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& camera_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_camera_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_camera_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_camera_deprecated(::viam::common::v1::ResourceName* camera_deprecated); + private: + const ::viam::common::v1::ResourceName& _internal_camera_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_camera_deprecated(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_camera_deprecated( + ::viam::common::v1::ResourceName* camera_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_camera_deprecated(); // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ObstacleDetector) private: @@ -1188,8 +1266,10 @@ class ObstacleDetector final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::viam::common::v1::ResourceName* vision_service_; - ::viam::common::v1::ResourceName* camera_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vision_service_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_; + ::viam::common::v1::ResourceName* vision_service_deprecated_; + ::viam::common::v1::ResourceName* camera_deprecated_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; @@ -1545,9 +1625,11 @@ class MoveOnGlobeRequest final : kObstaclesFieldNumber = 6, kBoundingRegionsFieldNumber = 8, kNameFieldNumber = 1, + kComponentNameFieldNumber = 9, + kMovementSensorNameFieldNumber = 10, kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 4, - kMovementSensorNameFieldNumber = 5, + kComponentNameDeprecatedFieldNumber = 4, + kMovementSensorNameDeprecatedFieldNumber = 5, kMotionConfigurationFieldNumber = 7, kExtraFieldNumber = 99, kHeadingFieldNumber = 3, @@ -1602,6 +1684,34 @@ class MoveOnGlobeRequest final : std::string* _internal_mutable_name(); public: + // string component_name = 9 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // string movement_sensor_name = 10 [json_name = "movementSensorName"]; + void clear_movement_sensor_name(); + const std::string& movement_sensor_name() const; + template + void set_movement_sensor_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_movement_sensor_name(); + PROTOBUF_NODISCARD std::string* release_movement_sensor_name(); + void set_allocated_movement_sensor_name(std::string* movement_sensor_name); + private: + const std::string& _internal_movement_sensor_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_movement_sensor_name(const std::string& value); + std::string* _internal_mutable_movement_sensor_name(); + public: + // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; bool has_destination() const; private: @@ -1620,41 +1730,41 @@ class MoveOnGlobeRequest final : ::viam::common::v1::GeoPoint* destination); ::viam::common::v1::GeoPoint* unsafe_arena_release_destination(); - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - bool has_component_name() const; + // .viam.common.v1.ResourceName component_name_deprecated = 4 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; private: - bool _internal_has_component_name() const; + bool _internal_has_component_name_deprecated() const; public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - bool has_movement_sensor_name() const; + // .viam.common.v1.ResourceName movement_sensor_name_deprecated = 5 [json_name = "movementSensorNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_movement_sensor_name_deprecated() const; private: - bool _internal_has_movement_sensor_name() const; + bool _internal_has_movement_sensor_name_deprecated() const; public: - void clear_movement_sensor_name(); - const ::viam::common::v1::ResourceName& movement_sensor_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_movement_sensor_name(); - ::viam::common::v1::ResourceName* mutable_movement_sensor_name(); - void set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* movement_sensor_name); + PROTOBUF_DEPRECATED void clear_movement_sensor_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& movement_sensor_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_movement_sensor_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_movement_sensor_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_movement_sensor_name_deprecated(::viam::common::v1::ResourceName* movement_sensor_name_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_movement_sensor_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_movement_sensor_name(); + const ::viam::common::v1::ResourceName& _internal_movement_sensor_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_movement_sensor_name_deprecated(); public: - void unsafe_arena_set_allocated_movement_sensor_name( - ::viam::common::v1::ResourceName* movement_sensor_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_movement_sensor_name(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_movement_sensor_name_deprecated( + ::viam::common::v1::ResourceName* movement_sensor_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_movement_sensor_name_deprecated(); // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; bool has_motion_configuration() const; @@ -1717,9 +1827,11 @@ class MoveOnGlobeRequest final : ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry > obstacles_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry > bounding_regions_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr movement_sensor_name_; ::viam::common::v1::GeoPoint* destination_; - ::viam::common::v1::ResourceName* component_name_; - ::viam::common::v1::ResourceName* movement_sensor_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; + ::viam::common::v1::ResourceName* movement_sensor_name_deprecated_; ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; double heading_; @@ -1997,7 +2109,8 @@ class GetPoseRequest final : kSupplementalTransformsFieldNumber = 4, kNameFieldNumber = 1, kDestinationFrameFieldNumber = 3, - kComponentNameFieldNumber = 2, + kComponentNameFieldNumber = 5, + kComponentNameDeprecatedFieldNumber = 2, kExtraFieldNumber = 99, }; // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; @@ -2046,23 +2159,37 @@ class GetPoseRequest final : std::string* _internal_mutable_destination_frame(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; + // string component_name = 5 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); private: - bool _internal_has_component_name() const; + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + bool _internal_has_component_name_deprecated() const; public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); + private: + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; @@ -2092,7 +2219,8 @@ class GetPoseRequest final : ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_frame_; - ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; @@ -2371,7 +2499,8 @@ class StopPlanRequest final : enum : int { kNameFieldNumber = 1, - kComponentNameFieldNumber = 2, + kComponentNameFieldNumber = 3, + kComponentNameDeprecatedFieldNumber = 2, kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; @@ -2388,23 +2517,37 @@ class StopPlanRequest final : std::string* _internal_mutable_name(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; + // string component_name = 3 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); + private: + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); + public: + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; private: - bool _internal_has_component_name() const; + bool _internal_has_component_name_deprecated() const; public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; @@ -2432,7 +2575,8 @@ class StopPlanRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; @@ -3007,7 +3151,8 @@ class GetPlanRequest final : enum : int { kNameFieldNumber = 1, kExecutionIdFieldNumber = 4, - kComponentNameFieldNumber = 2, + kComponentNameFieldNumber = 5, + kComponentNameDeprecatedFieldNumber = 2, kExtraFieldNumber = 99, kLastPlanOnlyFieldNumber = 3, }; @@ -3043,23 +3188,37 @@ class GetPlanRequest final : std::string* _internal_mutable_execution_id(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; + // string component_name = 5 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); private: - bool _internal_has_component_name() const; + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; + private: + bool _internal_has_component_name_deprecated() const; + public: + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; @@ -3099,7 +3258,8 @@ class GetPlanRequest final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; ::PROTOBUF_NAMESPACE_ID::Struct* extra_; bool last_plan_only_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; @@ -4595,7 +4755,8 @@ class PlanStatusWithID final : enum : int { kPlanIdFieldNumber = 1, kExecutionIdFieldNumber = 3, - kComponentNameFieldNumber = 2, + kComponentNameFieldNumber = 5, + kComponentNameDeprecatedFieldNumber = 2, kStatusFieldNumber = 4, }; // string plan_id = 1 [json_name = "planId"]; @@ -4626,23 +4787,37 @@ class PlanStatusWithID final : std::string* _internal_mutable_execution_id(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; + // string component_name = 5 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); private: - bool _internal_has_component_name() const; + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + bool _internal_has_component_name_deprecated() const; public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); + private: + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; bool has_status() const; @@ -4671,7 +4846,8 @@ class PlanStatusWithID final : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plan_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; ::viam::service::motion::v1::PlanStatus* status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; @@ -4984,7 +5160,8 @@ class Plan final : kStepsFieldNumber = 4, kIdFieldNumber = 1, kExecutionIdFieldNumber = 3, - kComponentNameFieldNumber = 2, + kComponentNameFieldNumber = 5, + kComponentNameDeprecatedFieldNumber = 2, }; // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; int steps_size() const; @@ -5032,23 +5209,37 @@ class Plan final : std::string* _internal_mutable_execution_id(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; + // string component_name = 5 [json_name = "componentName"]; + void clear_component_name(); + const std::string& component_name() const; + template + void set_component_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_component_name(); + PROTOBUF_NODISCARD std::string* release_component_name(); + void set_allocated_component_name(std::string* component_name); private: - bool _internal_has_component_name() const; + const std::string& _internal_component_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_component_name(const std::string& value); + std::string* _internal_mutable_component_name(); public: - void clear_component_name(); - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + + // .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; + PROTOBUF_DEPRECATED bool has_component_name_deprecated() const; private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + bool _internal_has_component_name_deprecated() const; public: - void unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + PROTOBUF_DEPRECATED void clear_component_name_deprecated(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& component_name_deprecated() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_component_name_deprecated(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_component_name_deprecated(); + PROTOBUF_DEPRECATED void set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated); + private: + const ::viam::common::v1::ResourceName& _internal_component_name_deprecated() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name_deprecated(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_component_name_deprecated(); // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Plan) private: @@ -5060,7 +5251,8 @@ class Plan final : ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep > steps_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr component_name_; + ::viam::common::v1::ResourceName* component_name_deprecated_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; @@ -5546,39 +5738,39 @@ inline void MoveRequest::set_allocated_destination(::viam::common::v1::PoseInFra // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.destination) } -// .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; -inline bool MoveRequest::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool MoveRequest::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool MoveRequest::has_component_name() const { - return _internal_has_component_name(); +inline bool MoveRequest::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& MoveRequest::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& MoveRequest::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& MoveRequest::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void MoveRequest::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void MoveRequest::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* MoveRequest::release_component_name() { +inline ::viam::common::v1::ResourceName* MoveRequest::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5590,45 +5782,45 @@ inline ::viam::common::v1::ResourceName* MoveRequest::release_component_name() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* MoveRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.component_name) +inline ::viam::common::v1::ResourceName* MoveRequest::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* MoveRequest::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* MoveRequest::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* MoveRequest::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.component_name) +inline ::viam::common::v1::ResourceName* MoveRequest::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.component_name_deprecated) return _msg; } -inline void MoveRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void MoveRequest::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.component_name) + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.component_name_deprecated) } // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; @@ -5808,6 +6000,56 @@ inline void MoveRequest::set_allocated_constraints(::viam::service::motion::v1:: // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.constraints) } +// string component_name = 6 [json_name = "componentName"]; +inline void MoveRequest::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& MoveRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveRequest::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveRequest.component_name) +} +inline std::string* MoveRequest::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.component_name) + return _s; +} +inline const std::string& MoveRequest::_internal_component_name() const { + return component_name_.Get(); +} +inline void MoveRequest::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveRequest::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveRequest::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.component_name) + return component_name_.Release(); +} +inline void MoveRequest::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.component_name) +} + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; inline bool MoveRequest::_internal_has_extra() const { return this != internal_default_instance() && extra_ != nullptr; @@ -6056,39 +6298,39 @@ inline void MoveOnMapRequest::set_allocated_destination(::viam::common::v1::Pose // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.destination) } -// .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; -inline bool MoveOnMapRequest::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 3 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool MoveOnMapRequest::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool MoveOnMapRequest::has_component_name() const { - return _internal_has_component_name(); +inline bool MoveOnMapRequest::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void MoveOnMapRequest::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void MoveOnMapRequest::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_component_name() { +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6100,80 +6342,80 @@ inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_component_nam #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.component_name) +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.component_name) +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.component_name_deprecated) return _msg; } -inline void MoveOnMapRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void MoveOnMapRequest::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.component_name) + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.component_name_deprecated) } -// .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; -inline bool MoveOnMapRequest::_internal_has_slam_service_name() const { - return this != internal_default_instance() && slam_service_name_ != nullptr; +// .viam.common.v1.ResourceName slam_service_name_deprecated = 4 [json_name = "slamServiceNameDeprecated", deprecated = true]; +inline bool MoveOnMapRequest::_internal_has_slam_service_name_deprecated() const { + return this != internal_default_instance() && slam_service_name_deprecated_ != nullptr; } -inline bool MoveOnMapRequest::has_slam_service_name() const { - return _internal_has_slam_service_name(); +inline bool MoveOnMapRequest::has_slam_service_name_deprecated() const { + return _internal_has_slam_service_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::_internal_slam_service_name() const { - const ::viam::common::v1::ResourceName* p = slam_service_name_; +inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::_internal_slam_service_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = slam_service_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::slam_service_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) - return _internal_slam_service_name(); +inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::slam_service_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.slam_service_name_deprecated) + return _internal_slam_service_name_deprecated(); } -inline void MoveOnMapRequest::unsafe_arena_set_allocated_slam_service_name( - ::viam::common::v1::ResourceName* slam_service_name) { +inline void MoveOnMapRequest::unsafe_arena_set_allocated_slam_service_name_deprecated( + ::viam::common::v1::ResourceName* slam_service_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_deprecated_); } - slam_service_name_ = slam_service_name; - if (slam_service_name) { + slam_service_name_deprecated_ = slam_service_name_deprecated; + if (slam_service_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name_deprecated) } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_slam_service_name() { +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_slam_service_name_deprecated() { - ::viam::common::v1::ResourceName* temp = slam_service_name_; - slam_service_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = slam_service_name_deprecated_; + slam_service_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6185,45 +6427,45 @@ inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_slam_service_ #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::unsafe_arena_release_slam_service_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::unsafe_arena_release_slam_service_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.slam_service_name_deprecated) - ::viam::common::v1::ResourceName* temp = slam_service_name_; - slam_service_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = slam_service_name_deprecated_; + slam_service_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::_internal_mutable_slam_service_name() { +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::_internal_mutable_slam_service_name_deprecated() { - if (slam_service_name_ == nullptr) { + if (slam_service_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - slam_service_name_ = p; + slam_service_name_deprecated_ = p; } - return slam_service_name_; + return slam_service_name_deprecated_; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_slam_service_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_slam_service_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_slam_service_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_slam_service_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.slam_service_name_deprecated) return _msg; } -inline void MoveOnMapRequest::set_allocated_slam_service_name(::viam::common::v1::ResourceName* slam_service_name) { +inline void MoveOnMapRequest::set_allocated_slam_service_name_deprecated(::viam::common::v1::ResourceName* slam_service_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_deprecated_); } - if (slam_service_name) { + if (slam_service_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_deprecated)); if (message_arena != submessage_arena) { - slam_service_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, slam_service_name, submessage_arena); + slam_service_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, slam_service_name_deprecated, submessage_arena); } } else { } - slam_service_name_ = slam_service_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) + slam_service_name_deprecated_ = slam_service_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name_deprecated) } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; @@ -6353,6 +6595,106 @@ MoveOnMapRequest::obstacles() const { return obstacles_; } +// string component_name = 7 [json_name = "componentName"]; +inline void MoveOnMapRequest::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& MoveOnMapRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnMapRequest::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapRequest.component_name) +} +inline std::string* MoveOnMapRequest::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.component_name) + return _s; +} +inline const std::string& MoveOnMapRequest::_internal_component_name() const { + return component_name_.Get(); +} +inline void MoveOnMapRequest::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveOnMapRequest::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveOnMapRequest::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.component_name) + return component_name_.Release(); +} +inline void MoveOnMapRequest::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.component_name) +} + +// string slam_service_name = 8 [json_name = "slamServiceName"]; +inline void MoveOnMapRequest::clear_slam_service_name() { + slam_service_name_.ClearToEmpty(); +} +inline const std::string& MoveOnMapRequest::slam_service_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) + return _internal_slam_service_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnMapRequest::set_slam_service_name(ArgT0&& arg0, ArgT... args) { + + slam_service_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) +} +inline std::string* MoveOnMapRequest::mutable_slam_service_name() { + std::string* _s = _internal_mutable_slam_service_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) + return _s; +} +inline const std::string& MoveOnMapRequest::_internal_slam_service_name() const { + return slam_service_name_.Get(); +} +inline void MoveOnMapRequest::_internal_set_slam_service_name(const std::string& value) { + + slam_service_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveOnMapRequest::_internal_mutable_slam_service_name() { + + return slam_service_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveOnMapRequest::release_slam_service_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) + return slam_service_name_.Release(); +} +inline void MoveOnMapRequest::set_allocated_slam_service_name(std::string* slam_service_name) { + if (slam_service_name != nullptr) { + + } else { + + } + slam_service_name_.SetAllocated(slam_service_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (slam_service_name_.IsDefault()) { + slam_service_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) +} + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; inline bool MoveOnMapRequest::_internal_has_extra() const { return this != internal_default_instance() && extra_ != nullptr; @@ -6496,39 +6838,39 @@ inline void MoveOnMapResponse::set_allocated_execution_id(std::string* execution // ObstacleDetector -// .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; -inline bool ObstacleDetector::_internal_has_vision_service() const { - return this != internal_default_instance() && vision_service_ != nullptr; +// .viam.common.v1.ResourceName vision_service_deprecated = 1 [json_name = "visionServiceDeprecated", deprecated = true]; +inline bool ObstacleDetector::_internal_has_vision_service_deprecated() const { + return this != internal_default_instance() && vision_service_deprecated_ != nullptr; } -inline bool ObstacleDetector::has_vision_service() const { - return _internal_has_vision_service(); +inline bool ObstacleDetector::has_vision_service_deprecated() const { + return _internal_has_vision_service_deprecated(); } -inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_vision_service() const { - const ::viam::common::v1::ResourceName* p = vision_service_; +inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_vision_service_deprecated() const { + const ::viam::common::v1::ResourceName* p = vision_service_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& ObstacleDetector::vision_service() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.vision_service) - return _internal_vision_service(); +inline const ::viam::common::v1::ResourceName& ObstacleDetector::vision_service_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.vision_service_deprecated) + return _internal_vision_service_deprecated(); } -inline void ObstacleDetector::unsafe_arena_set_allocated_vision_service( - ::viam::common::v1::ResourceName* vision_service) { +inline void ObstacleDetector::unsafe_arena_set_allocated_vision_service_deprecated( + ::viam::common::v1::ResourceName* vision_service_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_deprecated_); } - vision_service_ = vision_service; - if (vision_service) { + vision_service_deprecated_ = vision_service_deprecated; + if (vision_service_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service_deprecated) } -inline ::viam::common::v1::ResourceName* ObstacleDetector::release_vision_service() { +inline ::viam::common::v1::ResourceName* ObstacleDetector::release_vision_service_deprecated() { - ::viam::common::v1::ResourceName* temp = vision_service_; - vision_service_ = nullptr; + ::viam::common::v1::ResourceName* temp = vision_service_deprecated_; + vision_service_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6540,80 +6882,80 @@ inline ::viam::common::v1::ResourceName* ObstacleDetector::release_vision_servic #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_vision_service() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.vision_service) +inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_vision_service_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.vision_service_deprecated) - ::viam::common::v1::ResourceName* temp = vision_service_; - vision_service_ = nullptr; + ::viam::common::v1::ResourceName* temp = vision_service_deprecated_; + vision_service_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_vision_service() { +inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_vision_service_deprecated() { - if (vision_service_ == nullptr) { + if (vision_service_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - vision_service_ = p; + vision_service_deprecated_ = p; } - return vision_service_; + return vision_service_deprecated_; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_vision_service() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_vision_service(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.vision_service) +inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_vision_service_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_vision_service_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.vision_service_deprecated) return _msg; } -inline void ObstacleDetector::set_allocated_vision_service(::viam::common::v1::ResourceName* vision_service) { +inline void ObstacleDetector::set_allocated_vision_service_deprecated(::viam::common::v1::ResourceName* vision_service_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_deprecated_); } - if (vision_service) { + if (vision_service_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_deprecated)); if (message_arena != submessage_arena) { - vision_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vision_service, submessage_arena); + vision_service_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vision_service_deprecated, submessage_arena); } } else { } - vision_service_ = vision_service; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service) + vision_service_deprecated_ = vision_service_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service_deprecated) } -// .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; -inline bool ObstacleDetector::_internal_has_camera() const { - return this != internal_default_instance() && camera_ != nullptr; +// .viam.common.v1.ResourceName camera_deprecated = 2 [json_name = "cameraDeprecated", deprecated = true]; +inline bool ObstacleDetector::_internal_has_camera_deprecated() const { + return this != internal_default_instance() && camera_deprecated_ != nullptr; } -inline bool ObstacleDetector::has_camera() const { - return _internal_has_camera(); +inline bool ObstacleDetector::has_camera_deprecated() const { + return _internal_has_camera_deprecated(); } -inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_camera() const { - const ::viam::common::v1::ResourceName* p = camera_; +inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_camera_deprecated() const { + const ::viam::common::v1::ResourceName* p = camera_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& ObstacleDetector::camera() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.camera) - return _internal_camera(); +inline const ::viam::common::v1::ResourceName& ObstacleDetector::camera_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.camera_deprecated) + return _internal_camera_deprecated(); } -inline void ObstacleDetector::unsafe_arena_set_allocated_camera( - ::viam::common::v1::ResourceName* camera) { +inline void ObstacleDetector::unsafe_arena_set_allocated_camera_deprecated( + ::viam::common::v1::ResourceName* camera_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_deprecated_); } - camera_ = camera; - if (camera) { + camera_deprecated_ = camera_deprecated; + if (camera_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.camera) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.camera_deprecated) } -inline ::viam::common::v1::ResourceName* ObstacleDetector::release_camera() { +inline ::viam::common::v1::ResourceName* ObstacleDetector::release_camera_deprecated() { - ::viam::common::v1::ResourceName* temp = camera_; - camera_ = nullptr; + ::viam::common::v1::ResourceName* temp = camera_deprecated_; + camera_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6625,44 +6967,144 @@ inline ::viam::common::v1::ResourceName* ObstacleDetector::release_camera() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_camera() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.camera) +inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_camera_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.camera_deprecated) - ::viam::common::v1::ResourceName* temp = camera_; - camera_ = nullptr; + ::viam::common::v1::ResourceName* temp = camera_deprecated_; + camera_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_camera() { +inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_camera_deprecated() { - if (camera_ == nullptr) { + if (camera_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - camera_ = p; + camera_deprecated_ = p; } - return camera_; + return camera_deprecated_; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_camera() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_camera(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.camera) +inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_camera_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_camera_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.camera_deprecated) return _msg; } -inline void ObstacleDetector::set_allocated_camera(::viam::common::v1::ResourceName* camera) { +inline void ObstacleDetector::set_allocated_camera_deprecated(::viam::common::v1::ResourceName* camera_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_deprecated_); } - if (camera) { + if (camera_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_deprecated)); if (message_arena != submessage_arena) { - camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, camera, submessage_arena); + camera_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, camera_deprecated, submessage_arena); } } else { } - camera_ = camera; + camera_deprecated_ = camera_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.camera_deprecated) +} + +// string vision_service = 3 [json_name = "visionService"]; +inline void ObstacleDetector::clear_vision_service() { + vision_service_.ClearToEmpty(); +} +inline const std::string& ObstacleDetector::vision_service() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.vision_service) + return _internal_vision_service(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ObstacleDetector::set_vision_service(ArgT0&& arg0, ArgT... args) { + + vision_service_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.ObstacleDetector.vision_service) +} +inline std::string* ObstacleDetector::mutable_vision_service() { + std::string* _s = _internal_mutable_vision_service(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.vision_service) + return _s; +} +inline const std::string& ObstacleDetector::_internal_vision_service() const { + return vision_service_.Get(); +} +inline void ObstacleDetector::_internal_set_vision_service(const std::string& value) { + + vision_service_.Set(value, GetArenaForAllocation()); +} +inline std::string* ObstacleDetector::_internal_mutable_vision_service() { + + return vision_service_.Mutable(GetArenaForAllocation()); +} +inline std::string* ObstacleDetector::release_vision_service() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.vision_service) + return vision_service_.Release(); +} +inline void ObstacleDetector::set_allocated_vision_service(std::string* vision_service) { + if (vision_service != nullptr) { + + } else { + + } + vision_service_.SetAllocated(vision_service, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (vision_service_.IsDefault()) { + vision_service_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service) +} + +// string camera = 4 [json_name = "camera"]; +inline void ObstacleDetector::clear_camera() { + camera_.ClearToEmpty(); +} +inline const std::string& ObstacleDetector::camera() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.camera) + return _internal_camera(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ObstacleDetector::set_camera(ArgT0&& arg0, ArgT... args) { + + camera_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.ObstacleDetector.camera) +} +inline std::string* ObstacleDetector::mutable_camera() { + std::string* _s = _internal_mutable_camera(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.camera) + return _s; +} +inline const std::string& ObstacleDetector::_internal_camera() const { + return camera_.Get(); +} +inline void ObstacleDetector::_internal_set_camera(const std::string& value) { + + camera_.Set(value, GetArenaForAllocation()); +} +inline std::string* ObstacleDetector::_internal_mutable_camera() { + + return camera_.Mutable(GetArenaForAllocation()); +} +inline std::string* ObstacleDetector::release_camera() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.camera) + return camera_.Release(); +} +inline void ObstacleDetector::set_allocated_camera(std::string* camera) { + if (camera != nullptr) { + + } else { + + } + camera_.SetAllocated(camera, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (camera_.IsDefault()) { + camera_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.camera) } @@ -7017,39 +7459,39 @@ inline void MoveOnGlobeRequest::set_heading(double value) { // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnGlobeRequest.heading) } -// .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; -inline bool MoveOnGlobeRequest::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 4 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool MoveOnGlobeRequest::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool MoveOnGlobeRequest::has_component_name() const { - return _internal_has_component_name(); +inline bool MoveOnGlobeRequest::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_component_name() { +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7061,80 +7503,80 @@ inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_component_n #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.component_name) +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.component_name) +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.component_name_deprecated) return _msg; } -inline void MoveOnGlobeRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void MoveOnGlobeRequest::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.component_name) + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.component_name_deprecated) } -// .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; -inline bool MoveOnGlobeRequest::_internal_has_movement_sensor_name() const { - return this != internal_default_instance() && movement_sensor_name_ != nullptr; +// .viam.common.v1.ResourceName movement_sensor_name_deprecated = 5 [json_name = "movementSensorNameDeprecated", deprecated = true]; +inline bool MoveOnGlobeRequest::_internal_has_movement_sensor_name_deprecated() const { + return this != internal_default_instance() && movement_sensor_name_deprecated_ != nullptr; } -inline bool MoveOnGlobeRequest::has_movement_sensor_name() const { - return _internal_has_movement_sensor_name(); +inline bool MoveOnGlobeRequest::has_movement_sensor_name_deprecated() const { + return _internal_has_movement_sensor_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_internal_movement_sensor_name() const { - const ::viam::common::v1::ResourceName* p = movement_sensor_name_; +inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_internal_movement_sensor_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = movement_sensor_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::movement_sensor_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) - return _internal_movement_sensor_name(); +inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::movement_sensor_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name_deprecated) + return _internal_movement_sensor_name_deprecated(); } -inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_movement_sensor_name( - ::viam::common::v1::ResourceName* movement_sensor_name) { +inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_movement_sensor_name_deprecated( + ::viam::common::v1::ResourceName* movement_sensor_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name_deprecated_); } - movement_sensor_name_ = movement_sensor_name; - if (movement_sensor_name) { + movement_sensor_name_deprecated_ = movement_sensor_name_deprecated; + if (movement_sensor_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name_deprecated) } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_movement_sensor_name() { +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_movement_sensor_name_deprecated() { - ::viam::common::v1::ResourceName* temp = movement_sensor_name_; - movement_sensor_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = movement_sensor_name_deprecated_; + movement_sensor_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7146,45 +7588,45 @@ inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_movement_se #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::unsafe_arena_release_movement_sensor_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::unsafe_arena_release_movement_sensor_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name_deprecated) - ::viam::common::v1::ResourceName* temp = movement_sensor_name_; - movement_sensor_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = movement_sensor_name_deprecated_; + movement_sensor_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::_internal_mutable_movement_sensor_name() { +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::_internal_mutable_movement_sensor_name_deprecated() { - if (movement_sensor_name_ == nullptr) { + if (movement_sensor_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - movement_sensor_name_ = p; + movement_sensor_name_deprecated_ = p; } - return movement_sensor_name_; + return movement_sensor_name_deprecated_; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_movement_sensor_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_movement_sensor_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_movement_sensor_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_movement_sensor_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name_deprecated) return _msg; } -inline void MoveOnGlobeRequest::set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* movement_sensor_name) { +inline void MoveOnGlobeRequest::set_allocated_movement_sensor_name_deprecated(::viam::common::v1::ResourceName* movement_sensor_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name_deprecated_); } - if (movement_sensor_name) { + if (movement_sensor_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name_deprecated)); if (message_arena != submessage_arena) { - movement_sensor_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, movement_sensor_name, submessage_arena); + movement_sensor_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, movement_sensor_name_deprecated, submessage_arena); } } else { } - movement_sensor_name_ = movement_sensor_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) + movement_sensor_name_deprecated_ = movement_sensor_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name_deprecated) } // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; @@ -7351,6 +7793,106 @@ MoveOnGlobeRequest::bounding_regions() const { return bounding_regions_; } +// string component_name = 9 [json_name = "componentName"]; +inline void MoveOnGlobeRequest::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& MoveOnGlobeRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnGlobeRequest::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnGlobeRequest.component_name) +} +inline std::string* MoveOnGlobeRequest::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.component_name) + return _s; +} +inline const std::string& MoveOnGlobeRequest::_internal_component_name() const { + return component_name_.Get(); +} +inline void MoveOnGlobeRequest::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveOnGlobeRequest::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveOnGlobeRequest::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.component_name) + return component_name_.Release(); +} +inline void MoveOnGlobeRequest::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.component_name) +} + +// string movement_sensor_name = 10 [json_name = "movementSensorName"]; +inline void MoveOnGlobeRequest::clear_movement_sensor_name() { + movement_sensor_name_.ClearToEmpty(); +} +inline const std::string& MoveOnGlobeRequest::movement_sensor_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) + return _internal_movement_sensor_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnGlobeRequest::set_movement_sensor_name(ArgT0&& arg0, ArgT... args) { + + movement_sensor_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) +} +inline std::string* MoveOnGlobeRequest::mutable_movement_sensor_name() { + std::string* _s = _internal_mutable_movement_sensor_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) + return _s; +} +inline const std::string& MoveOnGlobeRequest::_internal_movement_sensor_name() const { + return movement_sensor_name_.Get(); +} +inline void MoveOnGlobeRequest::_internal_set_movement_sensor_name(const std::string& value) { + + movement_sensor_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* MoveOnGlobeRequest::_internal_mutable_movement_sensor_name() { + + return movement_sensor_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* MoveOnGlobeRequest::release_movement_sensor_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) + return movement_sensor_name_.Release(); +} +inline void MoveOnGlobeRequest::set_allocated_movement_sensor_name(std::string* movement_sensor_name) { + if (movement_sensor_name != nullptr) { + + } else { + + } + movement_sensor_name_.SetAllocated(movement_sensor_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (movement_sensor_name_.IsDefault()) { + movement_sensor_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) +} + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; inline bool MoveOnGlobeRequest::_internal_has_extra() const { return this != internal_default_instance() && extra_ != nullptr; @@ -7544,39 +8086,39 @@ inline void GetPoseRequest::set_allocated_name(std::string* name) { // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.name) } -// .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; -inline bool GetPoseRequest::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool GetPoseRequest::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool GetPoseRequest::has_component_name() const { - return _internal_has_component_name(); +inline bool GetPoseRequest::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& GetPoseRequest::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& GetPoseRequest::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& GetPoseRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& GetPoseRequest::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void GetPoseRequest::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void GetPoseRequest::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* GetPoseRequest::release_component_name() { +inline ::viam::common::v1::ResourceName* GetPoseRequest::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7588,45 +8130,45 @@ inline ::viam::common::v1::ResourceName* GetPoseRequest::release_component_name( #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* GetPoseRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.component_name) +inline ::viam::common::v1::ResourceName* GetPoseRequest::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* GetPoseRequest::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* GetPoseRequest::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* GetPoseRequest::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.component_name) +inline ::viam::common::v1::ResourceName* GetPoseRequest::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.component_name_deprecated) return _msg; } -inline void GetPoseRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void GetPoseRequest::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name) + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name_deprecated) } // string destination_frame = 3 [json_name = "destinationFrame"]; @@ -7716,6 +8258,56 @@ GetPoseRequest::supplemental_transforms() const { return supplemental_transforms_; } +// string component_name = 5 [json_name = "componentName"]; +inline void GetPoseRequest::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& GetPoseRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPoseRequest::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPoseRequest.component_name) +} +inline std::string* GetPoseRequest::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.component_name) + return _s; +} +inline const std::string& GetPoseRequest::_internal_component_name() const { + return component_name_.Get(); +} +inline void GetPoseRequest::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPoseRequest::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPoseRequest::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.component_name) + return component_name_.Release(); +} +inline void GetPoseRequest::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name) +} + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; inline bool GetPoseRequest::_internal_has_extra() const { return this != internal_default_instance() && extra_ != nullptr; @@ -7944,39 +8536,39 @@ inline void StopPlanRequest::set_allocated_name(std::string* name) { // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.StopPlanRequest.name) } -// .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; -inline bool StopPlanRequest::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool StopPlanRequest::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool StopPlanRequest::has_component_name() const { - return _internal_has_component_name(); +inline bool StopPlanRequest::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& StopPlanRequest::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& StopPlanRequest::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& StopPlanRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.StopPlanRequest.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& StopPlanRequest::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.StopPlanRequest.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void StopPlanRequest::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void StopPlanRequest::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.StopPlanRequest.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.StopPlanRequest.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* StopPlanRequest::release_component_name() { +inline ::viam::common::v1::ResourceName* StopPlanRequest::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7988,44 +8580,94 @@ inline ::viam::common::v1::ResourceName* StopPlanRequest::release_component_name #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* StopPlanRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.StopPlanRequest.component_name) +inline ::viam::common::v1::ResourceName* StopPlanRequest::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.StopPlanRequest.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* StopPlanRequest::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* StopPlanRequest::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* StopPlanRequest::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.StopPlanRequest.component_name) +inline ::viam::common::v1::ResourceName* StopPlanRequest::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.StopPlanRequest.component_name_deprecated) return _msg; } -inline void StopPlanRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void StopPlanRequest::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.StopPlanRequest.component_name_deprecated) +} + +// string component_name = 3 [json_name = "componentName"]; +inline void StopPlanRequest::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& StopPlanRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.StopPlanRequest.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StopPlanRequest::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.StopPlanRequest.component_name) +} +inline std::string* StopPlanRequest::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.StopPlanRequest.component_name) + return _s; +} +inline const std::string& StopPlanRequest::_internal_component_name() const { + return component_name_.Get(); +} +inline void StopPlanRequest::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StopPlanRequest::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StopPlanRequest::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.StopPlanRequest.component_name) + return component_name_.Release(); +} +inline void StopPlanRequest::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.StopPlanRequest.component_name) } @@ -8375,39 +9017,39 @@ inline void GetPlanRequest::set_allocated_name(std::string* name) { // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.name) } -// .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; -inline bool GetPlanRequest::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool GetPlanRequest::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool GetPlanRequest::has_component_name() const { - return _internal_has_component_name(); +inline bool GetPlanRequest::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& GetPlanRequest::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& GetPlanRequest::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& GetPlanRequest::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& GetPlanRequest::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void GetPlanRequest::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void GetPlanRequest::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPlanRequest.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPlanRequest.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* GetPlanRequest::release_component_name() { +inline ::viam::common::v1::ResourceName* GetPlanRequest::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8419,45 +9061,45 @@ inline ::viam::common::v1::ResourceName* GetPlanRequest::release_component_name( #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* GetPlanRequest::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanRequest.component_name) +inline ::viam::common::v1::ResourceName* GetPlanRequest::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanRequest.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* GetPlanRequest::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* GetPlanRequest::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* GetPlanRequest::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanRequest.component_name) +inline ::viam::common::v1::ResourceName* GetPlanRequest::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanRequest.component_name_deprecated) return _msg; } -inline void GetPlanRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void GetPlanRequest::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.component_name) + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.component_name_deprecated) } // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; @@ -8548,6 +9190,56 @@ inline void GetPlanRequest::set_allocated_execution_id(std::string* execution_id // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.execution_id) } +// string component_name = 5 [json_name = "componentName"]; +inline void GetPlanRequest::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& GetPlanRequest::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPlanRequest::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPlanRequest.component_name) +} +inline std::string* GetPlanRequest::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanRequest.component_name) + return _s; +} +inline const std::string& GetPlanRequest::_internal_component_name() const { + return component_name_.Get(); +} +inline void GetPlanRequest::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPlanRequest::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPlanRequest::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanRequest.component_name) + return component_name_.Release(); +} +inline void GetPlanRequest::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.component_name) +} + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; inline bool GetPlanRequest::_internal_has_extra() const { return this != internal_default_instance() && extra_ != nullptr; @@ -9509,39 +10201,39 @@ inline void PlanStatusWithID::set_allocated_plan_id(std::string* plan_id) { // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.plan_id) } -// .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; -inline bool PlanStatusWithID::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool PlanStatusWithID::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool PlanStatusWithID::has_component_name() const { - return _internal_has_component_name(); +inline bool PlanStatusWithID::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& PlanStatusWithID::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& PlanStatusWithID::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& PlanStatusWithID::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatusWithID.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& PlanStatusWithID::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatusWithID.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void PlanStatusWithID::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void PlanStatusWithID::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.PlanStatusWithID.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.PlanStatusWithID.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* PlanStatusWithID::release_component_name() { +inline ::viam::common::v1::ResourceName* PlanStatusWithID::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -9553,45 +10245,45 @@ inline ::viam::common::v1::ResourceName* PlanStatusWithID::release_component_nam #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* PlanStatusWithID::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatusWithID.component_name) +inline ::viam::common::v1::ResourceName* PlanStatusWithID::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatusWithID.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* PlanStatusWithID::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* PlanStatusWithID::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* PlanStatusWithID::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatusWithID.component_name) +inline ::viam::common::v1::ResourceName* PlanStatusWithID::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatusWithID.component_name_deprecated) return _msg; } -inline void PlanStatusWithID::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void PlanStatusWithID::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.component_name) + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.component_name_deprecated) } // string execution_id = 3 [json_name = "executionId"]; @@ -9734,6 +10426,56 @@ inline void PlanStatusWithID::set_allocated_status(::viam::service::motion::v1:: // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.status) } +// string component_name = 5 [json_name = "componentName"]; +inline void PlanStatusWithID::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& PlanStatusWithID::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatusWithID.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PlanStatusWithID::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.PlanStatusWithID.component_name) +} +inline std::string* PlanStatusWithID::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatusWithID.component_name) + return _s; +} +inline const std::string& PlanStatusWithID::_internal_component_name() const { + return component_name_.Get(); +} +inline void PlanStatusWithID::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* PlanStatusWithID::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* PlanStatusWithID::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatusWithID.component_name) + return component_name_.Release(); +} +inline void PlanStatusWithID::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.component_name) +} + // ------------------------------------------------------------------- // PlanStatus @@ -9965,39 +10707,39 @@ inline void Plan::set_allocated_id(std::string* id) { // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.Plan.id) } -// .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; -inline bool Plan::_internal_has_component_name() const { - return this != internal_default_instance() && component_name_ != nullptr; +// .viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; +inline bool Plan::_internal_has_component_name_deprecated() const { + return this != internal_default_instance() && component_name_deprecated_ != nullptr; } -inline bool Plan::has_component_name() const { - return _internal_has_component_name(); +inline bool Plan::has_component_name_deprecated() const { + return _internal_has_component_name_deprecated(); } -inline const ::viam::common::v1::ResourceName& Plan::_internal_component_name() const { - const ::viam::common::v1::ResourceName* p = component_name_; +inline const ::viam::common::v1::ResourceName& Plan::_internal_component_name_deprecated() const { + const ::viam::common::v1::ResourceName* p = component_name_deprecated_; return p != nullptr ? *p : reinterpret_cast( ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& Plan::component_name() const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.Plan.component_name) - return _internal_component_name(); +inline const ::viam::common::v1::ResourceName& Plan::component_name_deprecated() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.Plan.component_name_deprecated) + return _internal_component_name_deprecated(); } -inline void Plan::unsafe_arena_set_allocated_component_name( - ::viam::common::v1::ResourceName* component_name) { +inline void Plan::unsafe_arena_set_allocated_component_name_deprecated( + ::viam::common::v1::ResourceName* component_name_deprecated) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - component_name_ = component_name; - if (component_name) { + component_name_deprecated_ = component_name_deprecated; + if (component_name_deprecated) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.Plan.component_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.Plan.component_name_deprecated) } -inline ::viam::common::v1::ResourceName* Plan::release_component_name() { +inline ::viam::common::v1::ResourceName* Plan::release_component_name_deprecated() { - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -10009,45 +10751,45 @@ inline ::viam::common::v1::ResourceName* Plan::release_component_name() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::viam::common::v1::ResourceName* Plan::unsafe_arena_release_component_name() { - // @@protoc_insertion_point(field_release:viam.service.motion.v1.Plan.component_name) +inline ::viam::common::v1::ResourceName* Plan::unsafe_arena_release_component_name_deprecated() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.Plan.component_name_deprecated) - ::viam::common::v1::ResourceName* temp = component_name_; - component_name_ = nullptr; + ::viam::common::v1::ResourceName* temp = component_name_deprecated_; + component_name_deprecated_ = nullptr; return temp; } -inline ::viam::common::v1::ResourceName* Plan::_internal_mutable_component_name() { +inline ::viam::common::v1::ResourceName* Plan::_internal_mutable_component_name_deprecated() { - if (component_name_ == nullptr) { + if (component_name_deprecated_ == nullptr) { auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); - component_name_ = p; + component_name_deprecated_ = p; } - return component_name_; + return component_name_deprecated_; } -inline ::viam::common::v1::ResourceName* Plan::mutable_component_name() { - ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Plan.component_name) +inline ::viam::common::v1::ResourceName* Plan::mutable_component_name_deprecated() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name_deprecated(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Plan.component_name_deprecated) return _msg; } -inline void Plan::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { +inline void Plan::set_allocated_component_name_deprecated(::viam::common::v1::ResourceName* component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated_); } - if (component_name) { + if (component_name_deprecated) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_deprecated)); if (message_arena != submessage_arena) { - component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component_name, submessage_arena); + component_name_deprecated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name_deprecated, submessage_arena); } } else { } - component_name_ = component_name; - // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.Plan.component_name) + component_name_deprecated_ = component_name_deprecated; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.Plan.component_name_deprecated) } // string execution_id = 3 [json_name = "executionId"]; @@ -10140,6 +10882,56 @@ Plan::steps() const { return steps_; } +// string component_name = 5 [json_name = "componentName"]; +inline void Plan::clear_component_name() { + component_name_.ClearToEmpty(); +} +inline const std::string& Plan::component_name() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.Plan.component_name) + return _internal_component_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Plan::set_component_name(ArgT0&& arg0, ArgT... args) { + + component_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.motion.v1.Plan.component_name) +} +inline std::string* Plan::mutable_component_name() { + std::string* _s = _internal_mutable_component_name(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Plan.component_name) + return _s; +} +inline const std::string& Plan::_internal_component_name() const { + return component_name_.Get(); +} +inline void Plan::_internal_set_component_name(const std::string& value) { + + component_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Plan::_internal_mutable_component_name() { + + return component_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Plan::release_component_name() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.Plan.component_name) + return component_name_.Release(); +} +inline void Plan::set_allocated_component_name(std::string* component_name) { + if (component_name != nullptr) { + + } else { + + } + component_name_.SetAllocated(component_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (component_name_.IsDefault()) { + component_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.Plan.component_name) +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/src/viam/sdk/services/motion.hpp b/src/viam/sdk/services/motion.hpp index 8da6ee637..2e77801b2 100644 --- a/src/viam/sdk/services/motion.hpp +++ b/src/viam/sdk/services/motion.hpp @@ -22,9 +22,10 @@ namespace sdk { /// @ingroup Motion struct obstacle_detector { /// @brief The name of the vision service to be used for obstacle detection. - Name vision_service; + std::string vision_service; + /// @brief The name of the camera component to be used for obstacle detection. - Name camera; + std::string camera; friend bool operator==(const obstacle_detector& lhs, const obstacle_detector& rhs); friend std::ostream& operator<<(std::ostream& os, const obstacle_detector& v); @@ -102,7 +103,7 @@ class Motion : public Service { std::string plan_id; /// @brief The component to be moved. Used for tracking and stopping. - Name component_name; + std::string component_name; /// @brief The unique ID which identifies the plan execution. std::string execution_id; @@ -126,7 +127,7 @@ class Motion : public Service { std::string id; /// @brief The component requested to be moved. Used for tracking and stopping. - Name component_name; + std::string component_name; /// @brief The unique ID which identifies the execution. /// Multiple plans can share the same execution_id if they were generated due to replanning. @@ -198,7 +199,7 @@ class Motion : public Service { /// @param constraints Constraints to apply to how the robot will move. /// @return Whether or not the move was successful. inline bool move(const pose_in_frame& destination, - const Name& name, + const std::string& name, const std::shared_ptr& world_state, const std::shared_ptr& constraints) { return move(destination, name, world_state, constraints, {}); @@ -213,7 +214,7 @@ class Motion : public Service { /// @param extra Any additional arguments to the method. /// @return Whether or not the move was successful. virtual bool move(const pose_in_frame& destination, - const Name& name, + const std::string& name, const std::shared_ptr& world_state, const std::shared_ptr& constraints, const ProtoStruct& extra) = 0; @@ -226,8 +227,8 @@ class Motion : public Service { /// @return The execution ID of the move_on_map request. inline std::string move_on_map( const pose& destination, - const Name& component_name, - const Name& slam_name, + const std::string& component_name, + const std::string& slam_name, const std::shared_ptr& motion_configuration, const std::vector& obstacles) { return move_on_map( @@ -243,8 +244,8 @@ class Motion : public Service { /// @return The execution ID of the move_on_map request. virtual std::string move_on_map( const pose& destination, - const Name& component_name, - const Name& slam_name, + const std::string& component_name, + const std::string& slam_name, const std::shared_ptr& motion_configuration, const std::vector& obstacles, const ProtoStruct& extra) = 0; @@ -262,8 +263,8 @@ class Motion : public Service { inline std::string move_on_globe( const geo_point& destination, const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, + const std::string& component_name, + const std::string& movement_sensor_name, const std::vector& obstacles, const std::shared_ptr& motion_configuration, const std::vector& bounding_regions) { @@ -291,8 +292,8 @@ class Motion : public Service { virtual std::string move_on_globe( const geo_point& destination, const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, + const std::string& component_name, + const std::string& movement_sensor_name, const std::vector& obstacles, const std::shared_ptr& motion_configuration, const std::vector& bounding_regions, @@ -306,7 +307,7 @@ class Motion : public Service { /// needed to compute the component's pose. /// @return The pose of the component. inline pose_in_frame get_pose( - const Name& component_name, + const std::string& component_name, const std::string& destination_frame, const std::vector& supplemental_transforms) { return get_pose(component_name, destination_frame, supplemental_transforms, {}); @@ -321,28 +322,28 @@ class Motion : public Service { /// @param extra Any additional arguments to the method. /// @return The pose of the component. virtual pose_in_frame get_pose( - const Name& component_name, + const std::string& component_name, const std::string& destination_frame, const std::vector& supplemental_transforms, const ProtoStruct& extra) = 0; /// @brief Stop a currently executing motion plan. /// @param component_name the component of the currently executing plan to stop. - inline void stop_plan(const Name& component_name) { + inline void stop_plan(const std::string& component_name) { return stop_plan(component_name, {}); } /// @brief Stop a currently executing motion plan. /// @param component_name the component of the currently executing plan to stop. /// @param extra Any additional arguments to the method. - virtual void stop_plan(const Name& component_name, const ProtoStruct& extra) = 0; + virtual void stop_plan(const std::string& component_name, const ProtoStruct& extra) = 0; /// @brief Returns the plan and state history of the most recent execution to move a component. /// Returns a result if the last execution is still executing, or changed state within the last /// 24 hours without an intervening robot reinitialization. /// @param component_name The name of the component which the MoveOnGlobe request asked to move. /// @return the plan and status of the most recent execution to move the requested component - inline plan_with_status get_latest_plan(const Name& component_name) { + inline plan_with_status get_latest_plan(const std::string& component_name) { return get_latest_plan(component_name, {}); } @@ -352,7 +353,7 @@ class Motion : public Service { /// @param component_name The name of the component which the MoveOnGlobe request asked to move. /// @param extra Any additional arguments to the method. /// @return the plan and status of the most recent execution to move the requested component - virtual plan_with_status get_latest_plan(const Name& component_name, + virtual plan_with_status get_latest_plan(const std::string& component_name, const ProtoStruct& extra) = 0; /// @brief Returns the plan, state history, and replan history of the most recent execution to @@ -362,7 +363,7 @@ class Motion : public Service { /// @return a pair of (1) the plan and status and (2) the replan history of the most recent /// execution to move the requested component inline std::pair> - get_latest_plan_with_replan_history(Name component_name) { + get_latest_plan_with_replan_history(const std::string& component_name) { return get_latest_plan_with_replan_history(component_name, {}); } @@ -374,7 +375,8 @@ class Motion : public Service { /// @return a pair of (1) the plan and status and (2) the replan history of the most recent /// execution to move the requested component virtual std::pair> - get_latest_plan_with_replan_history(const Name& component_name, const ProtoStruct& extra) = 0; + get_latest_plan_with_replan_history(const std::string& component_name, + const ProtoStruct& extra) = 0; /// @brief Returns the plan and state history of the requested plan. Returns a result /// if the last execution is still executing, or changed state within the last 24 hours @@ -382,7 +384,8 @@ class Motion : public Service { /// @param component_name The name of the component which the MoveOnGlobe request asked to move. /// @param execution_id The execution id of the requested plan. /// @return the plan and status of the requested execution's move the requested component - inline plan_with_status get_plan(const Name& component_name, const std::string& execution_id) { + inline plan_with_status get_plan(const std::string& component_name, + const std::string& execution_id) { return get_plan(component_name, execution_id, {}); } @@ -393,7 +396,7 @@ class Motion : public Service { /// @param execution_id The execution id of the requested plan. /// @param extra Any additional arguments to the method. /// @return the plan and status of the requested execution's move the requested component - virtual plan_with_status get_plan(const Name& component_name, + virtual plan_with_status get_plan(const std::string& component_name, const std::string& execution_id, const ProtoStruct& extra) = 0; @@ -405,7 +408,7 @@ class Motion : public Service { /// @return a pair of (1) the plan and status and (2) the replan history of the most recent /// execution to move the requested component inline std::pair> get_plan_with_replan_history( - const Name& component_name, const std::string& execution_id) { + const std::string& component_name, const std::string& execution_id) { return get_plan_with_replan_history(component_name, execution_id, {}); } @@ -418,7 +421,9 @@ class Motion : public Service { /// @return a pair of (1) the plan and status and (2) the replan history of the most recent /// execution to move the requested component virtual std::pair> get_plan_with_replan_history( - const Name& component_name, const std::string& execution_id, const ProtoStruct& extra) = 0; + const std::string& component_name, + const std::string& execution_id, + const ProtoStruct& extra) = 0; /// @brief Returns the status of plans created by MoveOnGlobe requests. /// Includes statuses of plans that are executing, or are part of an executing that changed diff --git a/src/viam/sdk/services/private/motion_client.cpp b/src/viam/sdk/services/private/motion_client.cpp index eddcd959e..1b8c48122 100644 --- a/src/viam/sdk/services/private/motion_client.cpp +++ b/src/viam/sdk/services/private/motion_client.cpp @@ -22,8 +22,8 @@ using sdk::to_proto; service::motion::v1::ObstacleDetector to_proto(const obstacle_detector& od) { service::motion::v1::ObstacleDetector proto; - *proto.mutable_vision_service() = to_proto(od.vision_service); - *proto.mutable_camera() = to_proto(od.camera); + *proto.mutable_vision_service() = od.vision_service; + *proto.mutable_camera() = od.camera; return proto; } @@ -130,7 +130,7 @@ std::vector from_proto( Motion::plan_status_with_id from_proto(const service::motion::v1::PlanStatusWithID& proto) { Motion::plan_status_with_id pswi; pswi.execution_id = proto.execution_id(); - pswi.component_name = from_proto(proto.component_name()); + pswi.component_name = proto.component_name(); pswi.plan_id = proto.plan_id(); pswi.status = from_proto(proto.status()); @@ -155,7 +155,7 @@ Motion::plan plan_from_proto(const service::motion::v1::Plan& proto) { Motion::plan plan; plan.id = proto.id(); plan.execution_id = proto.execution_id(); - plan.component_name = from_proto(proto.component_name()); + plan.component_name = proto.component_name(); plan.steps = steps_from_proto(proto.steps()); return plan; } @@ -184,14 +184,14 @@ MotionClient::MotionClient(std::string name, std::shared_ptr chan channel_(std::move(channel)) {} bool MotionClient::move(const pose_in_frame& destination, - const Name& component_name, + const std::string& component_name, const std::shared_ptr& world_state, const std::shared_ptr& constraints, const ProtoStruct& extra) { return make_client_helper(this, *stub_, &StubType::Move) .with(extra, [&](auto& request) { - *request.mutable_component_name() = to_proto(component_name); + *request.mutable_component_name() = component_name; *request.mutable_destination() = to_proto(destination); if (constraints) { *request.mutable_constraints() = to_proto(*constraints); @@ -205,8 +205,8 @@ bool MotionClient::move(const pose_in_frame& destination, std::string MotionClient::move_on_map( const pose& destination, - const Name& component_name, - const Name& slam_name, + const std::string& component_name, + const std::string& slam_name, const std::shared_ptr& motion_configuration, const std::vector& obstacles, const ProtoStruct& extra) { @@ -214,8 +214,8 @@ std::string MotionClient::move_on_map( .with(extra, [&](auto& request) { *request.mutable_destination() = to_proto(destination); - *request.mutable_component_name() = to_proto(component_name); - *request.mutable_slam_service_name() = to_proto(slam_name); + *request.mutable_component_name() = component_name; + *request.mutable_slam_service_name() = slam_name; for (const auto& obstacle : obstacles) { *request.mutable_obstacles()->Add() = to_proto(obstacle); @@ -231,8 +231,8 @@ std::string MotionClient::move_on_map( std::string MotionClient::move_on_globe( const geo_point& destination, const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, + const std::string& component_name, + const std::string& movement_sensor_name, const std::vector& obstacles, const std::shared_ptr& motion_configuration, const std::vector& bounding_regions, @@ -241,8 +241,8 @@ std::string MotionClient::move_on_globe( .with(extra, [&](auto& request) { *request.mutable_destination() = to_proto(destination); - *request.mutable_component_name() = to_proto(component_name); - *request.mutable_movement_sensor_name() = to_proto(movement_sensor_name); + *request.mutable_component_name() = component_name; + *request.mutable_movement_sensor_name() = movement_sensor_name; if (heading && !isnan(*heading)) { request.set_heading(*heading); @@ -260,14 +260,14 @@ std::string MotionClient::move_on_globe( } pose_in_frame MotionClient::get_pose( - const Name& component_name, + const std::string& component_name, const std::string& destination_frame, const std::vector& supplemental_transforms, const ProtoStruct& extra) { return make_client_helper(this, *stub_, &StubType::GetPose) .with(extra, [&](auto& request) { - *request.mutable_component_name() = to_proto(component_name); + *request.mutable_component_name() = component_name; *request.mutable_destination_frame() = destination_frame; *request.mutable_supplemental_transforms() = impl::to_repeated_field(supplemental_transforms); @@ -275,21 +275,21 @@ pose_in_frame MotionClient::get_pose( .invoke([](auto& response) { return from_proto(response.pose()); }); } -void MotionClient::stop_plan(const Name& name, const ProtoStruct& extra) { +void MotionClient::stop_plan(const std::string& name, const ProtoStruct& extra) { return make_client_helper(this, *stub_, &StubType::StopPlan) - .with(extra, [&](auto& request) { *request.mutable_component_name() = to_proto(name); }) + .with(extra, [&](auto& request) { *request.mutable_component_name() = name; }) .invoke(); } std::pair> MotionClient::get_plan_( - const Name& component_name, + const std::string& component_name, boost::optional execution_id, bool last_plan_only, const ProtoStruct& extra) { return make_client_helper(this, *stub_, &StubType::GetPlan) .with(extra, [&](auto& request) { - *request.mutable_component_name() = to_proto(component_name); + *request.mutable_component_name() = component_name; request.set_last_plan_only(last_plan_only); if (execution_id) { *request.mutable_execution_id() = *execution_id; @@ -302,25 +302,27 @@ std::pair> Motio }); } -Motion::plan_with_status MotionClient::get_plan(const Name& name, +Motion::plan_with_status MotionClient::get_plan(const std::string& name, const std::string& execution_id, const ProtoStruct& extra) { return get_plan_(name, execution_id, true, extra).first; } -Motion::plan_with_status MotionClient::get_latest_plan(const Name& name, const ProtoStruct& extra) { +Motion::plan_with_status MotionClient::get_latest_plan(const std::string& name, + const ProtoStruct& extra) { return get_plan_(name, {}, true, extra).first; } std::pair> -MotionClient::get_plan_with_replan_history(const Name& name, +MotionClient::get_plan_with_replan_history(const std::string& name, const std::string& execution_id, const ProtoStruct& extra) { return get_plan_(name, execution_id, false, extra); } std::pair> -MotionClient::get_latest_plan_with_replan_history(const Name& name, const ProtoStruct& extra) { +MotionClient::get_latest_plan_with_replan_history(const std::string& name, + const ProtoStruct& extra) { return get_plan_(name, {}, false, extra); } diff --git a/src/viam/sdk/services/private/motion_client.hpp b/src/viam/sdk/services/private/motion_client.hpp index 1fc57141c..6135fcc69 100644 --- a/src/viam/sdk/services/private/motion_client.hpp +++ b/src/viam/sdk/services/private/motion_client.hpp @@ -21,48 +21,48 @@ class MotionClient : public Motion { using interface_type = Motion; MotionClient(std::string name, std::shared_ptr channel); bool move(const pose_in_frame& destination, - const Name& component_name, + const std::string& component_name, const std::shared_ptr& world_state, const std::shared_ptr& constraints, const ProtoStruct& extra) override; std::string move_on_map(const pose& destination, - const Name& component_name, - const Name& slam_name, + const std::string& component_name, + const std::string& slam_name, const std::shared_ptr& motion_configuration, const std::vector& obstacles, const ProtoStruct& extra) override; std::string move_on_globe(const geo_point& destination, const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, + const std::string& component_name, + const std::string& movement_sensor_name, const std::vector& obstacles, const std::shared_ptr& motion_configuration, const std::vector& bounding_regions, const ProtoStruct& extra) override; - pose_in_frame get_pose(const Name& component_name, + pose_in_frame get_pose(const std::string& component_name, const std::string& destination_frame, const std::vector& supplemental_transforms, const ProtoStruct& extra) override; - void stop_plan(const Name& component_name, const ProtoStruct& extra) override; + void stop_plan(const std::string& component_name, const ProtoStruct& extra) override; - Motion::plan_with_status get_latest_plan(const Name& component_name, + Motion::plan_with_status get_latest_plan(const std::string& component_name, const ProtoStruct& extra) override; std::pair> - get_latest_plan_with_replan_history(const Name& component_name, + get_latest_plan_with_replan_history(const std::string& component_name, const ProtoStruct& extra) override; - Motion::plan_with_status get_plan(const Name& component_name, + Motion::plan_with_status get_plan(const std::string& component_name, const std::string& execution_id, const ProtoStruct& extra) override; std::pair> - get_plan_with_replan_history(const Name& component_name, + get_plan_with_replan_history(const std::string& component_name, const std::string& execution_id, const ProtoStruct& extra) override; @@ -99,7 +99,7 @@ class MotionClient : public Motion { std::vector list_plan_statuses_(bool only_active_plans, const ProtoStruct& extra); std::pair> get_plan_( - const Name& component_name, + const std::string& component_name, boost::optional execution_id, bool last_plan_only, const ProtoStruct& extra); diff --git a/src/viam/sdk/services/private/motion_server.cpp b/src/viam/sdk/services/private/motion_server.cpp index 9874dc604..a6d7d1bfc 100644 --- a/src/viam/sdk/services/private/motion_server.cpp +++ b/src/viam/sdk/services/private/motion_server.cpp @@ -65,7 +65,7 @@ service::motion::v1::PlanStep to_proto(const Motion::step& step) { service::motion::v1::Plan to_proto(const Motion::plan& plan) { service::motion::v1::Plan proto; *proto.mutable_id() = plan.id; - *proto.mutable_component_name() = to_proto(plan.component_name); + *proto.mutable_component_name() = plan.component_name; *proto.mutable_execution_id() = plan.execution_id; for (const auto& step : plan.steps) { *proto.mutable_steps()->Add() = to_proto(step); @@ -89,7 +89,7 @@ service::motion::v1::PlanStatusWithID to_proto(const Motion::plan_status_with_id service::motion::v1::PlanStatusWithID proto; *proto.mutable_execution_id() = pswi.execution_id; - *proto.mutable_component_name() = to_proto(pswi.component_name); + *proto.mutable_component_name() = pswi.component_name; *proto.mutable_plan_id() = pswi.plan_id; *proto.mutable_status() = to_proto(pswi.status); @@ -98,8 +98,8 @@ service::motion::v1::PlanStatusWithID to_proto(const Motion::plan_status_with_id obstacle_detector from_proto(const service::motion::v1::ObstacleDetector& proto) { obstacle_detector oc; - oc.vision_service = from_proto(proto.vision_service()); - oc.camera = from_proto(proto.camera()); + oc.vision_service = proto.vision_service(); + oc.camera = proto.camera(); return oc; } @@ -190,7 +190,7 @@ ::grpc::Status MotionServer::Move(::grpc::ServerContext*, } const bool success = motion->move(from_proto(request->destination()), - from_proto(request->component_name()), + request->component_name(), std::move(ws), std::move(constraints), helper.getExtra()); @@ -205,8 +205,8 @@ ::grpc::Status MotionServer::MoveOnMap( return make_service_helper( "MotionServer::MoveOnMap", this, request)([&](auto& helper, auto& motion) { const auto destination = from_proto(request->destination()); - const auto component_name = from_proto(request->component_name()); - const auto slam_name = from_proto(request->slam_service_name()); + const auto& component_name = request->component_name(); + const auto& slam_name = request->slam_service_name(); std::shared_ptr mc; if (request->has_motion_configuration()) { @@ -233,8 +233,8 @@ ::grpc::Status MotionServer::MoveOnGlobe( return make_service_helper( "MotionServer::MoveOnGlobe", this, request)([&](auto& helper, auto& motion) { const auto destination = from_proto(request->destination()); - const auto component_name = from_proto(request->component_name()); - const auto movement_sensor_name = from_proto(request->movement_sensor_name()); + const auto& component_name = request->component_name(); + const auto& movement_sensor_name = request->movement_sensor_name(); const std::vector obstacles = impl::from_repeated_field(request->obstacles()); const std::vector bounding_regions = impl::from_repeated_field(request->bounding_regions()); @@ -269,7 +269,7 @@ ::grpc::Status MotionServer::GetPose( ::viam::service::motion::v1::GetPoseResponse* response) noexcept { return make_service_helper( "MotionServer::GetPose", this, request)([&](auto& helper, auto& motion) { - const auto& component_name = from_proto(request->component_name()); + const auto& component_name = request->component_name(); const std::string& destination_frame = request->destination_frame(); std::vector supplemental_transforms; for (const auto& proto_transform : request->supplemental_transforms()) { @@ -287,7 +287,7 @@ ::grpc::Status MotionServer::GetPlan( ::viam::service::motion::v1::GetPlanResponse* response) noexcept { return make_service_helper( "MotionServer::GetPlan", this, request)([&](auto& helper, auto& motion) { - const auto& component_name = from_proto(request->component_name()); + const auto& component_name = request->component_name(); Motion::plan_with_status plan; std::vector replan_history; const bool last_plan_only(request->last_plan_only()); @@ -340,7 +340,7 @@ ::grpc::Status MotionServer::StopPlan(::grpc::ServerContext*, ::viam::service::motion::v1::StopPlanResponse*) noexcept { return make_service_helper( "MotionServer::StopPlan", this, request)([&](auto& helper, auto& motion) { - const auto& component_name = from_proto(request->component_name()); + const auto& component_name = request->component_name(); motion->stop_plan(component_name, helper.getExtra()); }); diff --git a/src/viam/sdk/tests/mocks/mock_motion.cpp b/src/viam/sdk/tests/mocks/mock_motion.cpp index 413d3cdb6..c40a65cd5 100644 --- a/src/viam/sdk/tests/mocks/mock_motion.cpp +++ b/src/viam/sdk/tests/mocks/mock_motion.cpp @@ -16,7 +16,7 @@ namespace motion { using namespace viam::sdk; bool MockMotion::move(const pose_in_frame& destination, - const Name& component_name, + const std::string& component_name, const std::shared_ptr& world_state, const std::shared_ptr& constraints, const ProtoStruct&) { @@ -29,8 +29,8 @@ bool MockMotion::move(const pose_in_frame& destination, std::string MockMotion::move_on_map( const pose& destination, - const Name& component_name, - const Name& slam_name, + const std::string& component_name, + const std::string& slam_name, const std::shared_ptr& motion_configuration, const std::vector& obstacles, const ProtoStruct&) { @@ -47,8 +47,8 @@ std::string MockMotion::move_on_map( std::string MockMotion::move_on_globe( const geo_point& destination, const boost::optional& heading, - const Name& component_name, - const Name& movement_sensor_name, + const std::string& component_name, + const std::string& movement_sensor_name, const std::vector& obstacles, const std::shared_ptr& motion_configuration, const std::vector& bounding_regions, @@ -63,7 +63,7 @@ std::string MockMotion::move_on_globe( return "execution-id"; } -pose_in_frame MockMotion::get_pose(const Name&, +pose_in_frame MockMotion::get_pose(const std::string&, const std::string&, const std::vector&, const ProtoStruct& extra) { @@ -75,25 +75,25 @@ pose_in_frame MockMotion::get_pose(const Name&, return current_location; } -Motion::plan_with_status MockMotion::get_plan(const sdk::Name&, +Motion::plan_with_status MockMotion::get_plan(const std::string&, const std::string&, const sdk::ProtoStruct&) { return fake_plan_with_status(); } std::pair> -MockMotion::get_plan_with_replan_history(const sdk::Name&, +MockMotion::get_plan_with_replan_history(const std::string&, const std::string&, const sdk::ProtoStruct&) { return {fake_plan_with_status(), {fake_plan_with_status()}}; } -Motion::plan_with_status MockMotion::get_latest_plan(const sdk::Name&, const sdk::ProtoStruct&) { +Motion::plan_with_status MockMotion::get_latest_plan(const std::string&, const sdk::ProtoStruct&) { return fake_plan_with_status(); } std::pair> -MockMotion::get_latest_plan_with_replan_history(const sdk::Name&, const sdk::ProtoStruct&) { +MockMotion::get_latest_plan_with_replan_history(const std::string&, const sdk::ProtoStruct&) { return {fake_plan_with_status(), {fake_plan_with_status()}}; } @@ -106,7 +106,7 @@ std::vector MockMotion::list_plan_statuses(const sd return {fake_plan_status_with_id()}; } -void MockMotion::stop_plan(const sdk::Name&, const sdk::ProtoStruct&) { +void MockMotion::stop_plan(const std::string&, const sdk::ProtoStruct&) { this->peek_stop_plan_called = true; } @@ -147,16 +147,16 @@ pose_in_frame init_fake_pose() { return pose_in_frame("", {{0, 0, 0}, {0, 0, 0}, 0}); } -Name fake_component_name() { - return {{"acme", "component", "fake"}, "", "fake-component"}; +std::string fake_component_name() { + return "fake-component"; } -Name fake_slam_name() { - return {{"acme", "service", "slam"}, "", "fake-slam"}; +std::string fake_slam_name() { + return "fake-slam"; } -Name fake_movement_sensor_name() { - return {{"acme", "component", ""}, "", "fake-movement-sensor"}; +std::string fake_movement_sensor_name() { + return "fake-movement-sensor"; } geo_point fake_geo_point() { diff --git a/src/viam/sdk/tests/mocks/mock_motion.hpp b/src/viam/sdk/tests/mocks/mock_motion.hpp index 4990e006f..62a17b1e9 100644 --- a/src/viam/sdk/tests/mocks/mock_motion.hpp +++ b/src/viam/sdk/tests/mocks/mock_motion.hpp @@ -13,9 +13,9 @@ namespace motion { sdk::pose_in_frame init_fake_pose(); sdk::pose_in_frame fake_pose(); -sdk::Name fake_component_name(); -sdk::Name fake_slam_name(); -sdk::Name fake_movement_sensor_name(); +std::string fake_component_name(); +std::string fake_slam_name(); +std::string fake_movement_sensor_name(); sdk::geo_point fake_geo_point(); std::vector fake_obstacles(); std::shared_ptr fake_motion_configuration(); @@ -24,14 +24,14 @@ std::vector fake_bounding_regions(); class MockMotion : public sdk::Motion { public: bool move(const sdk::pose_in_frame& destination, - const sdk::Name& component_name, + const std::string& component_name, const std::shared_ptr& world_state, const std::shared_ptr& constraints, const sdk::ProtoStruct& extra) override; std::string move_on_map(const sdk::pose& destination, - const sdk::Name& component_name, - const sdk::Name& slam_name, + const std::string& component_name, + const std::string& slam_name, const std::shared_ptr& motion_configuration, const std::vector& obstacles, const sdk::ProtoStruct& extra) override; @@ -39,40 +39,40 @@ class MockMotion : public sdk::Motion { std::string move_on_globe( const sdk::geo_point& destination, const boost::optional& heading, - const sdk::Name& component_name, - const sdk::Name& movement_sensor_name, + const std::string& component_name, + const std::string& movement_sensor_name, const std::vector& obstacles, const std::shared_ptr& motion_configuration, const std::vector& bounding_regions, const sdk::ProtoStruct& extra) override; sdk::pose_in_frame get_pose( - const sdk::Name& component_name, + const std::string& component_name, const std::string& destination_frame, const std::vector& supplemental_transforms, const sdk::ProtoStruct& extra) override; - plan_with_status get_plan(const sdk::Name& component_name, + plan_with_status get_plan(const std::string& component_name, const std::string& execution_id, const sdk::ProtoStruct& extra) override; std::pair> get_plan_with_replan_history( - const sdk::Name& component_name, + const std::string& component_name, const std::string& execution_id, const sdk::ProtoStruct& extra) override; - plan_with_status get_latest_plan(const sdk::Name& component_name, + plan_with_status get_latest_plan(const std::string& component_name, const sdk::ProtoStruct& extra) override; std::pair> get_latest_plan_with_replan_history( - const sdk::Name& component_name, const sdk::ProtoStruct& extra) override; + const std::string& component_name, const sdk::ProtoStruct& extra) override; std::vector list_plan_statuses(const sdk::ProtoStruct& extra) override; std::vector list_active_plan_statuses( const sdk::ProtoStruct& extra) override; - void stop_plan(const sdk::Name& name, const sdk::ProtoStruct& extra) override; + void stop_plan(const std::string& name, const sdk::ProtoStruct& extra) override; sdk::ProtoStruct do_command(const sdk::ProtoStruct& command) override; static std::shared_ptr get_mock_motion(); @@ -84,9 +84,9 @@ class MockMotion : public sdk::Motion { // and ensure that the correct values were passed sdk::pose_in_frame current_location; sdk::pose peek_current_pose; - sdk::Name peek_component_name; - sdk::Name peek_movement_sensor_name; - sdk::Name peek_slam_name; + std::string peek_component_name; + std::string peek_movement_sensor_name; + std::string peek_slam_name; sdk::geo_point peek_destination; std::string peek_destination_frame; double peek_heading; diff --git a/src/viam/sdk/tests/test_motion.cpp b/src/viam/sdk/tests/test_motion.cpp index 9e06c6aa4..da7233d8a 100644 --- a/src/viam/sdk/tests/test_motion.cpp +++ b/src/viam/sdk/tests/test_motion.cpp @@ -50,14 +50,13 @@ BOOST_AUTO_TEST_CASE(mock_move_and_get_pose) { BOOST_CHECK_EQUAL(motion->current_location, init_fake_pose()); - Name fake_name({"acme", "service", "motion"}, "fake-remote", "fake-motion"); auto ws = std::make_shared(mock_world_state()); - bool success = motion->move(fake_pose(), fake_name, ws, 0, fake_map()); + bool success = motion->move(fake_pose(), "fake-motion", ws, 0, fake_map()); BOOST_TEST(success); BOOST_CHECK_EQUAL(motion->current_location, fake_pose()); - BOOST_CHECK_EQUAL(motion->peek_component_name, fake_name); + BOOST_CHECK_EQUAL(motion->peek_component_name, "fake-motion"); BOOST_CHECK_EQUAL(*(motion->peek_world_state), *ws); }