diff --git a/src/viam/api/api_proto_tag.lock b/src/viam/api/api_proto_tag.lock index 83689945e..ec9ece6c5 100644 --- a/src/viam/api/api_proto_tag.lock +++ b/src/viam/api/api_proto_tag.lock @@ -1 +1 @@ -v0.1.345 +v0.1.348 diff --git a/src/viam/api/app/v1/billing.pb.cc b/src/viam/api/app/v1/billing.pb.cc index 812f65d1e..1043425d4 100644 --- a/src/viam/api/app/v1/billing.pb.cc +++ b/src/viam/api/app/v1/billing.pb.cc @@ -23,6 +23,26 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace viam { namespace app { namespace v1 { + +inline constexpr UsageCost::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : cost_{0}, + resource_type_{static_cast< ::viam::app::v1::UsageCostType >(0)}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR UsageCost::UsageCost(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct UsageCostDefaultTypeInternal { + PROTOBUF_CONSTEXPR UsageCostDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~UsageCostDefaultTypeInternal() {} + union { + UsageCost _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UsageCostDefaultTypeInternal _UsageCost_default_instance_; template PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse(::_pbi::ConstantInitialized) {} struct SendPaymentRequiredEmailResponseDefaultTypeInternal { @@ -192,6 +212,28 @@ struct GetCurrentMonthUsageRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentMonthUsageRequestDefaultTypeInternal _GetCurrentMonthUsageRequest_default_instance_; +inline constexpr ResourceUsageCosts::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : usage_costs_{}, + discount_{0}, + total_with_discount_{0}, + total_without_discount_{0}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR ResourceUsageCosts::ResourceUsageCosts(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ResourceUsageCostsDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceUsageCostsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceUsageCostsDefaultTypeInternal() {} + union { + ResourceUsageCosts _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceUsageCostsDefaultTypeInternal _ResourceUsageCosts_default_instance_; + inline constexpr InvoiceSummary::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -246,102 +288,28 @@ struct GetOrgBillingInformationResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrgBillingInformationResponseDefaultTypeInternal _GetOrgBillingInformationResponse_default_instance_; -inline constexpr GetCurrentMonthUsageResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - start_date_{nullptr}, - end_date_{nullptr}, - cloud_storage_usage_cost_{0}, - data_upload_usage_cost_{0}, - data_egres_usage_cost_{0}, - remote_control_usage_cost_{0}, - standard_compute_usage_cost_{0}, - discount_amount_{0}, - total_usage_with_discount_{0}, - total_usage_without_discount_{0}, - per_machine_usage_cost_{0}, - binary_data_cloud_storage_usage_cost_{0}, - other_cloud_storage_usage_cost_{0} {} - -template -PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetCurrentMonthUsageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCurrentMonthUsageResponseDefaultTypeInternal() {} - union { - GetCurrentMonthUsageResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentMonthUsageResponseDefaultTypeInternal _GetCurrentMonthUsageResponse_default_instance_; - -inline constexpr BillableResourceEvent::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - usage_quantity_unit_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - usage_cost_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - user_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - occurred_at_{nullptr}, - usage_quantity_{0} {} - -template -PROTOBUF_CONSTEXPR BillableResourceEvent::BillableResourceEvent(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BillableResourceEventDefaultTypeInternal { - PROTOBUF_CONSTEXPR BillableResourceEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BillableResourceEventDefaultTypeInternal() {} - union { - BillableResourceEvent _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BillableResourceEventDefaultTypeInternal _BillableResourceEvent_default_instance_; - -inline constexpr Invoice::Impl_::Impl_( +inline constexpr ResourceUsageCostsBySource::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - items_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - emailed_to_( + tier_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - invoice_date_{nullptr}, - due_date_{nullptr}, - invoice_amount_{0} {} + resource_usage_costs_{nullptr}, + source_type_{static_cast< ::viam::app::v1::SourceType >(0)} {} template -PROTOBUF_CONSTEXPR Invoice::Invoice(::_pbi::ConstantInitialized) +PROTOBUF_CONSTEXPR ResourceUsageCostsBySource::ResourceUsageCostsBySource(::_pbi::ConstantInitialized) : _impl_(::_pbi::ConstantInitialized()) {} -struct InvoiceDefaultTypeInternal { - PROTOBUF_CONSTEXPR InvoiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InvoiceDefaultTypeInternal() {} +struct ResourceUsageCostsBySourceDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceUsageCostsBySourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceUsageCostsBySourceDefaultTypeInternal() {} union { - Invoice _instance; + ResourceUsageCostsBySource _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InvoiceDefaultTypeInternal _Invoice_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceUsageCostsBySourceDefaultTypeInternal _ResourceUsageCostsBySource_default_instance_; inline constexpr GetInvoicesSummaryResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept @@ -362,11 +330,44 @@ struct GetInvoicesSummaryResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicesSummaryResponseDefaultTypeInternal _GetInvoicesSummaryResponse_default_instance_; + +inline constexpr GetCurrentMonthUsageResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + resource_usage_costs_by_source_{}, + start_date_{nullptr}, + end_date_{nullptr}, + cloud_storage_usage_cost_{0}, + data_upload_usage_cost_{0}, + data_egres_usage_cost_{0}, + remote_control_usage_cost_{0}, + standard_compute_usage_cost_{0}, + discount_amount_{0}, + total_usage_with_discount_{0}, + total_usage_without_discount_{0}, + per_machine_usage_cost_{0}, + binary_data_cloud_storage_usage_cost_{0}, + other_cloud_storage_usage_cost_{0}, + subtotal_{0} {} + +template +PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GetCurrentMonthUsageResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCurrentMonthUsageResponseDefaultTypeInternal() {} + union { + GetCurrentMonthUsageResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentMonthUsageResponseDefaultTypeInternal _GetCurrentMonthUsageResponse_default_instance_; } // namespace v1 } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fv1_2fbilling_2eproto[14]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[1]; +static ::_pb::Metadata file_level_metadata_app_2fv1_2fbilling_2eproto[15]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[3]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_app_2fv1_2fbilling_2eproto = nullptr; const ::uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( @@ -391,69 +392,61 @@ const ::uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECT ~0u, 1, 2, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _internal_metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_.usage_quantity_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_.usage_quantity_unit_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_.usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_.occurred_at_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillableResourceEvent, _impl_.user_name_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _impl_.brand_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _impl_.last_four_digits_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_.invoice_date_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_.invoice_amount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_.due_date_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_.items_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Invoice, _impl_.emailed_to_), - ~0u, - 0, - ~0u, - ~0u, - 1, - ~0u, - ~0u, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _impl_.org_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _impl_.brand_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _impl_.last_four_digits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, _impl_.resource_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, _impl_.cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_.source_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_.resource_usage_costs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_.tier_name_), + ~0u, + 0, + ~0u, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _impl_.org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.usage_costs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.discount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.total_with_discount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.total_without_discount_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -464,6 +457,8 @@ const ::uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECT ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.start_date_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.end_date_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.resource_usage_costs_by_source_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.subtotal_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.cloud_storage_usage_cost_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.data_upload_usage_cost_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.data_egres_usage_cost_), @@ -488,6 +483,8 @@ const ::uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECT ~0u, ~0u, ~0u, + ~0u, + ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -574,27 +571,29 @@ const ::uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECT static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, 14, -1, sizeof(::viam::app::v1::InvoiceSummary)}, - {20, 35, -1, sizeof(::viam::app::v1::BillableResourceEvent)}, - {42, 57, -1, sizeof(::viam::app::v1::Invoice)}, - {64, -1, -1, sizeof(::viam::app::v1::PaymentMethodCard)}, - {74, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageRequest)}, - {83, 104, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageResponse)}, - {117, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, - {126, 138, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, - {142, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, - {151, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, - {161, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, - {171, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, - {180, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailRequest)}, - {190, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailResponse)}, + {20, -1, -1, sizeof(::viam::app::v1::PaymentMethodCard)}, + {30, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageRequest)}, + {39, -1, -1, sizeof(::viam::app::v1::UsageCost)}, + {49, 60, -1, sizeof(::viam::app::v1::ResourceUsageCostsBySource)}, + {63, -1, -1, sizeof(::viam::app::v1::ResourceUsageCosts)}, + {75, 98, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageResponse)}, + {113, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, + {122, 134, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, + {138, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, + {147, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, + {157, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, + {167, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, + {176, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailRequest)}, + {186, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_InvoiceSummary_default_instance_._instance, - &::viam::app::v1::_BillableResourceEvent_default_instance_._instance, - &::viam::app::v1::_Invoice_default_instance_._instance, &::viam::app::v1::_PaymentMethodCard_default_instance_._instance, &::viam::app::v1::_GetCurrentMonthUsageRequest_default_instance_._instance, + &::viam::app::v1::_UsageCost_default_instance_._instance, + &::viam::app::v1::_ResourceUsageCostsBySource_default_instance_._instance, + &::viam::app::v1::_ResourceUsageCosts_default_instance_._instance, &::viam::app::v1::_GetCurrentMonthUsageResponse_default_instance_._instance, &::viam::app::v1::_GetOrgBillingInformationRequest_default_instance_._instance, &::viam::app::v1::_GetOrgBillingInformationResponse_default_instance_._instance, @@ -614,84 +613,98 @@ const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTI "mount\022\026\n\006status\030\004 \001(\tR\006status\0225\n\010due_dat" "e\030\005 \001(\0132\032.google.protobuf.TimestampR\007due" "Date\0227\n\tpaid_date\030\006 \001(\0132\032.google.protobu" - "f.TimestampR\010paidDate\"\213\002\n\025BillableResour" - "ceEvent\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004type\030\002 \001(\tR\004t" - "ype\022%\n\016usage_quantity\030\003 \001(\001R\rusageQuanti" - "ty\022.\n\023usage_quantity_unit\030\004 \001(\tR\021usageQu" - "antityUnit\022\035\n\nusage_cost\030\005 \001(\tR\tusageCos" - "t\022;\n\013occurred_at\030\006 \001(\0132\032.google.protobuf" - ".TimestampR\noccurredAt\022\033\n\tuser_name\030\007 \001(" - "\tR\010userName\"\247\002\n\007Invoice\022\016\n\002id\030\001 \001(\tR\002id\022" - "=\n\014invoice_date\030\002 \001(\0132\032.google.protobuf." - "TimestampR\013invoiceDate\022%\n\016invoice_amount" - "\030\003 \001(\001R\rinvoiceAmount\022\026\n\006status\030\004 \001(\tR\006s" - "tatus\0225\n\010due_date\030\005 \001(\0132\032.google.protobu" - "f.TimestampR\007dueDate\0228\n\005items\030\006 \003(\0132\".vi" - "am.app.v1.BillableResourceEventR\005items\022\035" - "\n\nemailed_to\030\007 \001(\tR\temailedTo\"S\n\021Payment" - "MethodCard\022\024\n\005brand\030\001 \001(\tR\005brand\022(\n\020last" - "_four_digits\030\002 \001(\tR\016lastFourDigits\"4\n\033Ge" - "tCurrentMonthUsageRequest\022\025\n\006org_id\030\001 \001(" - "\tR\005orgId\"\230\006\n\034GetCurrentMonthUsageRespons" - "e\0229\n\nstart_date\030\001 \001(\0132\032.google.protobuf." - "TimestampR\tstartDate\0225\n\010end_date\030\002 \001(\0132\032" - ".google.protobuf.TimestampR\007endDate\0227\n\030c" - "loud_storage_usage_cost\030\003 \001(\001R\025cloudStor" - "ageUsageCost\0223\n\026data_upload_usage_cost\030\004" - " \001(\001R\023dataUploadUsageCost\0221\n\025data_egres_" - "usage_cost\030\005 \001(\001R\022dataEgresUsageCost\0229\n\031" - "remote_control_usage_cost\030\006 \001(\001R\026remoteC" - "ontrolUsageCost\022=\n\033standard_compute_usag" - "e_cost\030\007 \001(\001R\030standardComputeUsageCost\022\'" - "\n\017discount_amount\030\010 \001(\001R\016discountAmount\022" - "9\n\031total_usage_with_discount\030\t \001(\001R\026tota" - "lUsageWithDiscount\022\?\n\034total_usage_withou" - "t_discount\030\n \001(\001R\031totalUsageWithoutDisco" - "unt\0223\n\026per_machine_usage_cost\030\013 \001(\001R\023per" - "MachineUsageCost\022M\n$binary_data_cloud_st" - "orage_usage_cost\030\014 \001(\001R\037binaryDataCloudS" - "torageUsageCost\022B\n\036other_cloud_storage_u" - "sage_cost\030\r \001(\001R\032otherCloudStorageUsageC" - "ost\"8\n\037GetOrgBillingInformationRequest\022\025" - "\n\006org_id\030\001 \001(\tR\005orgId\"\374\001\n GetOrgBillingI" - "nformationResponse\0222\n\004type\030\001 \001(\0162\036.viam." - "app.v1.PaymentMethodTypeR\004type\022#\n\rbillin" - "g_email\030\002 \001(\tR\014billingEmail\022;\n\006method\030\003 " - "\001(\0132\036.viam.app.v1.PaymentMethodCardH\000R\006m" - "ethod\210\001\001\022&\n\014billing_tier\030\004 \001(\tH\001R\013billin" - "gTier\210\001\001B\t\n\007_methodB\017\n\r_billing_tier\"2\n\031" - "GetInvoicesSummaryRequest\022\025\n\006org_id\030\001 \001(" - "\tR\005orgId\"\206\001\n\032GetInvoicesSummaryResponse\022" - "/\n\023outstanding_balance\030\001 \001(\001R\022outstandin" - "gBalance\0227\n\010invoices\030\002 \003(\0132\033.viam.app.v1" - ".InvoiceSummaryR\010invoices\"=\n\024GetInvoiceP" - "dfRequest\022\016\n\002id\030\001 \001(\tR\002id\022\025\n\006org_id\030\002 \001(" - "\tR\005orgId\"-\n\025GetInvoicePdfResponse\022\024\n\005chu" - "nk\030\001 \001(\014R\005chunk\"z\n\037SendPaymentRequiredEm" - "ailRequest\022&\n\017customer_org_id\030\001 \001(\tR\rcus" - "tomerOrgId\022/\n\024billing_owner_org_id\030\002 \001(\t" - "R\021billingOwnerOrgId\"\"\n SendPaymentRequir" - "edEmailResponse*V\n\021PaymentMethodType\022#\n\037" - "PAYMENT_METHOD_TYPE_UNSPECIFIED\020\000\022\034\n\030PAY" - "MENT_METHOD_TYPE_CARD\020\0012\260\004\n\016BillingServi" - "ce\022k\n\024GetCurrentMonthUsage\022(.viam.app.v1" - ".GetCurrentMonthUsageRequest\032).viam.app." - "v1.GetCurrentMonthUsageResponse\022w\n\030GetOr" - "gBillingInformation\022,.viam.app.v1.GetOrg" - "BillingInformationRequest\032-.viam.app.v1." - "GetOrgBillingInformationResponse\022e\n\022GetI" - "nvoicesSummary\022&.viam.app.v1.GetInvoices" - "SummaryRequest\032\'.viam.app.v1.GetInvoices" - "SummaryResponse\022X\n\rGetInvoicePdf\022!.viam." - "app.v1.GetInvoicePdfRequest\032\".viam.app.v" - "1.GetInvoicePdfResponse0\001\022w\n\030SendPayment" - "RequiredEmail\022,.viam.app.v1.SendPaymentR" - "equiredEmailRequest\032-.viam.app.v1.SendPa" - "ymentRequiredEmailResponseB\205\001\n\017com.viam." - "app.v1B\014BillingProtoP\001Z\026go.viam.com/api/" - "app/v1\242\002\003VAX\252\002\013Viam.App.V1\312\002\013Viam\\App\\V1" - "\342\002\027Viam\\App\\V1\\GPBMetadata\352\002\rViam::App::" - "V1b\006proto3" + "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*V\n\021PaymentMethodType\022#" + "\n\037PAYMENT_METHOD_TYPE_UNSPECIFIED\020\000\022\034\n\030P" + "AYMENT_METHOD_TYPE_CARD\020\001*\330\002\n\rUsageCostT" + "ype\022\037\n\033USAGE_COST_TYPE_UNSPECIFIED\020\000\022\037\n\033" + "USAGE_COST_TYPE_DATA_UPLOAD\020\001\022\037\n\033USAGE_C" + "OST_TYPE_DATA_EGRESS\020\002\022\"\n\036USAGE_COST_TYP" + "E_REMOTE_CONTROL\020\003\022$\n USAGE_COST_TYPE_ST" + "ANDARD_COMPUTE\020\004\022!\n\035USAGE_COST_TYPE_CLOU" + "D_STORAGE\020\005\022-\n)USAGE_COST_TYPE_BINARY_DA" + "TA_CLOUD_STORAGE\020\006\022\'\n#USAGE_COST_TYPE_OT" + "HER_CLOUD_STORAGE\020\007\022\037\n\033USAGE_COST_TYPE_P" + "ER_MACHINE\020\010*X\n\nSourceType\022\033\n\027SOURCE_TYP" + "E_UNSPECIFIED\020\000\022\023\n\017SOURCE_TYPE_ORG\020\001\022\030\n\024" + "SOURCE_TYPE_FRAGMENT\020\0022\260\004\n\016BillingServic" + "e\022k\n\024GetCurrentMonthUsage\022(.viam.app.v1." + "GetCurrentMonthUsageRequest\032).viam.app.v" + "1.GetCurrentMonthUsageResponse\022w\n\030GetOrg" + "BillingInformation\022,.viam.app.v1.GetOrgB" + "illingInformationRequest\032-.viam.app.v1.G" + "etOrgBillingInformationResponse\022e\n\022GetIn" + "voicesSummary\022&.viam.app.v1.GetInvoicesS" + "ummaryRequest\032\'.viam.app.v1.GetInvoicesS" + "ummaryResponse\022X\n\rGetInvoicePdf\022!.viam.a" + "pp.v1.GetInvoicePdfRequest\032\".viam.app.v1" + ".GetInvoicePdfResponse0\001\022w\n\030SendPaymentR" + "equiredEmail\022,.viam.app.v1.SendPaymentRe" + "quiredEmailRequest\032-.viam.app.v1.SendPay" + "mentRequiredEmailResponseB\205\001\n\017com.viam.a" + "pp.v1B\014BillingProtoP\001Z\026go.viam.com/api/a" + "pp/v1\242\002\003VAX\252\002\013Viam.App.V1\312\002\013Viam\\App\\V1\342" + "\002\027Viam\\App\\V1\\GPBMetadata\352\002\rViam::App::V" + "1b\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fbilling_2eproto_deps[1] = { @@ -701,13 +714,13 @@ static ::absl::once_flag descriptor_table_app_2fv1_2fbilling_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fbilling_2eproto = { false, false, - 3410, + 3969, 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, - 14, + 15, schemas, file_default_instances, TableStruct_app_2fv1_2fbilling_2eproto::offsets, @@ -745,6 +758,24 @@ PROTOBUF_CONSTINIT const uint32_t PaymentMethodType_internal_data_[] = { bool PaymentMethodType_IsValid(int value) { return 0 <= value && value <= 1; } +const ::google::protobuf::EnumDescriptor* UsageCostType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); + return file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[1]; +} +PROTOBUF_CONSTINIT const uint32_t UsageCostType_internal_data_[] = { + 589824u, 0u, }; +bool UsageCostType_IsValid(int value) { + return 0 <= value && value <= 8; +} +const ::google::protobuf::EnumDescriptor* SourceType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); + return file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[2]; +} +PROTOBUF_CONSTINIT const uint32_t SourceType_internal_data_[] = { + 196608u, 0u, }; +bool SourceType_IsValid(int value) { + return 0 <= value && value <= 2; +} // =================================================================== class InvoiceSummary::_Internal { @@ -1166,116 +1197,69 @@ ::google::protobuf::Metadata InvoiceSummary::GetMetadata() const { } // =================================================================== -class BillableResourceEvent::_Internal { +class PaymentMethodCard::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& occurred_at(const BillableResourceEvent* msg); - static void set_has_occurred_at(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::protobuf::Timestamp& BillableResourceEvent::_Internal::occurred_at(const BillableResourceEvent* msg) { - return *msg->_impl_.occurred_at_; -} -void BillableResourceEvent::clear_occurred_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.occurred_at_ != nullptr) _impl_.occurred_at_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -BillableResourceEvent::BillableResourceEvent(::google::protobuf::Arena* arena) +PaymentMethodCard::PaymentMethodCard(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.BillableResourceEvent) + // @@protoc_insertion_point(arena_constructor:viam.app.v1.PaymentMethodCard) } -inline PROTOBUF_NDEBUG_INLINE BillableResourceEvent::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE PaymentMethodCard::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - type_(arena, from.type_), - usage_quantity_unit_(arena, from.usage_quantity_unit_), - usage_cost_(arena, from.usage_cost_), - user_name_(arena, from.user_name_) {} + : brand_(arena, from.brand_), + last_four_digits_(arena, from.last_four_digits_), + _cached_size_{0} {} -BillableResourceEvent::BillableResourceEvent( +PaymentMethodCard::PaymentMethodCard( ::google::protobuf::Arena* arena, - const BillableResourceEvent& from) + const PaymentMethodCard& from) : ::google::protobuf::Message(arena) { - BillableResourceEvent* const _this = this; + PaymentMethodCard* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.occurred_at_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.occurred_at_) - : nullptr; - _impl_.usage_quantity_ = from._impl_.usage_quantity_; - // @@protoc_insertion_point(copy_constructor:viam.app.v1.BillableResourceEvent) + // @@protoc_insertion_point(copy_constructor:viam.app.v1.PaymentMethodCard) } -inline PROTOBUF_NDEBUG_INLINE BillableResourceEvent::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE PaymentMethodCard::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - type_(arena), - usage_quantity_unit_(arena), - usage_cost_(arena), - user_name_(arena) {} + : brand_(arena), + last_four_digits_(arena), + _cached_size_{0} {} -inline void BillableResourceEvent::SharedCtor(::_pb::Arena* arena) { +inline void PaymentMethodCard::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, occurred_at_), - 0, - offsetof(Impl_, usage_quantity_) - - offsetof(Impl_, occurred_at_) + - sizeof(Impl_::usage_quantity_)); } -BillableResourceEvent::~BillableResourceEvent() { - // @@protoc_insertion_point(destructor:viam.app.v1.BillableResourceEvent) +PaymentMethodCard::~PaymentMethodCard() { + // @@protoc_insertion_point(destructor:viam.app.v1.PaymentMethodCard) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void BillableResourceEvent::SharedDtor() { +inline void PaymentMethodCard::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.type_.Destroy(); - _impl_.usage_quantity_unit_.Destroy(); - _impl_.usage_cost_.Destroy(); - _impl_.user_name_.Destroy(); - delete _impl_.occurred_at_; + _impl_.brand_.Destroy(); + _impl_.last_four_digits_.Destroy(); _impl_.~Impl_(); } -PROTOBUF_NOINLINE void BillableResourceEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.BillableResourceEvent) +PROTOBUF_NOINLINE void PaymentMethodCard::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.PaymentMethodCard) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.usage_quantity_unit_.ClearToEmpty(); - _impl_.usage_cost_.ClearToEmpty(); - _impl_.user_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.occurred_at_ != nullptr); - _impl_.occurred_at_->Clear(); - } - _impl_.usage_quantity_ = 0; - _impl_._has_bits_.Clear(); + _impl_.brand_.ClearToEmpty(); + _impl_.last_four_digits_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* BillableResourceEvent::_InternalParse( +const char* PaymentMethodCard::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -1283,144 +1267,66 @@ const char* BillableResourceEvent::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 86, 2> BillableResourceEvent::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 59, 2> PaymentMethodCard::_table_ = { { - PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_._has_bits_), + 0, // no _has_bits_ 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask + 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap + 4294967292, // skipmap offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_BillableResourceEvent_default_instance_._instance, + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_PaymentMethodCard_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.id_)}}, - // string type = 2 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.type_)}}, - // double usage_quantity = 3 [json_name = "usageQuantity"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.usage_quantity_)}}, - // string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.usage_quantity_unit_)}}, - // string usage_cost = 5 [json_name = "usageCost"]; + // string last_four_digits = 2 [json_name = "lastFourDigits"]; {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.usage_cost_)}}, - // .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"]; - {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.occurred_at_)}}, - // string user_name = 7 [json_name = "userName"]; + {18, 63, 0, PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.last_four_digits_)}}, + // string brand = 1 [json_name = "brand"]; {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.user_name_)}}, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.brand_)}}, }}, {{ 65535, 65535 }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 2 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double usage_quantity = 3 [json_name = "usageQuantity"]; - {PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.usage_quantity_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"]; - {PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.usage_quantity_unit_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string usage_cost = 5 [json_name = "usageCost"]; - {PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.usage_cost_), -1, 0, + // string brand = 1 [json_name = "brand"]; + {PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.brand_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"]; - {PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.occurred_at_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string user_name = 7 [json_name = "userName"]; - {PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.user_name_), -1, 0, + // string last_four_digits = 2 [json_name = "lastFourDigits"]; + {PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.last_four_digits_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\41\2\4\0\23\12\0\11" - "viam.app.v1.BillableResourceEvent" - "id" - "type" - "usage_quantity_unit" - "usage_cost" - "user_name" + }}, + // no aux_entries + {{ + "\35\5\20\0\0\0\0\0" + "viam.app.v1.PaymentMethodCard" + "brand" + "last_four_digits" }}, }; -::uint8_t* BillableResourceEvent::_InternalSerialize( +::uint8_t* PaymentMethodCard::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.BillableResourceEvent) + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.PaymentMethodCard) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); + // string brand = 1 [json_name = "brand"]; + if (!this->_internal_brand().empty()) { + const std::string& _s = this->_internal_brand(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillableResourceEvent.id"); + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PaymentMethodCard.brand"); target = stream->WriteStringMaybeAliased(1, _s, target); } - // string type = 2 [json_name = "type"]; - if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillableResourceEvent.type"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // double usage_quantity = 3 [json_name = "usageQuantity"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_usage_quantity = this->_internal_usage_quantity(); - ::uint64_t raw_usage_quantity; - memcpy(&raw_usage_quantity, &tmp_usage_quantity, sizeof(tmp_usage_quantity)); - if (raw_usage_quantity != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_usage_quantity(), target); - } - - // string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"]; - if (!this->_internal_usage_quantity_unit().empty()) { - const std::string& _s = this->_internal_usage_quantity_unit(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillableResourceEvent.usage_quantity_unit"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // string usage_cost = 5 [json_name = "usageCost"]; - if (!this->_internal_usage_cost().empty()) { - const std::string& _s = this->_internal_usage_cost(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillableResourceEvent.usage_cost"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::occurred_at(this), - _Internal::occurred_at(this).GetCachedSize(), target, stream); - } - - // string user_name = 7 [json_name = "userName"]; - if (!this->_internal_user_name().empty()) { - const std::string& _s = this->_internal_user_name(); + // string last_four_digits = 2 [json_name = "lastFourDigits"]; + if (!this->_internal_last_four_digits().empty()) { + const std::string& _s = this->_internal_last_four_digits(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillableResourceEvent.user_name"); - target = stream->WriteStringMaybeAliased(7, _s, target); + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PaymentMethodCard.last_four_digits"); + target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1428,281 +1334,330 @@ ::uint8_t* BillableResourceEvent::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.BillableResourceEvent) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.PaymentMethodCard) return target; } -::size_t BillableResourceEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.BillableResourceEvent) +::size_t PaymentMethodCard::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.PaymentMethodCard) ::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 id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string type = 2 [json_name = "type"]; - if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); - } - - // string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"]; - if (!this->_internal_usage_quantity_unit().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_usage_quantity_unit()); - } - - // string usage_cost = 5 [json_name = "usageCost"]; - if (!this->_internal_usage_cost().empty()) { + // string brand = 1 [json_name = "brand"]; + if (!this->_internal_brand().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_usage_cost()); + this->_internal_brand()); } - // string user_name = 7 [json_name = "userName"]; - if (!this->_internal_user_name().empty()) { + // string last_four_digits = 2 [json_name = "lastFourDigits"]; + if (!this->_internal_last_four_digits().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_user_name()); - } - - // .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.occurred_at_); - } - - // double usage_quantity = 3 [json_name = "usageQuantity"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_usage_quantity = this->_internal_usage_quantity(); - ::uint64_t raw_usage_quantity; - memcpy(&raw_usage_quantity, &tmp_usage_quantity, sizeof(tmp_usage_quantity)); - if (raw_usage_quantity != 0) { - total_size += 9; + this->_internal_last_four_digits()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BillableResourceEvent::_class_data_ = { - BillableResourceEvent::MergeImpl, +const ::google::protobuf::Message::ClassData PaymentMethodCard::_class_data_ = { + PaymentMethodCard::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* BillableResourceEvent::GetClassData() const { +const ::google::protobuf::Message::ClassData* PaymentMethodCard::GetClassData() const { return &_class_data_; } -void BillableResourceEvent::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.BillableResourceEvent) +void PaymentMethodCard::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.PaymentMethodCard) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } - if (!from._internal_usage_quantity_unit().empty()) { - _this->_internal_set_usage_quantity_unit(from._internal_usage_quantity_unit()); - } - if (!from._internal_usage_cost().empty()) { - _this->_internal_set_usage_cost(from._internal_usage_cost()); - } - if (!from._internal_user_name().empty()) { - _this->_internal_set_user_name(from._internal_user_name()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom( - from._internal_occurred_at()); + if (!from._internal_brand().empty()) { + _this->_internal_set_brand(from._internal_brand()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_usage_quantity = from._internal_usage_quantity(); - ::uint64_t raw_usage_quantity; - memcpy(&raw_usage_quantity, &tmp_usage_quantity, sizeof(tmp_usage_quantity)); - if (raw_usage_quantity != 0) { - _this->_internal_set_usage_quantity(from._internal_usage_quantity()); + if (!from._internal_last_four_digits().empty()) { + _this->_internal_set_last_four_digits(from._internal_last_four_digits()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void BillableResourceEvent::CopyFrom(const BillableResourceEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.BillableResourceEvent) +void PaymentMethodCard::CopyFrom(const PaymentMethodCard& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.PaymentMethodCard) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool BillableResourceEvent::IsInitialized() const { +PROTOBUF_NOINLINE bool PaymentMethodCard::IsInitialized() const { return true; } -::_pbi::CachedSize* BillableResourceEvent::AccessCachedSize() const { +::_pbi::CachedSize* PaymentMethodCard::AccessCachedSize() const { return &_impl_._cached_size_; } -void BillableResourceEvent::InternalSwap(BillableResourceEvent* PROTOBUF_RESTRICT other) { +void PaymentMethodCard::InternalSwap(PaymentMethodCard* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.usage_quantity_unit_, &other->_impl_.usage_quantity_unit_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.usage_cost_, &other->_impl_.usage_cost_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_name_, &other->_impl_.user_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.usage_quantity_) - + sizeof(BillableResourceEvent::_impl_.usage_quantity_) - - PROTOBUF_FIELD_OFFSET(BillableResourceEvent, _impl_.occurred_at_)>( - reinterpret_cast(&_impl_.occurred_at_), - reinterpret_cast(&other->_impl_.occurred_at_)); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.brand_, &other->_impl_.brand_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_four_digits_, &other->_impl_.last_four_digits_, arena); } -::google::protobuf::Metadata BillableResourceEvent::GetMetadata() const { +::google::protobuf::Metadata PaymentMethodCard::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[1]); } // =================================================================== -class Invoice::_Internal { +class GetCurrentMonthUsageRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Invoice, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& invoice_date(const Invoice* msg); - static void set_has_invoice_date(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& due_date(const Invoice* msg); - static void set_has_due_date(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::protobuf::Timestamp& Invoice::_Internal::invoice_date(const Invoice* msg) { - return *msg->_impl_.invoice_date_; -} -const ::google::protobuf::Timestamp& Invoice::_Internal::due_date(const Invoice* msg) { - return *msg->_impl_.due_date_; -} -void Invoice::clear_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.invoice_date_ != nullptr) _impl_.invoice_date_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -void Invoice::clear_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.due_date_ != nullptr) _impl_.due_date_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -Invoice::Invoice(::google::protobuf::Arena* arena) +GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.Invoice) + // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetCurrentMonthUsageRequest) } -inline PROTOBUF_NDEBUG_INLINE Invoice::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - items_{visibility, arena, from.items_}, - id_(arena, from.id_), - status_(arena, from.status_), - emailed_to_(arena, from.emailed_to_) {} + : org_id_(arena, from.org_id_), + _cached_size_{0} {} -Invoice::Invoice( +GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest( ::google::protobuf::Arena* arena, - const Invoice& from) + const GetCurrentMonthUsageRequest& from) : ::google::protobuf::Message(arena) { - Invoice* const _this = this; + GetCurrentMonthUsageRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.invoice_date_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.invoice_date_) - : nullptr; - _impl_.due_date_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.due_date_) - : nullptr; - _impl_.invoice_amount_ = from._impl_.invoice_amount_; - // @@protoc_insertion_point(copy_constructor:viam.app.v1.Invoice) + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetCurrentMonthUsageRequest) } -inline PROTOBUF_NDEBUG_INLINE Invoice::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : _cached_size_{0}, - items_{visibility, arena}, - id_(arena), - status_(arena), - emailed_to_(arena) {} + : org_id_(arena), + _cached_size_{0} {} + +inline void GetCurrentMonthUsageRequest::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +GetCurrentMonthUsageRequest::~GetCurrentMonthUsageRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetCurrentMonthUsageRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetCurrentMonthUsageRequest::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.org_id_.Destroy(); + _impl_.~Impl_(); +} + +PROTOBUF_NOINLINE void GetCurrentMonthUsageRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetCurrentMonthUsageRequest) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetCurrentMonthUsageRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 54, 2> GetCurrentMonthUsageRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetCurrentMonthUsageRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string org_id = 1 [json_name = "orgId"]; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageRequest, _impl_.org_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string org_id = 1 [json_name = "orgId"]; + {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageRequest, _impl_.org_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\47\6\0\0\0\0\0\0" + "viam.app.v1.GetCurrentMonthUsageRequest" + "org_id" + }}, +}; + +::uint8_t* GetCurrentMonthUsageRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetCurrentMonthUsageRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + const std::string& _s = this->_internal_org_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetCurrentMonthUsageRequest.org_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetCurrentMonthUsageRequest) + return target; +} + +::size_t GetCurrentMonthUsageRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetCurrentMonthUsageRequest) + ::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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetCurrentMonthUsageRequest::_class_data_ = { + GetCurrentMonthUsageRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetCurrentMonthUsageRequest::GetClassData() const { + return &_class_data_; +} + +void GetCurrentMonthUsageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetCurrentMonthUsageRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _this->_internal_set_org_id(from._internal_org_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetCurrentMonthUsageRequest::CopyFrom(const GetCurrentMonthUsageRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetCurrentMonthUsageRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetCurrentMonthUsageRequest::IsInitialized() const { + return true; +} + +::_pbi::CachedSize* GetCurrentMonthUsageRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void GetCurrentMonthUsageRequest::InternalSwap(GetCurrentMonthUsageRequest* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); +} + +::google::protobuf::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]); +} +// =================================================================== + +class UsageCost::_Internal { + public: +}; + +UsageCost::UsageCost(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UsageCost) +} +UsageCost::UsageCost( + ::google::protobuf::Arena* arena, const UsageCost& from) + : UsageCost(arena) { + MergeFrom(from); +} +inline PROTOBUF_NDEBUG_INLINE UsageCost::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} -inline void Invoice::SharedCtor(::_pb::Arena* arena) { +inline void UsageCost::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, invoice_date_), + offsetof(Impl_, cost_), 0, - offsetof(Impl_, invoice_amount_) - - offsetof(Impl_, invoice_date_) + - sizeof(Impl_::invoice_amount_)); + offsetof(Impl_, resource_type_) - + offsetof(Impl_, cost_) + + sizeof(Impl_::resource_type_)); } -Invoice::~Invoice() { - // @@protoc_insertion_point(destructor:viam.app.v1.Invoice) +UsageCost::~UsageCost() { + // @@protoc_insertion_point(destructor:viam.app.v1.UsageCost) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void Invoice::SharedDtor() { +inline void UsageCost::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.status_.Destroy(); - _impl_.emailed_to_.Destroy(); - delete _impl_.invoice_date_; - delete _impl_.due_date_; _impl_.~Impl_(); } -PROTOBUF_NOINLINE void Invoice::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Invoice) +PROTOBUF_NOINLINE void UsageCost::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UsageCost) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.items_.Clear(); - _impl_.id_.ClearToEmpty(); - _impl_.status_.ClearToEmpty(); - _impl_.emailed_to_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.invoice_date_ != nullptr); - _impl_.invoice_date_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.due_date_ != nullptr); - _impl_.due_date_->Clear(); - } - } - _impl_.invoice_amount_ = 0; - _impl_._has_bits_.Clear(); + ::memset(&_impl_.cost_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.resource_type_) - + reinterpret_cast(&_impl_.cost_)) + sizeof(_impl_.resource_type_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* Invoice::_InternalParse( +const char* UsageCost::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -1710,143 +1665,65 @@ const char* Invoice::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 3, 46, 2> Invoice::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> UsageCost::_table_ = { { - PROTOBUF_FIELD_OFFSET(Invoice, _impl_._has_bits_), + 0, // no _has_bits_ 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask + 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap + 4294967292, // skipmap offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Invoice_default_instance_._instance, + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_UsageCost_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Invoice, _impl_.id_)}}, - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Invoice, _impl_.invoice_date_)}}, - // double invoice_amount = 3 [json_name = "invoiceAmount"]; + // double cost = 2 [json_name = "cost"]; {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Invoice, _impl_.invoice_amount_)}}, - // string status = 4 [json_name = "status"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Invoice, _impl_.status_)}}, - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - {::_pbi::TcParser::FastMtS1, - {42, 1, 1, PROTOBUF_FIELD_OFFSET(Invoice, _impl_.due_date_)}}, - // repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"]; - {::_pbi::TcParser::FastMtR1, - {50, 63, 2, PROTOBUF_FIELD_OFFSET(Invoice, _impl_.items_)}}, - // string emailed_to = 7 [json_name = "emailedTo"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(Invoice, _impl_.emailed_to_)}}, + {17, 63, 0, PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.cost_)}}, + // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UsageCost, _impl_.resource_type_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.resource_type_)}}, }}, {{ 65535, 65535 }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Invoice, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - {PROTOBUF_FIELD_OFFSET(Invoice, _impl_.invoice_date_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // double invoice_amount = 3 [json_name = "invoiceAmount"]; - {PROTOBUF_FIELD_OFFSET(Invoice, _impl_.invoice_amount_), -1, 0, + // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; + {PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.resource_type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // double cost = 2 [json_name = "cost"]; + {PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.cost_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // string status = 4 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(Invoice, _impl_.status_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - {PROTOBUF_FIELD_OFFSET(Invoice, _impl_.due_date_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"]; - {PROTOBUF_FIELD_OFFSET(Invoice, _impl_.items_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string emailed_to = 7 [json_name = "emailedTo"]; - {PROTOBUF_FIELD_OFFSET(Invoice, _impl_.emailed_to_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::BillableResourceEvent>()}, - }}, {{ - "\23\2\0\0\6\0\0\12" - "viam.app.v1.Invoice" - "id" - "status" - "emailed_to" + }}, + // no aux_entries + {{ }}, }; -::uint8_t* Invoice::_InternalSerialize( +::uint8_t* UsageCost::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Invoice) + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UsageCost) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Invoice.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::invoice_date(this), - _Internal::invoice_date(this).GetCachedSize(), target, stream); + // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; + if (this->_internal_resource_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_resource_type(), target); } - // double invoice_amount = 3 [json_name = "invoiceAmount"]; + // double cost = 2 [json_name = "cost"]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); - double tmp_invoice_amount = this->_internal_invoice_amount(); - ::uint64_t raw_invoice_amount; - memcpy(&raw_invoice_amount, &tmp_invoice_amount, sizeof(tmp_invoice_amount)); - if (raw_invoice_amount != 0) { + double tmp_cost = this->_internal_cost(); + ::uint64_t raw_cost; + memcpy(&raw_cost, &tmp_cost, sizeof(tmp_cost)); + if (raw_cost != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_invoice_amount(), target); - } - - // string status = 4 [json_name = "status"]; - if (!this->_internal_status().empty()) { - const std::string& _s = this->_internal_status(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Invoice.status"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::due_date(this), - _Internal::due_date(this).GetCachedSize(), target, stream); - } - - // repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"]; - for (unsigned i = 0, - n = static_cast(this->_internal_items_size()); i < n; i++) { - const auto& repfield = this->_internal_items().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); - } - - // string emailed_to = 7 [json_name = "emailedTo"]; - if (!this->_internal_emailed_to().empty()) { - const std::string& _s = this->_internal_emailed_to(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Invoice.emailed_to"); - target = stream->WriteStringMaybeAliased(7, _s, target); + 2, this->_internal_cost(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1854,221 +1731,188 @@ ::uint8_t* Invoice::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Invoice) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UsageCost) return target; } -::size_t Invoice::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Invoice) +::size_t UsageCost::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UsageCost) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"]; - total_size += 1UL * this->_internal_items_size(); - for (const auto& msg : this->_internal_items()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string status = 4 [json_name = "status"]; - if (!this->_internal_status().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_status()); - } - - // string emailed_to = 7 [json_name = "emailedTo"]; - if (!this->_internal_emailed_to().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_emailed_to()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.invoice_date_); - } - - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.due_date_); - } - - } - // double invoice_amount = 3 [json_name = "invoiceAmount"]; + // double cost = 2 [json_name = "cost"]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); - double tmp_invoice_amount = this->_internal_invoice_amount(); - ::uint64_t raw_invoice_amount; - memcpy(&raw_invoice_amount, &tmp_invoice_amount, sizeof(tmp_invoice_amount)); - if (raw_invoice_amount != 0) { + double tmp_cost = this->_internal_cost(); + ::uint64_t raw_cost; + memcpy(&raw_cost, &tmp_cost, sizeof(tmp_cost)); + if (raw_cost != 0) { total_size += 9; } + // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; + if (this->_internal_resource_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_resource_type()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData Invoice::_class_data_ = { - Invoice::MergeImpl, +const ::google::protobuf::Message::ClassData UsageCost::_class_data_ = { + UsageCost::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* Invoice::GetClassData() const { +const ::google::protobuf::Message::ClassData* UsageCost::GetClassData() const { return &_class_data_; } -void Invoice::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Invoice) +void UsageCost::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UsageCost) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_items()->MergeFrom( - from._internal_items()); - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_status().empty()) { - _this->_internal_set_status(from._internal_status()); - } - if (!from._internal_emailed_to().empty()) { - _this->_internal_set_emailed_to(from._internal_emailed_to()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_invoice_date()->::google::protobuf::Timestamp::MergeFrom( - from._internal_invoice_date()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_due_date()->::google::protobuf::Timestamp::MergeFrom( - from._internal_due_date()); - } - } static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); - double tmp_invoice_amount = from._internal_invoice_amount(); - ::uint64_t raw_invoice_amount; - memcpy(&raw_invoice_amount, &tmp_invoice_amount, sizeof(tmp_invoice_amount)); - if (raw_invoice_amount != 0) { - _this->_internal_set_invoice_amount(from._internal_invoice_amount()); + double tmp_cost = from._internal_cost(); + ::uint64_t raw_cost; + memcpy(&raw_cost, &tmp_cost, sizeof(tmp_cost)); + if (raw_cost != 0) { + _this->_internal_set_cost(from._internal_cost()); + } + if (from._internal_resource_type() != 0) { + _this->_internal_set_resource_type(from._internal_resource_type()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void Invoice::CopyFrom(const Invoice& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Invoice) +void UsageCost::CopyFrom(const UsageCost& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UsageCost) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool Invoice::IsInitialized() const { +PROTOBUF_NOINLINE bool UsageCost::IsInitialized() const { return true; } -::_pbi::CachedSize* Invoice::AccessCachedSize() const { +::_pbi::CachedSize* UsageCost::AccessCachedSize() const { return &_impl_._cached_size_; } -void Invoice::InternalSwap(Invoice* PROTOBUF_RESTRICT other) { +void UsageCost::InternalSwap(UsageCost* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.items_.InternalSwap(&other->_impl_.items_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_, &other->_impl_.status_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.emailed_to_, &other->_impl_.emailed_to_, arena); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Invoice, _impl_.invoice_amount_) - + sizeof(Invoice::_impl_.invoice_amount_) - - PROTOBUF_FIELD_OFFSET(Invoice, _impl_.invoice_date_)>( - reinterpret_cast(&_impl_.invoice_date_), - reinterpret_cast(&other->_impl_.invoice_date_)); + PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.resource_type_) + + sizeof(UsageCost::_impl_.resource_type_) + - PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.cost_)>( + reinterpret_cast(&_impl_.cost_), + reinterpret_cast(&other->_impl_.cost_)); } -::google::protobuf::Metadata Invoice::GetMetadata() const { +::google::protobuf::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[2]); + file_level_metadata_app_2fv1_2fbilling_2eproto[3]); } // =================================================================== -class PaymentMethodCard::_Internal { +class ResourceUsageCostsBySource::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_._has_bits_); + static const ::viam::app::v1::ResourceUsageCosts& resource_usage_costs(const ResourceUsageCostsBySource* msg); + static void set_has_resource_usage_costs(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; -PaymentMethodCard::PaymentMethodCard(::google::protobuf::Arena* arena) +const ::viam::app::v1::ResourceUsageCosts& ResourceUsageCostsBySource::_Internal::resource_usage_costs(const ResourceUsageCostsBySource* msg) { + return *msg->_impl_.resource_usage_costs_; +} +ResourceUsageCostsBySource::ResourceUsageCostsBySource(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.PaymentMethodCard) + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ResourceUsageCostsBySource) } -inline PROTOBUF_NDEBUG_INLINE PaymentMethodCard::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE ResourceUsageCostsBySource::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) - : brand_(arena, from.brand_), - last_four_digits_(arena, from.last_four_digits_), - _cached_size_{0} {} + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + tier_name_(arena, from.tier_name_) {} -PaymentMethodCard::PaymentMethodCard( +ResourceUsageCostsBySource::ResourceUsageCostsBySource( ::google::protobuf::Arena* arena, - const PaymentMethodCard& from) + const ResourceUsageCostsBySource& from) : ::google::protobuf::Message(arena) { - PaymentMethodCard* const _this = this; + ResourceUsageCostsBySource* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.resource_usage_costs_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::viam::app::v1::ResourceUsageCosts>(arena, *from._impl_.resource_usage_costs_) + : nullptr; + _impl_.source_type_ = from._impl_.source_type_; - // @@protoc_insertion_point(copy_constructor:viam.app.v1.PaymentMethodCard) + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResourceUsageCostsBySource) } -inline PROTOBUF_NDEBUG_INLINE PaymentMethodCard::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE ResourceUsageCostsBySource::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : brand_(arena), - last_four_digits_(arena), - _cached_size_{0} {} + : _cached_size_{0}, + tier_name_(arena) {} -inline void PaymentMethodCard::SharedCtor(::_pb::Arena* arena) { +inline void ResourceUsageCostsBySource::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, resource_usage_costs_), + 0, + offsetof(Impl_, source_type_) - + offsetof(Impl_, resource_usage_costs_) + + sizeof(Impl_::source_type_)); } -PaymentMethodCard::~PaymentMethodCard() { - // @@protoc_insertion_point(destructor:viam.app.v1.PaymentMethodCard) +ResourceUsageCostsBySource::~ResourceUsageCostsBySource() { + // @@protoc_insertion_point(destructor:viam.app.v1.ResourceUsageCostsBySource) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void PaymentMethodCard::SharedDtor() { +inline void ResourceUsageCostsBySource::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); - _impl_.brand_.Destroy(); - _impl_.last_four_digits_.Destroy(); + _impl_.tier_name_.Destroy(); + delete _impl_.resource_usage_costs_; _impl_.~Impl_(); } -PROTOBUF_NOINLINE void PaymentMethodCard::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.PaymentMethodCard) +PROTOBUF_NOINLINE void ResourceUsageCostsBySource::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResourceUsageCostsBySource) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.brand_.ClearToEmpty(); - _impl_.last_four_digits_.ClearToEmpty(); + _impl_.tier_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.resource_usage_costs_ != nullptr); + _impl_.resource_usage_costs_->Clear(); + } + _impl_.source_type_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* PaymentMethodCard::_InternalParse( +const char* ResourceUsageCostsBySource::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -2076,66 +1920,79 @@ const char* PaymentMethodCard::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 59, 2> PaymentMethodCard::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 56, 2> ResourceUsageCostsBySource::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_._has_bits_), 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask + 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap + 4294967288, // skipmap offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PaymentMethodCard_default_instance_._instance, + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ResourceUsageCostsBySource_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - // string last_four_digits = 2 [json_name = "lastFourDigits"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.last_four_digits_)}}, - // string brand = 1 [json_name = "brand"]; + {::_pbi::TcParser::MiniParse, {}}, + // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResourceUsageCostsBySource, _impl_.source_type_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.source_type_)}}, + // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.resource_usage_costs_)}}, + // string tier_name = 3 [json_name = "tierName"]; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.brand_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string brand = 1 [json_name = "brand"]; - {PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.brand_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string last_four_digits = 2 [json_name = "lastFourDigits"]; - {PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.last_four_digits_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\5\20\0\0\0\0\0" - "viam.app.v1.PaymentMethodCard" - "brand" - "last_four_digits" + {26, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.tier_name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; + {PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.source_type_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; + {PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.resource_usage_costs_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string tier_name = 3 [json_name = "tierName"]; + {PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.tier_name_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::viam::app::v1::ResourceUsageCosts>()}, + }}, {{ + "\46\0\0\11\0\0\0\0" + "viam.app.v1.ResourceUsageCostsBySource" + "tier_name" }}, }; -::uint8_t* PaymentMethodCard::_InternalSerialize( +::uint8_t* ResourceUsageCostsBySource::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.PaymentMethodCard) + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResourceUsageCostsBySource) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // string brand = 1 [json_name = "brand"]; - if (!this->_internal_brand().empty()) { - const std::string& _s = this->_internal_brand(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PaymentMethodCard.brand"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; + if (this->_internal_source_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_source_type(), target); } - // string last_four_digits = 2 [json_name = "lastFourDigits"]; - if (!this->_internal_last_four_digits().empty()) { - const std::string& _s = this->_internal_last_four_digits(); + cached_has_bits = _impl_._has_bits_[0]; + // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::resource_usage_costs(this), + _Internal::resource_usage_costs(this).GetCachedSize(), target, stream); + } + + // string tier_name = 3 [json_name = "tierName"]; + if (!this->_internal_tier_name().empty()) { + const std::string& _s = this->_internal_tier_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PaymentMethodCard.last_four_digits"); - target = stream->WriteStringMaybeAliased(2, _s, target); + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ResourceUsageCostsBySource.tier_name"); + target = stream->WriteStringMaybeAliased(3, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2143,147 +2000,179 @@ ::uint8_t* PaymentMethodCard::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.PaymentMethodCard) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ResourceUsageCostsBySource) return target; } -::size_t PaymentMethodCard::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.PaymentMethodCard) +::size_t ResourceUsageCostsBySource::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResourceUsageCostsBySource) ::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 brand = 1 [json_name = "brand"]; - if (!this->_internal_brand().empty()) { + // string tier_name = 3 [json_name = "tierName"]; + if (!this->_internal_tier_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_brand()); + this->_internal_tier_name()); } - // string last_four_digits = 2 [json_name = "lastFourDigits"]; - if (!this->_internal_last_four_digits().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_last_four_digits()); + // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.resource_usage_costs_); + } + + // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; + if (this->_internal_source_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData PaymentMethodCard::_class_data_ = { - PaymentMethodCard::MergeImpl, +const ::google::protobuf::Message::ClassData ResourceUsageCostsBySource::_class_data_ = { + ResourceUsageCostsBySource::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* PaymentMethodCard::GetClassData() const { +const ::google::protobuf::Message::ClassData* ResourceUsageCostsBySource::GetClassData() const { return &_class_data_; } -void PaymentMethodCard::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.PaymentMethodCard) +void ResourceUsageCostsBySource::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceUsageCostsBySource) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_brand().empty()) { - _this->_internal_set_brand(from._internal_brand()); + if (!from._internal_tier_name().empty()) { + _this->_internal_set_tier_name(from._internal_tier_name()); } - if (!from._internal_last_four_digits().empty()) { - _this->_internal_set_last_four_digits(from._internal_last_four_digits()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_resource_usage_costs()->::viam::app::v1::ResourceUsageCosts::MergeFrom( + from._internal_resource_usage_costs()); + } + if (from._internal_source_type() != 0) { + _this->_internal_set_source_type(from._internal_source_type()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void PaymentMethodCard::CopyFrom(const PaymentMethodCard& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.PaymentMethodCard) +void ResourceUsageCostsBySource::CopyFrom(const ResourceUsageCostsBySource& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ResourceUsageCostsBySource) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool PaymentMethodCard::IsInitialized() const { +PROTOBUF_NOINLINE bool ResourceUsageCostsBySource::IsInitialized() const { return true; } -::_pbi::CachedSize* PaymentMethodCard::AccessCachedSize() const { +::_pbi::CachedSize* ResourceUsageCostsBySource::AccessCachedSize() const { return &_impl_._cached_size_; } -void PaymentMethodCard::InternalSwap(PaymentMethodCard* PROTOBUF_RESTRICT other) { +void ResourceUsageCostsBySource::InternalSwap(ResourceUsageCostsBySource* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.brand_, &other->_impl_.brand_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_four_digits_, &other->_impl_.last_four_digits_, arena); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tier_name_, &other->_impl_.tier_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.source_type_) + + sizeof(ResourceUsageCostsBySource::_impl_.source_type_) + - PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.resource_usage_costs_)>( + reinterpret_cast(&_impl_.resource_usage_costs_), + reinterpret_cast(&other->_impl_.resource_usage_costs_)); } -::google::protobuf::Metadata PaymentMethodCard::GetMetadata() const { +::google::protobuf::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[3]); + file_level_metadata_app_2fv1_2fbilling_2eproto[4]); } // =================================================================== -class GetCurrentMonthUsageRequest::_Internal { +class ResourceUsageCosts::_Internal { public: }; -GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest(::google::protobuf::Arena* arena) +ResourceUsageCosts::ResourceUsageCosts(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetCurrentMonthUsageRequest) + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ResourceUsageCosts) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageRequest::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE ResourceUsageCosts::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) - : org_id_(arena, from.org_id_), + : usage_costs_{visibility, arena, from.usage_costs_}, _cached_size_{0} {} -GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest( +ResourceUsageCosts::ResourceUsageCosts( ::google::protobuf::Arena* arena, - const GetCurrentMonthUsageRequest& from) + const ResourceUsageCosts& from) : ::google::protobuf::Message(arena) { - GetCurrentMonthUsageRequest* const _this = this; + ResourceUsageCosts* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, discount_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, discount_), + offsetof(Impl_, total_without_discount_) - + offsetof(Impl_, discount_) + + sizeof(Impl_::total_without_discount_)); - // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetCurrentMonthUsageRequest) + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResourceUsageCosts) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageRequest::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE ResourceUsageCosts::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : org_id_(arena), + : usage_costs_{visibility, arena}, _cached_size_{0} {} -inline void GetCurrentMonthUsageRequest::SharedCtor(::_pb::Arena* arena) { +inline void ResourceUsageCosts::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, discount_), + 0, + offsetof(Impl_, total_without_discount_) - + offsetof(Impl_, discount_) + + sizeof(Impl_::total_without_discount_)); } -GetCurrentMonthUsageRequest::~GetCurrentMonthUsageRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.GetCurrentMonthUsageRequest) +ResourceUsageCosts::~ResourceUsageCosts() { + // @@protoc_insertion_point(destructor:viam.app.v1.ResourceUsageCosts) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void GetCurrentMonthUsageRequest::SharedDtor() { +inline void ResourceUsageCosts::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); _impl_.~Impl_(); } -PROTOBUF_NOINLINE void GetCurrentMonthUsageRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetCurrentMonthUsageRequest) +PROTOBUF_NOINLINE void ResourceUsageCosts::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResourceUsageCosts) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.org_id_.ClearToEmpty(); + _impl_.usage_costs_.Clear(); + ::memset(&_impl_.discount_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.total_without_discount_) - + reinterpret_cast(&_impl_.discount_)) + sizeof(_impl_.total_without_discount_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* GetCurrentMonthUsageRequest::_InternalParse( +const char* ResourceUsageCosts::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -2291,51 +2180,102 @@ const char* GetCurrentMonthUsageRequest::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> GetCurrentMonthUsageRequest::_table_ = { +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> ResourceUsageCosts::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967280, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetCurrentMonthUsageRequest_default_instance_._instance, + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ResourceUsageCosts_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageRequest, _impl_.org_id_)}}, + // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; + {::_pbi::TcParser::FastF64S1, + {33, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_without_discount_)}}, + // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.usage_costs_)}}, + // double discount = 2 [json_name = "discount"]; + {::_pbi::TcParser::FastF64S1, + {17, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.discount_)}}, + // double total_with_discount = 3 [json_name = "totalWithDiscount"]; + {::_pbi::TcParser::FastF64S1, + {25, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_with_discount_)}}, }}, {{ 65535, 65535 }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\6\0\0\0\0\0\0" - "viam.app.v1.GetCurrentMonthUsageRequest" - "org_id" + // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; + {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.usage_costs_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // double discount = 2 [json_name = "discount"]; + {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.discount_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // double total_with_discount = 3 [json_name = "totalWithDiscount"]; + {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_with_discount_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; + {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_without_discount_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + }}, {{ + {::_pbi::TcParser::GetTable<::viam::app::v1::UsageCost>()}, + }}, {{ }}, }; -::uint8_t* GetCurrentMonthUsageRequest::_InternalSerialize( +::uint8_t* ResourceUsageCosts::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetCurrentMonthUsageRequest) + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResourceUsageCosts) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // string org_id = 1 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetCurrentMonthUsageRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; + for (unsigned i = 0, + n = static_cast(this->_internal_usage_costs_size()); i < n; i++) { + const auto& repfield = this->_internal_usage_costs().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + // double discount = 2 [json_name = "discount"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_discount = this->_internal_discount(); + ::uint64_t raw_discount; + memcpy(&raw_discount, &tmp_discount, sizeof(tmp_discount)); + if (raw_discount != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this->_internal_discount(), target); + } + + // double total_with_discount = 3 [json_name = "totalWithDiscount"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_total_with_discount = this->_internal_total_with_discount(); + ::uint64_t raw_total_with_discount; + memcpy(&raw_total_with_discount, &tmp_total_with_discount, sizeof(tmp_total_with_discount)); + if (raw_total_with_discount != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this->_internal_total_with_discount(), target); + } + + // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_total_without_discount = this->_internal_total_without_discount(); + ::uint64_t raw_total_without_discount; + memcpy(&raw_total_without_discount, &tmp_total_without_discount, sizeof(tmp_total_without_discount)); + if (raw_total_without_discount != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this->_internal_total_without_discount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2343,75 +2283,132 @@ ::uint8_t* GetCurrentMonthUsageRequest::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetCurrentMonthUsageRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ResourceUsageCosts) return target; } -::size_t GetCurrentMonthUsageRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetCurrentMonthUsageRequest) +::size_t ResourceUsageCosts::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResourceUsageCosts) ::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 org_id = 1 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; + total_size += 1UL * this->_internal_usage_costs_size(); + for (const auto& msg : this->_internal_usage_costs()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + // double discount = 2 [json_name = "discount"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_discount = this->_internal_discount(); + ::uint64_t raw_discount; + memcpy(&raw_discount, &tmp_discount, sizeof(tmp_discount)); + if (raw_discount != 0) { + total_size += 9; + } + + // double total_with_discount = 3 [json_name = "totalWithDiscount"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_total_with_discount = this->_internal_total_with_discount(); + ::uint64_t raw_total_with_discount; + memcpy(&raw_total_with_discount, &tmp_total_with_discount, sizeof(tmp_total_with_discount)); + if (raw_total_with_discount != 0) { + total_size += 9; + } + + // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_total_without_discount = this->_internal_total_without_discount(); + ::uint64_t raw_total_without_discount; + memcpy(&raw_total_without_discount, &tmp_total_without_discount, sizeof(tmp_total_without_discount)); + if (raw_total_without_discount != 0) { + total_size += 9; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetCurrentMonthUsageRequest::_class_data_ = { - GetCurrentMonthUsageRequest::MergeImpl, +const ::google::protobuf::Message::ClassData ResourceUsageCosts::_class_data_ = { + ResourceUsageCosts::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* GetCurrentMonthUsageRequest::GetClassData() const { +const ::google::protobuf::Message::ClassData* ResourceUsageCosts::GetClassData() const { return &_class_data_; } -void GetCurrentMonthUsageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetCurrentMonthUsageRequest) +void ResourceUsageCosts::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceUsageCosts) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _this->_internal_mutable_usage_costs()->MergeFrom( + from._internal_usage_costs()); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_discount = from._internal_discount(); + ::uint64_t raw_discount; + memcpy(&raw_discount, &tmp_discount, sizeof(tmp_discount)); + if (raw_discount != 0) { + _this->_internal_set_discount(from._internal_discount()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_total_with_discount = from._internal_total_with_discount(); + ::uint64_t raw_total_with_discount; + memcpy(&raw_total_with_discount, &tmp_total_with_discount, sizeof(tmp_total_with_discount)); + if (raw_total_with_discount != 0) { + _this->_internal_set_total_with_discount(from._internal_total_with_discount()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_total_without_discount = from._internal_total_without_discount(); + ::uint64_t raw_total_without_discount; + memcpy(&raw_total_without_discount, &tmp_total_without_discount, sizeof(tmp_total_without_discount)); + if (raw_total_without_discount != 0) { + _this->_internal_set_total_without_discount(from._internal_total_without_discount()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void GetCurrentMonthUsageRequest::CopyFrom(const GetCurrentMonthUsageRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetCurrentMonthUsageRequest) +void ResourceUsageCosts::CopyFrom(const ResourceUsageCosts& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ResourceUsageCosts) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCurrentMonthUsageRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool ResourceUsageCosts::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCurrentMonthUsageRequest::AccessCachedSize() const { +::_pbi::CachedSize* ResourceUsageCosts::AccessCachedSize() const { return &_impl_._cached_size_; } -void GetCurrentMonthUsageRequest::InternalSwap(GetCurrentMonthUsageRequest* PROTOBUF_RESTRICT other) { +void ResourceUsageCosts::InternalSwap(ResourceUsageCosts* PROTOBUF_RESTRICT other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + _impl_.usage_costs_.InternalSwap(&other->_impl_.usage_costs_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_without_discount_) + + sizeof(ResourceUsageCosts::_impl_.total_without_discount_) + - PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.discount_)>( + reinterpret_cast(&_impl_.discount_), + reinterpret_cast(&other->_impl_.discount_)); } -::google::protobuf::Metadata GetCurrentMonthUsageRequest::GetMetadata() const { +::google::protobuf::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[4]); + file_level_metadata_app_2fv1_2fbilling_2eproto[5]); } // =================================================================== @@ -2455,7 +2452,8 @@ inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + _cached_size_{0}, + resource_usage_costs_by_source_{visibility, arena, from.resource_usage_costs_by_source_} {} GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse( ::google::protobuf::Arena* arena, @@ -2477,25 +2475,26 @@ GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse( offsetof(Impl_, cloud_storage_usage_cost_), reinterpret_cast(&from._impl_) + offsetof(Impl_, cloud_storage_usage_cost_), - offsetof(Impl_, other_cloud_storage_usage_cost_) - + offsetof(Impl_, subtotal_) - offsetof(Impl_, cloud_storage_usage_cost_) + - sizeof(Impl_::other_cloud_storage_usage_cost_)); + sizeof(Impl_::subtotal_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetCurrentMonthUsageResponse) } inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : _cached_size_{0} {} + : _cached_size_{0}, + resource_usage_costs_by_source_{visibility, arena} {} inline void GetCurrentMonthUsageResponse::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, start_date_), 0, - offsetof(Impl_, other_cloud_storage_usage_cost_) - + offsetof(Impl_, subtotal_) - offsetof(Impl_, start_date_) + - sizeof(Impl_::other_cloud_storage_usage_cost_)); + sizeof(Impl_::subtotal_)); } GetCurrentMonthUsageResponse::~GetCurrentMonthUsageResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetCurrentMonthUsageResponse) @@ -2516,6 +2515,7 @@ PROTOBUF_NOINLINE void GetCurrentMonthUsageResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.resource_usage_costs_by_source_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -2528,8 +2528,8 @@ PROTOBUF_NOINLINE void GetCurrentMonthUsageResponse::Clear() { } } ::memset(&_impl_.cloud_storage_usage_cost_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.other_cloud_storage_usage_cost_) - - reinterpret_cast(&_impl_.cloud_storage_usage_cost_)) + sizeof(_impl_.other_cloud_storage_usage_cost_)); + reinterpret_cast(&_impl_.subtotal_) - + reinterpret_cast(&_impl_.cloud_storage_usage_cost_)) + sizeof(_impl_.subtotal_)); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -2542,16 +2542,16 @@ const char* GetCurrentMonthUsageResponse::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 13, 2, 0, 2> GetCurrentMonthUsageResponse::_table_ = { +const ::_pbi::TcParseTable<4, 15, 3, 0, 2> GetCurrentMonthUsageResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_._has_bits_), 0, // no _extensions_ - 13, 120, // max_field_number, fast_idx_mask + 15, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294959104, // skipmap + 4294934528, // skipmap offsetof(decltype(_table_), field_entries), - 13, // num_field_entries - 2, // num_aux_entries + 15, // num_field_entries + 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_GetCurrentMonthUsageResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback @@ -2563,41 +2563,45 @@ const ::_pbi::TcParseTable<4, 13, 2, 0, 2> GetCurrentMonthUsageResponse::_table_ // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; {::_pbi::TcParser::FastMtS1, {18, 1, 1, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.end_date_)}}, - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"]; + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {25, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.cloud_storage_usage_cost_)}}, - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"]; + // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {33, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_upload_usage_cost_)}}, - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"]; + // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {41, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_egres_usage_cost_)}}, - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"]; + // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {49, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.remote_control_usage_cost_)}}, - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"]; + // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {57, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.standard_compute_usage_cost_)}}, - // double discount_amount = 8 [json_name = "discountAmount"]; + // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; {::_pbi::TcParser::FastF64S1, {65, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.discount_amount_)}}, - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"]; + // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; {::_pbi::TcParser::FastF64S1, {73, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_with_discount_)}}, - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"]; + // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; {::_pbi::TcParser::FastF64S1, {81, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_without_discount_)}}, - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {89, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.per_machine_usage_cost_)}}, - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {97, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.binary_data_cloud_storage_usage_cost_)}}, - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; {::_pbi::TcParser::FastF64S1, {105, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.other_cloud_storage_usage_cost_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, + // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; + {::_pbi::TcParser::FastMtR1, + {114, 63, 2, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.resource_usage_costs_by_source_)}}, + // double subtotal = 15 [json_name = "subtotal"]; + {::_pbi::TcParser::FastF64S1, + {121, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.subtotal_)}}, }}, {{ 65535, 65535 }}, {{ @@ -2607,42 +2611,49 @@ const ::_pbi::TcParseTable<4, 13, 2, 0, 2> GetCurrentMonthUsageResponse::_table_ // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.end_date_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"]; + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.cloud_storage_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"]; + // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_upload_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"]; + // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_egres_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"]; + // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.remote_control_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"]; + // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.standard_compute_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double discount_amount = 8 [json_name = "discountAmount"]; + // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.discount_amount_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"]; + // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_with_discount_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"]; + // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_without_discount_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.per_machine_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.binary_data_cloud_storage_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.other_cloud_storage_usage_cost_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; + {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.resource_usage_costs_by_source_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // double subtotal = 15 [json_name = "subtotal"]; + {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.subtotal_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, }}, {{ {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, + {::_pbi::TcParser::GetTable<::viam::app::v1::ResourceUsageCostsBySource>()}, }}, {{ }}, }; @@ -2669,7 +2680,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( _Internal::end_date(this).GetCachedSize(), target, stream); } - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"]; + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_cloud_storage_usage_cost = this->_internal_cloud_storage_usage_cost(); @@ -2681,7 +2692,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 3, this->_internal_cloud_storage_usage_cost(), target); } - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"]; + // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_data_upload_usage_cost = this->_internal_data_upload_usage_cost(); @@ -2693,7 +2704,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 4, this->_internal_data_upload_usage_cost(), target); } - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"]; + // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_data_egres_usage_cost = this->_internal_data_egres_usage_cost(); @@ -2705,7 +2716,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 5, this->_internal_data_egres_usage_cost(), target); } - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"]; + // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_remote_control_usage_cost = this->_internal_remote_control_usage_cost(); @@ -2717,7 +2728,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 6, this->_internal_remote_control_usage_cost(), target); } - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"]; + // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_standard_compute_usage_cost = this->_internal_standard_compute_usage_cost(); @@ -2729,7 +2740,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 7, this->_internal_standard_compute_usage_cost(), target); } - // double discount_amount = 8 [json_name = "discountAmount"]; + // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_discount_amount = this->_internal_discount_amount(); @@ -2741,7 +2752,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 8, this->_internal_discount_amount(), target); } - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"]; + // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_total_usage_with_discount = this->_internal_total_usage_with_discount(); @@ -2753,7 +2764,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 9, this->_internal_total_usage_with_discount(), target); } - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"]; + // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_total_usage_without_discount = this->_internal_total_usage_without_discount(); @@ -2765,7 +2776,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 10, this->_internal_total_usage_without_discount(), target); } - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_per_machine_usage_cost = this->_internal_per_machine_usage_cost(); @@ -2777,7 +2788,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 11, this->_internal_per_machine_usage_cost(), target); } - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_binary_data_cloud_storage_usage_cost = this->_internal_binary_data_cloud_storage_usage_cost(); @@ -2789,7 +2800,7 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 12, this->_internal_binary_data_cloud_storage_usage_cost(), target); } - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_other_cloud_storage_usage_cost = this->_internal_other_cloud_storage_usage_cost(); @@ -2801,6 +2812,26 @@ ::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( 13, this->_internal_other_cloud_storage_usage_cost(), target); } + // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; + for (unsigned i = 0, + n = static_cast(this->_internal_resource_usage_costs_by_source_size()); i < n; i++) { + const auto& repfield = this->_internal_resource_usage_costs_by_source().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(14, repfield, repfield.GetCachedSize(), target, stream); + } + + // double subtotal = 15 [json_name = "subtotal"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_subtotal = this->_internal_subtotal(); + ::uint64_t raw_subtotal; + memcpy(&raw_subtotal, &tmp_subtotal, sizeof(tmp_subtotal)); + if (raw_subtotal != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 15, this->_internal_subtotal(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -2818,6 +2849,12 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; + total_size += 1UL * this->_internal_resource_usage_costs_by_source_size(); + for (const auto& msg : this->_internal_resource_usage_costs_by_source()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; @@ -2833,7 +2870,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { } } - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"]; + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_cloud_storage_usage_cost = this->_internal_cloud_storage_usage_cost(); @@ -2843,7 +2880,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"]; + // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_data_upload_usage_cost = this->_internal_data_upload_usage_cost(); @@ -2853,7 +2890,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"]; + // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_data_egres_usage_cost = this->_internal_data_egres_usage_cost(); @@ -2863,7 +2900,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"]; + // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_remote_control_usage_cost = this->_internal_remote_control_usage_cost(); @@ -2873,7 +2910,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"]; + // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_standard_compute_usage_cost = this->_internal_standard_compute_usage_cost(); @@ -2883,7 +2920,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double discount_amount = 8 [json_name = "discountAmount"]; + // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_discount_amount = this->_internal_discount_amount(); @@ -2893,7 +2930,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"]; + // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_total_usage_with_discount = this->_internal_total_usage_with_discount(); @@ -2903,7 +2940,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"]; + // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_total_usage_without_discount = this->_internal_total_usage_without_discount(); @@ -2913,7 +2950,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_per_machine_usage_cost = this->_internal_per_machine_usage_cost(); @@ -2923,7 +2960,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_binary_data_cloud_storage_usage_cost = this->_internal_binary_data_cloud_storage_usage_cost(); @@ -2933,7 +2970,7 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_other_cloud_storage_usage_cost = this->_internal_other_cloud_storage_usage_cost(); @@ -2943,6 +2980,16 @@ ::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { total_size += 9; } + // double subtotal = 15 [json_name = "subtotal"]; + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_subtotal = this->_internal_subtotal(); + ::uint64_t raw_subtotal; + memcpy(&raw_subtotal, &tmp_subtotal, sizeof(tmp_subtotal)); + if (raw_subtotal != 0) { + total_size += 9; + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -2962,6 +3009,8 @@ void GetCurrentMonthUsageResponse::MergeImpl(::google::protobuf::Message& to_msg ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_mutable_resource_usage_costs_by_source()->MergeFrom( + from._internal_resource_usage_costs_by_source()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -3061,6 +3110,14 @@ void GetCurrentMonthUsageResponse::MergeImpl(::google::protobuf::Message& to_msg if (raw_other_cloud_storage_usage_cost != 0) { _this->_internal_set_other_cloud_storage_usage_cost(from._internal_other_cloud_storage_usage_cost()); } + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); + double tmp_subtotal = from._internal_subtotal(); + ::uint64_t raw_subtotal; + memcpy(&raw_subtotal, &tmp_subtotal, sizeof(tmp_subtotal)); + if (raw_subtotal != 0) { + _this->_internal_set_subtotal(from._internal_subtotal()); + } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3082,9 +3139,10 @@ void GetCurrentMonthUsageResponse::InternalSwap(GetCurrentMonthUsageResponse* PR using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.resource_usage_costs_by_source_.InternalSwap(&other->_impl_.resource_usage_costs_by_source_); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.other_cloud_storage_usage_cost_) - + sizeof(GetCurrentMonthUsageResponse::_impl_.other_cloud_storage_usage_cost_) + PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.subtotal_) + + sizeof(GetCurrentMonthUsageResponse::_impl_.subtotal_) - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.start_date_)>( reinterpret_cast(&_impl_.start_date_), reinterpret_cast(&other->_impl_.start_date_)); @@ -3093,7 +3151,7 @@ void GetCurrentMonthUsageResponse::InternalSwap(GetCurrentMonthUsageResponse* PR ::google::protobuf::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[5]); + file_level_metadata_app_2fv1_2fbilling_2eproto[6]); } // =================================================================== @@ -3283,7 +3341,7 @@ void GetOrgBillingInformationRequest::InternalSwap(GetOrgBillingInformationReque ::google::protobuf::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[6]); + file_level_metadata_app_2fv1_2fbilling_2eproto[7]); } // =================================================================== @@ -3598,7 +3656,7 @@ void GetOrgBillingInformationResponse::InternalSwap(GetOrgBillingInformationResp ::google::protobuf::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[7]); + file_level_metadata_app_2fv1_2fbilling_2eproto[8]); } // =================================================================== @@ -3788,7 +3846,7 @@ void GetInvoicesSummaryRequest::InternalSwap(GetInvoicesSummaryRequest* PROTOBUF ::google::protobuf::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[8]); + file_level_metadata_app_2fv1_2fbilling_2eproto[9]); } // =================================================================== @@ -4011,7 +4069,7 @@ void GetInvoicesSummaryResponse::InternalSwap(GetInvoicesSummaryResponse* PROTOB ::google::protobuf::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[9]); + file_level_metadata_app_2fv1_2fbilling_2eproto[10]); } // =================================================================== @@ -4230,7 +4288,7 @@ void GetInvoicePdfRequest::InternalSwap(GetInvoicePdfRequest* PROTOBUF_RESTRICT ::google::protobuf::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[10]); + file_level_metadata_app_2fv1_2fbilling_2eproto[11]); } // =================================================================== @@ -4415,7 +4473,7 @@ void GetInvoicePdfResponse::InternalSwap(GetInvoicePdfResponse* PROTOBUF_RESTRIC ::google::protobuf::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[11]); + file_level_metadata_app_2fv1_2fbilling_2eproto[12]); } // =================================================================== @@ -4634,7 +4692,7 @@ void SendPaymentRequiredEmailRequest::InternalSwap(SendPaymentRequiredEmailReque ::google::protobuf::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[12]); + file_level_metadata_app_2fv1_2fbilling_2eproto[13]); } // =================================================================== @@ -4669,7 +4727,7 @@ SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse( ::google::protobuf::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[13]); + file_level_metadata_app_2fv1_2fbilling_2eproto[14]); } // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/viam/api/app/v1/billing.pb.h b/src/viam/api/app/v1/billing.pb.h index 1df9efbb2..192c43ee5 100644 --- a/src/viam/api/app/v1/billing.pb.h +++ b/src/viam/api/app/v1/billing.pb.h @@ -61,9 +61,6 @@ extern const ::google::protobuf::internal::DescriptorTable namespace viam { namespace app { namespace v1 { -class BillableResourceEvent; -struct BillableResourceEventDefaultTypeInternal; -extern BillableResourceEventDefaultTypeInternal _BillableResourceEvent_default_instance_; class GetCurrentMonthUsageRequest; struct GetCurrentMonthUsageRequestDefaultTypeInternal; extern GetCurrentMonthUsageRequestDefaultTypeInternal _GetCurrentMonthUsageRequest_default_instance_; @@ -88,21 +85,27 @@ extern GetOrgBillingInformationRequestDefaultTypeInternal _GetOrgBillingInformat class GetOrgBillingInformationResponse; struct GetOrgBillingInformationResponseDefaultTypeInternal; extern GetOrgBillingInformationResponseDefaultTypeInternal _GetOrgBillingInformationResponse_default_instance_; -class Invoice; -struct InvoiceDefaultTypeInternal; -extern InvoiceDefaultTypeInternal _Invoice_default_instance_; class InvoiceSummary; struct InvoiceSummaryDefaultTypeInternal; extern InvoiceSummaryDefaultTypeInternal _InvoiceSummary_default_instance_; class PaymentMethodCard; struct PaymentMethodCardDefaultTypeInternal; extern PaymentMethodCardDefaultTypeInternal _PaymentMethodCard_default_instance_; +class ResourceUsageCosts; +struct ResourceUsageCostsDefaultTypeInternal; +extern ResourceUsageCostsDefaultTypeInternal _ResourceUsageCosts_default_instance_; +class ResourceUsageCostsBySource; +struct ResourceUsageCostsBySourceDefaultTypeInternal; +extern ResourceUsageCostsBySourceDefaultTypeInternal _ResourceUsageCostsBySource_default_instance_; class SendPaymentRequiredEmailRequest; struct SendPaymentRequiredEmailRequestDefaultTypeInternal; extern SendPaymentRequiredEmailRequestDefaultTypeInternal _SendPaymentRequiredEmailRequest_default_instance_; class SendPaymentRequiredEmailResponse; struct SendPaymentRequiredEmailResponseDefaultTypeInternal; extern SendPaymentRequiredEmailResponseDefaultTypeInternal _SendPaymentRequiredEmailResponse_default_instance_; +class UsageCost; +struct UsageCostDefaultTypeInternal; +extern UsageCostDefaultTypeInternal _UsageCost_default_instance_; } // namespace v1 } // namespace app } // namespace viam @@ -147,12 +150,273 @@ inline bool PaymentMethodType_Parse(absl::string_view name, PaymentMethodType* v return ::google::protobuf::internal::ParseNamedEnum( PaymentMethodType_descriptor(), name, value); } +enum UsageCostType : int { + USAGE_COST_TYPE_UNSPECIFIED = 0, + USAGE_COST_TYPE_DATA_UPLOAD = 1, + USAGE_COST_TYPE_DATA_EGRESS = 2, + USAGE_COST_TYPE_REMOTE_CONTROL = 3, + USAGE_COST_TYPE_STANDARD_COMPUTE = 4, + USAGE_COST_TYPE_CLOUD_STORAGE = 5, + USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE = 6, + USAGE_COST_TYPE_OTHER_CLOUD_STORAGE = 7, + USAGE_COST_TYPE_PER_MACHINE = 8, + UsageCostType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + UsageCostType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), +}; + +bool UsageCostType_IsValid(int value); +extern const uint32_t UsageCostType_internal_data_[]; +constexpr UsageCostType UsageCostType_MIN = static_cast(0); +constexpr UsageCostType UsageCostType_MAX = static_cast(8); +constexpr int UsageCostType_ARRAYSIZE = 8 + 1; +const ::google::protobuf::EnumDescriptor* +UsageCostType_descriptor(); +template +const std::string& UsageCostType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to UsageCostType_Name()."); + return UsageCostType_Name(static_cast(value)); +} +template <> +inline const std::string& UsageCostType_Name(UsageCostType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool UsageCostType_Parse(absl::string_view name, UsageCostType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + UsageCostType_descriptor(), name, value); +} +enum SourceType : int { + SOURCE_TYPE_UNSPECIFIED = 0, + SOURCE_TYPE_ORG = 1, + SOURCE_TYPE_FRAGMENT = 2, + SourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + SourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), +}; + +bool SourceType_IsValid(int value); +extern const uint32_t SourceType_internal_data_[]; +constexpr SourceType SourceType_MIN = static_cast(0); +constexpr SourceType SourceType_MAX = static_cast(2); +constexpr int SourceType_ARRAYSIZE = 2 + 1; +const ::google::protobuf::EnumDescriptor* +SourceType_descriptor(); +template +const std::string& SourceType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to SourceType_Name()."); + return SourceType_Name(static_cast(value)); +} +template <> +inline const std::string& SourceType_Name(SourceType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool SourceType_Parse(absl::string_view name, SourceType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SourceType_descriptor(), name, value); +} // =================================================================== // ------------------------------------------------------------------- +class UsageCost final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UsageCost) */ { + public: + inline UsageCost() : UsageCost(nullptr) {} + ~UsageCost() override; + template + explicit PROTOBUF_CONSTEXPR UsageCost(::google::protobuf::internal::ConstantInitialized); + + inline UsageCost(const UsageCost& from) + : UsageCost(nullptr, from) {} + UsageCost(UsageCost&& from) noexcept + : UsageCost() { + *this = ::std::move(from); + } + + inline UsageCost& operator=(const UsageCost& from) { + CopyFrom(from); + return *this; + } + inline UsageCost& operator=(UsageCost&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const UsageCost& default_instance() { + return *internal_default_instance(); + } + static inline const UsageCost* internal_default_instance() { + return reinterpret_cast( + &_UsageCost_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(UsageCost& a, UsageCost& b) { + a.Swap(&b); + } + inline void Swap(UsageCost* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UsageCost* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UsageCost* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const UsageCost& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const UsageCost& from) { + UsageCost::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(UsageCost* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.app.v1.UsageCost"; + } + protected: + explicit UsageCost(::google::protobuf::Arena* arena); + UsageCost(::google::protobuf::Arena* arena, const UsageCost& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCostFieldNumber = 2, + kResourceTypeFieldNumber = 1, + }; + // double cost = 2 [json_name = "cost"]; + void clear_cost() ; + double cost() const; + void set_cost(double value); + + private: + double _internal_cost() const; + void _internal_set_cost(double value); + + public: + // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; + void clear_resource_type() ; + ::viam::app::v1::UsageCostType resource_type() const; + void set_resource_type(::viam::app::v1::UsageCostType value); + + private: + ::viam::app::v1::UsageCostType _internal_resource_type() const; + void _internal_set_resource_type(::viam::app::v1::UsageCostType value); + + public: + // @@protoc_insertion_point(class_scope:viam.app.v1.UsageCost) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + double cost_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +};// ------------------------------------------------------------------- + class SendPaymentRequiredEmailResponse final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.SendPaymentRequiredEmailResponse) */ { public: @@ -211,7 +475,7 @@ class SendPaymentRequiredEmailResponse final : &_SendPaymentRequiredEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(SendPaymentRequiredEmailResponse& a, SendPaymentRequiredEmailResponse& b) { a.Swap(&b); @@ -348,7 +612,7 @@ class SendPaymentRequiredEmailRequest final : &_SendPaymentRequiredEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(SendPaymentRequiredEmailRequest& a, SendPaymentRequiredEmailRequest& b) { a.Swap(&b); @@ -547,7 +811,7 @@ class PaymentMethodCard final : &_PaymentMethodCard_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 1; friend void swap(PaymentMethodCard& a, PaymentMethodCard& b) { a.Swap(&b); @@ -746,7 +1010,7 @@ class GetOrgBillingInformationRequest final : &_GetOrgBillingInformationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(GetOrgBillingInformationRequest& a, GetOrgBillingInformationRequest& b) { a.Swap(&b); @@ -927,7 +1191,7 @@ class GetInvoicesSummaryRequest final : &_GetInvoicesSummaryRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(GetInvoicesSummaryRequest& a, GetInvoicesSummaryRequest& b) { a.Swap(&b); @@ -1108,7 +1372,7 @@ class GetInvoicePdfResponse final : &_GetInvoicePdfResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(GetInvoicePdfResponse& a, GetInvoicePdfResponse& b) { a.Swap(&b); @@ -1289,7 +1553,7 @@ class GetInvoicePdfRequest final : &_GetInvoicePdfRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(GetInvoicePdfRequest& a, GetInvoicePdfRequest& b) { a.Swap(&b); @@ -1488,7 +1752,7 @@ class GetCurrentMonthUsageRequest final : &_GetCurrentMonthUsageRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 2; friend void swap(GetCurrentMonthUsageRequest& a, GetCurrentMonthUsageRequest& b) { a.Swap(&b); @@ -1610,26 +1874,26 @@ class GetCurrentMonthUsageRequest final : friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; };// ------------------------------------------------------------------- -class InvoiceSummary final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.InvoiceSummary) */ { +class ResourceUsageCosts final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceUsageCosts) */ { public: - inline InvoiceSummary() : InvoiceSummary(nullptr) {} - ~InvoiceSummary() override; + inline ResourceUsageCosts() : ResourceUsageCosts(nullptr) {} + ~ResourceUsageCosts() override; template - explicit PROTOBUF_CONSTEXPR InvoiceSummary(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ResourceUsageCosts(::google::protobuf::internal::ConstantInitialized); - inline InvoiceSummary(const InvoiceSummary& from) - : InvoiceSummary(nullptr, from) {} - InvoiceSummary(InvoiceSummary&& from) noexcept - : InvoiceSummary() { + inline ResourceUsageCosts(const ResourceUsageCosts& from) + : ResourceUsageCosts(nullptr, from) {} + ResourceUsageCosts(ResourceUsageCosts&& from) noexcept + : ResourceUsageCosts() { *this = ::std::move(from); } - inline InvoiceSummary& operator=(const InvoiceSummary& from) { + inline ResourceUsageCosts& operator=(const ResourceUsageCosts& from) { CopyFrom(from); return *this; } - inline InvoiceSummary& operator=(InvoiceSummary&& from) noexcept { + inline ResourceUsageCosts& operator=(ResourceUsageCosts&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1661,20 +1925,20 @@ class InvoiceSummary final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const InvoiceSummary& default_instance() { + static const ResourceUsageCosts& default_instance() { return *internal_default_instance(); } - static inline const InvoiceSummary* internal_default_instance() { - return reinterpret_cast( - &_InvoiceSummary_default_instance_); + static inline const ResourceUsageCosts* internal_default_instance() { + return reinterpret_cast( + &_ResourceUsageCosts_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 5; - friend void swap(InvoiceSummary& a, InvoiceSummary& b) { + friend void swap(ResourceUsageCosts& a, ResourceUsageCosts& b) { a.Swap(&b); } - inline void Swap(InvoiceSummary* other) { + inline void Swap(ResourceUsageCosts* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -1687,7 +1951,7 @@ class InvoiceSummary final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InvoiceSummary* other) { + void UnsafeArenaSwap(ResourceUsageCosts* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1695,14 +1959,14 @@ class InvoiceSummary final : // implements Message ---------------------------------------------- - InvoiceSummary* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ResourceUsageCosts* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InvoiceSummary& from); + void CopyFrom(const ResourceUsageCosts& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const InvoiceSummary& from) { - InvoiceSummary::MergeImpl(*this, from); + void MergeFrom( const ResourceUsageCosts& from) { + ResourceUsageCosts::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -1720,16 +1984,16 @@ class InvoiceSummary final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(InvoiceSummary* other); + void InternalSwap(ResourceUsageCosts* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.app.v1.InvoiceSummary"; + return "viam.app.v1.ResourceUsageCosts"; } protected: - explicit InvoiceSummary(::google::protobuf::Arena* arena); - InvoiceSummary(::google::protobuf::Arena* arena, const InvoiceSummary& from); + explicit ResourceUsageCosts(::google::protobuf::Arena* arena); + ResourceUsageCosts(::google::protobuf::Arena* arena, const ResourceUsageCosts& from); public: static const ClassData _class_data_; @@ -1742,61 +2006,280 @@ class InvoiceSummary final : // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kStatusFieldNumber = 4, - kInvoiceDateFieldNumber = 2, - kDueDateFieldNumber = 5, - kPaidDateFieldNumber = 6, - kInvoiceAmountFieldNumber = 3, + kUsageCostsFieldNumber = 1, + kDiscountFieldNumber = 2, + kTotalWithDiscountFieldNumber = 3, + kTotalWithoutDiscountFieldNumber = 4, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; + int usage_costs_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + int _internal_usage_costs_size() const; public: - // string status = 4 [json_name = "status"]; - void clear_status() ; - const std::string& status() const; - template - void set_status(Arg_&& arg, Args_... args); - std::string* mutable_status(); - PROTOBUF_NODISCARD std::string* release_status(); - void set_allocated_status(std::string* value); + void clear_usage_costs() ; + ::viam::app::v1::UsageCost* mutable_usage_costs(int index); + ::google::protobuf::RepeatedPtrField< ::viam::app::v1::UsageCost >* + mutable_usage_costs(); + private: + const ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>& _internal_usage_costs() const; + ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>* _internal_mutable_usage_costs(); + public: + const ::viam::app::v1::UsageCost& usage_costs(int index) const; + ::viam::app::v1::UsageCost* add_usage_costs(); + const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::UsageCost >& + usage_costs() const; + // double discount = 2 [json_name = "discount"]; + void clear_discount() ; + double discount() const; + void set_discount(double value); private: - const std::string& _internal_status() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status( - const std::string& value); - std::string* _internal_mutable_status(); + double _internal_discount() const; + void _internal_set_discount(double value); public: - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - bool has_invoice_date() const; - void clear_invoice_date() ; - const ::google::protobuf::Timestamp& invoice_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_invoice_date(); - ::google::protobuf::Timestamp* mutable_invoice_date(); - void set_allocated_invoice_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_invoice_date(); + // double total_with_discount = 3 [json_name = "totalWithDiscount"]; + void clear_total_with_discount() ; + double total_with_discount() const; + void set_total_with_discount(double value); private: - const ::google::protobuf::Timestamp& _internal_invoice_date() const; - ::google::protobuf::Timestamp* _internal_mutable_invoice_date(); + double _internal_total_with_discount() const; + void _internal_set_total_with_discount(double value); public: - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; + // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; + void clear_total_without_discount() ; + double total_without_discount() const; + void set_total_without_discount(double value); + + private: + double _internal_total_without_discount() const; + void _internal_set_total_without_discount(double value); + + public: + // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCosts) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 1, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField< ::viam::app::v1::UsageCost > usage_costs_; + double discount_; + double total_with_discount_; + double total_without_discount_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +};// ------------------------------------------------------------------- + +class InvoiceSummary final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.InvoiceSummary) */ { + public: + inline InvoiceSummary() : InvoiceSummary(nullptr) {} + ~InvoiceSummary() override; + template + explicit PROTOBUF_CONSTEXPR InvoiceSummary(::google::protobuf::internal::ConstantInitialized); + + inline InvoiceSummary(const InvoiceSummary& from) + : InvoiceSummary(nullptr, from) {} + InvoiceSummary(InvoiceSummary&& from) noexcept + : InvoiceSummary() { + *this = ::std::move(from); + } + + inline InvoiceSummary& operator=(const InvoiceSummary& from) { + CopyFrom(from); + return *this; + } + inline InvoiceSummary& operator=(InvoiceSummary&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const InvoiceSummary& default_instance() { + return *internal_default_instance(); + } + static inline const InvoiceSummary* internal_default_instance() { + return reinterpret_cast( + &_InvoiceSummary_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(InvoiceSummary& a, InvoiceSummary& b) { + a.Swap(&b); + } + inline void Swap(InvoiceSummary* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InvoiceSummary* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + InvoiceSummary* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const InvoiceSummary& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const InvoiceSummary& from) { + InvoiceSummary::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(InvoiceSummary* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.app.v1.InvoiceSummary"; + } + protected: + explicit InvoiceSummary(::google::protobuf::Arena* arena); + InvoiceSummary(::google::protobuf::Arena* arena, const InvoiceSummary& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 1, + kStatusFieldNumber = 4, + kInvoiceDateFieldNumber = 2, + kDueDateFieldNumber = 5, + kPaidDateFieldNumber = 6, + kInvoiceAmountFieldNumber = 3, + }; + // string id = 1 [json_name = "id"]; + void clear_id() ; + const std::string& id() const; + template + void set_id(Arg_&& arg, Args_... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* value); + + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( + const std::string& value); + std::string* _internal_mutable_id(); + + public: + // string status = 4 [json_name = "status"]; + void clear_status() ; + const std::string& status() const; + template + void set_status(Arg_&& arg, Args_... args); + std::string* mutable_status(); + PROTOBUF_NODISCARD std::string* release_status(); + void set_allocated_status(std::string* value); + + private: + const std::string& _internal_status() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status( + const std::string& value); + std::string* _internal_mutable_status(); + + public: + // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; + bool has_invoice_date() const; + void clear_invoice_date() ; + const ::google::protobuf::Timestamp& invoice_date() const; + PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_invoice_date(); + ::google::protobuf::Timestamp* mutable_invoice_date(); + void set_allocated_invoice_date(::google::protobuf::Timestamp* value); + void unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value); + ::google::protobuf::Timestamp* unsafe_arena_release_invoice_date(); + + private: + const ::google::protobuf::Timestamp& _internal_invoice_date() const; + ::google::protobuf::Timestamp* _internal_mutable_invoice_date(); + + public: + // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; bool has_due_date() const; void clear_due_date() ; const ::google::protobuf::Timestamp& due_date() const; @@ -1932,7 +2415,7 @@ class GetOrgBillingInformationResponse final : &_GetOrgBillingInformationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(GetOrgBillingInformationResponse& a, GetOrgBillingInformationResponse& b) { a.Swap(&b); @@ -2103,26 +2586,26 @@ class GetOrgBillingInformationResponse final : friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; };// ------------------------------------------------------------------- -class GetCurrentMonthUsageResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetCurrentMonthUsageResponse) */ { +class ResourceUsageCostsBySource final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceUsageCostsBySource) */ { public: - inline GetCurrentMonthUsageResponse() : GetCurrentMonthUsageResponse(nullptr) {} - ~GetCurrentMonthUsageResponse() override; + inline ResourceUsageCostsBySource() : ResourceUsageCostsBySource(nullptr) {} + ~ResourceUsageCostsBySource() override; template - explicit PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ResourceUsageCostsBySource(::google::protobuf::internal::ConstantInitialized); - inline GetCurrentMonthUsageResponse(const GetCurrentMonthUsageResponse& from) - : GetCurrentMonthUsageResponse(nullptr, from) {} - GetCurrentMonthUsageResponse(GetCurrentMonthUsageResponse&& from) noexcept - : GetCurrentMonthUsageResponse() { + inline ResourceUsageCostsBySource(const ResourceUsageCostsBySource& from) + : ResourceUsageCostsBySource(nullptr, from) {} + ResourceUsageCostsBySource(ResourceUsageCostsBySource&& from) noexcept + : ResourceUsageCostsBySource() { *this = ::std::move(from); } - inline GetCurrentMonthUsageResponse& operator=(const GetCurrentMonthUsageResponse& from) { + inline ResourceUsageCostsBySource& operator=(const ResourceUsageCostsBySource& from) { CopyFrom(from); return *this; } - inline GetCurrentMonthUsageResponse& operator=(GetCurrentMonthUsageResponse&& from) noexcept { + inline ResourceUsageCostsBySource& operator=(ResourceUsageCostsBySource&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2154,20 +2637,20 @@ class GetCurrentMonthUsageResponse final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCurrentMonthUsageResponse& default_instance() { + static const ResourceUsageCostsBySource& default_instance() { return *internal_default_instance(); } - static inline const GetCurrentMonthUsageResponse* internal_default_instance() { - return reinterpret_cast( - &_GetCurrentMonthUsageResponse_default_instance_); + static inline const ResourceUsageCostsBySource* internal_default_instance() { + return reinterpret_cast( + &_ResourceUsageCostsBySource_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 4; - friend void swap(GetCurrentMonthUsageResponse& a, GetCurrentMonthUsageResponse& b) { + friend void swap(ResourceUsageCostsBySource& a, ResourceUsageCostsBySource& b) { a.Swap(&b); } - inline void Swap(GetCurrentMonthUsageResponse* other) { + inline void Swap(ResourceUsageCostsBySource* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -2180,7 +2663,7 @@ class GetCurrentMonthUsageResponse final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCurrentMonthUsageResponse* other) { + void UnsafeArenaSwap(ResourceUsageCostsBySource* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2188,14 +2671,14 @@ class GetCurrentMonthUsageResponse final : // implements Message ---------------------------------------------- - GetCurrentMonthUsageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ResourceUsageCostsBySource* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCurrentMonthUsageResponse& from); + void CopyFrom(const ResourceUsageCostsBySource& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCurrentMonthUsageResponse& from) { - GetCurrentMonthUsageResponse::MergeImpl(*this, from); + void MergeFrom( const ResourceUsageCostsBySource& from) { + ResourceUsageCostsBySource::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -2213,16 +2696,16 @@ class GetCurrentMonthUsageResponse final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(GetCurrentMonthUsageResponse* other); + void InternalSwap(ResourceUsageCostsBySource* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetCurrentMonthUsageResponse"; + return "viam.app.v1.ResourceUsageCostsBySource"; } protected: - explicit GetCurrentMonthUsageResponse(::google::protobuf::Arena* arena); - GetCurrentMonthUsageResponse(::google::protobuf::Arena* arena, const GetCurrentMonthUsageResponse& from); + explicit ResourceUsageCostsBySource(::google::protobuf::Arena* arena); + ResourceUsageCostsBySource(::google::protobuf::Arena* arena, const ResourceUsageCostsBySource& from); public: static const ClassData _class_data_; @@ -2235,168 +2718,59 @@ class GetCurrentMonthUsageResponse final : // accessors ------------------------------------------------------- enum : int { - kStartDateFieldNumber = 1, - kEndDateFieldNumber = 2, - kCloudStorageUsageCostFieldNumber = 3, - kDataUploadUsageCostFieldNumber = 4, - kDataEgresUsageCostFieldNumber = 5, - kRemoteControlUsageCostFieldNumber = 6, - kStandardComputeUsageCostFieldNumber = 7, - kDiscountAmountFieldNumber = 8, - kTotalUsageWithDiscountFieldNumber = 9, - kTotalUsageWithoutDiscountFieldNumber = 10, - kPerMachineUsageCostFieldNumber = 11, - kBinaryDataCloudStorageUsageCostFieldNumber = 12, - kOtherCloudStorageUsageCostFieldNumber = 13, + kTierNameFieldNumber = 3, + kResourceUsageCostsFieldNumber = 2, + kSourceTypeFieldNumber = 1, }; - // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; - bool has_start_date() const; - void clear_start_date() ; - const ::google::protobuf::Timestamp& start_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_start_date(); - ::google::protobuf::Timestamp* mutable_start_date(); - void set_allocated_start_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_start_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_start_date(); - - private: - const ::google::protobuf::Timestamp& _internal_start_date() const; - ::google::protobuf::Timestamp* _internal_mutable_start_date(); - - public: - // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; - bool has_end_date() const; - void clear_end_date() ; - const ::google::protobuf::Timestamp& end_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_end_date(); - ::google::protobuf::Timestamp* mutable_end_date(); - void set_allocated_end_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_end_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_end_date(); - - private: - const ::google::protobuf::Timestamp& _internal_end_date() const; - ::google::protobuf::Timestamp* _internal_mutable_end_date(); - - public: - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"]; - void clear_cloud_storage_usage_cost() ; - double cloud_storage_usage_cost() const; - void set_cloud_storage_usage_cost(double value); - - private: - double _internal_cloud_storage_usage_cost() const; - void _internal_set_cloud_storage_usage_cost(double value); - - public: - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"]; - void clear_data_upload_usage_cost() ; - double data_upload_usage_cost() const; - void set_data_upload_usage_cost(double value); - - private: - double _internal_data_upload_usage_cost() const; - void _internal_set_data_upload_usage_cost(double value); - - public: - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"]; - void clear_data_egres_usage_cost() ; - double data_egres_usage_cost() const; - void set_data_egres_usage_cost(double value); - - private: - double _internal_data_egres_usage_cost() const; - void _internal_set_data_egres_usage_cost(double value); - - public: - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"]; - void clear_remote_control_usage_cost() ; - double remote_control_usage_cost() const; - void set_remote_control_usage_cost(double value); - - private: - double _internal_remote_control_usage_cost() const; - void _internal_set_remote_control_usage_cost(double value); - - public: - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"]; - void clear_standard_compute_usage_cost() ; - double standard_compute_usage_cost() const; - void set_standard_compute_usage_cost(double value); - - private: - double _internal_standard_compute_usage_cost() const; - void _internal_set_standard_compute_usage_cost(double value); - - public: - // double discount_amount = 8 [json_name = "discountAmount"]; - void clear_discount_amount() ; - double discount_amount() const; - void set_discount_amount(double value); - - private: - double _internal_discount_amount() const; - void _internal_set_discount_amount(double value); - - public: - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"]; - void clear_total_usage_with_discount() ; - double total_usage_with_discount() const; - void set_total_usage_with_discount(double value); - - private: - double _internal_total_usage_with_discount() const; - void _internal_set_total_usage_with_discount(double value); - - public: - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"]; - void clear_total_usage_without_discount() ; - double total_usage_without_discount() const; - void set_total_usage_without_discount(double value); - - private: - double _internal_total_usage_without_discount() const; - void _internal_set_total_usage_without_discount(double value); - - public: - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; - void clear_per_machine_usage_cost() ; - double per_machine_usage_cost() const; - void set_per_machine_usage_cost(double value); + // string tier_name = 3 [json_name = "tierName"]; + void clear_tier_name() ; + const std::string& tier_name() const; + template + void set_tier_name(Arg_&& arg, Args_... args); + std::string* mutable_tier_name(); + PROTOBUF_NODISCARD std::string* release_tier_name(); + void set_allocated_tier_name(std::string* value); private: - double _internal_per_machine_usage_cost() const; - void _internal_set_per_machine_usage_cost(double value); + const std::string& _internal_tier_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tier_name( + const std::string& value); + std::string* _internal_mutable_tier_name(); public: - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; - void clear_binary_data_cloud_storage_usage_cost() ; - double binary_data_cloud_storage_usage_cost() const; - void set_binary_data_cloud_storage_usage_cost(double value); + // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; + bool has_resource_usage_costs() const; + void clear_resource_usage_costs() ; + const ::viam::app::v1::ResourceUsageCosts& resource_usage_costs() const; + PROTOBUF_NODISCARD ::viam::app::v1::ResourceUsageCosts* release_resource_usage_costs(); + ::viam::app::v1::ResourceUsageCosts* mutable_resource_usage_costs(); + void set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value); + void unsafe_arena_set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value); + ::viam::app::v1::ResourceUsageCosts* unsafe_arena_release_resource_usage_costs(); private: - double _internal_binary_data_cloud_storage_usage_cost() const; - void _internal_set_binary_data_cloud_storage_usage_cost(double value); + const ::viam::app::v1::ResourceUsageCosts& _internal_resource_usage_costs() const; + ::viam::app::v1::ResourceUsageCosts* _internal_mutable_resource_usage_costs(); public: - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; - void clear_other_cloud_storage_usage_cost() ; - double other_cloud_storage_usage_cost() const; - void set_other_cloud_storage_usage_cost(double value); + // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; + void clear_source_type() ; + ::viam::app::v1::SourceType source_type() const; + void set_source_type(::viam::app::v1::SourceType value); private: - double _internal_other_cloud_storage_usage_cost() const; - void _internal_set_other_cloud_storage_usage_cost(double value); + ::viam::app::v1::SourceType _internal_source_type() const; + void _internal_set_source_type(::viam::app::v1::SourceType value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCostsBySource) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 4, 13, 2, - 0, 2> + 2, 3, 1, + 56, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2414,45 +2788,35 @@ class GetCurrentMonthUsageResponse final : ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Timestamp* start_date_; - ::google::protobuf::Timestamp* end_date_; - double cloud_storage_usage_cost_; - double data_upload_usage_cost_; - double data_egres_usage_cost_; - double remote_control_usage_cost_; - double standard_compute_usage_cost_; - double discount_amount_; - double total_usage_with_discount_; - double total_usage_without_discount_; - double per_machine_usage_cost_; - double binary_data_cloud_storage_usage_cost_; - double other_cloud_storage_usage_cost_; + ::google::protobuf::internal::ArenaStringPtr tier_name_; + ::viam::app::v1::ResourceUsageCosts* resource_usage_costs_; + int source_type_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; };// ------------------------------------------------------------------- -class BillableResourceEvent final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.BillableResourceEvent) */ { +class GetInvoicesSummaryResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicesSummaryResponse) */ { public: - inline BillableResourceEvent() : BillableResourceEvent(nullptr) {} - ~BillableResourceEvent() override; + inline GetInvoicesSummaryResponse() : GetInvoicesSummaryResponse(nullptr) {} + ~GetInvoicesSummaryResponse() override; template - explicit PROTOBUF_CONSTEXPR BillableResourceEvent(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetInvoicesSummaryResponse(::google::protobuf::internal::ConstantInitialized); - inline BillableResourceEvent(const BillableResourceEvent& from) - : BillableResourceEvent(nullptr, from) {} - BillableResourceEvent(BillableResourceEvent&& from) noexcept - : BillableResourceEvent() { + inline GetInvoicesSummaryResponse(const GetInvoicesSummaryResponse& from) + : GetInvoicesSummaryResponse(nullptr, from) {} + GetInvoicesSummaryResponse(GetInvoicesSummaryResponse&& from) noexcept + : GetInvoicesSummaryResponse() { *this = ::std::move(from); } - inline BillableResourceEvent& operator=(const BillableResourceEvent& from) { + inline GetInvoicesSummaryResponse& operator=(const GetInvoicesSummaryResponse& from) { CopyFrom(from); return *this; } - inline BillableResourceEvent& operator=(BillableResourceEvent&& from) noexcept { + inline GetInvoicesSummaryResponse& operator=(GetInvoicesSummaryResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2484,20 +2848,20 @@ class BillableResourceEvent final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const BillableResourceEvent& default_instance() { + static const GetInvoicesSummaryResponse& default_instance() { return *internal_default_instance(); } - static inline const BillableResourceEvent* internal_default_instance() { - return reinterpret_cast( - &_BillableResourceEvent_default_instance_); + static inline const GetInvoicesSummaryResponse* internal_default_instance() { + return reinterpret_cast( + &_GetInvoicesSummaryResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 10; - friend void swap(BillableResourceEvent& a, BillableResourceEvent& b) { + friend void swap(GetInvoicesSummaryResponse& a, GetInvoicesSummaryResponse& b) { a.Swap(&b); } - inline void Swap(BillableResourceEvent* other) { + inline void Swap(GetInvoicesSummaryResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -2510,7 +2874,7 @@ class BillableResourceEvent final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BillableResourceEvent* other) { + void UnsafeArenaSwap(GetInvoicesSummaryResponse* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2518,14 +2882,14 @@ class BillableResourceEvent final : // implements Message ---------------------------------------------- - BillableResourceEvent* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetInvoicesSummaryResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BillableResourceEvent& from); + void CopyFrom(const GetInvoicesSummaryResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BillableResourceEvent& from) { - BillableResourceEvent::MergeImpl(*this, from); + void MergeFrom( const GetInvoicesSummaryResponse& from) { + GetInvoicesSummaryResponse::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -2543,16 +2907,16 @@ class BillableResourceEvent final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(BillableResourceEvent* other); + void InternalSwap(GetInvoicesSummaryResponse* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.app.v1.BillableResourceEvent"; + return "viam.app.v1.GetInvoicesSummaryResponse"; } protected: - explicit BillableResourceEvent(::google::protobuf::Arena* arena); - BillableResourceEvent(::google::protobuf::Arena* arena, const BillableResourceEvent& from); + explicit GetInvoicesSummaryResponse(::google::protobuf::Arena* arena); + GetInvoicesSummaryResponse(::google::protobuf::Arena* arena, const GetInvoicesSummaryResponse& from); public: static const ClassData _class_data_; @@ -2565,127 +2929,45 @@ class BillableResourceEvent final : // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kTypeFieldNumber = 2, - kUsageQuantityUnitFieldNumber = 4, - kUsageCostFieldNumber = 5, - kUserNameFieldNumber = 7, - kOccurredAtFieldNumber = 6, - kUsageQuantityFieldNumber = 3, + kInvoicesFieldNumber = 2, + kOutstandingBalanceFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string type = 2 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - - private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); - - public: - // string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"]; - void clear_usage_quantity_unit() ; - const std::string& usage_quantity_unit() const; - template - void set_usage_quantity_unit(Arg_&& arg, Args_... args); - std::string* mutable_usage_quantity_unit(); - PROTOBUF_NODISCARD std::string* release_usage_quantity_unit(); - void set_allocated_usage_quantity_unit(std::string* value); - - private: - const std::string& _internal_usage_quantity_unit() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_usage_quantity_unit( - const std::string& value); - std::string* _internal_mutable_usage_quantity_unit(); - - public: - // string usage_cost = 5 [json_name = "usageCost"]; - void clear_usage_cost() ; - const std::string& usage_cost() const; - template - void set_usage_cost(Arg_&& arg, Args_... args); - std::string* mutable_usage_cost(); - PROTOBUF_NODISCARD std::string* release_usage_cost(); - void set_allocated_usage_cost(std::string* value); - - private: - const std::string& _internal_usage_cost() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_usage_cost( - const std::string& value); - std::string* _internal_mutable_usage_cost(); - - public: - // string user_name = 7 [json_name = "userName"]; - void clear_user_name() ; - const std::string& user_name() const; - template - void set_user_name(Arg_&& arg, Args_... args); - std::string* mutable_user_name(); - PROTOBUF_NODISCARD std::string* release_user_name(); - void set_allocated_user_name(std::string* value); - + // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; + int invoices_size() const; private: - const std::string& _internal_user_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_name( - const std::string& value); - std::string* _internal_mutable_user_name(); + int _internal_invoices_size() const; public: - // .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"]; - bool has_occurred_at() const; - void clear_occurred_at() ; - const ::google::protobuf::Timestamp& occurred_at() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_occurred_at(); - ::google::protobuf::Timestamp* mutable_occurred_at(); - void set_allocated_occurred_at(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_occurred_at(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_occurred_at(); - + void clear_invoices() ; + ::viam::app::v1::InvoiceSummary* mutable_invoices(int index); + ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >* + mutable_invoices(); private: - const ::google::protobuf::Timestamp& _internal_occurred_at() const; - ::google::protobuf::Timestamp* _internal_mutable_occurred_at(); - + const ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>& _internal_invoices() const; + ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>* _internal_mutable_invoices(); public: - // double usage_quantity = 3 [json_name = "usageQuantity"]; - void clear_usage_quantity() ; - double usage_quantity() const; - void set_usage_quantity(double value); + const ::viam::app::v1::InvoiceSummary& invoices(int index) const; + ::viam::app::v1::InvoiceSummary* add_invoices(); + const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >& + invoices() const; + // double outstanding_balance = 1 [json_name = "outstandingBalance"]; + void clear_outstanding_balance() ; + double outstanding_balance() const; + void set_outstanding_balance(double value); private: - double _internal_usage_quantity() const; - void _internal_set_usage_quantity(double value); + double _internal_outstanding_balance() const; + void _internal_set_outstanding_balance(double value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.BillableResourceEvent) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicesSummaryResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 86, 2> + 1, 2, 1, + 0, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2701,41 +2983,35 @@ class BillableResourceEvent final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary > invoices_; + double outstanding_balance_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr usage_quantity_unit_; - ::google::protobuf::internal::ArenaStringPtr usage_cost_; - ::google::protobuf::internal::ArenaStringPtr user_name_; - ::google::protobuf::Timestamp* occurred_at_; - double usage_quantity_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; };// ------------------------------------------------------------------- -class Invoice final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Invoice) */ { +class GetCurrentMonthUsageResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetCurrentMonthUsageResponse) */ { public: - inline Invoice() : Invoice(nullptr) {} - ~Invoice() override; + inline GetCurrentMonthUsageResponse() : GetCurrentMonthUsageResponse(nullptr) {} + ~GetCurrentMonthUsageResponse() override; template - explicit PROTOBUF_CONSTEXPR Invoice(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse(::google::protobuf::internal::ConstantInitialized); - inline Invoice(const Invoice& from) - : Invoice(nullptr, from) {} - Invoice(Invoice&& from) noexcept - : Invoice() { + inline GetCurrentMonthUsageResponse(const GetCurrentMonthUsageResponse& from) + : GetCurrentMonthUsageResponse(nullptr, from) {} + GetCurrentMonthUsageResponse(GetCurrentMonthUsageResponse&& from) noexcept + : GetCurrentMonthUsageResponse() { *this = ::std::move(from); } - inline Invoice& operator=(const Invoice& from) { + inline GetCurrentMonthUsageResponse& operator=(const GetCurrentMonthUsageResponse& from) { CopyFrom(from); return *this; } - inline Invoice& operator=(Invoice&& from) noexcept { + inline GetCurrentMonthUsageResponse& operator=(GetCurrentMonthUsageResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2767,20 +3043,20 @@ class Invoice final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Invoice& default_instance() { + static const GetCurrentMonthUsageResponse& default_instance() { return *internal_default_instance(); } - static inline const Invoice* internal_default_instance() { - return reinterpret_cast( - &_Invoice_default_instance_); + static inline const GetCurrentMonthUsageResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCurrentMonthUsageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 6; - friend void swap(Invoice& a, Invoice& b) { + friend void swap(GetCurrentMonthUsageResponse& a, GetCurrentMonthUsageResponse& b) { a.Swap(&b); } - inline void Swap(Invoice* other) { + inline void Swap(GetCurrentMonthUsageResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -2793,7 +3069,7 @@ class Invoice final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Invoice* other) { + void UnsafeArenaSwap(GetCurrentMonthUsageResponse* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2801,14 +3077,14 @@ class Invoice final : // implements Message ---------------------------------------------- - Invoice* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetCurrentMonthUsageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Invoice& from); + void CopyFrom(const GetCurrentMonthUsageResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Invoice& from) { - Invoice::MergeImpl(*this, from); + void MergeFrom( const GetCurrentMonthUsageResponse& from) { + GetCurrentMonthUsageResponse::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -2826,16 +3102,16 @@ class Invoice final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(Invoice* other); + void InternalSwap(GetCurrentMonthUsageResponse* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.app.v1.Invoice"; + return "viam.app.v1.GetCurrentMonthUsageResponse"; } protected: - explicit Invoice(::google::protobuf::Arena* arena); - Invoice(::google::protobuf::Arena* arena, const Invoice& from); + explicit GetCurrentMonthUsageResponse(::google::protobuf::Arena* arena); + GetCurrentMonthUsageResponse(::google::protobuf::Arena* arena, const GetCurrentMonthUsageResponse& from); public: static const ClassData _class_data_; @@ -2848,1201 +3124,295 @@ class Invoice final : // accessors ------------------------------------------------------- enum : int { - kItemsFieldNumber = 6, - kIdFieldNumber = 1, - kStatusFieldNumber = 4, - kEmailedToFieldNumber = 7, - kInvoiceDateFieldNumber = 2, - kDueDateFieldNumber = 5, - kInvoiceAmountFieldNumber = 3, + kResourceUsageCostsBySourceFieldNumber = 14, + kStartDateFieldNumber = 1, + kEndDateFieldNumber = 2, + kCloudStorageUsageCostFieldNumber = 3, + kDataUploadUsageCostFieldNumber = 4, + kDataEgresUsageCostFieldNumber = 5, + kRemoteControlUsageCostFieldNumber = 6, + kStandardComputeUsageCostFieldNumber = 7, + kDiscountAmountFieldNumber = 8, + kTotalUsageWithDiscountFieldNumber = 9, + kTotalUsageWithoutDiscountFieldNumber = 10, + kPerMachineUsageCostFieldNumber = 11, + kBinaryDataCloudStorageUsageCostFieldNumber = 12, + kOtherCloudStorageUsageCostFieldNumber = 13, + kSubtotalFieldNumber = 15, }; - // repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"]; - int items_size() const; + // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; + int resource_usage_costs_by_source_size() const; private: - int _internal_items_size() const; + int _internal_resource_usage_costs_by_source_size() const; public: - void clear_items() ; - ::viam::app::v1::BillableResourceEvent* mutable_items(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::BillableResourceEvent >* - mutable_items(); + void clear_resource_usage_costs_by_source() ; + ::viam::app::v1::ResourceUsageCostsBySource* mutable_resource_usage_costs_by_source(int index); + ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >* + mutable_resource_usage_costs_by_source(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::BillableResourceEvent>& _internal_items() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::BillableResourceEvent>* _internal_mutable_items(); + const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>& _internal_resource_usage_costs_by_source() const; + ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>* _internal_mutable_resource_usage_costs_by_source(); public: - const ::viam::app::v1::BillableResourceEvent& items(int index) const; - ::viam::app::v1::BillableResourceEvent* add_items(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::BillableResourceEvent >& - items() const; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + const ::viam::app::v1::ResourceUsageCostsBySource& resource_usage_costs_by_source(int index) const; + ::viam::app::v1::ResourceUsageCostsBySource* add_resource_usage_costs_by_source(); + const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >& + resource_usage_costs_by_source() const; + // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; + bool has_start_date() const; + void clear_start_date() ; + const ::google::protobuf::Timestamp& start_date() const; + PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_start_date(); + ::google::protobuf::Timestamp* mutable_start_date(); + void set_allocated_start_date(::google::protobuf::Timestamp* value); + void unsafe_arena_set_allocated_start_date(::google::protobuf::Timestamp* value); + ::google::protobuf::Timestamp* unsafe_arena_release_start_date(); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + const ::google::protobuf::Timestamp& _internal_start_date() const; + ::google::protobuf::Timestamp* _internal_mutable_start_date(); public: - // string status = 4 [json_name = "status"]; - void clear_status() ; - const std::string& status() const; - template - void set_status(Arg_&& arg, Args_... args); - std::string* mutable_status(); - PROTOBUF_NODISCARD std::string* release_status(); - void set_allocated_status(std::string* value); + // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; + bool has_end_date() const; + void clear_end_date() ; + const ::google::protobuf::Timestamp& end_date() const; + PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_end_date(); + ::google::protobuf::Timestamp* mutable_end_date(); + void set_allocated_end_date(::google::protobuf::Timestamp* value); + void unsafe_arena_set_allocated_end_date(::google::protobuf::Timestamp* value); + ::google::protobuf::Timestamp* unsafe_arena_release_end_date(); private: - const std::string& _internal_status() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status( - const std::string& value); - std::string* _internal_mutable_status(); + const ::google::protobuf::Timestamp& _internal_end_date() const; + ::google::protobuf::Timestamp* _internal_mutable_end_date(); public: - // string emailed_to = 7 [json_name = "emailedTo"]; - void clear_emailed_to() ; - const std::string& emailed_to() const; - template - void set_emailed_to(Arg_&& arg, Args_... args); - std::string* mutable_emailed_to(); - PROTOBUF_NODISCARD std::string* release_emailed_to(); - void set_allocated_emailed_to(std::string* value); + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; + [[deprecated]] void clear_cloud_storage_usage_cost() ; + [[deprecated]] double cloud_storage_usage_cost() const; + [[deprecated]] void set_cloud_storage_usage_cost(double value); private: - const std::string& _internal_emailed_to() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_emailed_to( - const std::string& value); - std::string* _internal_mutable_emailed_to(); + double _internal_cloud_storage_usage_cost() const; + void _internal_set_cloud_storage_usage_cost(double value); public: - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - bool has_invoice_date() const; - void clear_invoice_date() ; - const ::google::protobuf::Timestamp& invoice_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_invoice_date(); - ::google::protobuf::Timestamp* mutable_invoice_date(); - void set_allocated_invoice_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_invoice_date(); + // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; + [[deprecated]] void clear_data_upload_usage_cost() ; + [[deprecated]] double data_upload_usage_cost() const; + [[deprecated]] void set_data_upload_usage_cost(double value); private: - const ::google::protobuf::Timestamp& _internal_invoice_date() const; - ::google::protobuf::Timestamp* _internal_mutable_invoice_date(); + double _internal_data_upload_usage_cost() const; + void _internal_set_data_upload_usage_cost(double value); public: - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - bool has_due_date() const; - void clear_due_date() ; - const ::google::protobuf::Timestamp& due_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_due_date(); - ::google::protobuf::Timestamp* mutable_due_date(); - void set_allocated_due_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_due_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_due_date(); + // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; + [[deprecated]] void clear_data_egres_usage_cost() ; + [[deprecated]] double data_egres_usage_cost() const; + [[deprecated]] void set_data_egres_usage_cost(double value); private: - const ::google::protobuf::Timestamp& _internal_due_date() const; - ::google::protobuf::Timestamp* _internal_mutable_due_date(); + double _internal_data_egres_usage_cost() const; + void _internal_set_data_egres_usage_cost(double value); public: - // double invoice_amount = 3 [json_name = "invoiceAmount"]; - void clear_invoice_amount() ; - double invoice_amount() const; - void set_invoice_amount(double value); + // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; + [[deprecated]] void clear_remote_control_usage_cost() ; + [[deprecated]] double remote_control_usage_cost() const; + [[deprecated]] void set_remote_control_usage_cost(double value); private: - double _internal_invoice_amount() const; - void _internal_set_invoice_amount(double value); + double _internal_remote_control_usage_cost() const; + void _internal_set_remote_control_usage_cost(double value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Invoice) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 3, - 46, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { + // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; + [[deprecated]] void clear_standard_compute_usage_cost() ; + [[deprecated]] double standard_compute_usage_cost() const; + [[deprecated]] void set_standard_compute_usage_cost(double value); - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::BillableResourceEvent > items_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr status_; - ::google::protobuf::internal::ArenaStringPtr emailed_to_; - ::google::protobuf::Timestamp* invoice_date_; - ::google::protobuf::Timestamp* due_date_; - double invoice_amount_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- + private: + double _internal_standard_compute_usage_cost() const; + void _internal_set_standard_compute_usage_cost(double value); -class GetInvoicesSummaryResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicesSummaryResponse) */ { - public: - inline GetInvoicesSummaryResponse() : GetInvoicesSummaryResponse(nullptr) {} - ~GetInvoicesSummaryResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetInvoicesSummaryResponse(::google::protobuf::internal::ConstantInitialized); + public: + // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; + [[deprecated]] void clear_discount_amount() ; + [[deprecated]] double discount_amount() const; + [[deprecated]] void set_discount_amount(double value); - inline GetInvoicesSummaryResponse(const GetInvoicesSummaryResponse& from) - : GetInvoicesSummaryResponse(nullptr, from) {} - GetInvoicesSummaryResponse(GetInvoicesSummaryResponse&& from) noexcept - : GetInvoicesSummaryResponse() { - *this = ::std::move(from); - } + private: + double _internal_discount_amount() const; + void _internal_set_discount_amount(double value); - inline GetInvoicesSummaryResponse& operator=(const GetInvoicesSummaryResponse& from) { - CopyFrom(from); - return *this; - } - inline GetInvoicesSummaryResponse& operator=(GetInvoicesSummaryResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } + public: + // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; + [[deprecated]] void clear_total_usage_with_discount() ; + [[deprecated]] double total_usage_with_discount() const; + [[deprecated]] void set_total_usage_with_discount(double value); - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } + private: + double _internal_total_usage_with_discount() const; + void _internal_set_total_usage_with_discount(double value); - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetInvoicesSummaryResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetInvoicesSummaryResponse* internal_default_instance() { - return reinterpret_cast( - &_GetInvoicesSummaryResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; + public: + // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; + [[deprecated]] void clear_total_usage_without_discount() ; + [[deprecated]] double total_usage_without_discount() const; + [[deprecated]] void set_total_usage_without_discount(double value); - friend void swap(GetInvoicesSummaryResponse& a, GetInvoicesSummaryResponse& b) { - a.Swap(&b); - } - inline void Swap(GetInvoicesSummaryResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetInvoicesSummaryResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } + private: + double _internal_total_usage_without_discount() const; + void _internal_set_total_usage_without_discount(double value); - // implements Message ---------------------------------------------- + public: + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; + [[deprecated]] void clear_per_machine_usage_cost() ; + [[deprecated]] double per_machine_usage_cost() const; + [[deprecated]] void set_per_machine_usage_cost(double value); - GetInvoicesSummaryResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetInvoicesSummaryResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetInvoicesSummaryResponse& from) { - GetInvoicesSummaryResponse::MergeImpl(*this, from); - } private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + double _internal_per_machine_usage_cost() const; + void _internal_set_per_machine_usage_cost(double value); - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + public: + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; + [[deprecated]] void clear_binary_data_cloud_storage_usage_cost() ; + [[deprecated]] double binary_data_cloud_storage_usage_cost() const; + [[deprecated]] void set_binary_data_cloud_storage_usage_cost(double value); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetInvoicesSummaryResponse* other); + double _internal_binary_data_cloud_storage_usage_cost() const; + void _internal_set_binary_data_cloud_storage_usage_cost(double value); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetInvoicesSummaryResponse"; - } - protected: - explicit GetInvoicesSummaryResponse(::google::protobuf::Arena* arena); - GetInvoicesSummaryResponse(::google::protobuf::Arena* arena, const GetInvoicesSummaryResponse& from); public: + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; + [[deprecated]] void clear_other_cloud_storage_usage_cost() ; + [[deprecated]] double other_cloud_storage_usage_cost() const; + [[deprecated]] void set_other_cloud_storage_usage_cost(double value); - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + private: + double _internal_other_cloud_storage_usage_cost() const; + void _internal_set_other_cloud_storage_usage_cost(double value); - ::google::protobuf::Metadata GetMetadata() const final; + public: + // double subtotal = 15 [json_name = "subtotal"]; + void clear_subtotal() ; + double subtotal() const; + void set_subtotal(double value); - // nested types ---------------------------------------------------- + private: + double _internal_subtotal() const; + void _internal_set_subtotal(double value); - // accessors ------------------------------------------------------- - - enum : int { - kInvoicesFieldNumber = 2, - kOutstandingBalanceFieldNumber = 1, - }; - // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; - int invoices_size() const; - private: - int _internal_invoices_size() const; - - public: - void clear_invoices() ; - ::viam::app::v1::InvoiceSummary* mutable_invoices(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >* - mutable_invoices(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>& _internal_invoices() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>* _internal_mutable_invoices(); - public: - const ::viam::app::v1::InvoiceSummary& invoices(int index) const; - ::viam::app::v1::InvoiceSummary* add_invoices(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >& - invoices() const; - // double outstanding_balance = 1 [json_name = "outstandingBalance"]; - void clear_outstanding_balance() ; - double outstanding_balance() const; - void set_outstanding_balance(double value); - - private: - double _internal_outstanding_balance() const; - void _internal_set_outstanding_balance(double value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicesSummaryResponse) - private: - class _Internal; + public: + // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageResponse) + private: + class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary > invoices_; - double outstanding_balance_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// InvoiceSummary - -// string id = 1 [json_name = "id"]; -inline void InvoiceSummary::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& InvoiceSummary::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void InvoiceSummary::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.id) -} -inline std::string* InvoiceSummary::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.id) - return _s; -} -inline const std::string& InvoiceSummary::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void InvoiceSummary::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* InvoiceSummary::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* InvoiceSummary::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.id) - return _impl_.id_.Release(); -} -inline void InvoiceSummary::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.id) -} - -// .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; -inline bool InvoiceSummary::has_invoice_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.invoice_date_ != nullptr); - return value; -} -inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_invoice_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.invoice_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); -} -inline const ::google::protobuf::Timestamp& InvoiceSummary::invoice_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.invoice_date) - return _internal_invoice_date(); -} -inline void InvoiceSummary::unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invoice_date_); - } - _impl_.invoice_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.invoice_date) -} -inline ::google::protobuf::Timestamp* InvoiceSummary::release_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.invoice_date_; - _impl_.invoice_date_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.invoice_date) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.invoice_date_; - _impl_.invoice_date_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.invoice_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.invoice_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.invoice_date_; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_invoice_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_invoice_date(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.invoice_date) - return _msg; -} -inline void InvoiceSummary::set_allocated_invoice_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invoice_date_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.invoice_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.invoice_date) -} - -// double invoice_amount = 3 [json_name = "invoiceAmount"]; -inline void InvoiceSummary::clear_invoice_amount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.invoice_amount_ = 0; -} -inline double InvoiceSummary::invoice_amount() const { - // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.invoice_amount) - return _internal_invoice_amount(); -} -inline void InvoiceSummary::set_invoice_amount(double value) { - _internal_set_invoice_amount(value); - // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.invoice_amount) -} -inline double InvoiceSummary::_internal_invoice_amount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.invoice_amount_; -} -inline void InvoiceSummary::_internal_set_invoice_amount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.invoice_amount_ = value; -} - -// string status = 4 [json_name = "status"]; -inline void InvoiceSummary::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.ClearToEmpty(); -} -inline const std::string& InvoiceSummary::status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.status) - return _internal_status(); -} -template -inline PROTOBUF_ALWAYS_INLINE void InvoiceSummary::set_status(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.status) -} -inline std::string* InvoiceSummary::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_status(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.status) - return _s; -} -inline const std::string& InvoiceSummary::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_.Get(); -} -inline void InvoiceSummary::_internal_set_status(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_.Set(value, GetArena()); -} -inline std::string* InvoiceSummary::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.status_.Mutable( GetArena()); -} -inline std::string* InvoiceSummary::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.status) - return _impl_.status_.Release(); -} -inline void InvoiceSummary::set_allocated_status(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.status_.IsDefault()) { - _impl_.status_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.status) -} - -// .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; -inline bool InvoiceSummary::has_due_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.due_date_ != nullptr); - return value; -} -inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_due_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.due_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); -} -inline const ::google::protobuf::Timestamp& InvoiceSummary::due_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.due_date) - return _internal_due_date(); -} -inline void InvoiceSummary::unsafe_arena_set_allocated_due_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.due_date_); - } - _impl_.due_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.due_date) -} -inline ::google::protobuf::Timestamp* InvoiceSummary::release_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.due_date_; - _impl_.due_date_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.due_date) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.due_date_; - _impl_.due_date_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.due_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.due_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.due_date_; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_due_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_due_date(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.due_date) - return _msg; -} -inline void InvoiceSummary::set_allocated_due_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.due_date_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.due_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.due_date) -} - -// .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; -inline bool InvoiceSummary::has_paid_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.paid_date_ != nullptr); - return value; -} -inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_paid_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.paid_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); -} -inline const ::google::protobuf::Timestamp& InvoiceSummary::paid_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.paid_date) - return _internal_paid_date(); -} -inline void InvoiceSummary::unsafe_arena_set_allocated_paid_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paid_date_); - } - _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.paid_date) -} -inline ::google::protobuf::Timestamp* InvoiceSummary::release_paid_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* released = _impl_.paid_date_; - _impl_.paid_date_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_paid_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.paid_date) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* temp = _impl_.paid_date_; - _impl_.paid_date_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_paid_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.paid_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.paid_date_; -} -inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_paid_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_paid_date(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.paid_date) - return _msg; -} -inline void InvoiceSummary::set_allocated_paid_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paid_date_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.paid_date) -} - -// ------------------------------------------------------------------- - -// BillableResourceEvent - -// string id = 1 [json_name = "id"]; -inline void BillableResourceEvent::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& BillableResourceEvent::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillableResourceEvent.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BillableResourceEvent::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillableResourceEvent.id) -} -inline std::string* BillableResourceEvent::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillableResourceEvent.id) - return _s; -} -inline const std::string& BillableResourceEvent::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void BillableResourceEvent::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* BillableResourceEvent::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* BillableResourceEvent::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillableResourceEvent.id) - return _impl_.id_.Release(); -} -inline void BillableResourceEvent::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillableResourceEvent.id) -} - -// string type = 2 [json_name = "type"]; -inline void BillableResourceEvent::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); -} -inline const std::string& BillableResourceEvent::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillableResourceEvent.type) - return _internal_type(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BillableResourceEvent::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillableResourceEvent.type) -} -inline std::string* BillableResourceEvent::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillableResourceEvent.type) - return _s; -} -inline const std::string& BillableResourceEvent::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); -} -inline void BillableResourceEvent::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); -} -inline std::string* BillableResourceEvent::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); -} -inline std::string* BillableResourceEvent::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillableResourceEvent.type) - return _impl_.type_.Release(); -} -inline void BillableResourceEvent::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillableResourceEvent.type) -} - -// double usage_quantity = 3 [json_name = "usageQuantity"]; -inline void BillableResourceEvent::clear_usage_quantity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.usage_quantity_ = 0; -} -inline double BillableResourceEvent::usage_quantity() const { - // @@protoc_insertion_point(field_get:viam.app.v1.BillableResourceEvent.usage_quantity) - return _internal_usage_quantity(); -} -inline void BillableResourceEvent::set_usage_quantity(double value) { - _internal_set_usage_quantity(value); - // @@protoc_insertion_point(field_set:viam.app.v1.BillableResourceEvent.usage_quantity) -} -inline double BillableResourceEvent::_internal_usage_quantity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.usage_quantity_; -} -inline void BillableResourceEvent::_internal_set_usage_quantity(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.usage_quantity_ = value; -} - -// string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"]; -inline void BillableResourceEvent::clear_usage_quantity_unit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.usage_quantity_unit_.ClearToEmpty(); -} -inline const std::string& BillableResourceEvent::usage_quantity_unit() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillableResourceEvent.usage_quantity_unit) - return _internal_usage_quantity_unit(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BillableResourceEvent::set_usage_quantity_unit(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.usage_quantity_unit_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillableResourceEvent.usage_quantity_unit) -} -inline std::string* BillableResourceEvent::mutable_usage_quantity_unit() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_usage_quantity_unit(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillableResourceEvent.usage_quantity_unit) - return _s; -} -inline const std::string& BillableResourceEvent::_internal_usage_quantity_unit() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.usage_quantity_unit_.Get(); -} -inline void BillableResourceEvent::_internal_set_usage_quantity_unit(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.usage_quantity_unit_.Set(value, GetArena()); -} -inline std::string* BillableResourceEvent::_internal_mutable_usage_quantity_unit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.usage_quantity_unit_.Mutable( GetArena()); -} -inline std::string* BillableResourceEvent::release_usage_quantity_unit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillableResourceEvent.usage_quantity_unit) - return _impl_.usage_quantity_unit_.Release(); -} -inline void BillableResourceEvent::set_allocated_usage_quantity_unit(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.usage_quantity_unit_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.usage_quantity_unit_.IsDefault()) { - _impl_.usage_quantity_unit_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillableResourceEvent.usage_quantity_unit) -} - -// string usage_cost = 5 [json_name = "usageCost"]; -inline void BillableResourceEvent::clear_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.usage_cost_.ClearToEmpty(); -} -inline const std::string& BillableResourceEvent::usage_cost() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillableResourceEvent.usage_cost) - return _internal_usage_cost(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BillableResourceEvent::set_usage_cost(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.usage_cost_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillableResourceEvent.usage_cost) -} -inline std::string* BillableResourceEvent::mutable_usage_cost() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_usage_cost(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillableResourceEvent.usage_cost) - return _s; -} -inline const std::string& BillableResourceEvent::_internal_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.usage_cost_.Get(); -} -inline void BillableResourceEvent::_internal_set_usage_cost(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.usage_cost_.Set(value, GetArena()); -} -inline std::string* BillableResourceEvent::_internal_mutable_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.usage_cost_.Mutable( GetArena()); -} -inline std::string* BillableResourceEvent::release_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillableResourceEvent.usage_cost) - return _impl_.usage_cost_.Release(); -} -inline void BillableResourceEvent::set_allocated_usage_cost(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.usage_cost_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.usage_cost_.IsDefault()) { - _impl_.usage_cost_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillableResourceEvent.usage_cost) -} + 4, 15, 3, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { -// .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"]; -inline bool BillableResourceEvent::has_occurred_at() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.occurred_at_ != nullptr); - return value; -} -inline const ::google::protobuf::Timestamp& BillableResourceEvent::_internal_occurred_at() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.occurred_at_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); -} -inline const ::google::protobuf::Timestamp& BillableResourceEvent::occurred_at() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillableResourceEvent.occurred_at) - return _internal_occurred_at(); -} -inline void BillableResourceEvent::unsafe_arena_set_allocated_occurred_at(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.occurred_at_); - } - _impl_.occurred_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.BillableResourceEvent.occurred_at) -} -inline ::google::protobuf::Timestamp* BillableResourceEvent::release_occurred_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource > resource_usage_costs_by_source_; + ::google::protobuf::Timestamp* start_date_; + ::google::protobuf::Timestamp* end_date_; + double cloud_storage_usage_cost_; + double data_upload_usage_cost_; + double data_egres_usage_cost_; + double remote_control_usage_cost_; + double standard_compute_usage_cost_; + double discount_amount_; + double total_usage_with_discount_; + double total_usage_without_discount_; + double per_machine_usage_cost_; + double binary_data_cloud_storage_usage_cost_; + double other_cloud_storage_usage_cost_; + double subtotal_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +}; - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.occurred_at_; - _impl_.occurred_at_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Timestamp* BillableResourceEvent::unsafe_arena_release_occurred_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillableResourceEvent.occurred_at) +// =================================================================== - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.occurred_at_; - _impl_.occurred_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* BillableResourceEvent::_internal_mutable_occurred_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.occurred_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.occurred_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.occurred_at_; -} -inline ::google::protobuf::Timestamp* BillableResourceEvent::mutable_occurred_at() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_occurred_at(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillableResourceEvent.occurred_at) - return _msg; -} -inline void BillableResourceEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.occurred_at_); - } - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.occurred_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillableResourceEvent.occurred_at) -} -// string user_name = 7 [json_name = "userName"]; -inline void BillableResourceEvent::clear_user_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_name_.ClearToEmpty(); -} -inline const std::string& BillableResourceEvent::user_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillableResourceEvent.user_name) - return _internal_user_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BillableResourceEvent::set_user_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillableResourceEvent.user_name) -} -inline std::string* BillableResourceEvent::mutable_user_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_user_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillableResourceEvent.user_name) - return _s; -} -inline const std::string& BillableResourceEvent::_internal_user_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.user_name_.Get(); -} -inline void BillableResourceEvent::_internal_set_user_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_name_.Set(value, GetArena()); -} -inline std::string* BillableResourceEvent::_internal_mutable_user_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.user_name_.Mutable( GetArena()); -} -inline std::string* BillableResourceEvent::release_user_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillableResourceEvent.user_name) - return _impl_.user_name_.Release(); -} -inline void BillableResourceEvent::set_allocated_user_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.user_name_.IsDefault()) { - _impl_.user_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillableResourceEvent.user_name) -} +// =================================================================== + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // ------------------------------------------------------------------- -// Invoice +// InvoiceSummary // string id = 1 [json_name = "id"]; -inline void Invoice::clear_id() { +inline void InvoiceSummary::clear_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.id_.ClearToEmpty(); } -inline const std::string& Invoice::id() const +inline const std::string& InvoiceSummary::id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Invoice.id) + // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.id) return _internal_id(); } template -inline PROTOBUF_ALWAYS_INLINE void Invoice::set_id(Arg_&& arg, +inline PROTOBUF_ALWAYS_INLINE void InvoiceSummary::set_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Invoice.id) + // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.id) } -inline std::string* Invoice::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* InvoiceSummary::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Invoice.id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.id) return _s; } -inline const std::string& Invoice::_internal_id() const { +inline const std::string& InvoiceSummary::_internal_id() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.id_.Get(); } -inline void Invoice::_internal_set_id(const std::string& value) { +inline void InvoiceSummary::_internal_set_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.id_.Set(value, GetArena()); } -inline std::string* Invoice::_internal_mutable_id() { +inline std::string* InvoiceSummary::_internal_mutable_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; return _impl_.id_.Mutable( GetArena()); } -inline std::string* Invoice::release_id() { +inline std::string* InvoiceSummary::release_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Invoice.id) + // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.id) return _impl_.id_.Release(); } -inline void Invoice::set_allocated_id(std::string* value) { +inline void InvoiceSummary::set_allocated_id(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.id_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -4050,25 +3420,25 @@ inline void Invoice::set_allocated_id(std::string* value) { _impl_.id_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Invoice.id) + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.id) } // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; -inline bool Invoice::has_invoice_date() const { +inline bool InvoiceSummary::has_invoice_date() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || _impl_.invoice_date_ != nullptr); return value; } -inline const ::google::protobuf::Timestamp& Invoice::_internal_invoice_date() const { +inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_invoice_date() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::google::protobuf::Timestamp* p = _impl_.invoice_date_; return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& Invoice::invoice_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Invoice.invoice_date) +inline const ::google::protobuf::Timestamp& InvoiceSummary::invoice_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.invoice_date) return _internal_invoice_date(); } -inline void Invoice::unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value) { +inline void InvoiceSummary::unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invoice_date_); @@ -4079,9 +3449,9 @@ inline void Invoice::unsafe_arena_set_allocated_invoice_date(::google::protobuf: } else { _impl_._has_bits_[0] &= ~0x00000001u; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Invoice.invoice_date) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.invoice_date) } -inline ::google::protobuf::Timestamp* Invoice::release_invoice_date() { +inline ::google::protobuf::Timestamp* InvoiceSummary::release_invoice_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] &= ~0x00000001u; @@ -4100,16 +3470,16 @@ inline ::google::protobuf::Timestamp* Invoice::release_invoice_date() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::google::protobuf::Timestamp* Invoice::unsafe_arena_release_invoice_date() { +inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_invoice_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Invoice.invoice_date) + // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.invoice_date) _impl_._has_bits_[0] &= ~0x00000001u; ::google::protobuf::Timestamp* temp = _impl_.invoice_date_; _impl_.invoice_date_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Invoice::_internal_mutable_invoice_date() { +inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_invoice_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.invoice_date_ == nullptr) { @@ -4118,12 +3488,12 @@ inline ::google::protobuf::Timestamp* Invoice::_internal_mutable_invoice_date() } return _impl_.invoice_date_; } -inline ::google::protobuf::Timestamp* Invoice::mutable_invoice_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_invoice_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::Timestamp* _msg = _internal_mutable_invoice_date(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Invoice.invoice_date) + // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.invoice_date) return _msg; } -inline void Invoice::set_allocated_invoice_date(::google::protobuf::Timestamp* value) { +inline void InvoiceSummary::set_allocated_invoice_date(::google::protobuf::Timestamp* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { @@ -4141,75 +3511,75 @@ inline void Invoice::set_allocated_invoice_date(::google::protobuf::Timestamp* v } _impl_.invoice_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Invoice.invoice_date) + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.invoice_date) } // double invoice_amount = 3 [json_name = "invoiceAmount"]; -inline void Invoice::clear_invoice_amount() { +inline void InvoiceSummary::clear_invoice_amount() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.invoice_amount_ = 0; } -inline double Invoice::invoice_amount() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Invoice.invoice_amount) +inline double InvoiceSummary::invoice_amount() const { + // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.invoice_amount) return _internal_invoice_amount(); } -inline void Invoice::set_invoice_amount(double value) { +inline void InvoiceSummary::set_invoice_amount(double value) { _internal_set_invoice_amount(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Invoice.invoice_amount) + // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.invoice_amount) } -inline double Invoice::_internal_invoice_amount() const { +inline double InvoiceSummary::_internal_invoice_amount() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.invoice_amount_; } -inline void Invoice::_internal_set_invoice_amount(double value) { +inline void InvoiceSummary::_internal_set_invoice_amount(double value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.invoice_amount_ = value; } // string status = 4 [json_name = "status"]; -inline void Invoice::clear_status() { +inline void InvoiceSummary::clear_status() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.status_.ClearToEmpty(); } -inline const std::string& Invoice::status() const +inline const std::string& InvoiceSummary::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Invoice.status) + // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.status) return _internal_status(); } template -inline PROTOBUF_ALWAYS_INLINE void Invoice::set_status(Arg_&& arg, +inline PROTOBUF_ALWAYS_INLINE void InvoiceSummary::set_status(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.status_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Invoice.status) + // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.status) } -inline std::string* Invoice::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* InvoiceSummary::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_status(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Invoice.status) + // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.status) return _s; } -inline const std::string& Invoice::_internal_status() const { +inline const std::string& InvoiceSummary::_internal_status() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.status_.Get(); } -inline void Invoice::_internal_set_status(const std::string& value) { +inline void InvoiceSummary::_internal_set_status(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.status_.Set(value, GetArena()); } -inline std::string* Invoice::_internal_mutable_status() { +inline std::string* InvoiceSummary::_internal_mutable_status() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; return _impl_.status_.Mutable( GetArena()); } -inline std::string* Invoice::release_status() { +inline std::string* InvoiceSummary::release_status() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Invoice.status) + // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.status) return _impl_.status_.Release(); } -inline void Invoice::set_allocated_status(std::string* value) { +inline void InvoiceSummary::set_allocated_status(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.status_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -4217,25 +3587,25 @@ inline void Invoice::set_allocated_status(std::string* value) { _impl_.status_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Invoice.status) + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.status) } // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; -inline bool Invoice::has_due_date() const { +inline bool InvoiceSummary::has_due_date() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.due_date_ != nullptr); return value; } -inline const ::google::protobuf::Timestamp& Invoice::_internal_due_date() const { +inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_due_date() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::google::protobuf::Timestamp* p = _impl_.due_date_; return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& Invoice::due_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Invoice.due_date) +inline const ::google::protobuf::Timestamp& InvoiceSummary::due_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.due_date) return _internal_due_date(); } -inline void Invoice::unsafe_arena_set_allocated_due_date(::google::protobuf::Timestamp* value) { +inline void InvoiceSummary::unsafe_arena_set_allocated_due_date(::google::protobuf::Timestamp* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.due_date_); @@ -4246,9 +3616,9 @@ inline void Invoice::unsafe_arena_set_allocated_due_date(::google::protobuf::Tim } else { _impl_._has_bits_[0] &= ~0x00000002u; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Invoice.due_date) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.due_date) } -inline ::google::protobuf::Timestamp* Invoice::release_due_date() { +inline ::google::protobuf::Timestamp* InvoiceSummary::release_due_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] &= ~0x00000002u; @@ -4267,16 +3637,16 @@ inline ::google::protobuf::Timestamp* Invoice::release_due_date() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::google::protobuf::Timestamp* Invoice::unsafe_arena_release_due_date() { +inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_due_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Invoice.due_date) + // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.due_date) _impl_._has_bits_[0] &= ~0x00000002u; ::google::protobuf::Timestamp* temp = _impl_.due_date_; _impl_.due_date_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Invoice::_internal_mutable_due_date() { +inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_due_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.due_date_ == nullptr) { @@ -4285,12 +3655,12 @@ inline ::google::protobuf::Timestamp* Invoice::_internal_mutable_due_date() { } return _impl_.due_date_; } -inline ::google::protobuf::Timestamp* Invoice::mutable_due_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_due_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::Timestamp* _msg = _internal_mutable_due_date(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Invoice.due_date) + // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.due_date) return _msg; } -inline void Invoice::set_allocated_due_date(::google::protobuf::Timestamp* value) { +inline void InvoiceSummary::set_allocated_due_date(::google::protobuf::Timestamp* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { @@ -4308,109 +3678,98 @@ inline void Invoice::set_allocated_due_date(::google::protobuf::Timestamp* value } _impl_.due_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Invoice.due_date) + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.due_date) } -// repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"]; -inline int Invoice::_internal_items_size() const { - return _internal_items().size(); -} -inline int Invoice::items_size() const { - return _internal_items_size(); -} -inline void Invoice::clear_items() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.items_.Clear(); -} -inline ::viam::app::v1::BillableResourceEvent* Invoice::mutable_items(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.Invoice.items) - return _internal_mutable_items()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::BillableResourceEvent>* Invoice::mutable_items() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.Invoice.items) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_items(); -} -inline const ::viam::app::v1::BillableResourceEvent& Invoice::items(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Invoice.items) - return _internal_items().Get(index); -} -inline ::viam::app::v1::BillableResourceEvent* Invoice::add_items() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::BillableResourceEvent* _add = _internal_mutable_items()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.Invoice.items) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::BillableResourceEvent>& Invoice::items() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.Invoice.items) - return _internal_items(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::BillableResourceEvent>& -Invoice::_internal_items() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.items_; +// .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; +inline bool InvoiceSummary::has_paid_date() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || _impl_.paid_date_ != nullptr); + return value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::BillableResourceEvent>* -Invoice::_internal_mutable_items() { +inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_paid_date() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.items_; -} - -// string emailed_to = 7 [json_name = "emailedTo"]; -inline void Invoice::clear_emailed_to() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emailed_to_.ClearToEmpty(); + const ::google::protobuf::Timestamp* p = _impl_.paid_date_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); } -inline const std::string& Invoice::emailed_to() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Invoice.emailed_to) - return _internal_emailed_to(); +inline const ::google::protobuf::Timestamp& InvoiceSummary::paid_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.paid_date) + return _internal_paid_date(); } -template -inline PROTOBUF_ALWAYS_INLINE void Invoice::set_emailed_to(Arg_&& arg, - Args_... args) { +inline void InvoiceSummary::unsafe_arena_set_allocated_paid_date(::google::protobuf::Timestamp* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.emailed_to_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Invoice.emailed_to) -} -inline std::string* Invoice::mutable_emailed_to() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_emailed_to(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Invoice.emailed_to) - return _s; -} -inline const std::string& Invoice::_internal_emailed_to() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.emailed_to_.Get(); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paid_date_); + } + _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.paid_date) } -inline void Invoice::_internal_set_emailed_to(const std::string& value) { +inline ::google::protobuf::Timestamp* InvoiceSummary::release_paid_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.emailed_to_.Set(value, GetArena()); + + _impl_._has_bits_[0] &= ~0x00000004u; + ::google::protobuf::Timestamp* released = _impl_.paid_date_; + _impl_.paid_date_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; } -inline std::string* Invoice::_internal_mutable_emailed_to() { +inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_paid_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.emailed_to_.Mutable( GetArena()); + // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.paid_date) + + _impl_._has_bits_[0] &= ~0x00000004u; + ::google::protobuf::Timestamp* temp = _impl_.paid_date_; + _impl_.paid_date_ = nullptr; + return temp; } -inline std::string* Invoice::release_emailed_to() { +inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_paid_date() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Invoice.emailed_to) - return _impl_.emailed_to_.Release(); + _impl_._has_bits_[0] |= 0x00000004u; + if (_impl_.paid_date_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); + _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); + } + return _impl_.paid_date_; +} +inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_paid_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Timestamp* _msg = _internal_mutable_paid_date(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.paid_date) + return _msg; } -inline void Invoice::set_allocated_emailed_to(std::string* value) { +inline void InvoiceSummary::set_allocated_paid_date(::google::protobuf::Timestamp* value) { + ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emailed_to_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.emailed_to_.IsDefault()) { - _impl_.emailed_to_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Invoice.emailed_to) + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paid_date_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + + _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.paid_date) } // ------------------------------------------------------------------- @@ -4582,6 +3941,354 @@ inline void GetCurrentMonthUsageRequest::set_allocated_org_id(std::string* value // ------------------------------------------------------------------- +// UsageCost + +// .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; +inline void UsageCost::clear_resource_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_type_ = 0; +} +inline ::viam::app::v1::UsageCostType UsageCost::resource_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UsageCost.resource_type) + return _internal_resource_type(); +} +inline void UsageCost::set_resource_type(::viam::app::v1::UsageCostType value) { + _internal_set_resource_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UsageCost.resource_type) +} +inline ::viam::app::v1::UsageCostType UsageCost::_internal_resource_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return static_cast<::viam::app::v1::UsageCostType>(_impl_.resource_type_); +} +inline void UsageCost::_internal_set_resource_type(::viam::app::v1::UsageCostType value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.resource_type_ = value; +} + +// double cost = 2 [json_name = "cost"]; +inline void UsageCost::clear_cost() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.cost_ = 0; +} +inline double UsageCost::cost() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UsageCost.cost) + return _internal_cost(); +} +inline void UsageCost::set_cost(double value) { + _internal_set_cost(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UsageCost.cost) +} +inline double UsageCost::_internal_cost() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.cost_; +} +inline void UsageCost::_internal_set_cost(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.cost_ = value; +} + +// ------------------------------------------------------------------- + +// ResourceUsageCostsBySource + +// .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; +inline void ResourceUsageCostsBySource::clear_source_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.source_type_ = 0; +} +inline ::viam::app::v1::SourceType ResourceUsageCostsBySource::source_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCostsBySource.source_type) + return _internal_source_type(); +} +inline void ResourceUsageCostsBySource::set_source_type(::viam::app::v1::SourceType value) { + _internal_set_source_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCostsBySource.source_type) +} +inline ::viam::app::v1::SourceType ResourceUsageCostsBySource::_internal_source_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return static_cast<::viam::app::v1::SourceType>(_impl_.source_type_); +} +inline void ResourceUsageCostsBySource::_internal_set_source_type(::viam::app::v1::SourceType value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.source_type_ = value; +} + +// .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; +inline bool ResourceUsageCostsBySource::has_resource_usage_costs() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.resource_usage_costs_ != nullptr); + return value; +} +inline void ResourceUsageCostsBySource::clear_resource_usage_costs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.resource_usage_costs_ != nullptr) _impl_.resource_usage_costs_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::viam::app::v1::ResourceUsageCosts& ResourceUsageCostsBySource::_internal_resource_usage_costs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::viam::app::v1::ResourceUsageCosts* p = _impl_.resource_usage_costs_; + return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_ResourceUsageCosts_default_instance_); +} +inline const ::viam::app::v1::ResourceUsageCosts& ResourceUsageCostsBySource::resource_usage_costs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) + return _internal_resource_usage_costs(); +} +inline void ResourceUsageCostsBySource::unsafe_arena_set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resource_usage_costs_); + } + _impl_.resource_usage_costs_ = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) +} +inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::release_resource_usage_costs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::ResourceUsageCosts* released = _impl_.resource_usage_costs_; + _impl_.resource_usage_costs_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::unsafe_arena_release_resource_usage_costs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::ResourceUsageCosts* temp = _impl_.resource_usage_costs_; + _impl_.resource_usage_costs_ = nullptr; + return temp; +} +inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::_internal_mutable_resource_usage_costs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.resource_usage_costs_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::ResourceUsageCosts>(GetArena()); + _impl_.resource_usage_costs_ = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(p); + } + return _impl_.resource_usage_costs_; +} +inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::mutable_resource_usage_costs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::viam::app::v1::ResourceUsageCosts* _msg = _internal_mutable_resource_usage_costs(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) + return _msg; +} +inline void ResourceUsageCostsBySource::set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(_impl_.resource_usage_costs_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.resource_usage_costs_ = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(value); + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) +} + +// string tier_name = 3 [json_name = "tierName"]; +inline void ResourceUsageCostsBySource::clear_tier_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.tier_name_.ClearToEmpty(); +} +inline const std::string& ResourceUsageCostsBySource::tier_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCostsBySource.tier_name) + return _internal_tier_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ResourceUsageCostsBySource::set_tier_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.tier_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCostsBySource.tier_name) +} +inline std::string* ResourceUsageCostsBySource::mutable_tier_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_tier_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceUsageCostsBySource.tier_name) + return _s; +} +inline const std::string& ResourceUsageCostsBySource::_internal_tier_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.tier_name_.Get(); +} +inline void ResourceUsageCostsBySource::_internal_set_tier_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.tier_name_.Set(value, GetArena()); +} +inline std::string* ResourceUsageCostsBySource::_internal_mutable_tier_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.tier_name_.Mutable( GetArena()); +} +inline std::string* ResourceUsageCostsBySource::release_tier_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.app.v1.ResourceUsageCostsBySource.tier_name) + return _impl_.tier_name_.Release(); +} +inline void ResourceUsageCostsBySource::set_allocated_tier_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.tier_name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.tier_name_.IsDefault()) { + _impl_.tier_name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResourceUsageCostsBySource.tier_name) +} + +// ------------------------------------------------------------------- + +// ResourceUsageCosts + +// repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; +inline int ResourceUsageCosts::_internal_usage_costs_size() const { + return _internal_usage_costs().size(); +} +inline int ResourceUsageCosts::usage_costs_size() const { + return _internal_usage_costs_size(); +} +inline void ResourceUsageCosts::clear_usage_costs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.usage_costs_.Clear(); +} +inline ::viam::app::v1::UsageCost* ResourceUsageCosts::mutable_usage_costs(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceUsageCosts.usage_costs) + return _internal_mutable_usage_costs()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>* ResourceUsageCosts::mutable_usage_costs() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ResourceUsageCosts.usage_costs) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_usage_costs(); +} +inline const ::viam::app::v1::UsageCost& ResourceUsageCosts::usage_costs(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.usage_costs) + return _internal_usage_costs().Get(index); +} +inline ::viam::app::v1::UsageCost* ResourceUsageCosts::add_usage_costs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::viam::app::v1::UsageCost* _add = _internal_mutable_usage_costs()->Add(); + // @@protoc_insertion_point(field_add:viam.app.v1.ResourceUsageCosts.usage_costs) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>& ResourceUsageCosts::usage_costs() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:viam.app.v1.ResourceUsageCosts.usage_costs) + return _internal_usage_costs(); +} +inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>& +ResourceUsageCosts::_internal_usage_costs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.usage_costs_; +} +inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>* +ResourceUsageCosts::_internal_mutable_usage_costs() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.usage_costs_; +} + +// double discount = 2 [json_name = "discount"]; +inline void ResourceUsageCosts::clear_discount() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.discount_ = 0; +} +inline double ResourceUsageCosts::discount() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.discount) + return _internal_discount(); +} +inline void ResourceUsageCosts::set_discount(double value) { + _internal_set_discount(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCosts.discount) +} +inline double ResourceUsageCosts::_internal_discount() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.discount_; +} +inline void ResourceUsageCosts::_internal_set_discount(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.discount_ = value; +} + +// double total_with_discount = 3 [json_name = "totalWithDiscount"]; +inline void ResourceUsageCosts::clear_total_with_discount() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.total_with_discount_ = 0; +} +inline double ResourceUsageCosts::total_with_discount() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.total_with_discount) + return _internal_total_with_discount(); +} +inline void ResourceUsageCosts::set_total_with_discount(double value) { + _internal_set_total_with_discount(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCosts.total_with_discount) +} +inline double ResourceUsageCosts::_internal_total_with_discount() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.total_with_discount_; +} +inline void ResourceUsageCosts::_internal_set_total_with_discount(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.total_with_discount_ = value; +} + +// double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; +inline void ResourceUsageCosts::clear_total_without_discount() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.total_without_discount_ = 0; +} +inline double ResourceUsageCosts::total_without_discount() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.total_without_discount) + return _internal_total_without_discount(); +} +inline void ResourceUsageCosts::set_total_without_discount(double value) { + _internal_set_total_without_discount(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCosts.total_without_discount) +} +inline double ResourceUsageCosts::_internal_total_without_discount() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.total_without_discount_; +} +inline void ResourceUsageCosts::_internal_set_total_without_discount(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.total_without_discount_ = value; +} + +// ------------------------------------------------------------------- + // GetCurrentMonthUsageResponse // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; @@ -4766,7 +4473,79 @@ inline void GetCurrentMonthUsageResponse::set_allocated_end_date(::google::proto // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetCurrentMonthUsageResponse.end_date) } -// double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"]; +// repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; +inline int GetCurrentMonthUsageResponse::_internal_resource_usage_costs_by_source_size() const { + return _internal_resource_usage_costs_by_source().size(); +} +inline int GetCurrentMonthUsageResponse::resource_usage_costs_by_source_size() const { + return _internal_resource_usage_costs_by_source_size(); +} +inline void GetCurrentMonthUsageResponse::clear_resource_usage_costs_by_source() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_usage_costs_by_source_.Clear(); +} +inline ::viam::app::v1::ResourceUsageCostsBySource* GetCurrentMonthUsageResponse::mutable_resource_usage_costs_by_source(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) + return _internal_mutable_resource_usage_costs_by_source()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>* GetCurrentMonthUsageResponse::mutable_resource_usage_costs_by_source() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_resource_usage_costs_by_source(); +} +inline const ::viam::app::v1::ResourceUsageCostsBySource& GetCurrentMonthUsageResponse::resource_usage_costs_by_source(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) + return _internal_resource_usage_costs_by_source().Get(index); +} +inline ::viam::app::v1::ResourceUsageCostsBySource* GetCurrentMonthUsageResponse::add_resource_usage_costs_by_source() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::viam::app::v1::ResourceUsageCostsBySource* _add = _internal_mutable_resource_usage_costs_by_source()->Add(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>& GetCurrentMonthUsageResponse::resource_usage_costs_by_source() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) + return _internal_resource_usage_costs_by_source(); +} +inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>& +GetCurrentMonthUsageResponse::_internal_resource_usage_costs_by_source() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.resource_usage_costs_by_source_; +} +inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>* +GetCurrentMonthUsageResponse::_internal_mutable_resource_usage_costs_by_source() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.resource_usage_costs_by_source_; +} + +// double subtotal = 15 [json_name = "subtotal"]; +inline void GetCurrentMonthUsageResponse::clear_subtotal() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.subtotal_ = 0; +} +inline double GetCurrentMonthUsageResponse::subtotal() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.subtotal) + return _internal_subtotal(); +} +inline void GetCurrentMonthUsageResponse::set_subtotal(double value) { + _internal_set_subtotal(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.subtotal) +} +inline double GetCurrentMonthUsageResponse::_internal_subtotal() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.subtotal_; +} +inline void GetCurrentMonthUsageResponse::_internal_set_subtotal(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.subtotal_ = value; +} + +// double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_cloud_storage_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.cloud_storage_usage_cost_ = 0; @@ -4789,7 +4568,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_cloud_storage_usage_cost _impl_.cloud_storage_usage_cost_ = value; } -// double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"]; +// double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_data_upload_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.data_upload_usage_cost_ = 0; @@ -4812,7 +4591,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_data_upload_usage_cost(d _impl_.data_upload_usage_cost_ = value; } -// double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"]; +// double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_data_egres_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.data_egres_usage_cost_ = 0; @@ -4835,7 +4614,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_data_egres_usage_cost(do _impl_.data_egres_usage_cost_ = value; } -// double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"]; +// double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_remote_control_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.remote_control_usage_cost_ = 0; @@ -4858,7 +4637,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_remote_control_usage_cos _impl_.remote_control_usage_cost_ = value; } -// double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"]; +// double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_standard_compute_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.standard_compute_usage_cost_ = 0; @@ -4881,7 +4660,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_standard_compute_usage_c _impl_.standard_compute_usage_cost_ = value; } -// double discount_amount = 8 [json_name = "discountAmount"]; +// double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_discount_amount() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.discount_amount_ = 0; @@ -4904,7 +4683,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_discount_amount(double v _impl_.discount_amount_ = value; } -// double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"]; +// double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_total_usage_with_discount() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.total_usage_with_discount_ = 0; @@ -4927,7 +4706,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_total_usage_with_discoun _impl_.total_usage_with_discount_ = value; } -// double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"]; +// double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_total_usage_without_discount() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.total_usage_without_discount_ = 0; @@ -4950,7 +4729,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_total_usage_without_disc _impl_.total_usage_without_discount_ = value; } -// double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"]; +// double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_per_machine_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.per_machine_usage_cost_ = 0; @@ -4973,7 +4752,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_per_machine_usage_cost(d _impl_.per_machine_usage_cost_ = value; } -// double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"]; +// double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_binary_data_cloud_storage_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.binary_data_cloud_storage_usage_cost_ = 0; @@ -4996,7 +4775,7 @@ inline void GetCurrentMonthUsageResponse::_internal_set_binary_data_cloud_storag _impl_.binary_data_cloud_storage_usage_cost_ = value; } -// double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"]; +// double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_other_cloud_storage_usage_cost() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.other_cloud_storage_usage_cost_ = 0; @@ -5756,6 +5535,18 @@ template <> inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::PaymentMethodType>() { return ::viam::app::v1::PaymentMethodType_descriptor(); } +template <> +struct is_proto_enum<::viam::app::v1::UsageCostType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::UsageCostType>() { + return ::viam::app::v1::UsageCostType_descriptor(); +} +template <> +struct is_proto_enum<::viam::app::v1::SourceType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::SourceType>() { + return ::viam::app::v1::SourceType_descriptor(); +} } // namespace protobuf } // namespace google diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index 878aef1de..9ee33872c 100644 --- a/src/viam/api/buf.lock +++ b/src/viam/api/buf.lock @@ -8,8 +8,8 @@ deps: - remote: buf.build owner: viamrobotics repository: api - commit: da127d8e726747c4a863d4f082b10b28 + commit: 78e76dd112e64ad9b10ca9d39ef12388 - remote: buf.build owner: viamrobotics repository: goutils - commit: af1f1989740a470f8d3539e76403deca + commit: 5fff320e3fab4611aea8180e09bcb5e5 diff --git a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc index c8ceeef01..fbab0b456 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc +++ b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc @@ -178,6 +178,18 @@ struct AnswerResponseDoneStageDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseDoneStageDefaultTypeInternal _AnswerResponseDoneStage_default_instance_; template +PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage(::_pbi::ConstantInitialized) {} +struct AnswerRequestHeartbeatStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerRequestHeartbeatStageDefaultTypeInternal() {} + union { + AnswerRequestHeartbeatStage _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestHeartbeatStageDefaultTypeInternal _AnswerRequestHeartbeatStage_default_instance_; + template PROTOBUF_CONSTEXPR AnswerRequestDoneStage::AnswerRequestDoneStage(::_pbi::ConstantInitialized) {} struct AnswerRequestDoneStageDefaultTypeInternal { PROTOBUF_CONSTEXPR AnswerRequestDoneStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -442,7 +454,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace webrtc } // namespace rpc } // namespace proto -static ::_pb::Metadata file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[21]; +static ::_pb::Metadata file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[22]; static constexpr const ::_pb::EnumDescriptor** file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto = nullptr; static constexpr const ::_pb::ServiceDescriptor** @@ -591,6 +603,14 @@ const ::uint32_t TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto::offs PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestErrorStage, _impl_.status_), 0, ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _impl_._oneof_case_[0]), @@ -603,6 +623,7 @@ const ::uint32_t TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto::offs ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _impl_.stage_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseInitStage, _internal_metadata_), @@ -690,14 +711,15 @@ static const ::_pbi::MigrationSchema {113, 122, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage)}, {123, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestDoneStage)}, {131, 140, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestErrorStage)}, - {141, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequest)}, - {155, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseInitStage)}, - {164, 173, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage)}, - {174, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseDoneStage)}, - {182, 191, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseErrorStage)}, - {192, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponse)}, - {206, -1, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest)}, - {214, 223, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse)}, + {141, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage)}, + {149, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequest)}, + {164, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseInitStage)}, + {173, 182, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage)}, + {183, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseDoneStage)}, + {191, 200, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseErrorStage)}, + {201, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponse)}, + {215, -1, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest)}, + {223, 232, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -714,6 +736,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::proto::rpc::webrtc::v1::_AnswerRequestUpdateStage_default_instance_._instance, &::proto::rpc::webrtc::v1::_AnswerRequestDoneStage_default_instance_._instance, &::proto::rpc::webrtc::v1::_AnswerRequestErrorStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_._instance, &::proto::rpc::webrtc::v1::_AnswerRequest_default_instance_._instance, &::proto::rpc::webrtc::v1::_AnswerResponseInitStage_default_instance_._instance, &::proto::rpc::webrtc::v1::_AnswerResponseUpdateStage_default_instance_._instance, @@ -763,51 +786,54 @@ const char descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2epro "idate\030\001 \001(\0132!.proto.rpc.webrtc.v1.ICECan" "didateR\tcandidate\"\030\n\026AnswerRequestDoneSt" "age\"E\n\027AnswerRequestErrorStage\022*\n\006status" - "\030\001 \001(\0132\022.google.rpc.StatusR\006status\"\301\002\n\rA" - "nswerRequest\022\022\n\004uuid\030\001 \001(\tR\004uuid\022A\n\004init" - "\030\002 \001(\0132+.proto.rpc.webrtc.v1.AnswerReque" - "stInitStageH\000R\004init\022G\n\006update\030\003 \001(\0132-.pr" - "oto.rpc.webrtc.v1.AnswerRequestUpdateSta" - "geH\000R\006update\022A\n\004done\030\004 \001(\0132+.proto.rpc.w" - "ebrtc.v1.AnswerRequestDoneStageH\000R\004done\022" - "D\n\005error\030\005 \001(\0132,.proto.rpc.webrtc.v1.Ans" - "werRequestErrorStageH\000R\005errorB\007\n\005stage\"+" - "\n\027AnswerResponseInitStage\022\020\n\003sdp\030\001 \001(\tR\003" - "sdp\"\\\n\031AnswerResponseUpdateStage\022\?\n\tcand" - "idate\030\001 \001(\0132!.proto.rpc.webrtc.v1.ICECan" - "didateR\tcandidate\"\031\n\027AnswerResponseDoneS" - "tage\"F\n\030AnswerResponseErrorStage\022*\n\006stat" - "us\030\001 \001(\0132\022.google.rpc.StatusR\006status\"\306\002\n" - "\016AnswerResponse\022\022\n\004uuid\030\001 \001(\tR\004uuid\022B\n\004i" - "nit\030\002 \001(\0132,.proto.rpc.webrtc.v1.AnswerRe" - "sponseInitStageH\000R\004init\022H\n\006update\030\003 \001(\0132" - "..proto.rpc.webrtc.v1.AnswerResponseUpda" - "teStageH\000R\006update\022B\n\004done\030\004 \001(\0132,.proto." - "rpc.webrtc.v1.AnswerResponseDoneStageH\000R" - "\004done\022E\n\005error\030\005 \001(\0132-.proto.rpc.webrtc." - "v1.AnswerResponseErrorStageH\000R\005errorB\007\n\005" - "stage\"\035\n\033OptionalWebRTCConfigRequest\"Y\n\034" - "OptionalWebRTCConfigResponse\0229\n\006config\030\001" - " \001(\0132!.proto.rpc.webrtc.v1.WebRTCConfigR" - "\006config2\206\004\n\020SignalingService\022j\n\004Call\022 .p" - "roto.rpc.webrtc.v1.CallRequest\032!.proto.r" - "pc.webrtc.v1.CallResponse\"\033\202\323\344\223\002\025\"\023/rpc/" - "webrtc/v1/call0\001\022\201\001\n\nCallUpdate\022&.proto." - "rpc.webrtc.v1.CallUpdateRequest\032\'.proto." - "rpc.webrtc.v1.CallUpdateResponse\"\"\202\323\344\223\002\034" - "\032\032/rpc/webrtc/v1/call_update\022U\n\006Answer\022#" - ".proto.rpc.webrtc.v1.AnswerResponse\032\".pr" - "oto.rpc.webrtc.v1.AnswerRequest(\0010\001\022\252\001\n\024" - "OptionalWebRTCConfig\0220.proto.rpc.webrtc." - "v1.OptionalWebRTCConfigRequest\0321.proto.r" - "pc.webrtc.v1.OptionalWebRTCConfigRespons" - "e\"-\202\323\344\223\002\'\022%/rpc/webrtc/v1/optional_webrt" - "c_configB\277\001\n\027com.proto.rpc.webrtc.v1B\016Si" - "gnalingProtoP\001Z%go.viam.com/utils/proto/" - "rpc/webrtc/v1\242\002\003PRW\252\002\023Proto.Rpc.Webrtc.V" - "1\312\002\023Proto\\Rpc\\Webrtc\\V1\342\002\037Proto\\Rpc\\Webr" - "tc\\V1\\GPBMetadata\352\002\026Proto::Rpc::Webrtc::" - "V1b\006proto3" + "\030\001 \001(\0132\022.google.rpc.StatusR\006status\"\035\n\033An" + "swerRequestHeartbeatStage\"\223\003\n\rAnswerRequ" + "est\022\022\n\004uuid\030\001 \001(\tR\004uuid\022A\n\004init\030\002 \001(\0132+." + "proto.rpc.webrtc.v1.AnswerRequestInitSta" + "geH\000R\004init\022G\n\006update\030\003 \001(\0132-.proto.rpc.w" + "ebrtc.v1.AnswerRequestUpdateStageH\000R\006upd" + "ate\022A\n\004done\030\004 \001(\0132+.proto.rpc.webrtc.v1." + "AnswerRequestDoneStageH\000R\004done\022D\n\005error\030" + "\005 \001(\0132,.proto.rpc.webrtc.v1.AnswerReques" + "tErrorStageH\000R\005error\022P\n\theartbeat\030\006 \001(\0132" + "0.proto.rpc.webrtc.v1.AnswerRequestHeart" + "beatStageH\000R\theartbeatB\007\n\005stage\"+\n\027Answe" + "rResponseInitStage\022\020\n\003sdp\030\001 \001(\tR\003sdp\"\\\n\031" + "AnswerResponseUpdateStage\022\?\n\tcandidate\030\001" + " \001(\0132!.proto.rpc.webrtc.v1.ICECandidateR" + "\tcandidate\"\031\n\027AnswerResponseDoneStage\"F\n" + "\030AnswerResponseErrorStage\022*\n\006status\030\001 \001(" + "\0132\022.google.rpc.StatusR\006status\"\306\002\n\016Answer" + "Response\022\022\n\004uuid\030\001 \001(\tR\004uuid\022B\n\004init\030\002 \001" + "(\0132,.proto.rpc.webrtc.v1.AnswerResponseI" + "nitStageH\000R\004init\022H\n\006update\030\003 \001(\0132..proto" + ".rpc.webrtc.v1.AnswerResponseUpdateStage" + "H\000R\006update\022B\n\004done\030\004 \001(\0132,.proto.rpc.web" + "rtc.v1.AnswerResponseDoneStageH\000R\004done\022E" + "\n\005error\030\005 \001(\0132-.proto.rpc.webrtc.v1.Answ" + "erResponseErrorStageH\000R\005errorB\007\n\005stage\"\035" + "\n\033OptionalWebRTCConfigRequest\"Y\n\034Optiona" + "lWebRTCConfigResponse\0229\n\006config\030\001 \001(\0132!." + "proto.rpc.webrtc.v1.WebRTCConfigR\006config" + "2\206\004\n\020SignalingService\022j\n\004Call\022 .proto.rp" + "c.webrtc.v1.CallRequest\032!.proto.rpc.webr" + "tc.v1.CallResponse\"\033\202\323\344\223\002\025\"\023/rpc/webrtc/" + "v1/call0\001\022\201\001\n\nCallUpdate\022&.proto.rpc.web" + "rtc.v1.CallUpdateRequest\032\'.proto.rpc.web" + "rtc.v1.CallUpdateResponse\"\"\202\323\344\223\002\034\032\032/rpc/" + "webrtc/v1/call_update\022U\n\006Answer\022#.proto." + "rpc.webrtc.v1.AnswerResponse\032\".proto.rpc" + ".webrtc.v1.AnswerRequest(\0010\001\022\252\001\n\024Optiona" + "lWebRTCConfig\0220.proto.rpc.webrtc.v1.Opti" + "onalWebRTCConfigRequest\0321.proto.rpc.webr" + "tc.v1.OptionalWebRTCConfigResponse\"-\202\323\344\223" + "\002\'\022%/rpc/webrtc/v1/optional_webrtc_confi" + "gB\277\001\n\027com.proto.rpc.webrtc.v1B\016Signaling" + "ProtoP\001Z%go.viam.com/utils/proto/rpc/web" + "rtc/v1\242\002\003PRW\252\002\023Proto.Rpc.Webrtc.V1\312\002\023Pro" + "to\\Rpc\\Webrtc\\V1\342\002\037Proto\\Rpc\\Webrtc\\V1\\G" + "PBMetadata\352\002\026Proto::Rpc::Webrtc::V1b\006pro" + "to3" }; static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_deps[3] = { @@ -819,13 +845,13 @@ static ::absl::once_flag descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_ const ::_pbi::DescriptorTable descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto = { false, false, - 3330, + 3443, descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, "proto/rpc/webrtc/v1/signaling.proto", &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_deps, 3, - 21, + 22, schemas, file_default_instances, TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto::offsets, @@ -3702,6 +3728,41 @@ ::google::protobuf::Metadata AnswerRequestErrorStage::GetMetadata() const { } // =================================================================== +class AnswerRequestHeartbeatStage::_Internal { + public: +}; + +AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) +} +AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage( + ::google::protobuf::Arena* arena, + const AnswerRequestHeartbeatStage& from) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + AnswerRequestHeartbeatStage* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) +} + + + + + + + + + +::google::protobuf::Metadata AnswerRequestHeartbeatStage::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[13]); +} +// =================================================================== + class AnswerRequest::_Internal { public: static constexpr ::int32_t kOneofCaseOffset = @@ -3710,6 +3771,7 @@ class AnswerRequest::_Internal { static const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& update(const AnswerRequest* msg); static const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& done(const AnswerRequest* msg); static const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& error(const AnswerRequest* msg); + static const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& heartbeat(const AnswerRequest* msg); }; const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& AnswerRequest::_Internal::init(const AnswerRequest* msg) { @@ -3724,6 +3786,9 @@ const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& AnswerRequest::_Internal const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& AnswerRequest::_Internal::error(const AnswerRequest* msg) { return *msg->_impl_.stage_.error_; } +const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& AnswerRequest::_Internal::heartbeat(const AnswerRequest* msg) { + return *msg->_impl_.stage_.heartbeat_; +} void AnswerRequest::set_allocated_init(::proto::rpc::webrtc::v1::AnswerRequestInitStage* init) { ::google::protobuf::Arena* message_arena = GetArena(); clear_stage(); @@ -3776,6 +3841,19 @@ void AnswerRequest::set_allocated_error(::proto::rpc::webrtc::v1::AnswerRequestE } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.error) } +void AnswerRequest::set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_stage(); + if (heartbeat) { + ::google::protobuf::Arena* submessage_arena = heartbeat->GetArena(); + if (message_arena != submessage_arena) { + heartbeat = ::google::protobuf::internal::GetOwnedMessage(message_arena, heartbeat, submessage_arena); + } + set_has_heartbeat(); + _impl_.stage_.heartbeat_ = heartbeat; + } + // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) +} AnswerRequest::AnswerRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -3813,6 +3891,9 @@ AnswerRequest::AnswerRequest( case kError: _impl_.stage_.error_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestErrorStage>(arena, *from._impl_.stage_.error_); break; + case kHeartbeat: + _impl_.stage_.heartbeat_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage>(arena, *from._impl_.stage_.heartbeat_); + break; } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequest) @@ -3870,6 +3951,12 @@ void AnswerRequest::clear_stage() { } break; } + case kHeartbeat: { + if (GetArena() == nullptr) { + delete _impl_.stage_.heartbeat_; + } + break; + } case STAGE_NOT_SET: { break; } @@ -3898,16 +3985,16 @@ const char* AnswerRequest::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 5, 4, 46, 2> AnswerRequest::_table_ = { +const ::_pbi::TcParseTable<0, 6, 5, 46, 2> AnswerRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 5, 0, // max_field_number, fast_idx_mask + 6, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap + 4294967232, // skipmap offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 4, // num_aux_entries + 6, // num_field_entries + 5, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_AnswerRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback @@ -3933,11 +4020,15 @@ const ::_pbi::TcParseTable<0, 5, 4, 46, 2> AnswerRequest::_table_ = { // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.stage_.error_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; + {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.stage_.heartbeat_), _Internal::kOneofCaseOffset + 0, 4, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, }}, {{ {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerRequestInitStage>()}, {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerRequestUpdateStage>()}, {::_pbi::FieldAuxDefaultMessage{}, &::proto::rpc::webrtc::v1::_AnswerRequestDoneStage_default_instance_}, {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerRequestErrorStage>()}, + {::_pbi::FieldAuxDefaultMessage{}, &::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_}, }}, {{ "\41\4\0\0\0\0\0\0" "proto.rpc.webrtc.v1.AnswerRequest" @@ -3985,6 +4076,12 @@ ::uint8_t* AnswerRequest::_InternalSerialize( _Internal::error(this).GetCachedSize(), target, stream); break; } + case kHeartbeat: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, _Internal::heartbeat(this), + _Internal::heartbeat(this).GetCachedSize(), target, stream); + break; + } default: break; } @@ -4036,6 +4133,12 @@ ::size_t AnswerRequest::ByteSizeLong() const { 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.error_); break; } + // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; + case kHeartbeat: { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.heartbeat_); + break; + } case STAGE_NOT_SET: { break; } @@ -4083,6 +4186,11 @@ void AnswerRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::googl from._internal_error()); break; } + case kHeartbeat: { + _this->_internal_mutable_heartbeat()->::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage::MergeFrom( + from._internal_heartbeat()); + break; + } case STAGE_NOT_SET: { break; } @@ -4117,7 +4225,7 @@ void AnswerRequest::InternalSwap(AnswerRequest* PROTOBUF_RESTRICT other) { ::google::protobuf::Metadata AnswerRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[13]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[14]); } // =================================================================== @@ -4307,7 +4415,7 @@ void AnswerResponseInitStage::InternalSwap(AnswerResponseInitStage* PROTOBUF_RES ::google::protobuf::Metadata AnswerResponseInitStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[14]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[15]); } // =================================================================== @@ -4514,7 +4622,7 @@ void AnswerResponseUpdateStage::InternalSwap(AnswerResponseUpdateStage* PROTOBUF ::google::protobuf::Metadata AnswerResponseUpdateStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[15]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[16]); } // =================================================================== @@ -4549,7 +4657,7 @@ AnswerResponseDoneStage::AnswerResponseDoneStage( ::google::protobuf::Metadata AnswerResponseDoneStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[16]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[17]); } // =================================================================== @@ -4761,7 +4869,7 @@ void AnswerResponseErrorStage::InternalSwap(AnswerResponseErrorStage* PROTOBUF_R ::google::protobuf::Metadata AnswerResponseErrorStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[17]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[18]); } // =================================================================== @@ -5180,7 +5288,7 @@ void AnswerResponse::InternalSwap(AnswerResponse* PROTOBUF_RESTRICT other) { ::google::protobuf::Metadata AnswerResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[18]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[19]); } // =================================================================== @@ -5215,7 +5323,7 @@ OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest( ::google::protobuf::Metadata OptionalWebRTCConfigRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[19]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[20]); } // =================================================================== @@ -5422,7 +5530,7 @@ void OptionalWebRTCConfigResponse::InternalSwap(OptionalWebRTCConfigResponse* PR ::google::protobuf::Metadata OptionalWebRTCConfigResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[20]); + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[21]); } // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h index 247ca6e86..6586d648e 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h +++ b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h @@ -72,6 +72,9 @@ extern AnswerRequestDoneStageDefaultTypeInternal _AnswerRequestDoneStage_default class AnswerRequestErrorStage; struct AnswerRequestErrorStageDefaultTypeInternal; extern AnswerRequestErrorStageDefaultTypeInternal _AnswerRequestErrorStage_default_instance_; +class AnswerRequestHeartbeatStage; +struct AnswerRequestHeartbeatStageDefaultTypeInternal; +extern AnswerRequestHeartbeatStageDefaultTypeInternal _AnswerRequestHeartbeatStage_default_instance_; class AnswerRequestInitStage; struct AnswerRequestInitStageDefaultTypeInternal; extern AnswerRequestInitStageDefaultTypeInternal _AnswerRequestInitStage_default_instance_; @@ -203,7 +206,7 @@ class OptionalWebRTCConfigRequest final : &_OptionalWebRTCConfigRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(OptionalWebRTCConfigRequest& a, OptionalWebRTCConfigRequest& b) { a.Swap(&b); @@ -1312,7 +1315,7 @@ class AnswerResponseInitStage final : &_AnswerResponseInitStage_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(AnswerResponseInitStage& a, AnswerResponseInitStage& b) { a.Swap(&b); @@ -1492,7 +1495,7 @@ class AnswerResponseDoneStage final : &_AnswerResponseDoneStage_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(AnswerResponseDoneStage& a, AnswerResponseDoneStage& b) { a.Swap(&b); @@ -1570,6 +1573,142 @@ class AnswerResponseDoneStage final : friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; };// ------------------------------------------------------------------- +class AnswerRequestHeartbeatStage final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) */ { + public: + inline AnswerRequestHeartbeatStage() : AnswerRequestHeartbeatStage(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStage(::google::protobuf::internal::ConstantInitialized); + + inline AnswerRequestHeartbeatStage(const AnswerRequestHeartbeatStage& from) + : AnswerRequestHeartbeatStage(nullptr, from) {} + AnswerRequestHeartbeatStage(AnswerRequestHeartbeatStage&& from) noexcept + : AnswerRequestHeartbeatStage() { + *this = ::std::move(from); + } + + inline AnswerRequestHeartbeatStage& operator=(const AnswerRequestHeartbeatStage& from) { + CopyFrom(from); + return *this; + } + inline AnswerRequestHeartbeatStage& operator=(AnswerRequestHeartbeatStage&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AnswerRequestHeartbeatStage& default_instance() { + return *internal_default_instance(); + } + static inline const AnswerRequestHeartbeatStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerRequestHeartbeatStage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(AnswerRequestHeartbeatStage& a, AnswerRequestHeartbeatStage& b) { + a.Swap(&b); + } + inline void Swap(AnswerRequestHeartbeatStage* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AnswerRequestHeartbeatStage* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AnswerRequestHeartbeatStage* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AnswerRequestHeartbeatStage& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AnswerRequestHeartbeatStage& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage"; + } + protected: + explicit AnswerRequestHeartbeatStage(::google::protobuf::Arena* arena); + AnswerRequestHeartbeatStage(::google::protobuf::Arena* arena, const AnswerRequestHeartbeatStage& from); + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) + private: + class _Internal; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; +};// ------------------------------------------------------------------- + class AnswerRequestDoneStage final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestDoneStage) */ { public: @@ -2141,7 +2280,7 @@ class AnswerResponseUpdateStage final : &_AnswerResponseUpdateStage_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(AnswerResponseUpdateStage& a, AnswerResponseUpdateStage& b) { a.Swap(&b); @@ -2503,7 +2642,7 @@ class OptionalWebRTCConfigResponse final : &_OptionalWebRTCConfigResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(OptionalWebRTCConfigResponse& a, OptionalWebRTCConfigResponse& b) { a.Swap(&b); @@ -3183,7 +3322,7 @@ class AnswerResponseErrorStage final : &_AnswerResponseErrorStage_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(AnswerResponseErrorStage& a, AnswerResponseErrorStage& b) { a.Swap(&b); @@ -3769,7 +3908,7 @@ class AnswerResponse final : &_AnswerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(AnswerResponse& a, AnswerResponse& b) { a.Swap(&b); @@ -4049,6 +4188,7 @@ class AnswerRequest final : kUpdate = 3, kDone = 4, kError = 5, + kHeartbeat = 6, STAGE_NOT_SET = 0, }; @@ -4057,7 +4197,7 @@ class AnswerRequest final : &_AnswerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(AnswerRequest& a, AnswerRequest& b) { a.Swap(&b); @@ -4135,6 +4275,7 @@ class AnswerRequest final : kUpdateFieldNumber = 3, kDoneFieldNumber = 4, kErrorFieldNumber = 5, + kHeartbeatFieldNumber = 6, }; // string uuid = 1 [json_name = "uuid"]; void clear_uuid() ; @@ -4227,6 +4368,25 @@ class AnswerRequest final : const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& _internal_error() const; ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* _internal_mutable_error(); + public: + // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; + bool has_heartbeat() const; + private: + bool _internal_has_heartbeat() const; + + public: + void clear_heartbeat() ; + const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& heartbeat() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* release_heartbeat(); + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* mutable_heartbeat(); + void set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* value); + void unsafe_arena_set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* value); + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* unsafe_arena_release_heartbeat(); + + private: + const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& _internal_heartbeat() const; + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* _internal_mutable_heartbeat(); + public: void clear_stage(); StageCase stage_case() const; @@ -4237,13 +4397,14 @@ class AnswerRequest final : void set_has_update(); void set_has_done(); void set_has_error(); + void set_has_heartbeat(); inline bool has_stage() const; inline void clear_has_stage(); friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 0, 5, 4, + 0, 6, 5, 46, 2> _table_; friend class ::google::protobuf::MessageLite; @@ -4268,6 +4429,7 @@ class AnswerRequest final : ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* update_; ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* done_; ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* error_; + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat_; } stage_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; @@ -5953,6 +6115,10 @@ inline void AnswerRequestErrorStage::set_allocated_status(::google::rpc::Status* // ------------------------------------------------------------------- +// AnswerRequestHeartbeatStage + +// ------------------------------------------------------------------- + // AnswerRequest // string uuid = 1 [json_name = "uuid"]; @@ -6312,6 +6478,82 @@ inline ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* AnswerRequest::mutable return _msg; } +// .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; +inline bool AnswerRequest::has_heartbeat() const { + return stage_case() == kHeartbeat; +} +inline bool AnswerRequest::_internal_has_heartbeat() const { + return stage_case() == kHeartbeat; +} +inline void AnswerRequest::set_has_heartbeat() { + _impl_._oneof_case_[0] = kHeartbeat; +} +inline void AnswerRequest::clear_heartbeat() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (stage_case() == kHeartbeat) { + if (GetArena() == nullptr) { + delete _impl_.stage_.heartbeat_; + } + clear_has_stage(); + } +} +inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::release_heartbeat() { + // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) + if (stage_case() == kHeartbeat) { + clear_has_stage(); + auto* temp = _impl_.stage_.heartbeat_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.stage_.heartbeat_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& AnswerRequest::_internal_heartbeat() const { + return stage_case() == kHeartbeat ? *_impl_.stage_.heartbeat_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage&>(::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_); +} +inline const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& AnswerRequest::heartbeat() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) + return _internal_heartbeat(); +} +inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::unsafe_arena_release_heartbeat() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) + if (stage_case() == kHeartbeat) { + clear_has_stage(); + auto* temp = _impl_.stage_.heartbeat_; + _impl_.stage_.heartbeat_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AnswerRequest::unsafe_arena_set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_stage(); + if (value) { + set_has_heartbeat(); + _impl_.stage_.heartbeat_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) +} +inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::_internal_mutable_heartbeat() { + if (stage_case() != kHeartbeat) { + clear_stage(); + set_has_heartbeat(); + _impl_.stage_.heartbeat_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage>(GetArena()); + } + return _impl_.stage_.heartbeat_; +} +inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::mutable_heartbeat() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* _msg = _internal_mutable_heartbeat(); + // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) + return _msg; +} + inline bool AnswerRequest::has_stage() const { return stage_case() != STAGE_NOT_SET; } diff --git a/src/viam/api/robot/v1/robot.pb.cc b/src/viam/api/robot/v1/robot.pb.cc index 0875ed268..37320ffa0 100644 --- a/src/viam/api/robot/v1/robot.pb.cc +++ b/src/viam/api/robot/v1/robot.pb.cc @@ -374,30 +374,6 @@ struct GetCloudMetadataRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataRequestDefaultTypeInternal _GetCloudMetadataRequest_default_instance_; - -inline constexpr DiscoveryQuery::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : subtype_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DiscoveryQuery::DiscoveryQuery(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DiscoveryQueryDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoveryQueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoveryQueryDefaultTypeInternal() {} - union { - DiscoveryQuery _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryQueryDefaultTypeInternal _DiscoveryQuery_default_instance_; template PROTOBUF_CONSTEXPR CancelOperationResponse::CancelOperationResponse(::_pbi::ConstantInitialized) {} struct CancelOperationResponseDefaultTypeInternal { @@ -686,44 +662,30 @@ struct GetStatusRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetStatusRequestDefaultTypeInternal _GetStatusRequest_default_instance_; -inline constexpr Discovery::Impl_::Impl_( +inline constexpr DiscoveryQuery::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - query_{nullptr}, - results_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Discovery::Discovery(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DiscoveryDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoveryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoveryDefaultTypeInternal() {} - union { - Discovery _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryDefaultTypeInternal _Discovery_default_instance_; - -inline constexpr DiscoverComponentsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : queries_{}, - _cached_size_{0} {} + subtype_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + model_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + extra_{nullptr} {} template -PROTOBUF_CONSTEXPR DiscoverComponentsRequest::DiscoverComponentsRequest(::_pbi::ConstantInitialized) +PROTOBUF_CONSTEXPR DiscoveryQuery::DiscoveryQuery(::_pbi::ConstantInitialized) : _impl_(::_pbi::ConstantInitialized()) {} -struct DiscoverComponentsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoverComponentsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoverComponentsRequestDefaultTypeInternal() {} +struct DiscoveryQueryDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoveryQueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoveryQueryDefaultTypeInternal() {} union { - DiscoverComponentsRequest _instance; + DiscoveryQuery _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryQueryDefaultTypeInternal _DiscoveryQuery_default_instance_; inline constexpr ConfigStatus::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept @@ -919,6 +881,45 @@ struct GetMachineStatusResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMachineStatusResponseDefaultTypeInternal _GetMachineStatusResponse_default_instance_; +inline constexpr Discovery::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + query_{nullptr}, + results_{nullptr} {} + +template +PROTOBUF_CONSTEXPR Discovery::Discovery(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DiscoveryDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoveryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoveryDefaultTypeInternal() {} + union { + Discovery _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryDefaultTypeInternal _Discovery_default_instance_; + +inline constexpr DiscoverComponentsRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : queries_{}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR DiscoverComponentsRequest::DiscoverComponentsRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DiscoverComponentsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoverComponentsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoverComponentsRequestDefaultTypeInternal() {} + union { + DiscoverComponentsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; + inline constexpr DiscoverComponentsResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : discovery_{}, @@ -1259,7 +1260,7 @@ const ::uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetSessionsResponse, _impl_.sessions_), - ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1269,6 +1270,10 @@ const ::uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECT ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.subtype_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.model_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.extra_), + ~0u, + ~0u, + 0, PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _internal_metadata_), ~0u, // no _extensions_ @@ -1588,36 +1593,36 @@ static const ::_pbi::MigrationSchema {203, 213, -1, sizeof(::viam::robot::v1::Session)}, {215, -1, -1, sizeof(::viam::robot::v1::GetSessionsRequest)}, {223, -1, -1, sizeof(::viam::robot::v1::GetSessionsResponse)}, - {232, -1, -1, sizeof(::viam::robot::v1::DiscoveryQuery)}, - {242, 252, -1, sizeof(::viam::robot::v1::Discovery)}, - {254, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsRequest)}, - {263, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsResponse)}, - {272, 283, -1, sizeof(::viam::robot::v1::Status)}, - {286, -1, -1, sizeof(::viam::robot::v1::GetStatusRequest)}, - {295, -1, -1, sizeof(::viam::robot::v1::GetStatusResponse)}, - {304, 314, -1, sizeof(::viam::robot::v1::StreamStatusRequest)}, - {316, -1, -1, sizeof(::viam::robot::v1::StreamStatusResponse)}, - {325, 335, -1, sizeof(::viam::robot::v1::StopExtraParameters)}, - {337, -1, -1, sizeof(::viam::robot::v1::StopAllRequest)}, - {346, -1, -1, sizeof(::viam::robot::v1::StopAllResponse)}, - {354, -1, -1, sizeof(::viam::robot::v1::StartSessionRequest)}, - {363, 373, -1, sizeof(::viam::robot::v1::StartSessionResponse)}, - {375, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatRequest)}, - {384, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatResponse)}, - {392, -1, -1, sizeof(::viam::robot::v1::LogRequest)}, - {401, -1, -1, sizeof(::viam::robot::v1::LogResponse)}, - {409, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataRequest)}, - {417, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataResponse)}, - {430, -1, -1, sizeof(::viam::robot::v1::RestartModuleRequest)}, - {441, -1, -1, sizeof(::viam::robot::v1::RestartModuleResponse)}, - {449, -1, -1, sizeof(::viam::robot::v1::ShutdownRequest)}, - {457, -1, -1, sizeof(::viam::robot::v1::ShutdownResponse)}, - {465, -1, -1, sizeof(::viam::robot::v1::GetMachineStatusRequest)}, - {473, 483, -1, sizeof(::viam::robot::v1::GetMachineStatusResponse)}, - {485, 498, -1, sizeof(::viam::robot::v1::ResourceStatus)}, - {503, 513, -1, sizeof(::viam::robot::v1::ConfigStatus)}, - {515, -1, -1, sizeof(::viam::robot::v1::GetVersionRequest)}, - {523, -1, -1, sizeof(::viam::robot::v1::GetVersionResponse)}, + {232, 243, -1, sizeof(::viam::robot::v1::DiscoveryQuery)}, + {246, 256, -1, sizeof(::viam::robot::v1::Discovery)}, + {258, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsRequest)}, + {267, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsResponse)}, + {276, 287, -1, sizeof(::viam::robot::v1::Status)}, + {290, -1, -1, sizeof(::viam::robot::v1::GetStatusRequest)}, + {299, -1, -1, sizeof(::viam::robot::v1::GetStatusResponse)}, + {308, 318, -1, sizeof(::viam::robot::v1::StreamStatusRequest)}, + {320, -1, -1, sizeof(::viam::robot::v1::StreamStatusResponse)}, + {329, 339, -1, sizeof(::viam::robot::v1::StopExtraParameters)}, + {341, -1, -1, sizeof(::viam::robot::v1::StopAllRequest)}, + {350, -1, -1, sizeof(::viam::robot::v1::StopAllResponse)}, + {358, -1, -1, sizeof(::viam::robot::v1::StartSessionRequest)}, + {367, 377, -1, sizeof(::viam::robot::v1::StartSessionResponse)}, + {379, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatRequest)}, + {388, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatResponse)}, + {396, -1, -1, sizeof(::viam::robot::v1::LogRequest)}, + {405, -1, -1, sizeof(::viam::robot::v1::LogResponse)}, + {413, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataRequest)}, + {421, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataResponse)}, + {434, -1, -1, sizeof(::viam::robot::v1::RestartModuleRequest)}, + {445, -1, -1, sizeof(::viam::robot::v1::RestartModuleResponse)}, + {453, -1, -1, sizeof(::viam::robot::v1::ShutdownRequest)}, + {461, -1, -1, sizeof(::viam::robot::v1::ShutdownResponse)}, + {469, -1, -1, sizeof(::viam::robot::v1::GetMachineStatusRequest)}, + {477, 487, -1, sizeof(::viam::robot::v1::GetMachineStatusResponse)}, + {489, 502, -1, sizeof(::viam::robot::v1::ResourceStatus)}, + {507, 517, -1, sizeof(::viam::robot::v1::ConfigStatus)}, + {519, -1, -1, sizeof(::viam::robot::v1::GetVersionRequest)}, + {527, -1, -1, sizeof(::viam::robot::v1::GetVersionResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1732,149 +1737,150 @@ const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTI "foH\000R\022peerConnectionInfo\210\001\001B\027\n\025_peer_con" "nection_info\"\024\n\022GetSessionsRequest\"I\n\023Ge" "tSessionsResponse\0222\n\010sessions\030\001 \003(\0132\026.vi" - "am.robot.v1.SessionR\010sessions\"@\n\016Discove" + "am.robot.v1.SessionR\010sessions\"o\n\016Discove" "ryQuery\022\030\n\007subtype\030\001 \001(\tR\007subtype\022\024\n\005mod" - "el\030\002 \001(\tR\005model\"s\n\tDiscovery\0223\n\005query\030\001 " - "\001(\0132\035.viam.robot.v1.DiscoveryQueryR\005quer" - "y\0221\n\007results\030\002 \001(\0132\027.google.protobuf.Str" - "uctR\007results\"T\n\031DiscoverComponentsReques" - "t\0227\n\007queries\030\001 \003(\0132\035.viam.robot.v1.Disco" - "veryQueryR\007queries\"T\n\032DiscoverComponents" - "Response\0226\n\tdiscovery\030\001 \003(\0132\030.viam.robot" - ".v1.DiscoveryR\tdiscovery\"\264\001\n\006Status\0220\n\004n" - "ame\030\001 \001(\0132\034.viam.common.v1.ResourceNameR" - "\004name\022/\n\006status\030\002 \001(\0132\027.google.protobuf." - "StructR\006status\022G\n\021last_reconfigured\030\003 \001(" - "\0132\032.google.protobuf.TimestampR\020lastRecon" - "figured\"W\n\020GetStatusRequest\022C\n\016resource_" - "names\030\001 \003(\0132\034.viam.common.v1.ResourceNam" - "eR\rresourceNames\"B\n\021GetStatusResponse\022-\n" - "\006status\030\001 \003(\0132\025.viam.robot.v1.StatusR\006st" - "atus\"\213\001\n\023StreamStatusRequest\022C\n\016resource" - "_names\030\001 \003(\0132\034.viam.common.v1.ResourceNa" - "meR\rresourceNames\022/\n\005every\030\002 \001(\0132\031.googl" - "e.protobuf.DurationR\005every\"E\n\024StreamStat" - "usResponse\022-\n\006status\030\001 \003(\0132\025.viam.robot." - "v1.StatusR\006status\"x\n\023StopExtraParameters" - "\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.Resource" - "NameR\004name\022/\n\006params\030\002 \001(\0132\027.google.prot" - "obuf.StructR\006params\"J\n\016StopAllRequest\0228\n" - "\005extra\030c \003(\0132\".viam.robot.v1.StopExtraPa" - "rametersR\005extra\"\021\n\017StopAllResponse\"-\n\023St" - "artSessionRequest\022\026\n\006resume\030\001 \001(\tR\006resum" - "e\"l\n\024StartSessionResponse\022\016\n\002id\030\001 \001(\tR\002i" - "d\022D\n\020heartbeat_window\030\002 \001(\0132\031.google.pro" - "tobuf.DurationR\017heartbeatWindow\"-\n\033SendS" - "essionHeartbeatRequest\022\016\n\002id\030\001 \001(\tR\002id\"\036" - "\n\034SendSessionHeartbeatResponse\":\n\nLogReq" - "uest\022,\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogE" - "ntryR\004logs\"\r\n\013LogResponse\"\031\n\027GetCloudMet" - "adataRequest\"\320\001\n\030GetCloudMetadataRespons" - "e\022&\n\rrobot_part_id\030\001 \001(\tB\002\030\001R\013robotPartI" - "d\022$\n\016primary_org_id\030\002 \001(\tR\014primaryOrgId\022" - "\037\n\013location_id\030\003 \001(\tR\nlocationId\022\035\n\nmach" - "ine_id\030\004 \001(\tR\tmachineId\022&\n\017machine_part_" - "id\030\005 \001(\tR\rmachinePartId\"f\n\024RestartModule" - "Request\022\035\n\tmodule_id\030\001 \001(\tH\000R\010moduleId\022!" - "\n\013module_name\030\002 \001(\tH\000R\nmoduleNameB\014\n\nid_" - "or_name\"\027\n\025RestartModuleResponse\"\021\n\017Shut" - "downRequest\"\022\n\020ShutdownResponse\"\031\n\027GetMa" - "chineStatusRequest\"\214\001\n\030GetMachineStatusR" - "esponse\022;\n\tresources\030\001 \003(\0132\035.viam.robot." - "v1.ResourceStatusR\tresources\0223\n\006config\030\002" - " \001(\0132\033.viam.robot.v1.ConfigStatusR\006confi" - "g\"\370\002\n\016ResourceStatus\0220\n\004name\030\001 \001(\0132\034.via" - "m.common.v1.ResourceNameR\004name\0229\n\005state\030" - "\002 \001(\0162#.viam.robot.v1.ResourceStatus.Sta" - "teR\005state\022=\n\014last_updated\030\003 \001(\0132\032.google" - ".protobuf.TimestampR\013lastUpdated\022\032\n\010revi" - "sion\030\004 \001(\tR\010revision\022\024\n\005error\030\005 \001(\tR\005err" - "or\"\207\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\026\n\022S" - "TATE_UNCONFIGURED\020\001\022\025\n\021STATE_CONFIGURING" - "\020\002\022\017\n\013STATE_READY\020\003\022\022\n\016STATE_REMOVING\020\004\022" - "\023\n\017STATE_UNHEALTHY\020\005\"i\n\014ConfigStatus\022\032\n\010" - "revision\030\001 \001(\tR\010revision\022=\n\014last_updated" - "\030\002 \001(\0132\032.google.protobuf.TimestampR\013last" - "Updated\"\023\n\021GetVersionRequest\"k\n\022GetVersi" - "onResponse\022\032\n\010platform\030\001 \001(\tR\010platform\022\030" - "\n\007version\030\002 \001(\tR\007version\022\037\n\013api_version\030" - "\003 \001(\tR\napiVersion*z\n\022PeerConnectionType\022" - "$\n PEER_CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n" - "\031PEER_CONNECTION_TYPE_GRPC\020\001\022\037\n\033PEER_CON" - "NECTION_TYPE_WEBRTC\020\0022\313\025\n\014RobotService\022\200" - "\001\n\rGetOperations\022#.viam.robot.v1.GetOper" - "ationsRequest\032$.viam.robot.v1.GetOperati" - "onsResponse\"$\202\323\344\223\002\036\022\034/viam/api/v1/operat" - "ions/list\022x\n\013GetSessions\022!.viam.robot.v1" - ".GetSessionsRequest\032\".viam.robot.v1.GetS" - "essionsResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/se" - "ssions/list\022\177\n\rResourceNames\022#.viam.robo" - "t.v1.ResourceNamesRequest\032$.viam.robot.v" - "1.ResourceNamesResponse\"#\202\323\344\223\002\035\022\033/viam/a" - "pi/v1/resources/list\022\235\001\n\023ResourceRPCSubt" - "ypes\022).viam.robot.v1.ResourceRPCSubtypes" - "Request\032*.viam.robot.v1.ResourceRPCSubty" - "pesResponse\"/\202\323\344\223\002)\022\'/viam/api/v1/resour" - "ce_rpc_subtypes/list\022\210\001\n\017CancelOperation" - "\022%.viam.robot.v1.CancelOperationRequest\032" - "&.viam.robot.v1.CancelOperationResponse\"" - "&\202\323\344\223\002 \"\036/viam/api/v1/operations/cancel\022" - "\215\001\n\021BlockForOperation\022\'.viam.robot.v1.Bl" - "ockForOperationRequest\032(.viam.robot.v1.B" - "lockForOperationResponse\"%\202\323\344\223\002\037\"\035/viam/" - "api/v1/operations/block\022\224\001\n\022DiscoverComp" - "onents\022(.viam.robot.v1.DiscoverComponent" - "sRequest\032).viam.robot.v1.DiscoverCompone" - "ntsResponse\")\202\323\344\223\002#\022!/viam/api/v1/discov" - "ery/components\022\220\001\n\021FrameSystemConfig\022\'.v" - "iam.robot.v1.FrameSystemConfigRequest\032(." - "viam.robot.v1.FrameSystemConfigResponse\"" - "(\202\323\344\223\002\"\022 /viam/api/v1/frame_system/confi" - "g\022\214\001\n\rTransformPose\022#.viam.robot.v1.Tran" - "sformPoseRequest\032$.viam.robot.v1.Transfo" - "rmPoseResponse\"0\202\323\344\223\002*\022(/viam/api/v1/fra" - "me_system/transform_pose\022\210\001\n\014TransformPC" - "D\022\".viam.robot.v1.TransformPCDRequest\032#." - "viam.robot.v1.TransformPCDResponse\"/\202\323\344\223" - "\002)\022\'/viam/api/v1/frame_system/transform_" - "pcd\022n\n\tGetStatus\022\037.viam.robot.v1.GetStat" - "usRequest\032 .viam.robot.v1.GetStatusRespo" - "nse\"\036\210\002\001\202\323\344\223\002\025\022\023/viam/api/v1/status\022\200\001\n\014" - "StreamStatus\022\".viam.robot.v1.StreamStatu" - "sRequest\032#.viam.robot.v1.StreamStatusRes" - "ponse\"%\210\002\001\202\323\344\223\002\034\022\032/viam/api/v1/status/st" - "ream0\001\022g\n\007StopAll\022\035.viam.robot.v1.StopAl" - "lRequest\032\036.viam.robot.v1.StopAllResponse" - "\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_all\022v\n\014Start" - "Session\022\".viam.robot.v1.StartSessionRequ" - "est\032#.viam.robot.v1.StartSessionResponse" - "\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessions\022\235\001\n\024Send" - "SessionHeartbeat\022*.viam.robot.v1.SendSes" - "sionHeartbeatRequest\032+.viam.robot.v1.Sen" - "dSessionHeartbeatResponse\",\202\323\344\223\002&\"$/viam" - "/api/v1/sessions/{id}/heartbeat\022V\n\003Log\022\031" - ".viam.robot.v1.LogRequest\032\032.viam.robot.v" - "1.LogResponse\"\030\202\323\344\223\002\022\"\020/viam/api/v1/log\022" - "\210\001\n\020GetCloudMetadata\022&.viam.robot.v1.Get" - "CloudMetadataRequest\032\'.viam.robot.v1.Get" - "CloudMetadataResponse\"#\202\323\344\223\002\035\022\033/viam/api" - "/v1/cloud_metadata\022\177\n\rRestartModule\022#.vi" - "am.robot.v1.RestartModuleRequest\032$.viam." - "robot.v1.RestartModuleResponse\"#\202\323\344\223\002\035\"\033" - "/viam/api/v1/restart_module\022j\n\010Shutdown\022" - "\036.viam.robot.v1.ShutdownRequest\032\037.viam.r" - "obot.v1.ShutdownResponse\"\035\202\323\344\223\002\027\"\025/viam/" - "api/v1/shutdown\022\210\001\n\020GetMachineStatus\022&.v" - "iam.robot.v1.GetMachineStatusRequest\032\'.v" - "iam.robot.v1.GetMachineStatusResponse\"#\202" - "\323\344\223\002\035\022\033/viam/api/v1/machine_status\022o\n\nGe" - "tVersion\022 .viam.robot.v1.GetVersionReque" - "st\032!.viam.robot.v1.GetVersionResponse\"\034\202" - "\323\344\223\002\026\022\024/viam/api/v1/versionB\217\001\n\021com.viam" - ".robot.v1B\nRobotProtoP\001Z\030go.viam.com/api" - "/robot/v1\242\002\003VRX\252\002\rViam.Robot.V1\312\002\rViam\\R" - "obot\\V1\342\002\031Viam\\Robot\\V1\\GPBMetadata\352\002\017Vi" - "am::Robot::V1b\006proto3" + "el\030\002 \001(\tR\005model\022-\n\005extra\030c \001(\0132\027.google." + "protobuf.StructR\005extra\"s\n\tDiscovery\0223\n\005q" + "uery\030\001 \001(\0132\035.viam.robot.v1.DiscoveryQuer" + "yR\005query\0221\n\007results\030\002 \001(\0132\027.google.proto" + "buf.StructR\007results\"T\n\031DiscoverComponent" + "sRequest\0227\n\007queries\030\001 \003(\0132\035.viam.robot.v" + "1.DiscoveryQueryR\007queries\"T\n\032DiscoverCom" + "ponentsResponse\0226\n\tdiscovery\030\001 \003(\0132\030.via" + "m.robot.v1.DiscoveryR\tdiscovery\"\264\001\n\006Stat" + "us\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.Resour" + "ceNameR\004name\022/\n\006status\030\002 \001(\0132\027.google.pr" + "otobuf.StructR\006status\022G\n\021last_reconfigur" + "ed\030\003 \001(\0132\032.google.protobuf.TimestampR\020la" + "stReconfigured\"W\n\020GetStatusRequest\022C\n\016re" + "source_names\030\001 \003(\0132\034.viam.common.v1.Reso" + "urceNameR\rresourceNames\"B\n\021GetStatusResp" + "onse\022-\n\006status\030\001 \003(\0132\025.viam.robot.v1.Sta" + "tusR\006status\"\213\001\n\023StreamStatusRequest\022C\n\016r" + "esource_names\030\001 \003(\0132\034.viam.common.v1.Res" + "ourceNameR\rresourceNames\022/\n\005every\030\002 \001(\0132" + "\031.google.protobuf.DurationR\005every\"E\n\024Str" + "eamStatusResponse\022-\n\006status\030\001 \003(\0132\025.viam" + ".robot.v1.StatusR\006status\"x\n\023StopExtraPar" + "ameters\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.R" + "esourceNameR\004name\022/\n\006params\030\002 \001(\0132\027.goog" + "le.protobuf.StructR\006params\"J\n\016StopAllReq" + "uest\0228\n\005extra\030c \003(\0132\".viam.robot.v1.Stop" + "ExtraParametersR\005extra\"\021\n\017StopAllRespons" + "e\"-\n\023StartSessionRequest\022\026\n\006resume\030\001 \001(\t" + "R\006resume\"l\n\024StartSessionResponse\022\016\n\002id\030\001" + " \001(\tR\002id\022D\n\020heartbeat_window\030\002 \001(\0132\031.goo" + "gle.protobuf.DurationR\017heartbeatWindow\"-" + "\n\033SendSessionHeartbeatRequest\022\016\n\002id\030\001 \001(" + "\tR\002id\"\036\n\034SendSessionHeartbeatResponse\":\n" + "\nLogRequest\022,\n\004logs\030\001 \003(\0132\030.viam.common." + "v1.LogEntryR\004logs\"\r\n\013LogResponse\"\031\n\027GetC" + "loudMetadataRequest\"\320\001\n\030GetCloudMetadata" + "Response\022&\n\rrobot_part_id\030\001 \001(\tB\002\030\001R\013rob" + "otPartId\022$\n\016primary_org_id\030\002 \001(\tR\014primar" + "yOrgId\022\037\n\013location_id\030\003 \001(\tR\nlocationId\022" + "\035\n\nmachine_id\030\004 \001(\tR\tmachineId\022&\n\017machin" + "e_part_id\030\005 \001(\tR\rmachinePartId\"f\n\024Restar" + "tModuleRequest\022\035\n\tmodule_id\030\001 \001(\tH\000R\010mod" + "uleId\022!\n\013module_name\030\002 \001(\tH\000R\nmoduleName" + "B\014\n\nid_or_name\"\027\n\025RestartModuleResponse\"" + "\021\n\017ShutdownRequest\"\022\n\020ShutdownResponse\"\031" + "\n\027GetMachineStatusRequest\"\214\001\n\030GetMachine" + "StatusResponse\022;\n\tresources\030\001 \003(\0132\035.viam" + ".robot.v1.ResourceStatusR\tresources\0223\n\006c" + "onfig\030\002 \001(\0132\033.viam.robot.v1.ConfigStatus" + "R\006config\"\370\002\n\016ResourceStatus\0220\n\004name\030\001 \001(" + "\0132\034.viam.common.v1.ResourceNameR\004name\0229\n" + "\005state\030\002 \001(\0162#.viam.robot.v1.ResourceSta" + "tus.StateR\005state\022=\n\014last_updated\030\003 \001(\0132\032" + ".google.protobuf.TimestampR\013lastUpdated\022" + "\032\n\010revision\030\004 \001(\tR\010revision\022\024\n\005error\030\005 \001" + "(\tR\005error\"\207\001\n\005State\022\025\n\021STATE_UNSPECIFIED" + "\020\000\022\026\n\022STATE_UNCONFIGURED\020\001\022\025\n\021STATE_CONF" + "IGURING\020\002\022\017\n\013STATE_READY\020\003\022\022\n\016STATE_REMO" + "VING\020\004\022\023\n\017STATE_UNHEALTHY\020\005\"i\n\014ConfigSta" + "tus\022\032\n\010revision\030\001 \001(\tR\010revision\022=\n\014last_" + "updated\030\002 \001(\0132\032.google.protobuf.Timestam" + "pR\013lastUpdated\"\023\n\021GetVersionRequest\"k\n\022G" + "etVersionResponse\022\032\n\010platform\030\001 \001(\tR\010pla" + "tform\022\030\n\007version\030\002 \001(\tR\007version\022\037\n\013api_v" + "ersion\030\003 \001(\tR\napiVersion*z\n\022PeerConnecti" + "onType\022$\n PEER_CONNECTION_TYPE_UNSPECIFI" + "ED\020\000\022\035\n\031PEER_CONNECTION_TYPE_GRPC\020\001\022\037\n\033P" + "EER_CONNECTION_TYPE_WEBRTC\020\0022\313\025\n\014RobotSe" + "rvice\022\200\001\n\rGetOperations\022#.viam.robot.v1." + "GetOperationsRequest\032$.viam.robot.v1.Get" + "OperationsResponse\"$\202\323\344\223\002\036\022\034/viam/api/v1" + "/operations/list\022x\n\013GetSessions\022!.viam.r" + "obot.v1.GetSessionsRequest\032\".viam.robot." + "v1.GetSessionsResponse\"\"\202\323\344\223\002\034\022\032/viam/ap" + "i/v1/sessions/list\022\177\n\rResourceNames\022#.vi" + "am.robot.v1.ResourceNamesRequest\032$.viam." + "robot.v1.ResourceNamesResponse\"#\202\323\344\223\002\035\022\033" + "/viam/api/v1/resources/list\022\235\001\n\023Resource" + "RPCSubtypes\022).viam.robot.v1.ResourceRPCS" + "ubtypesRequest\032*.viam.robot.v1.ResourceR" + "PCSubtypesResponse\"/\202\323\344\223\002)\022\'/viam/api/v1" + "/resource_rpc_subtypes/list\022\210\001\n\017CancelOp" + "eration\022%.viam.robot.v1.CancelOperationR" + "equest\032&.viam.robot.v1.CancelOperationRe" + "sponse\"&\202\323\344\223\002 \"\036/viam/api/v1/operations/" + "cancel\022\215\001\n\021BlockForOperation\022\'.viam.robo" + "t.v1.BlockForOperationRequest\032(.viam.rob" + "ot.v1.BlockForOperationResponse\"%\202\323\344\223\002\037\"" + "\035/viam/api/v1/operations/block\022\224\001\n\022Disco" + "verComponents\022(.viam.robot.v1.DiscoverCo" + "mponentsRequest\032).viam.robot.v1.Discover" + "ComponentsResponse\")\202\323\344\223\002#\022!/viam/api/v1" + "/discovery/components\022\220\001\n\021FrameSystemCon" + "fig\022\'.viam.robot.v1.FrameSystemConfigReq" + "uest\032(.viam.robot.v1.FrameSystemConfigRe" + "sponse\"(\202\323\344\223\002\"\022 /viam/api/v1/frame_syste" + "m/config\022\214\001\n\rTransformPose\022#.viam.robot." + "v1.TransformPoseRequest\032$.viam.robot.v1." + "TransformPoseResponse\"0\202\323\344\223\002*\022(/viam/api" + "/v1/frame_system/transform_pose\022\210\001\n\014Tran" + "sformPCD\022\".viam.robot.v1.TransformPCDReq" + "uest\032#.viam.robot.v1.TransformPCDRespons" + "e\"/\202\323\344\223\002)\022\'/viam/api/v1/frame_system/tra" + "nsform_pcd\022n\n\tGetStatus\022\037.viam.robot.v1." + "GetStatusRequest\032 .viam.robot.v1.GetStat" + "usResponse\"\036\210\002\001\202\323\344\223\002\025\022\023/viam/api/v1/stat" + "us\022\200\001\n\014StreamStatus\022\".viam.robot.v1.Stre" + "amStatusRequest\032#.viam.robot.v1.StreamSt" + "atusResponse\"%\210\002\001\202\323\344\223\002\034\022\032/viam/api/v1/st" + "atus/stream0\001\022g\n\007StopAll\022\035.viam.robot.v1" + ".StopAllRequest\032\036.viam.robot.v1.StopAllR" + "esponse\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_all\022v" + "\n\014StartSession\022\".viam.robot.v1.StartSess" + "ionRequest\032#.viam.robot.v1.StartSessionR" + "esponse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessions\022\235" + "\001\n\024SendSessionHeartbeat\022*.viam.robot.v1." + "SendSessionHeartbeatRequest\032+.viam.robot" + ".v1.SendSessionHeartbeatResponse\",\202\323\344\223\002&" + "\"$/viam/api/v1/sessions/{id}/heartbeat\022V" + "\n\003Log\022\031.viam.robot.v1.LogRequest\032\032.viam." + "robot.v1.LogResponse\"\030\202\323\344\223\002\022\"\020/viam/api/" + "v1/log\022\210\001\n\020GetCloudMetadata\022&.viam.robot" + ".v1.GetCloudMetadataRequest\032\'.viam.robot" + ".v1.GetCloudMetadataResponse\"#\202\323\344\223\002\035\022\033/v" + "iam/api/v1/cloud_metadata\022\177\n\rRestartModu" + "le\022#.viam.robot.v1.RestartModuleRequest\032" + "$.viam.robot.v1.RestartModuleResponse\"#\202" + "\323\344\223\002\035\"\033/viam/api/v1/restart_module\022j\n\010Sh" + "utdown\022\036.viam.robot.v1.ShutdownRequest\032\037" + ".viam.robot.v1.ShutdownResponse\"\035\202\323\344\223\002\027\"" + "\025/viam/api/v1/shutdown\022\210\001\n\020GetMachineSta" + "tus\022&.viam.robot.v1.GetMachineStatusRequ" + "est\032\'.viam.robot.v1.GetMachineStatusResp" + "onse\"#\202\323\344\223\002\035\022\033/viam/api/v1/machine_statu" + "s\022o\n\nGetVersion\022 .viam.robot.v1.GetVersi" + "onRequest\032!.viam.robot.v1.GetVersionResp" + "onse\"\034\202\323\344\223\002\026\022\024/viam/api/v1/versionB\217\001\n\021c" + "om.viam.robot.v1B\nRobotProtoP\001Z\030go.viam." + "com/api/robot/v1\242\002\003VRX\252\002\rViam.Robot.V1\312\002" + "\rViam\\Robot\\V1\342\002\031Viam\\Robot\\V1\\GPBMetada" + "ta\352\002\017Viam::Robot::V1b\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = { @@ -1888,7 +1894,7 @@ static ::absl::once_flag descriptor_table_robot_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto = { false, false, - 7941, + 7988, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, "robot/v1/robot.proto", &descriptor_table_robot_2fv1_2frobot_2eproto_once, @@ -5978,8 +5984,23 @@ ::google::protobuf::Metadata GetSessionsResponse::GetMetadata() const { class DiscoveryQuery::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_._has_bits_); + static const ::google::protobuf::Struct& extra(const DiscoveryQuery* msg); + static void set_has_extra(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; +const ::google::protobuf::Struct& DiscoveryQuery::_Internal::extra(const DiscoveryQuery* msg) { + return *msg->_impl_.extra_; +} +void DiscoveryQuery::clear_extra() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} DiscoveryQuery::DiscoveryQuery(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -5988,9 +6009,10 @@ DiscoveryQuery::DiscoveryQuery(::google::protobuf::Arena* arena) inline PROTOBUF_NDEBUG_INLINE DiscoveryQuery::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) - : subtype_(arena, from.subtype_), - model_(arena, from.model_), - _cached_size_{0} {} + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + subtype_(arena, from.subtype_), + model_(arena, from.model_) {} DiscoveryQuery::DiscoveryQuery( ::google::protobuf::Arena* arena, @@ -6001,18 +6023,23 @@ DiscoveryQuery::DiscoveryQuery( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.extra_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) + : nullptr; // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoveryQuery) } inline PROTOBUF_NDEBUG_INLINE DiscoveryQuery::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : subtype_(arena), - model_(arena), - _cached_size_{0} {} + : _cached_size_{0}, + subtype_(arena), + model_(arena) {} inline void DiscoveryQuery::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.extra_ = {}; } DiscoveryQuery::~DiscoveryQuery() { // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoveryQuery) @@ -6023,6 +6050,7 @@ inline void DiscoveryQuery::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); _impl_.subtype_.Destroy(); _impl_.model_.Destroy(); + delete _impl_.extra_; _impl_.~Impl_(); } @@ -6035,6 +6063,12 @@ PROTOBUF_NOINLINE void DiscoveryQuery::Clear() { _impl_.subtype_.ClearToEmpty(); _impl_.model_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.extra_ != nullptr); + _impl_.extra_->Clear(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -6046,38 +6080,47 @@ const char* DiscoveryQuery::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> DiscoveryQuery::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 49, 7> DiscoveryQuery::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_._has_bits_), 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask + 99, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), &_DiscoveryQuery_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - // string model = 2 [json_name = "model"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.model_)}}, + {::_pbi::TcParser::MiniParse, {}}, // string subtype = 1 [json_name = "subtype"]; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.subtype_)}}, + // string model = 2 [json_name = "model"]; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.model_)}}, + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + {::_pbi::TcParser::FastMtS2, + {1690, 0, 0, PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.extra_)}}, }}, {{ + 99, 0, 1, + 65534, 2, 65535, 65535 }}, {{ // string subtype = 1 [json_name = "subtype"]; - {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.subtype_), 0, 0, + {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.subtype_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string model = 2 [json_name = "model"]; - {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.model_), 0, 0, + {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.model_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, + }}, {{ "\34\7\5\0\0\0\0\0" "viam.robot.v1.DiscoveryQuery" "subtype" @@ -6108,6 +6151,14 @@ ::uint8_t* DiscoveryQuery::_InternalSerialize( target = stream->WriteStringMaybeAliased(2, _s, target); } + cached_has_bits = _impl_._has_bits_[0]; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -6137,6 +6188,13 @@ ::size_t DiscoveryQuery::ByteSizeLong() const { this->_internal_model()); } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -6162,6 +6220,10 @@ void DiscoveryQuery::MergeImpl(::google::protobuf::Message& to_msg, const ::goog if (!from._internal_model().empty()) { _this->_internal_set_model(from._internal_model()); } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( + from._internal_extra()); + } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6184,8 +6246,10 @@ void DiscoveryQuery::InternalSwap(DiscoveryQuery* PROTOBUF_RESTRICT other) { auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subtype_, &other->_impl_.subtype_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_, &other->_impl_.model_, arena); + swap(_impl_.extra_, other->_impl_.extra_); } ::google::protobuf::Metadata DiscoveryQuery::GetMetadata() const { diff --git a/src/viam/api/robot/v1/robot.pb.h b/src/viam/api/robot/v1/robot.pb.h index 74291f232..c735a1cf2 100644 --- a/src/viam/api/robot/v1/robot.pb.h +++ b/src/viam/api/robot/v1/robot.pb.h @@ -3744,205 +3744,6 @@ class GetCloudMetadataRequest final : friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; };// ------------------------------------------------------------------- -class DiscoveryQuery final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoveryQuery) */ { - public: - inline DiscoveryQuery() : DiscoveryQuery(nullptr) {} - ~DiscoveryQuery() override; - template - explicit PROTOBUF_CONSTEXPR DiscoveryQuery(::google::protobuf::internal::ConstantInitialized); - - inline DiscoveryQuery(const DiscoveryQuery& from) - : DiscoveryQuery(nullptr, from) {} - DiscoveryQuery(DiscoveryQuery&& from) noexcept - : DiscoveryQuery() { - *this = ::std::move(from); - } - - inline DiscoveryQuery& operator=(const DiscoveryQuery& from) { - CopyFrom(from); - return *this; - } - inline DiscoveryQuery& operator=(DiscoveryQuery&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DiscoveryQuery& default_instance() { - return *internal_default_instance(); - } - static inline const DiscoveryQuery* internal_default_instance() { - return reinterpret_cast( - &_DiscoveryQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(DiscoveryQuery& a, DiscoveryQuery& b) { - a.Swap(&b); - } - inline void Swap(DiscoveryQuery* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DiscoveryQuery* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DiscoveryQuery* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DiscoveryQuery& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DiscoveryQuery& from) { - DiscoveryQuery::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DiscoveryQuery* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.DiscoveryQuery"; - } - protected: - explicit DiscoveryQuery(::google::protobuf::Arena* arena); - DiscoveryQuery(::google::protobuf::Arena* arena, const DiscoveryQuery& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubtypeFieldNumber = 1, - kModelFieldNumber = 2, - }; - // string subtype = 1 [json_name = "subtype"]; - void clear_subtype() ; - const std::string& subtype() const; - template - void set_subtype(Arg_&& arg, Args_... args); - std::string* mutable_subtype(); - PROTOBUF_NODISCARD std::string* release_subtype(); - void set_allocated_subtype(std::string* value); - - private: - const std::string& _internal_subtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype( - const std::string& value); - std::string* _internal_mutable_subtype(); - - public: - // string model = 2 [json_name = "model"]; - void clear_model() ; - const std::string& model() const; - template - void set_model(Arg_&& arg, Args_... args); - std::string* mutable_model(); - PROTOBUF_NODISCARD std::string* release_model(); - void set_allocated_model(std::string* value); - - private: - const std::string& _internal_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model( - const std::string& value); - std::string* _internal_mutable_model(); - - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoveryQuery) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr subtype_; - ::google::protobuf::internal::ArenaStringPtr model_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- - class CancelOperationResponse final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.CancelOperationResponse) */ { public: @@ -6677,26 +6478,26 @@ class GetStatusRequest final : friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; };// ------------------------------------------------------------------- -class Discovery final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Discovery) */ { +class DiscoveryQuery final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoveryQuery) */ { public: - inline Discovery() : Discovery(nullptr) {} - ~Discovery() override; + inline DiscoveryQuery() : DiscoveryQuery(nullptr) {} + ~DiscoveryQuery() override; template - explicit PROTOBUF_CONSTEXPR Discovery(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DiscoveryQuery(::google::protobuf::internal::ConstantInitialized); - inline Discovery(const Discovery& from) - : Discovery(nullptr, from) {} - Discovery(Discovery&& from) noexcept - : Discovery() { + inline DiscoveryQuery(const DiscoveryQuery& from) + : DiscoveryQuery(nullptr, from) {} + DiscoveryQuery(DiscoveryQuery&& from) noexcept + : DiscoveryQuery() { *this = ::std::move(from); } - inline Discovery& operator=(const Discovery& from) { + inline DiscoveryQuery& operator=(const DiscoveryQuery& from) { CopyFrom(from); return *this; } - inline Discovery& operator=(Discovery&& from) noexcept { + inline DiscoveryQuery& operator=(DiscoveryQuery&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -6728,20 +6529,20 @@ class Discovery final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Discovery& default_instance() { + static const DiscoveryQuery& default_instance() { return *internal_default_instance(); } - static inline const Discovery* internal_default_instance() { - return reinterpret_cast( - &_Discovery_default_instance_); + static inline const DiscoveryQuery* internal_default_instance() { + return reinterpret_cast( + &_DiscoveryQuery_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 23; - friend void swap(Discovery& a, Discovery& b) { + friend void swap(DiscoveryQuery& a, DiscoveryQuery& b) { a.Swap(&b); } - inline void Swap(Discovery* other) { + inline void Swap(DiscoveryQuery* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -6754,7 +6555,7 @@ class Discovery final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Discovery* other) { + void UnsafeArenaSwap(DiscoveryQuery* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6762,14 +6563,14 @@ class Discovery final : // implements Message ---------------------------------------------- - Discovery* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DiscoveryQuery* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Discovery& from); + void CopyFrom(const DiscoveryQuery& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Discovery& from) { - Discovery::MergeImpl(*this, from); + void MergeFrom( const DiscoveryQuery& from) { + DiscoveryQuery::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -6787,16 +6588,16 @@ class Discovery final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(Discovery* other); + void InternalSwap(DiscoveryQuery* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.robot.v1.Discovery"; + return "viam.robot.v1.DiscoveryQuery"; } protected: - explicit Discovery(::google::protobuf::Arena* arena); - Discovery(::google::protobuf::Arena* arena, const Discovery& from); + explicit DiscoveryQuery(::google::protobuf::Arena* arena); + DiscoveryQuery(::google::protobuf::Arena* arena, const DiscoveryQuery& from); public: static const ClassData _class_data_; @@ -6809,232 +6610,65 @@ class Discovery final : // accessors ------------------------------------------------------- enum : int { - kQueryFieldNumber = 1, - kResultsFieldNumber = 2, + kSubtypeFieldNumber = 1, + kModelFieldNumber = 2, + kExtraFieldNumber = 99, }; - // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; - bool has_query() const; - void clear_query() ; - const ::viam::robot::v1::DiscoveryQuery& query() const; - PROTOBUF_NODISCARD ::viam::robot::v1::DiscoveryQuery* release_query(); - ::viam::robot::v1::DiscoveryQuery* mutable_query(); - void set_allocated_query(::viam::robot::v1::DiscoveryQuery* value); - void unsafe_arena_set_allocated_query(::viam::robot::v1::DiscoveryQuery* value); - ::viam::robot::v1::DiscoveryQuery* unsafe_arena_release_query(); - - private: - const ::viam::robot::v1::DiscoveryQuery& _internal_query() const; - ::viam::robot::v1::DiscoveryQuery* _internal_mutable_query(); - - public: - // .google.protobuf.Struct results = 2 [json_name = "results"]; - bool has_results() const; - void clear_results() ; - const ::google::protobuf::Struct& results() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_results(); - ::google::protobuf::Struct* mutable_results(); - void set_allocated_results(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_results(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_results(); + // string subtype = 1 [json_name = "subtype"]; + void clear_subtype() ; + const std::string& subtype() const; + template + void set_subtype(Arg_&& arg, Args_... args); + std::string* mutable_subtype(); + PROTOBUF_NODISCARD std::string* release_subtype(); + void set_allocated_subtype(std::string* value); private: - const ::google::protobuf::Struct& _internal_results() const; - ::google::protobuf::Struct* _internal_mutable_results(); - - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.Discovery) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::robot::v1::DiscoveryQuery* query_; - ::google::protobuf::Struct* results_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- - -class DiscoverComponentsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsRequest) */ { - public: - inline DiscoverComponentsRequest() : DiscoverComponentsRequest(nullptr) {} - ~DiscoverComponentsRequest() override; - template - explicit PROTOBUF_CONSTEXPR DiscoverComponentsRequest(::google::protobuf::internal::ConstantInitialized); - - inline DiscoverComponentsRequest(const DiscoverComponentsRequest& from) - : DiscoverComponentsRequest(nullptr, from) {} - DiscoverComponentsRequest(DiscoverComponentsRequest&& from) noexcept - : DiscoverComponentsRequest() { - *this = ::std::move(from); - } - - inline DiscoverComponentsRequest& operator=(const DiscoverComponentsRequest& from) { - CopyFrom(from); - return *this; - } - inline DiscoverComponentsRequest& operator=(DiscoverComponentsRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DiscoverComponentsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const DiscoverComponentsRequest* internal_default_instance() { - return reinterpret_cast( - &_DiscoverComponentsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(DiscoverComponentsRequest& a, DiscoverComponentsRequest& b) { - a.Swap(&b); - } - inline void Swap(DiscoverComponentsRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DiscoverComponentsRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- + const std::string& _internal_subtype() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype( + const std::string& value); + std::string* _internal_mutable_subtype(); - DiscoverComponentsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DiscoverComponentsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DiscoverComponentsRequest& from) { - DiscoverComponentsRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + // string model = 2 [json_name = "model"]; + void clear_model() ; + const std::string& model() const; + template + void set_model(Arg_&& arg, Args_... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* value); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DiscoverComponentsRequest* other); + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model( + const std::string& value); + std::string* _internal_mutable_model(); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.DiscoverComponentsRequest"; - } - protected: - explicit DiscoverComponentsRequest(::google::protobuf::Arena* arena); - DiscoverComponentsRequest(::google::protobuf::Arena* arena, const DiscoverComponentsRequest& from); public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + void clear_extra() ; + const ::google::protobuf::Struct& extra() const; + PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); + ::google::protobuf::Struct* mutable_extra(); + void set_allocated_extra(::google::protobuf::Struct* value); + void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); + ::google::protobuf::Struct* unsafe_arena_release_extra(); - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kQueriesFieldNumber = 1, - }; - // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; - int queries_size() const; private: - int _internal_queries_size() const; + const ::google::protobuf::Struct& _internal_extra() const; + ::google::protobuf::Struct* _internal_mutable_extra(); public: - void clear_queries() ; - ::viam::robot::v1::DiscoveryQuery* mutable_queries(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >* - mutable_queries(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>& _internal_queries() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>* _internal_mutable_queries(); - public: - const ::viam::robot::v1::DiscoveryQuery& queries(int index) const; - ::viam::robot::v1::DiscoveryQuery* add_queries(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >& - queries() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoveryQuery) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> + 2, 3, 1, + 49, 7> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -7050,8 +6684,11 @@ class DiscoverComponentsRequest final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery > queries_; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr subtype_; + ::google::protobuf::internal::ArenaStringPtr model_; + ::google::protobuf::Struct* extra_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; @@ -8555,7 +8192,391 @@ class GetOperationsResponse final : CopyFrom(from); return *this; } - inline GetOperationsResponse& operator=(GetOperationsResponse&& from) noexcept { + inline GetOperationsResponse& operator=(GetOperationsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetOperationsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetOperationsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOperationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetOperationsResponse& a, GetOperationsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetOperationsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetOperationsResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetOperationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetOperationsResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetOperationsResponse& from) { + GetOperationsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GetOperationsResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.robot.v1.GetOperationsResponse"; + } + protected: + explicit GetOperationsResponse(::google::protobuf::Arena* arena); + GetOperationsResponse(::google::protobuf::Arena* arena, const GetOperationsResponse& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kOperationsFieldNumber = 1, + }; + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + int operations_size() const; + private: + int _internal_operations_size() const; + + public: + void clear_operations() ; + ::viam::robot::v1::Operation* mutable_operations(int index); + ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation >* + mutable_operations(); + private: + const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>& _internal_operations() const; + ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>* _internal_mutable_operations(); + public: + const ::viam::robot::v1::Operation& operations(int index) const; + ::viam::robot::v1::Operation* add_operations(); + const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation >& + operations() const; + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 1, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation > operations_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +};// ------------------------------------------------------------------- + +class GetMachineStatusResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetMachineStatusResponse) */ { + public: + inline GetMachineStatusResponse() : GetMachineStatusResponse(nullptr) {} + ~GetMachineStatusResponse() override; + template + explicit PROTOBUF_CONSTEXPR GetMachineStatusResponse(::google::protobuf::internal::ConstantInitialized); + + inline GetMachineStatusResponse(const GetMachineStatusResponse& from) + : GetMachineStatusResponse(nullptr, from) {} + GetMachineStatusResponse(GetMachineStatusResponse&& from) noexcept + : GetMachineStatusResponse() { + *this = ::std::move(from); + } + + inline GetMachineStatusResponse& operator=(const GetMachineStatusResponse& from) { + CopyFrom(from); + return *this; + } + inline GetMachineStatusResponse& operator=(GetMachineStatusResponse&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetMachineStatusResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetMachineStatusResponse* internal_default_instance() { + return reinterpret_cast( + &_GetMachineStatusResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 48; + + friend void swap(GetMachineStatusResponse& a, GetMachineStatusResponse& b) { + a.Swap(&b); + } + inline void Swap(GetMachineStatusResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetMachineStatusResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetMachineStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetMachineStatusResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetMachineStatusResponse& from) { + GetMachineStatusResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GetMachineStatusResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.robot.v1.GetMachineStatusResponse"; + } + protected: + explicit GetMachineStatusResponse(::google::protobuf::Arena* arena); + GetMachineStatusResponse(::google::protobuf::Arena* arena, const GetMachineStatusResponse& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kResourcesFieldNumber = 1, + kConfigFieldNumber = 2, + }; + // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; + int resources_size() const; + private: + int _internal_resources_size() const; + + public: + void clear_resources() ; + ::viam::robot::v1::ResourceStatus* mutable_resources(int index); + ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >* + mutable_resources(); + private: + const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>& _internal_resources() const; + ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>* _internal_mutable_resources(); + public: + const ::viam::robot::v1::ResourceStatus& resources(int index) const; + ::viam::robot::v1::ResourceStatus* add_resources(); + const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >& + resources() const; + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + bool has_config() const; + void clear_config() ; + const ::viam::robot::v1::ConfigStatus& config() const; + PROTOBUF_NODISCARD ::viam::robot::v1::ConfigStatus* release_config(); + ::viam::robot::v1::ConfigStatus* mutable_config(); + void set_allocated_config(::viam::robot::v1::ConfigStatus* value); + void unsafe_arena_set_allocated_config(::viam::robot::v1::ConfigStatus* value); + ::viam::robot::v1::ConfigStatus* unsafe_arena_release_config(); + + private: + const ::viam::robot::v1::ConfigStatus& _internal_config() const; + ::viam::robot::v1::ConfigStatus* _internal_mutable_config(); + + public: + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetMachineStatusResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 2, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus > resources_; + ::viam::robot::v1::ConfigStatus* config_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +};// ------------------------------------------------------------------- + +class Discovery final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Discovery) */ { + public: + inline Discovery() : Discovery(nullptr) {} + ~Discovery() override; + template + explicit PROTOBUF_CONSTEXPR Discovery(::google::protobuf::internal::ConstantInitialized); + + inline Discovery(const Discovery& from) + : Discovery(nullptr, from) {} + Discovery(Discovery&& from) noexcept + : Discovery() { + *this = ::std::move(from); + } + + inline Discovery& operator=(const Discovery& from) { + CopyFrom(from); + return *this; + } + inline Discovery& operator=(Discovery&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -8587,20 +8608,20 @@ class GetOperationsResponse final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOperationsResponse& default_instance() { + static const Discovery& default_instance() { return *internal_default_instance(); } - static inline const GetOperationsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOperationsResponse_default_instance_); + static inline const Discovery* internal_default_instance() { + return reinterpret_cast( + &_Discovery_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 24; - friend void swap(GetOperationsResponse& a, GetOperationsResponse& b) { + friend void swap(Discovery& a, Discovery& b) { a.Swap(&b); } - inline void Swap(GetOperationsResponse* other) { + inline void Swap(Discovery* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -8613,7 +8634,7 @@ class GetOperationsResponse final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOperationsResponse* other) { + void UnsafeArenaSwap(Discovery* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8621,14 +8642,14 @@ class GetOperationsResponse final : // implements Message ---------------------------------------------- - GetOperationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Discovery* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOperationsResponse& from); + void CopyFrom(const Discovery& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOperationsResponse& from) { - GetOperationsResponse::MergeImpl(*this, from); + void MergeFrom( const Discovery& from) { + Discovery::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -8646,16 +8667,16 @@ class GetOperationsResponse final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(GetOperationsResponse* other); + void InternalSwap(Discovery* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetOperationsResponse"; + return "viam.robot.v1.Discovery"; } protected: - explicit GetOperationsResponse(::google::protobuf::Arena* arena); - GetOperationsResponse(::google::protobuf::Arena* arena, const GetOperationsResponse& from); + explicit Discovery(::google::protobuf::Arena* arena); + Discovery(::google::protobuf::Arena* arena, const Discovery& from); public: static const ClassData _class_data_; @@ -8668,33 +8689,46 @@ class GetOperationsResponse final : // accessors ------------------------------------------------------- enum : int { - kOperationsFieldNumber = 1, + kQueryFieldNumber = 1, + kResultsFieldNumber = 2, }; - // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; - int operations_size() const; + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + bool has_query() const; + void clear_query() ; + const ::viam::robot::v1::DiscoveryQuery& query() const; + PROTOBUF_NODISCARD ::viam::robot::v1::DiscoveryQuery* release_query(); + ::viam::robot::v1::DiscoveryQuery* mutable_query(); + void set_allocated_query(::viam::robot::v1::DiscoveryQuery* value); + void unsafe_arena_set_allocated_query(::viam::robot::v1::DiscoveryQuery* value); + ::viam::robot::v1::DiscoveryQuery* unsafe_arena_release_query(); + private: - int _internal_operations_size() const; + const ::viam::robot::v1::DiscoveryQuery& _internal_query() const; + ::viam::robot::v1::DiscoveryQuery* _internal_mutable_query(); public: - void clear_operations() ; - ::viam::robot::v1::Operation* mutable_operations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation >* - mutable_operations(); + // .google.protobuf.Struct results = 2 [json_name = "results"]; + bool has_results() const; + void clear_results() ; + const ::google::protobuf::Struct& results() const; + PROTOBUF_NODISCARD ::google::protobuf::Struct* release_results(); + ::google::protobuf::Struct* mutable_results(); + void set_allocated_results(::google::protobuf::Struct* value); + void unsafe_arena_set_allocated_results(::google::protobuf::Struct* value); + ::google::protobuf::Struct* unsafe_arena_release_results(); + private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>& _internal_operations() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>* _internal_mutable_operations(); + const ::google::protobuf::Struct& _internal_results() const; + ::google::protobuf::Struct* _internal_mutable_results(); + public: - const ::viam::robot::v1::Operation& operations(int index) const; - ::viam::robot::v1::Operation* add_operations(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation >& - operations() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.Discovery) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, + 1, 2, 2, 0, 2> _table_; friend class ::google::protobuf::MessageLite; @@ -8711,34 +8745,36 @@ class GetOperationsResponse final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation > operations_; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::viam::robot::v1::DiscoveryQuery* query_; + ::google::protobuf::Struct* results_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; };// ------------------------------------------------------------------- -class GetMachineStatusResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetMachineStatusResponse) */ { +class DiscoverComponentsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsRequest) */ { public: - inline GetMachineStatusResponse() : GetMachineStatusResponse(nullptr) {} - ~GetMachineStatusResponse() override; + inline DiscoverComponentsRequest() : DiscoverComponentsRequest(nullptr) {} + ~DiscoverComponentsRequest() override; template - explicit PROTOBUF_CONSTEXPR GetMachineStatusResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DiscoverComponentsRequest(::google::protobuf::internal::ConstantInitialized); - inline GetMachineStatusResponse(const GetMachineStatusResponse& from) - : GetMachineStatusResponse(nullptr, from) {} - GetMachineStatusResponse(GetMachineStatusResponse&& from) noexcept - : GetMachineStatusResponse() { + inline DiscoverComponentsRequest(const DiscoverComponentsRequest& from) + : DiscoverComponentsRequest(nullptr, from) {} + DiscoverComponentsRequest(DiscoverComponentsRequest&& from) noexcept + : DiscoverComponentsRequest() { *this = ::std::move(from); } - inline GetMachineStatusResponse& operator=(const GetMachineStatusResponse& from) { + inline DiscoverComponentsRequest& operator=(const DiscoverComponentsRequest& from) { CopyFrom(from); return *this; } - inline GetMachineStatusResponse& operator=(GetMachineStatusResponse&& from) noexcept { + inline DiscoverComponentsRequest& operator=(DiscoverComponentsRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -8770,20 +8806,20 @@ class GetMachineStatusResponse final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetMachineStatusResponse& default_instance() { + static const DiscoverComponentsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetMachineStatusResponse* internal_default_instance() { - return reinterpret_cast( - &_GetMachineStatusResponse_default_instance_); + static inline const DiscoverComponentsRequest* internal_default_instance() { + return reinterpret_cast( + &_DiscoverComponentsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 48; + 25; - friend void swap(GetMachineStatusResponse& a, GetMachineStatusResponse& b) { + friend void swap(DiscoverComponentsRequest& a, DiscoverComponentsRequest& b) { a.Swap(&b); } - inline void Swap(GetMachineStatusResponse* other) { + inline void Swap(DiscoverComponentsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -8796,7 +8832,7 @@ class GetMachineStatusResponse final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetMachineStatusResponse* other) { + void UnsafeArenaSwap(DiscoverComponentsRequest* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8804,14 +8840,14 @@ class GetMachineStatusResponse final : // implements Message ---------------------------------------------- - GetMachineStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DiscoverComponentsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetMachineStatusResponse& from); + void CopyFrom(const DiscoverComponentsRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetMachineStatusResponse& from) { - GetMachineStatusResponse::MergeImpl(*this, from); + void MergeFrom( const DiscoverComponentsRequest& from) { + DiscoverComponentsRequest::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -8829,16 +8865,16 @@ class GetMachineStatusResponse final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(GetMachineStatusResponse* other); + void InternalSwap(DiscoverComponentsRequest* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetMachineStatusResponse"; + return "viam.robot.v1.DiscoverComponentsRequest"; } protected: - explicit GetMachineStatusResponse(::google::protobuf::Arena* arena); - GetMachineStatusResponse(::google::protobuf::Arena* arena, const GetMachineStatusResponse& from); + explicit DiscoverComponentsRequest(::google::protobuf::Arena* arena); + DiscoverComponentsRequest(::google::protobuf::Arena* arena, const DiscoverComponentsRequest& from); public: static const ClassData _class_data_; @@ -8851,49 +8887,33 @@ class GetMachineStatusResponse final : // accessors ------------------------------------------------------- enum : int { - kResourcesFieldNumber = 1, - kConfigFieldNumber = 2, + kQueriesFieldNumber = 1, }; - // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; - int resources_size() const; + // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; + int queries_size() const; private: - int _internal_resources_size() const; + int _internal_queries_size() const; public: - void clear_resources() ; - ::viam::robot::v1::ResourceStatus* mutable_resources(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >* - mutable_resources(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>& _internal_resources() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>* _internal_mutable_resources(); - public: - const ::viam::robot::v1::ResourceStatus& resources(int index) const; - ::viam::robot::v1::ResourceStatus* add_resources(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >& - resources() const; - // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::viam::robot::v1::ConfigStatus& config() const; - PROTOBUF_NODISCARD ::viam::robot::v1::ConfigStatus* release_config(); - ::viam::robot::v1::ConfigStatus* mutable_config(); - void set_allocated_config(::viam::robot::v1::ConfigStatus* value); - void unsafe_arena_set_allocated_config(::viam::robot::v1::ConfigStatus* value); - ::viam::robot::v1::ConfigStatus* unsafe_arena_release_config(); - + void clear_queries() ; + ::viam::robot::v1::DiscoveryQuery* mutable_queries(int index); + ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >* + mutable_queries(); private: - const ::viam::robot::v1::ConfigStatus& _internal_config() const; - ::viam::robot::v1::ConfigStatus* _internal_mutable_config(); - + const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>& _internal_queries() const; + ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>* _internal_mutable_queries(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetMachineStatusResponse) + const ::viam::robot::v1::DiscoveryQuery& queries(int index) const; + ::viam::robot::v1::DiscoveryQuery* add_queries(); + const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >& + queries() const; + // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsRequest) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, + 0, 1, 1, 0, 2> _table_; friend class ::google::protobuf::MessageLite; @@ -8910,10 +8930,8 @@ class GetMachineStatusResponse final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery > queries_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus > resources_; - ::viam::robot::v1::ConfigStatus* config_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; @@ -11983,6 +12001,97 @@ inline void DiscoveryQuery::set_allocated_model(std::string* value) { // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.DiscoveryQuery.model) } +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool DiscoveryQuery::has_extra() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); + return value; +} +inline const ::google::protobuf::Struct& DiscoveryQuery::_internal_extra() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::google::protobuf::Struct* p = _impl_.extra_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +} +inline const ::google::protobuf::Struct& DiscoveryQuery::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoveryQuery.extra) + return _internal_extra(); +} +inline void DiscoveryQuery::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + } + _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.DiscoveryQuery.extra) +} +inline ::google::protobuf::Struct* DiscoveryQuery::release_extra() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Struct* released = _impl_.extra_; + _impl_.extra_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::google::protobuf::Struct* DiscoveryQuery::unsafe_arena_release_extra() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.robot.v1.DiscoveryQuery.extra) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::google::protobuf::Struct* temp = _impl_.extra_; + _impl_.extra_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* DiscoveryQuery::_internal_mutable_extra() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.extra_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); + _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); + } + return _impl_.extra_; +} +inline ::google::protobuf::Struct* DiscoveryQuery::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoveryQuery.extra) + return _msg; +} +inline void DiscoveryQuery::set_allocated_extra(::google::protobuf::Struct* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.DiscoveryQuery.extra) +} + // ------------------------------------------------------------------- // Discovery