// Generated by the protocol buffer compiler. DO NOT EDIT! // source: demo.proto #include "demo.pb.h" #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" #include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; namespace oteldemo { template PROTOBUF_CONSTEXPR CartItem::CartItem(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.product_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.quantity_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}, } {} struct CartItemDefaultTypeInternal { PROTOBUF_CONSTEXPR CartItemDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CartItemDefaultTypeInternal() {} union { CartItem _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CartItemDefaultTypeInternal _CartItem_default_instance_; template PROTOBUF_CONSTEXPR AddItemRequest::AddItemRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.user_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.item_)*/ nullptr, } {} struct AddItemRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR AddItemRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AddItemRequestDefaultTypeInternal() {} union { AddItemRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddItemRequestDefaultTypeInternal _AddItemRequest_default_instance_; template PROTOBUF_CONSTEXPR EmptyCartRequest::EmptyCartRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.user_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct EmptyCartRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR EmptyCartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EmptyCartRequestDefaultTypeInternal() {} union { EmptyCartRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyCartRequestDefaultTypeInternal _EmptyCartRequest_default_instance_; template PROTOBUF_CONSTEXPR GetCartRequest::GetCartRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.user_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct GetCartRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetCartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetCartRequestDefaultTypeInternal() {} union { GetCartRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCartRequestDefaultTypeInternal _GetCartRequest_default_instance_; template PROTOBUF_CONSTEXPR Cart::Cart(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.items_)*/ {}, /*decltype(_impl_.user_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct CartDefaultTypeInternal { PROTOBUF_CONSTEXPR CartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CartDefaultTypeInternal() {} union { Cart _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CartDefaultTypeInternal _Cart_default_instance_; template PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) {} struct EmptyDefaultTypeInternal { PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EmptyDefaultTypeInternal() {} union { Empty _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_; template PROTOBUF_CONSTEXPR ListRecommendationsRequest::ListRecommendationsRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.product_ids_)*/ {}, /*decltype(_impl_.user_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ListRecommendationsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ListRecommendationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListRecommendationsRequestDefaultTypeInternal() {} union { ListRecommendationsRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRecommendationsRequestDefaultTypeInternal _ListRecommendationsRequest_default_instance_; template PROTOBUF_CONSTEXPR ListRecommendationsResponse::ListRecommendationsResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.product_ids_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ListRecommendationsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ListRecommendationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListRecommendationsResponseDefaultTypeInternal() {} union { ListRecommendationsResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRecommendationsResponseDefaultTypeInternal _ListRecommendationsResponse_default_instance_; template PROTOBUF_CONSTEXPR Product::Product(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.categories_)*/ {}, /*decltype(_impl_.id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.name_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.description_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.picture_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.price_usd_)*/ nullptr, } {} struct ProductDefaultTypeInternal { PROTOBUF_CONSTEXPR ProductDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ProductDefaultTypeInternal() {} union { Product _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProductDefaultTypeInternal _Product_default_instance_; template PROTOBUF_CONSTEXPR ListProductsResponse::ListProductsResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.products_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ListProductsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ListProductsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListProductsResponseDefaultTypeInternal() {} union { ListProductsResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListProductsResponseDefaultTypeInternal _ListProductsResponse_default_instance_; template PROTOBUF_CONSTEXPR GetProductRequest::GetProductRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct GetProductRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetProductRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetProductRequestDefaultTypeInternal() {} union { GetProductRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetProductRequestDefaultTypeInternal _GetProductRequest_default_instance_; template PROTOBUF_CONSTEXPR SearchProductsRequest::SearchProductsRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.query_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct SearchProductsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SearchProductsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SearchProductsRequestDefaultTypeInternal() {} union { SearchProductsRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchProductsRequestDefaultTypeInternal _SearchProductsRequest_default_instance_; template PROTOBUF_CONSTEXPR SearchProductsResponse::SearchProductsResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.results_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, } {} struct SearchProductsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SearchProductsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SearchProductsResponseDefaultTypeInternal() {} union { SearchProductsResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchProductsResponseDefaultTypeInternal _SearchProductsResponse_default_instance_; template PROTOBUF_CONSTEXPR GetQuoteRequest::GetQuoteRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.items_)*/ {}, /*decltype(_impl_.address_)*/ nullptr, } {} struct GetQuoteRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetQuoteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetQuoteRequestDefaultTypeInternal() {} union { GetQuoteRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetQuoteRequestDefaultTypeInternal _GetQuoteRequest_default_instance_; template PROTOBUF_CONSTEXPR GetQuoteResponse::GetQuoteResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.cost_usd_)*/ nullptr, } {} struct GetQuoteResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetQuoteResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetQuoteResponseDefaultTypeInternal() {} union { GetQuoteResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetQuoteResponseDefaultTypeInternal _GetQuoteResponse_default_instance_; template PROTOBUF_CONSTEXPR ShipOrderRequest::ShipOrderRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.items_)*/ {}, /*decltype(_impl_.address_)*/ nullptr, } {} struct ShipOrderRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ShipOrderRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShipOrderRequestDefaultTypeInternal() {} union { ShipOrderRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShipOrderRequestDefaultTypeInternal _ShipOrderRequest_default_instance_; template PROTOBUF_CONSTEXPR ShipOrderResponse::ShipOrderResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.tracking_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ShipOrderResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ShipOrderResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShipOrderResponseDefaultTypeInternal() {} union { ShipOrderResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShipOrderResponseDefaultTypeInternal _ShipOrderResponse_default_instance_; template PROTOBUF_CONSTEXPR Address::Address(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.street_address_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.city_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.state_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.country_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.zip_code_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct AddressDefaultTypeInternal { PROTOBUF_CONSTEXPR AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AddressDefaultTypeInternal() {} union { Address _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddressDefaultTypeInternal _Address_default_instance_; template PROTOBUF_CONSTEXPR Money::Money(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.currency_code_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.units_)*/ ::int64_t{0}, /*decltype(_impl_.nanos_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}, } {} struct MoneyDefaultTypeInternal { PROTOBUF_CONSTEXPR MoneyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MoneyDefaultTypeInternal() {} union { Money _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoneyDefaultTypeInternal _Money_default_instance_; template PROTOBUF_CONSTEXPR GetSupportedCurrenciesResponse::GetSupportedCurrenciesResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.currency_codes_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, } {} struct GetSupportedCurrenciesResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetSupportedCurrenciesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetSupportedCurrenciesResponseDefaultTypeInternal() {} union { GetSupportedCurrenciesResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSupportedCurrenciesResponseDefaultTypeInternal _GetSupportedCurrenciesResponse_default_instance_; template PROTOBUF_CONSTEXPR CurrencyConversionRequest::CurrencyConversionRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.to_code_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.from_)*/ nullptr, } {} struct CurrencyConversionRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR CurrencyConversionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CurrencyConversionRequestDefaultTypeInternal() {} union { CurrencyConversionRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CurrencyConversionRequestDefaultTypeInternal _CurrencyConversionRequest_default_instance_; template PROTOBUF_CONSTEXPR CreditCardInfo::CreditCardInfo(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.credit_card_number_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.credit_card_cvv_)*/ 0, /*decltype(_impl_.credit_card_expiration_year_)*/ 0, /*decltype(_impl_.credit_card_expiration_month_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}, } {} struct CreditCardInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR CreditCardInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CreditCardInfoDefaultTypeInternal() {} union { CreditCardInfo _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreditCardInfoDefaultTypeInternal _CreditCardInfo_default_instance_; template PROTOBUF_CONSTEXPR ChargeRequest::ChargeRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.amount_)*/ nullptr, /*decltype(_impl_.credit_card_)*/ nullptr, } {} struct ChargeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ChargeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ChargeRequestDefaultTypeInternal() {} union { ChargeRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChargeRequestDefaultTypeInternal _ChargeRequest_default_instance_; template PROTOBUF_CONSTEXPR ChargeResponse::ChargeResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.transaction_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ChargeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ChargeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ChargeResponseDefaultTypeInternal() {} union { ChargeResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChargeResponseDefaultTypeInternal _ChargeResponse_default_instance_; template PROTOBUF_CONSTEXPR OrderItem::OrderItem(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.item_)*/ nullptr, /*decltype(_impl_.cost_)*/ nullptr, } {} struct OrderItemDefaultTypeInternal { PROTOBUF_CONSTEXPR OrderItemDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~OrderItemDefaultTypeInternal() {} union { OrderItem _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrderItemDefaultTypeInternal _OrderItem_default_instance_; template PROTOBUF_CONSTEXPR OrderResult::OrderResult(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.items_)*/ {}, /*decltype(_impl_.order_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.shipping_tracking_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.shipping_cost_)*/ nullptr, /*decltype(_impl_.shipping_address_)*/ nullptr, } {} struct OrderResultDefaultTypeInternal { PROTOBUF_CONSTEXPR OrderResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~OrderResultDefaultTypeInternal() {} union { OrderResult _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrderResultDefaultTypeInternal _OrderResult_default_instance_; template PROTOBUF_CONSTEXPR SendOrderConfirmationRequest::SendOrderConfirmationRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.email_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.order_)*/ nullptr, } {} struct SendOrderConfirmationRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SendOrderConfirmationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SendOrderConfirmationRequestDefaultTypeInternal() {} union { SendOrderConfirmationRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendOrderConfirmationRequestDefaultTypeInternal _SendOrderConfirmationRequest_default_instance_; template PROTOBUF_CONSTEXPR PlaceOrderRequest::PlaceOrderRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.user_id_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.user_currency_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.email_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.address_)*/ nullptr, /*decltype(_impl_.credit_card_)*/ nullptr, } {} struct PlaceOrderRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR PlaceOrderRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PlaceOrderRequestDefaultTypeInternal() {} union { PlaceOrderRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlaceOrderRequestDefaultTypeInternal _PlaceOrderRequest_default_instance_; template PROTOBUF_CONSTEXPR PlaceOrderResponse::PlaceOrderResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.order_)*/ nullptr, } {} struct PlaceOrderResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR PlaceOrderResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PlaceOrderResponseDefaultTypeInternal() {} union { PlaceOrderResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlaceOrderResponseDefaultTypeInternal _PlaceOrderResponse_default_instance_; template PROTOBUF_CONSTEXPR AdRequest::AdRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.context_keys_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, } {} struct AdRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR AdRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AdRequestDefaultTypeInternal() {} union { AdRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdRequestDefaultTypeInternal _AdRequest_default_instance_; template PROTOBUF_CONSTEXPR AdResponse::AdResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.ads_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, } {} struct AdResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR AdResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AdResponseDefaultTypeInternal() {} union { AdResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdResponseDefaultTypeInternal _AdResponse_default_instance_; template PROTOBUF_CONSTEXPR Ad::Ad(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.redirect_url_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.text_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct AdDefaultTypeInternal { PROTOBUF_CONSTEXPR AdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AdDefaultTypeInternal() {} union { Ad _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdDefaultTypeInternal _Ad_default_instance_; template PROTOBUF_CONSTEXPR Flag::Flag(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.name_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.description_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.enabled_)*/ false, /*decltype(_impl_._cached_size_)*/ {}, } {} struct FlagDefaultTypeInternal { PROTOBUF_CONSTEXPR FlagDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FlagDefaultTypeInternal() {} union { Flag _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlagDefaultTypeInternal _Flag_default_instance_; template PROTOBUF_CONSTEXPR GetFlagRequest::GetFlagRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.name_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct GetFlagRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetFlagRequestDefaultTypeInternal() {} union { GetFlagRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFlagRequestDefaultTypeInternal _GetFlagRequest_default_instance_; template PROTOBUF_CONSTEXPR GetFlagResponse::GetFlagResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.flag_)*/ nullptr, } {} struct GetFlagResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetFlagResponseDefaultTypeInternal() {} union { GetFlagResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFlagResponseDefaultTypeInternal _GetFlagResponse_default_instance_; template PROTOBUF_CONSTEXPR CreateFlagRequest::CreateFlagRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.name_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.description_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.enabled_)*/ false, /*decltype(_impl_._cached_size_)*/ {}, } {} struct CreateFlagRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR CreateFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CreateFlagRequestDefaultTypeInternal() {} union { CreateFlagRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlagRequestDefaultTypeInternal _CreateFlagRequest_default_instance_; template PROTOBUF_CONSTEXPR CreateFlagResponse::CreateFlagResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_._has_bits_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_.flag_)*/ nullptr, } {} struct CreateFlagResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CreateFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CreateFlagResponseDefaultTypeInternal() {} union { CreateFlagResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlagResponseDefaultTypeInternal _CreateFlagResponse_default_instance_; template PROTOBUF_CONSTEXPR UpdateFlagRequest::UpdateFlagRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.name_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.enabled_)*/ false, /*decltype(_impl_._cached_size_)*/ {}, } {} struct UpdateFlagRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR UpdateFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~UpdateFlagRequestDefaultTypeInternal() {} union { UpdateFlagRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFlagRequestDefaultTypeInternal _UpdateFlagRequest_default_instance_; template PROTOBUF_CONSTEXPR UpdateFlagResponse::UpdateFlagResponse(::_pbi::ConstantInitialized) {} struct UpdateFlagResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR UpdateFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~UpdateFlagResponseDefaultTypeInternal() {} union { UpdateFlagResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFlagResponseDefaultTypeInternal _UpdateFlagResponse_default_instance_; template PROTOBUF_CONSTEXPR ListFlagsRequest::ListFlagsRequest(::_pbi::ConstantInitialized) {} struct ListFlagsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ListFlagsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListFlagsRequestDefaultTypeInternal() {} union { ListFlagsRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFlagsRequestDefaultTypeInternal _ListFlagsRequest_default_instance_; template PROTOBUF_CONSTEXPR ListFlagsResponse::ListFlagsResponse(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.flag_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ListFlagsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ListFlagsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListFlagsResponseDefaultTypeInternal() {} union { ListFlagsResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFlagsResponseDefaultTypeInternal _ListFlagsResponse_default_instance_; template PROTOBUF_CONSTEXPR DeleteFlagRequest::DeleteFlagRequest(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.name_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct DeleteFlagRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR DeleteFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DeleteFlagRequestDefaultTypeInternal() {} union { DeleteFlagRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFlagRequestDefaultTypeInternal _DeleteFlagRequest_default_instance_; template PROTOBUF_CONSTEXPR DeleteFlagResponse::DeleteFlagResponse(::_pbi::ConstantInitialized) {} struct DeleteFlagResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR DeleteFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DeleteFlagResponseDefaultTypeInternal() {} union { DeleteFlagResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFlagResponseDefaultTypeInternal _DeleteFlagResponse_default_instance_; } // namespace oteldemo static ::_pb::Metadata file_level_metadata_demo_2eproto[43]; static constexpr const ::_pb::EnumDescriptor** file_level_enum_descriptors_demo_2eproto = nullptr; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_demo_2eproto = nullptr; const ::uint32_t TableStruct_demo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::CartItem, _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(::oteldemo::CartItem, _impl_.product_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::CartItem, _impl_.quantity_), PROTOBUF_FIELD_OFFSET(::oteldemo::AddItemRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::AddItemRequest, _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(::oteldemo::AddItemRequest, _impl_.user_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::AddItemRequest, _impl_.item_), ~0u, 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::EmptyCartRequest, _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(::oteldemo::EmptyCartRequest, _impl_.user_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::GetCartRequest, _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(::oteldemo::GetCartRequest, _impl_.user_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::Cart, _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(::oteldemo::Cart, _impl_.user_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::Cart, _impl_.items_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::Empty, _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(::oteldemo::ListRecommendationsRequest, _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(::oteldemo::ListRecommendationsRequest, _impl_.user_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::ListRecommendationsRequest, _impl_.product_ids_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::ListRecommendationsResponse, _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(::oteldemo::ListRecommendationsResponse, _impl_.product_ids_), PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _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(::oteldemo::Product, _impl_.id_), PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.name_), PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.description_), PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.picture_), PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.price_usd_), PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.categories_), ~0u, ~0u, ~0u, ~0u, 0, ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::ListProductsResponse, _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(::oteldemo::ListProductsResponse, _impl_.products_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::GetProductRequest, _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(::oteldemo::GetProductRequest, _impl_.id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::SearchProductsRequest, _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(::oteldemo::SearchProductsRequest, _impl_.query_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::SearchProductsResponse, _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(::oteldemo::SearchProductsResponse, _impl_.results_), PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteRequest, _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(::oteldemo::GetQuoteRequest, _impl_.address_), PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteRequest, _impl_.items_), 0, ~0u, PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteResponse, _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(::oteldemo::GetQuoteResponse, _impl_.cost_usd_), 0, PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderRequest, _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(::oteldemo::ShipOrderRequest, _impl_.address_), PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderRequest, _impl_.items_), 0, ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderResponse, _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(::oteldemo::ShipOrderResponse, _impl_.tracking_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _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(::oteldemo::Address, _impl_.street_address_), PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.city_), PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.state_), PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.country_), PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.zip_code_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::Money, _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(::oteldemo::Money, _impl_.currency_code_), PROTOBUF_FIELD_OFFSET(::oteldemo::Money, _impl_.units_), PROTOBUF_FIELD_OFFSET(::oteldemo::Money, _impl_.nanos_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::GetSupportedCurrenciesResponse, _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(::oteldemo::GetSupportedCurrenciesResponse, _impl_.currency_codes_), PROTOBUF_FIELD_OFFSET(::oteldemo::CurrencyConversionRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::CurrencyConversionRequest, _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(::oteldemo::CurrencyConversionRequest, _impl_.from_), PROTOBUF_FIELD_OFFSET(::oteldemo::CurrencyConversionRequest, _impl_.to_code_), 0, ~0u, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _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(::oteldemo::CreditCardInfo, _impl_.credit_card_number_), PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _impl_.credit_card_cvv_), PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _impl_.credit_card_expiration_year_), PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _impl_.credit_card_expiration_month_), PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeRequest, _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(::oteldemo::ChargeRequest, _impl_.amount_), PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeRequest, _impl_.credit_card_), 0, 1, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeResponse, _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(::oteldemo::ChargeResponse, _impl_.transaction_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderItem, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderItem, _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(::oteldemo::OrderItem, _impl_.item_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderItem, _impl_.cost_), 0, 1, PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _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(::oteldemo::OrderResult, _impl_.order_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.shipping_tracking_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.shipping_cost_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.shipping_address_), PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.items_), ~0u, ~0u, 0, 1, ~0u, PROTOBUF_FIELD_OFFSET(::oteldemo::SendOrderConfirmationRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::SendOrderConfirmationRequest, _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(::oteldemo::SendOrderConfirmationRequest, _impl_.email_), PROTOBUF_FIELD_OFFSET(::oteldemo::SendOrderConfirmationRequest, _impl_.order_), ~0u, 0, PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _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(::oteldemo::PlaceOrderRequest, _impl_.user_id_), PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.user_currency_), PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.address_), PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.email_), PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.credit_card_), ~0u, ~0u, 0, ~0u, 1, PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderResponse, _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(::oteldemo::PlaceOrderResponse, _impl_.order_), 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::AdRequest, _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(::oteldemo::AdRequest, _impl_.context_keys_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::AdResponse, _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(::oteldemo::AdResponse, _impl_.ads_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::Ad, _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(::oteldemo::Ad, _impl_.redirect_url_), PROTOBUF_FIELD_OFFSET(::oteldemo::Ad, _impl_.text_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::Flag, _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(::oteldemo::Flag, _impl_.name_), PROTOBUF_FIELD_OFFSET(::oteldemo::Flag, _impl_.description_), PROTOBUF_FIELD_OFFSET(::oteldemo::Flag, _impl_.enabled_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagRequest, _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(::oteldemo::GetFlagRequest, _impl_.name_), PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagResponse, _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(::oteldemo::GetFlagResponse, _impl_.flag_), 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagRequest, _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(::oteldemo::CreateFlagRequest, _impl_.name_), PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagRequest, _impl_.description_), PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagRequest, _impl_.enabled_), PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagResponse, _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(::oteldemo::CreateFlagResponse, _impl_.flag_), 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::UpdateFlagRequest, _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(::oteldemo::UpdateFlagRequest, _impl_.name_), PROTOBUF_FIELD_OFFSET(::oteldemo::UpdateFlagRequest, _impl_.enabled_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::UpdateFlagResponse, _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(::oteldemo::ListFlagsRequest, _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(::oteldemo::ListFlagsResponse, _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(::oteldemo::ListFlagsResponse, _impl_.flag_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::DeleteFlagRequest, _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(::oteldemo::DeleteFlagRequest, _impl_.name_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::oteldemo::DeleteFlagResponse, _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) }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::oteldemo::CartItem)}, {10, 20, -1, sizeof(::oteldemo::AddItemRequest)}, {22, -1, -1, sizeof(::oteldemo::EmptyCartRequest)}, {31, -1, -1, sizeof(::oteldemo::GetCartRequest)}, {40, -1, -1, sizeof(::oteldemo::Cart)}, {50, -1, -1, sizeof(::oteldemo::Empty)}, {58, -1, -1, sizeof(::oteldemo::ListRecommendationsRequest)}, {68, -1, -1, sizeof(::oteldemo::ListRecommendationsResponse)}, {77, 91, -1, sizeof(::oteldemo::Product)}, {97, -1, -1, sizeof(::oteldemo::ListProductsResponse)}, {106, -1, -1, sizeof(::oteldemo::GetProductRequest)}, {115, -1, -1, sizeof(::oteldemo::SearchProductsRequest)}, {124, -1, -1, sizeof(::oteldemo::SearchProductsResponse)}, {133, 143, -1, sizeof(::oteldemo::GetQuoteRequest)}, {145, 154, -1, sizeof(::oteldemo::GetQuoteResponse)}, {155, 165, -1, sizeof(::oteldemo::ShipOrderRequest)}, {167, -1, -1, sizeof(::oteldemo::ShipOrderResponse)}, {176, -1, -1, sizeof(::oteldemo::Address)}, {189, -1, -1, sizeof(::oteldemo::Money)}, {200, -1, -1, sizeof(::oteldemo::GetSupportedCurrenciesResponse)}, {209, 219, -1, sizeof(::oteldemo::CurrencyConversionRequest)}, {221, -1, -1, sizeof(::oteldemo::CreditCardInfo)}, {233, 243, -1, sizeof(::oteldemo::ChargeRequest)}, {245, -1, -1, sizeof(::oteldemo::ChargeResponse)}, {254, 264, -1, sizeof(::oteldemo::OrderItem)}, {266, 279, -1, sizeof(::oteldemo::OrderResult)}, {284, 294, -1, sizeof(::oteldemo::SendOrderConfirmationRequest)}, {296, 309, -1, sizeof(::oteldemo::PlaceOrderRequest)}, {314, 323, -1, sizeof(::oteldemo::PlaceOrderResponse)}, {324, -1, -1, sizeof(::oteldemo::AdRequest)}, {333, -1, -1, sizeof(::oteldemo::AdResponse)}, {342, -1, -1, sizeof(::oteldemo::Ad)}, {352, -1, -1, sizeof(::oteldemo::Flag)}, {363, -1, -1, sizeof(::oteldemo::GetFlagRequest)}, {372, 381, -1, sizeof(::oteldemo::GetFlagResponse)}, {382, -1, -1, sizeof(::oteldemo::CreateFlagRequest)}, {393, 402, -1, sizeof(::oteldemo::CreateFlagResponse)}, {403, -1, -1, sizeof(::oteldemo::UpdateFlagRequest)}, {413, -1, -1, sizeof(::oteldemo::UpdateFlagResponse)}, {421, -1, -1, sizeof(::oteldemo::ListFlagsRequest)}, {429, -1, -1, sizeof(::oteldemo::ListFlagsResponse)}, {438, -1, -1, sizeof(::oteldemo::DeleteFlagRequest)}, {447, -1, -1, sizeof(::oteldemo::DeleteFlagResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { &::oteldemo::_CartItem_default_instance_._instance, &::oteldemo::_AddItemRequest_default_instance_._instance, &::oteldemo::_EmptyCartRequest_default_instance_._instance, &::oteldemo::_GetCartRequest_default_instance_._instance, &::oteldemo::_Cart_default_instance_._instance, &::oteldemo::_Empty_default_instance_._instance, &::oteldemo::_ListRecommendationsRequest_default_instance_._instance, &::oteldemo::_ListRecommendationsResponse_default_instance_._instance, &::oteldemo::_Product_default_instance_._instance, &::oteldemo::_ListProductsResponse_default_instance_._instance, &::oteldemo::_GetProductRequest_default_instance_._instance, &::oteldemo::_SearchProductsRequest_default_instance_._instance, &::oteldemo::_SearchProductsResponse_default_instance_._instance, &::oteldemo::_GetQuoteRequest_default_instance_._instance, &::oteldemo::_GetQuoteResponse_default_instance_._instance, &::oteldemo::_ShipOrderRequest_default_instance_._instance, &::oteldemo::_ShipOrderResponse_default_instance_._instance, &::oteldemo::_Address_default_instance_._instance, &::oteldemo::_Money_default_instance_._instance, &::oteldemo::_GetSupportedCurrenciesResponse_default_instance_._instance, &::oteldemo::_CurrencyConversionRequest_default_instance_._instance, &::oteldemo::_CreditCardInfo_default_instance_._instance, &::oteldemo::_ChargeRequest_default_instance_._instance, &::oteldemo::_ChargeResponse_default_instance_._instance, &::oteldemo::_OrderItem_default_instance_._instance, &::oteldemo::_OrderResult_default_instance_._instance, &::oteldemo::_SendOrderConfirmationRequest_default_instance_._instance, &::oteldemo::_PlaceOrderRequest_default_instance_._instance, &::oteldemo::_PlaceOrderResponse_default_instance_._instance, &::oteldemo::_AdRequest_default_instance_._instance, &::oteldemo::_AdResponse_default_instance_._instance, &::oteldemo::_Ad_default_instance_._instance, &::oteldemo::_Flag_default_instance_._instance, &::oteldemo::_GetFlagRequest_default_instance_._instance, &::oteldemo::_GetFlagResponse_default_instance_._instance, &::oteldemo::_CreateFlagRequest_default_instance_._instance, &::oteldemo::_CreateFlagResponse_default_instance_._instance, &::oteldemo::_UpdateFlagRequest_default_instance_._instance, &::oteldemo::_UpdateFlagResponse_default_instance_._instance, &::oteldemo::_ListFlagsRequest_default_instance_._instance, &::oteldemo::_ListFlagsResponse_default_instance_._instance, &::oteldemo::_DeleteFlagRequest_default_instance_._instance, &::oteldemo::_DeleteFlagResponse_default_instance_._instance, }; const char descriptor_table_protodef_demo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\ndemo.proto\022\010oteldemo\"0\n\010CartItem\022\022\n\npr" "oduct_id\030\001 \001(\t\022\020\n\010quantity\030\002 \001(\005\"C\n\016AddI" "temRequest\022\017\n\007user_id\030\001 \001(\t\022 \n\004item\030\002 \001(" "\0132\022.oteldemo.CartItem\"#\n\020EmptyCartReques" "t\022\017\n\007user_id\030\001 \001(\t\"!\n\016GetCartRequest\022\017\n\007" "user_id\030\001 \001(\t\":\n\004Cart\022\017\n\007user_id\030\001 \001(\t\022!" "\n\005items\030\002 \003(\0132\022.oteldemo.CartItem\"\007\n\005Emp" "ty\"B\n\032ListRecommendationsRequest\022\017\n\007user" "_id\030\001 \001(\t\022\023\n\013product_ids\030\002 \003(\t\"2\n\033ListRe" "commendationsResponse\022\023\n\013product_ids\030\001 \003" "(\t\"\201\001\n\007Product\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" "\022\023\n\013description\030\003 \001(\t\022\017\n\007picture\030\004 \001(\t\022\"" "\n\tprice_usd\030\005 \001(\0132\017.oteldemo.Money\022\022\n\nca" "tegories\030\006 \003(\t\";\n\024ListProductsResponse\022#" "\n\010products\030\001 \003(\0132\021.oteldemo.Product\"\037\n\021G" "etProductRequest\022\n\n\002id\030\001 \001(\t\"&\n\025SearchPr" "oductsRequest\022\r\n\005query\030\001 \001(\t\"<\n\026SearchPr" "oductsResponse\022\"\n\007results\030\001 \003(\0132\021.otelde" "mo.Product\"X\n\017GetQuoteRequest\022\"\n\007address" "\030\001 \001(\0132\021.oteldemo.Address\022!\n\005items\030\002 \003(\013" "2\022.oteldemo.CartItem\"5\n\020GetQuoteResponse" "\022!\n\010cost_usd\030\001 \001(\0132\017.oteldemo.Money\"Y\n\020S" "hipOrderRequest\022\"\n\007address\030\001 \001(\0132\021.oteld" "emo.Address\022!\n\005items\030\002 \003(\0132\022.oteldemo.Ca" "rtItem\"(\n\021ShipOrderResponse\022\023\n\013tracking_" "id\030\001 \001(\t\"a\n\007Address\022\026\n\016street_address\030\001 " "\001(\t\022\014\n\004city\030\002 \001(\t\022\r\n\005state\030\003 \001(\t\022\017\n\007coun" "try\030\004 \001(\t\022\020\n\010zip_code\030\005 \001(\t\"<\n\005Money\022\025\n\r" "currency_code\030\001 \001(\t\022\r\n\005units\030\002 \001(\003\022\r\n\005na" "nos\030\003 \001(\005\"8\n\036GetSupportedCurrenciesRespo" "nse\022\026\n\016currency_codes\030\001 \003(\t\"K\n\031CurrencyC" "onversionRequest\022\035\n\004from\030\001 \001(\0132\017.oteldem" "o.Money\022\017\n\007to_code\030\002 \001(\t\"\220\001\n\016CreditCardI" "nfo\022\032\n\022credit_card_number\030\001 \001(\t\022\027\n\017credi" "t_card_cvv\030\002 \001(\005\022#\n\033credit_card_expirati" "on_year\030\003 \001(\005\022$\n\034credit_card_expiration_" "month\030\004 \001(\005\"_\n\rChargeRequest\022\037\n\006amount\030\001" " \001(\0132\017.oteldemo.Money\022-\n\013credit_card\030\002 \001" "(\0132\030.oteldemo.CreditCardInfo\"(\n\016ChargeRe" "sponse\022\026\n\016transaction_id\030\001 \001(\t\"L\n\tOrderI" "tem\022 \n\004item\030\001 \001(\0132\022.oteldemo.CartItem\022\035\n" "\004cost\030\002 \001(\0132\017.oteldemo.Money\"\266\001\n\013OrderRe" "sult\022\020\n\010order_id\030\001 \001(\t\022\034\n\024shipping_track" "ing_id\030\002 \001(\t\022&\n\rshipping_cost\030\003 \001(\0132\017.ot" "eldemo.Money\022+\n\020shipping_address\030\004 \001(\0132\021" ".oteldemo.Address\022\"\n\005items\030\005 \003(\0132\023.oteld" "emo.OrderItem\"S\n\034SendOrderConfirmationRe" "quest\022\r\n\005email\030\001 \001(\t\022$\n\005order\030\002 \001(\0132\025.ot" "eldemo.OrderResult\"\235\001\n\021PlaceOrderRequest" "\022\017\n\007user_id\030\001 \001(\t\022\025\n\ruser_currency\030\002 \001(\t" "\022\"\n\007address\030\003 \001(\0132\021.oteldemo.Address\022\r\n\005" "email\030\005 \001(\t\022-\n\013credit_card\030\006 \001(\0132\030.oteld" "emo.CreditCardInfo\":\n\022PlaceOrderResponse" "\022$\n\005order\030\001 \001(\0132\025.oteldemo.OrderResult\"!" "\n\tAdRequest\022\024\n\014context_keys\030\001 \003(\t\"\'\n\nAdR" "esponse\022\031\n\003ads\030\001 \003(\0132\014.oteldemo.Ad\"(\n\002Ad" "\022\024\n\014redirect_url\030\001 \001(\t\022\014\n\004text\030\002 \001(\t\":\n\004" "Flag\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022" "\017\n\007enabled\030\003 \001(\010\"\036\n\016GetFlagRequest\022\014\n\004na" "me\030\001 \001(\t\"/\n\017GetFlagResponse\022\034\n\004flag\030\001 \001(" "\0132\016.oteldemo.Flag\"G\n\021CreateFlagRequest\022\014" "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\017\n\007ena" "bled\030\003 \001(\010\"2\n\022CreateFlagResponse\022\034\n\004flag" "\030\001 \001(\0132\016.oteldemo.Flag\"2\n\021UpdateFlagRequ" "est\022\014\n\004name\030\001 \001(\t\022\017\n\007enabled\030\002 \001(\010\"\024\n\022Up" "dateFlagResponse\"\022\n\020ListFlagsRequest\"1\n\021" "ListFlagsResponse\022\034\n\004flag\030\001 \003(\0132\016.otelde" "mo.Flag\"!\n\021DeleteFlagRequest\022\014\n\004name\030\001 \001" "(\t\"\024\n\022DeleteFlagResponse2\270\001\n\013CartService" "\0226\n\007AddItem\022\030.oteldemo.AddItemRequest\032\017." "oteldemo.Empty\"\000\0225\n\007GetCart\022\030.oteldemo.G" "etCartRequest\032\016.oteldemo.Cart\"\000\022:\n\tEmpty" "Cart\022\032.oteldemo.EmptyCartRequest\032\017.oteld" "emo.Empty\"\0002}\n\025RecommendationService\022d\n\023" "ListRecommendations\022$.oteldemo.ListRecom" "mendationsRequest\032%.oteldemo.ListRecomme" "ndationsResponse\"\0002\361\001\n\025ProductCatalogSer" "vice\022A\n\014ListProducts\022\017.oteldemo.Empty\032\036." "oteldemo.ListProductsResponse\"\000\022>\n\nGetPr" "oduct\022\033.oteldemo.GetProductRequest\032\021.ote" "ldemo.Product\"\000\022U\n\016SearchProducts\022\037.otel" "demo.SearchProductsRequest\032 .oteldemo.Se" "archProductsResponse\"\0002\236\001\n\017ShippingServi" "ce\022C\n\010GetQuote\022\031.oteldemo.GetQuoteReques" "t\032\032.oteldemo.GetQuoteResponse\"\000\022F\n\tShipO" "rder\022\032.oteldemo.ShipOrderRequest\032\033.oteld" "emo.ShipOrderResponse\"\0002\253\001\n\017CurrencyServ" "ice\022U\n\026GetSupportedCurrencies\022\017.oteldemo" ".Empty\032(.oteldemo.GetSupportedCurrencies" "Response\"\000\022A\n\007Convert\022#.oteldemo.Currenc" "yConversionRequest\032\017.oteldemo.Money\"\0002O\n" "\016PaymentService\022=\n\006Charge\022\027.oteldemo.Cha" "rgeRequest\032\030.oteldemo.ChargeResponse\"\0002b" "\n\014EmailService\022R\n\025SendOrderConfirmation\022" "&.oteldemo.SendOrderConfirmationRequest\032" "\017.oteldemo.Empty\"\0002\\\n\017CheckoutService\022I\n" "\nPlaceOrder\022\033.oteldemo.PlaceOrderRequest" "\032\034.oteldemo.PlaceOrderResponse\"\0002B\n\tAdSe" "rvice\0225\n\006GetAds\022\023.oteldemo.AdRequest\032\024.o" "teldemo.AdResponse\"\0002\377\002\n\022FeatureFlagServ" "ice\022@\n\007GetFlag\022\030.oteldemo.GetFlagRequest" "\032\031.oteldemo.GetFlagResponse\"\000\022I\n\nCreateF" "lag\022\033.oteldemo.CreateFlagRequest\032\034.oteld" "emo.CreateFlagResponse\"\000\022I\n\nUpdateFlag\022\033" ".oteldemo.UpdateFlagRequest\032\034.oteldemo.U" "pdateFlagResponse\"\000\022F\n\tListFlags\022\032.oteld" "emo.ListFlagsRequest\032\033.oteldemo.ListFlag" "sResponse\"\000\022I\n\nDeleteFlag\022\033.oteldemo.Del" "eteFlagRequest\032\034.oteldemo.DeleteFlagResp" "onse\"\000B\023Z\021genproto/oteldemob\006proto3" }; static ::absl::once_flag descriptor_table_demo_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_demo_2eproto = { false, false, 4395, descriptor_table_protodef_demo_2eproto, "demo.proto", &descriptor_table_demo_2eproto_once, nullptr, 0, 43, schemas, file_default_instances, TableStruct_demo_2eproto::offsets, file_level_metadata_demo_2eproto, file_level_enum_descriptors_demo_2eproto, file_level_service_descriptors_demo_2eproto, }; // This function exists to be marked as weak. // It can significantly speed up compilation by breaking up LLVM's SCC // in the .pb.cc translation units. Large translation units see a // reduction of more than 35% of walltime for optimized builds. Without // the weak attribute all the messages in the file, including all the // vtables and everything they use become part of the same SCC through // a cycle like: // GetMetadata -> descriptor table -> default instances -> // vtables -> GetMetadata // By adding a weak function here we break the connection from the // individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_demo_2eproto_getter() { return &descriptor_table_demo_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_demo_2eproto(&descriptor_table_demo_2eproto); namespace oteldemo { // =================================================================== class CartItem::_Internal { public: }; CartItem::CartItem(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.CartItem) } CartItem::CartItem(const CartItem& from) : ::google::protobuf::Message() { CartItem* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.product_id_){}, decltype(_impl_.quantity_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.product_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.product_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_product_id().empty()) { _this->_impl_.product_id_.Set(from._internal_product_id(), _this->GetArenaForAllocation()); } _this->_impl_.quantity_ = from._impl_.quantity_; // @@protoc_insertion_point(copy_constructor:oteldemo.CartItem) } inline void CartItem::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.product_id_){}, decltype(_impl_.quantity_){0}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.product_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.product_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CartItem::~CartItem() { // @@protoc_insertion_point(destructor:oteldemo.CartItem) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void CartItem::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.product_id_.Destroy(); } void CartItem::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void CartItem::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.CartItem) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.product_id_.ClearToEmpty(); _impl_.quantity_ = 0; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* CartItem::_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<1, 2, 0, 36, 2> CartItem::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 2, 8, // 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 &_CartItem_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // int32 quantity = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CartItem, _impl_.quantity_), 63>(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(CartItem, _impl_.quantity_)}}, // string product_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(CartItem, _impl_.product_id_)}}, }}, {{ 65535, 65535 }}, {{ // string product_id = 1; {PROTOBUF_FIELD_OFFSET(CartItem, _impl_.product_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 quantity = 2; {PROTOBUF_FIELD_OFFSET(CartItem, _impl_.quantity_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, }}, // no aux_entries {{ "\21\12\0\0\0\0\0\0" "oteldemo.CartItem" "product_id" }}, }; ::uint8_t* CartItem::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CartItem) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string product_id = 1; if (!this->_internal_product_id().empty()) { const std::string& _s = this->_internal_product_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CartItem.product_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // int32 quantity = 2; if (this->_internal_quantity() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<2>( stream, this->_internal_quantity(), 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:oteldemo.CartItem) return target; } ::size_t CartItem::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.CartItem) ::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 product_id = 1; if (!this->_internal_product_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_product_id()); } // int32 quantity = 2; if (this->_internal_quantity() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_quantity()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData CartItem::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, CartItem::MergeImpl }; const ::google::protobuf::Message::ClassData*CartItem::GetClassData() const { return &_class_data_; } void CartItem::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:oteldemo.CartItem) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_product_id().empty()) { _this->_internal_set_product_id(from._internal_product_id()); } if (from._internal_quantity() != 0) { _this->_internal_set_quantity(from._internal_quantity()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CartItem::CopyFrom(const CartItem& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CartItem) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool CartItem::IsInitialized() const { return true; } void CartItem::InternalSwap(CartItem* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.product_id_, lhs_arena, &other->_impl_.product_id_, rhs_arena); swap(_impl_.quantity_, other->_impl_.quantity_); } ::google::protobuf::Metadata CartItem::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[0]); } // =================================================================== class AddItemRequest::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_._has_bits_); static const ::oteldemo::CartItem& item(const AddItemRequest* msg); static void set_has_item(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::CartItem& AddItemRequest::_Internal::item(const AddItemRequest* msg) { return *msg->_impl_.item_; } AddItemRequest::AddItemRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.AddItemRequest) } AddItemRequest::AddItemRequest(const AddItemRequest& from) : ::google::protobuf::Message() { AddItemRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.user_id_){}, decltype(_impl_.item_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_user_id().empty()) { _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.item_ = new ::oteldemo::CartItem(*from._impl_.item_); } // @@protoc_insertion_point(copy_constructor:oteldemo.AddItemRequest) } inline void AddItemRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.user_id_){}, decltype(_impl_.item_){nullptr}, }; _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } AddItemRequest::~AddItemRequest() { // @@protoc_insertion_point(destructor:oteldemo.AddItemRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void AddItemRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.user_id_.Destroy(); if (this != internal_default_instance()) delete _impl_.item_; } void AddItemRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void AddItemRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.AddItemRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.user_id_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.item_ != nullptr); _impl_.item_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* AddItemRequest::_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<1, 2, 1, 39, 2> AddItemRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_AddItemRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.CartItem item = 2; {::_pbi::TcParser::FastMtS1, {18, 0, 0, PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.item_)}}, // string user_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.user_id_)}}, }}, {{ 65535, 65535 }}, {{ // string user_id = 1; {PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.user_id_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .oteldemo.CartItem item = 2; {PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.item_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, }}, {{ "\27\7\0\0\0\0\0\0" "oteldemo.AddItemRequest" "user_id" }}, }; ::uint8_t* AddItemRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AddItemRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string user_id = 1; if (!this->_internal_user_id().empty()) { const std::string& _s = this->_internal_user_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.AddItemRequest.user_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.CartItem item = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::item(this), _Internal::item(this).GetCachedSize(), target, stream); } 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:oteldemo.AddItemRequest) return target; } ::size_t AddItemRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.AddItemRequest) ::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 user_id = 1; if (!this->_internal_user_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_id()); } // .oteldemo.CartItem item = 2; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.item_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData AddItemRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, AddItemRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*AddItemRequest::GetClassData() const { return &_class_data_; } void AddItemRequest::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:oteldemo.AddItemRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_user_id().empty()) { _this->_internal_set_user_id(from._internal_user_id()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_item()->::oteldemo::CartItem::MergeFrom( from._internal_item()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void AddItemRequest::CopyFrom(const AddItemRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AddItemRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool AddItemRequest::IsInitialized() const { return true; } void AddItemRequest::InternalSwap(AddItemRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, &other->_impl_.user_id_, rhs_arena); swap(_impl_.item_, other->_impl_.item_); } ::google::protobuf::Metadata AddItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[1]); } // =================================================================== class EmptyCartRequest::_Internal { public: }; EmptyCartRequest::EmptyCartRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.EmptyCartRequest) } EmptyCartRequest::EmptyCartRequest(const EmptyCartRequest& from) : ::google::protobuf::Message() { EmptyCartRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_user_id().empty()) { _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.EmptyCartRequest) } inline void EmptyCartRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } EmptyCartRequest::~EmptyCartRequest() { // @@protoc_insertion_point(destructor:oteldemo.EmptyCartRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void EmptyCartRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.user_id_.Destroy(); } void EmptyCartRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void EmptyCartRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.EmptyCartRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.user_id_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* EmptyCartRequest::_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, 41, 2> EmptyCartRequest::_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 &_EmptyCartRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string user_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(EmptyCartRequest, _impl_.user_id_)}}, }}, {{ 65535, 65535 }}, {{ // string user_id = 1; {PROTOBUF_FIELD_OFFSET(EmptyCartRequest, _impl_.user_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\31\7\0\0\0\0\0\0" "oteldemo.EmptyCartRequest" "user_id" }}, }; ::uint8_t* EmptyCartRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.EmptyCartRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string user_id = 1; if (!this->_internal_user_id().empty()) { const std::string& _s = this->_internal_user_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.EmptyCartRequest.user_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:oteldemo.EmptyCartRequest) return target; } ::size_t EmptyCartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.EmptyCartRequest) ::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 user_id = 1; if (!this->_internal_user_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData EmptyCartRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, EmptyCartRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*EmptyCartRequest::GetClassData() const { return &_class_data_; } void EmptyCartRequest::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:oteldemo.EmptyCartRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_user_id().empty()) { _this->_internal_set_user_id(from._internal_user_id()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EmptyCartRequest::CopyFrom(const EmptyCartRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.EmptyCartRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool EmptyCartRequest::IsInitialized() const { return true; } void EmptyCartRequest::InternalSwap(EmptyCartRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, &other->_impl_.user_id_, rhs_arena); } ::google::protobuf::Metadata EmptyCartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[2]); } // =================================================================== class GetCartRequest::_Internal { public: }; GetCartRequest::GetCartRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.GetCartRequest) } GetCartRequest::GetCartRequest(const GetCartRequest& from) : ::google::protobuf::Message() { GetCartRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_user_id().empty()) { _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.GetCartRequest) } inline void GetCartRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GetCartRequest::~GetCartRequest() { // @@protoc_insertion_point(destructor:oteldemo.GetCartRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void GetCartRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.user_id_.Destroy(); } void GetCartRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void GetCartRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.GetCartRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.user_id_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* GetCartRequest::_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, 39, 2> GetCartRequest::_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 &_GetCartRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string user_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCartRequest, _impl_.user_id_)}}, }}, {{ 65535, 65535 }}, {{ // string user_id = 1; {PROTOBUF_FIELD_OFFSET(GetCartRequest, _impl_.user_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\27\7\0\0\0\0\0\0" "oteldemo.GetCartRequest" "user_id" }}, }; ::uint8_t* GetCartRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetCartRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string user_id = 1; if (!this->_internal_user_id().empty()) { const std::string& _s = this->_internal_user_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetCartRequest.user_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:oteldemo.GetCartRequest) return target; } ::size_t GetCartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.GetCartRequest) ::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 user_id = 1; if (!this->_internal_user_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData GetCartRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, GetCartRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*GetCartRequest::GetClassData() const { return &_class_data_; } void GetCartRequest::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:oteldemo.GetCartRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_user_id().empty()) { _this->_internal_set_user_id(from._internal_user_id()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetCartRequest::CopyFrom(const GetCartRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetCartRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool GetCartRequest::IsInitialized() const { return true; } void GetCartRequest::InternalSwap(GetCartRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, &other->_impl_.user_id_, rhs_arena); } ::google::protobuf::Metadata GetCartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[3]); } // =================================================================== class Cart::_Internal { public: }; Cart::Cart(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.Cart) } Cart::Cart(const Cart& from) : ::google::protobuf::Message() { Cart* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.items_){from._impl_.items_}, decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_user_id().empty()) { _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.Cart) } inline void Cart::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.items_){arena}, decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Cart::~Cart() { // @@protoc_insertion_point(destructor:oteldemo.Cart) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Cart::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.items_.~RepeatedPtrField(); _impl_.user_id_.Destroy(); } void Cart::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void Cart::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.Cart) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_items()->Clear(); _impl_.user_id_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Cart::_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<1, 2, 1, 29, 2> Cart::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_Cart_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated .oteldemo.CartItem items = 2; {::_pbi::TcParser::FastMtR1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(Cart, _impl_.items_)}}, // string user_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Cart, _impl_.user_id_)}}, }}, {{ 65535, 65535 }}, {{ // string user_id = 1; {PROTOBUF_FIELD_OFFSET(Cart, _impl_.user_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // repeated .oteldemo.CartItem items = 2; {PROTOBUF_FIELD_OFFSET(Cart, _impl_.items_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, }}, {{ "\15\7\0\0\0\0\0\0" "oteldemo.Cart" "user_id" }}, }; ::uint8_t* Cart::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Cart) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string user_id = 1; if (!this->_internal_user_id().empty()) { const std::string& _s = this->_internal_user_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Cart.user_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // repeated .oteldemo.CartItem items = 2; 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(2, repfield, repfield.GetCachedSize(), target, stream); } 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:oteldemo.Cart) return target; } ::size_t Cart::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.Cart) ::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 .oteldemo.CartItem items = 2; total_size += 1UL * this->_internal_items_size(); for (const auto& msg : this->_internal_items()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string user_id = 1; if (!this->_internal_user_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Cart::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, Cart::MergeImpl }; const ::google::protobuf::Message::ClassData*Cart::GetClassData() const { return &_class_data_; } void Cart::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:oteldemo.Cart) 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_user_id().empty()) { _this->_internal_set_user_id(from._internal_user_id()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Cart::CopyFrom(const Cart& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Cart) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Cart::IsInitialized() const { return true; } void Cart::InternalSwap(Cart* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.items_.InternalSwap(&other->_impl_.items_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, &other->_impl_.user_id_, rhs_arena); } ::google::protobuf::Metadata Cart::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[4]); } // =================================================================== class Empty::_Internal { public: }; Empty::Empty(::google::protobuf::Arena* arena) : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:oteldemo.Empty) } Empty::Empty(const Empty& from) : ::google::protobuf::internal::ZeroFieldsBase() { Empty* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.Empty) } const ::google::protobuf::Message::ClassData Empty::_class_data_ = { ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, }; const ::google::protobuf::Message::ClassData*Empty::GetClassData() const { return &_class_data_; } ::google::protobuf::Metadata Empty::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[5]); } // =================================================================== class ListRecommendationsRequest::_Internal { public: }; ListRecommendationsRequest::ListRecommendationsRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ListRecommendationsRequest) } ListRecommendationsRequest::ListRecommendationsRequest(const ListRecommendationsRequest& from) : ::google::protobuf::Message() { ListRecommendationsRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.product_ids_){from._impl_.product_ids_}, decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_user_id().empty()) { _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.ListRecommendationsRequest) } inline void ListRecommendationsRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.product_ids_){arena}, decltype(_impl_.user_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ListRecommendationsRequest::~ListRecommendationsRequest() { // @@protoc_insertion_point(destructor:oteldemo.ListRecommendationsRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ListRecommendationsRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _internal_mutable_product_ids()->~RepeatedPtrField(); _impl_.user_id_.Destroy(); } void ListRecommendationsRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ListRecommendationsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ListRecommendationsRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_product_ids()->Clear(); _impl_.user_id_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ListRecommendationsRequest::_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<1, 2, 0, 62, 2> ListRecommendationsRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 2, 8, // 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 &_ListRecommendationsRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated string product_ids = 2; {::_pbi::TcParser::FastUR1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.product_ids_)}}, // string user_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.user_id_)}}, }}, {{ 65535, 65535 }}, {{ // string user_id = 1; {PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.user_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // repeated string product_ids = 2; {PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.product_ids_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, }}, // no aux_entries {{ "\43\7\13\0\0\0\0\0" "oteldemo.ListRecommendationsRequest" "user_id" "product_ids" }}, }; ::uint8_t* ListRecommendationsRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListRecommendationsRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string user_id = 1; if (!this->_internal_user_id().empty()) { const std::string& _s = this->_internal_user_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ListRecommendationsRequest.user_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // repeated string product_ids = 2; for (int i = 0, n = this->_internal_product_ids_size(); i < n; ++i) { const auto& s = this->_internal_product_ids().Get(i); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ListRecommendationsRequest.product_ids"); target = stream->WriteString(2, 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:oteldemo.ListRecommendationsRequest) return target; } ::size_t ListRecommendationsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ListRecommendationsRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string product_ids = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_product_ids().size()); for (int i = 0, n = _internal_product_ids().size(); i < n; ++i) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_product_ids().Get(i)); } // string user_id = 1; if (!this->_internal_user_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ListRecommendationsRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ListRecommendationsRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*ListRecommendationsRequest::GetClassData() const { return &_class_data_; } void ListRecommendationsRequest::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:oteldemo.ListRecommendationsRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_product_ids()->MergeFrom(from._internal_product_ids()); if (!from._internal_user_id().empty()) { _this->_internal_set_user_id(from._internal_user_id()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ListRecommendationsRequest::CopyFrom(const ListRecommendationsRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListRecommendationsRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ListRecommendationsRequest::IsInitialized() const { return true; } void ListRecommendationsRequest::InternalSwap(ListRecommendationsRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.product_ids_.InternalSwap(&other->_impl_.product_ids_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, &other->_impl_.user_id_, rhs_arena); } ::google::protobuf::Metadata ListRecommendationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[6]); } // =================================================================== class ListRecommendationsResponse::_Internal { public: }; ListRecommendationsResponse::ListRecommendationsResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ListRecommendationsResponse) } ListRecommendationsResponse::ListRecommendationsResponse(const ListRecommendationsResponse& from) : ::google::protobuf::Message() { ListRecommendationsResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.product_ids_){from._impl_.product_ids_}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.ListRecommendationsResponse) } inline void ListRecommendationsResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.product_ids_){arena}, /*decltype(_impl_._cached_size_)*/ {}, }; } ListRecommendationsResponse::~ListRecommendationsResponse() { // @@protoc_insertion_point(destructor:oteldemo.ListRecommendationsResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ListRecommendationsResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _internal_mutable_product_ids()->~RepeatedPtrField(); } void ListRecommendationsResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ListRecommendationsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ListRecommendationsResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_product_ids()->Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ListRecommendationsResponse::_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, 56, 2> ListRecommendationsResponse::_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 &_ListRecommendationsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated string product_ids = 1; {::_pbi::TcParser::FastUR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListRecommendationsResponse, _impl_.product_ids_)}}, }}, {{ 65535, 65535 }}, {{ // repeated string product_ids = 1; {PROTOBUF_FIELD_OFFSET(ListRecommendationsResponse, _impl_.product_ids_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, }}, // no aux_entries {{ "\44\13\0\0\0\0\0\0" "oteldemo.ListRecommendationsResponse" "product_ids" }}, }; ::uint8_t* ListRecommendationsResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListRecommendationsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated string product_ids = 1; for (int i = 0, n = this->_internal_product_ids_size(); i < n; ++i) { const auto& s = this->_internal_product_ids().Get(i); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ListRecommendationsResponse.product_ids"); target = stream->WriteString(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:oteldemo.ListRecommendationsResponse) return target; } ::size_t ListRecommendationsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ListRecommendationsResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string product_ids = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_product_ids().size()); for (int i = 0, n = _internal_product_ids().size(); i < n; ++i) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_product_ids().Get(i)); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ListRecommendationsResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ListRecommendationsResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*ListRecommendationsResponse::GetClassData() const { return &_class_data_; } void ListRecommendationsResponse::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:oteldemo.ListRecommendationsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_product_ids()->MergeFrom(from._internal_product_ids()); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ListRecommendationsResponse::CopyFrom(const ListRecommendationsResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListRecommendationsResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ListRecommendationsResponse::IsInitialized() const { return true; } void ListRecommendationsResponse::InternalSwap(ListRecommendationsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.product_ids_.InternalSwap(&other->_impl_.product_ids_); } ::google::protobuf::Metadata ListRecommendationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[7]); } // =================================================================== class Product::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Product, _impl_._has_bits_); static const ::oteldemo::Money& price_usd(const Product* msg); static void set_has_price_usd(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::Money& Product::_Internal::price_usd(const Product* msg) { return *msg->_impl_.price_usd_; } Product::Product(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.Product) } Product::Product(const Product& from) : ::google::protobuf::Message() { Product* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.categories_){from._impl_.categories_}, decltype(_impl_.id_){}, decltype(_impl_.name_){}, decltype(_impl_.description_){}, decltype(_impl_.picture_){}, decltype(_impl_.price_usd_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_id().empty()) { _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation()); } _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } _impl_.description_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_description().empty()) { _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); } _impl_.picture_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.picture_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_picture().empty()) { _this->_impl_.picture_.Set(from._internal_picture(), _this->GetArenaForAllocation()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.price_usd_ = new ::oteldemo::Money(*from._impl_.price_usd_); } // @@protoc_insertion_point(copy_constructor:oteldemo.Product) } inline void Product::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.categories_){arena}, decltype(_impl_.id_){}, decltype(_impl_.name_){}, decltype(_impl_.description_){}, decltype(_impl_.picture_){}, decltype(_impl_.price_usd_){nullptr}, }; _impl_.id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.picture_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.picture_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Product::~Product() { // @@protoc_insertion_point(destructor:oteldemo.Product) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Product::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _internal_mutable_categories()->~RepeatedPtrField(); _impl_.id_.Destroy(); _impl_.name_.Destroy(); _impl_.description_.Destroy(); _impl_.picture_.Destroy(); if (this != internal_default_instance()) delete _impl_.price_usd_; } void Product::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void Product::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.Product) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_categories()->Clear(); _impl_.id_.ClearToEmpty(); _impl_.name_.ClearToEmpty(); _impl_.description_.ClearToEmpty(); _impl_.picture_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.price_usd_ != nullptr); _impl_.price_usd_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Product::_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<3, 6, 1, 59, 2> Product::_table_ = { { PROTOBUF_FIELD_OFFSET(Product, _impl_._has_bits_), 0, // no _extensions_ 6, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967232, // skipmap offsetof(decltype(_table_), field_entries), 6, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_Product_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.id_)}}, // string name = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.name_)}}, // string description = 3; {::_pbi::TcParser::FastUS1, {26, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.description_)}}, // string picture = 4; {::_pbi::TcParser::FastUS1, {34, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.picture_)}}, // .oteldemo.Money price_usd = 5; {::_pbi::TcParser::FastMtS1, {42, 0, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.price_usd_)}}, // repeated string categories = 6; {::_pbi::TcParser::FastUR1, {50, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.categories_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string id = 1; {PROTOBUF_FIELD_OFFSET(Product, _impl_.id_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string name = 2; {PROTOBUF_FIELD_OFFSET(Product, _impl_.name_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string description = 3; {PROTOBUF_FIELD_OFFSET(Product, _impl_.description_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string picture = 4; {PROTOBUF_FIELD_OFFSET(Product, _impl_.picture_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .oteldemo.Money price_usd = 5; {PROTOBUF_FIELD_OFFSET(Product, _impl_.price_usd_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // repeated string categories = 6; {PROTOBUF_FIELD_OFFSET(Product, _impl_.categories_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, }}, {{ "\20\2\4\13\7\0\12\0" "oteldemo.Product" "id" "name" "description" "picture" "categories" }}, }; ::uint8_t* Product::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Product) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string id = 1; 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, "oteldemo.Product.id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string name = 2; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.name"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string description = 3; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.description"); target = stream->WriteStringMaybeAliased(3, _s, target); } // string picture = 4; if (!this->_internal_picture().empty()) { const std::string& _s = this->_internal_picture(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.picture"); target = stream->WriteStringMaybeAliased(4, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Money price_usd = 5; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(5, _Internal::price_usd(this), _Internal::price_usd(this).GetCachedSize(), target, stream); } // repeated string categories = 6; for (int i = 0, n = this->_internal_categories_size(); i < n; ++i) { const auto& s = this->_internal_categories().Get(i); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.categories"); target = stream->WriteString(6, 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:oteldemo.Product) return target; } ::size_t Product::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.Product) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string categories = 6; total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_categories().size()); for (int i = 0, n = _internal_categories().size(); i < n; ++i) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_categories().Get(i)); } // string id = 1; if (!this->_internal_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_id()); } // string name = 2; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // string description = 3; if (!this->_internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // string picture = 4; if (!this->_internal_picture().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_picture()); } // .oteldemo.Money price_usd = 5; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.price_usd_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Product::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, Product::MergeImpl }; const ::google::protobuf::Message::ClassData*Product::GetClassData() const { return &_class_data_; } void Product::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:oteldemo.Product) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_categories()->MergeFrom(from._internal_categories()); if (!from._internal_id().empty()) { _this->_internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } if (!from._internal_picture().empty()) { _this->_internal_set_picture(from._internal_picture()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_price_usd()->::oteldemo::Money::MergeFrom( from._internal_price_usd()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Product::CopyFrom(const Product& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Product) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Product::IsInitialized() const { return true; } void Product::InternalSwap(Product* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.categories_.InternalSwap(&other->_impl_.categories_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena, &other->_impl_.id_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, &other->_impl_.name_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, &other->_impl_.description_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.picture_, lhs_arena, &other->_impl_.picture_, rhs_arena); swap(_impl_.price_usd_, other->_impl_.price_usd_); } ::google::protobuf::Metadata Product::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[8]); } // =================================================================== class ListProductsResponse::_Internal { public: }; ListProductsResponse::ListProductsResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ListProductsResponse) } ListProductsResponse::ListProductsResponse(const ListProductsResponse& from) : ::google::protobuf::Message() { ListProductsResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.products_){from._impl_.products_}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.ListProductsResponse) } inline void ListProductsResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.products_){arena}, /*decltype(_impl_._cached_size_)*/ {}, }; } ListProductsResponse::~ListProductsResponse() { // @@protoc_insertion_point(destructor:oteldemo.ListProductsResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ListProductsResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.products_.~RepeatedPtrField(); } void ListProductsResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ListProductsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ListProductsResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_products()->Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ListProductsResponse::_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, 1, 0, 2> ListProductsResponse::_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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_ListProductsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated .oteldemo.Product products = 1; {::_pbi::TcParser::FastMtR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListProductsResponse, _impl_.products_)}}, }}, {{ 65535, 65535 }}, {{ // repeated .oteldemo.Product products = 1; {PROTOBUF_FIELD_OFFSET(ListProductsResponse, _impl_.products_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Product>()}, }}, {{ }}, }; ::uint8_t* ListProductsResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListProductsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .oteldemo.Product products = 1; for (unsigned i = 0, n = static_cast(this->_internal_products_size()); i < n; i++) { const auto& repfield = this->_internal_products().Get(i); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ListProductsResponse) return target; } ::size_t ListProductsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ListProductsResponse) ::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 .oteldemo.Product products = 1; total_size += 1UL * this->_internal_products_size(); for (const auto& msg : this->_internal_products()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ListProductsResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ListProductsResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*ListProductsResponse::GetClassData() const { return &_class_data_; } void ListProductsResponse::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:oteldemo.ListProductsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_products()->MergeFrom(from._internal_products()); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ListProductsResponse::CopyFrom(const ListProductsResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListProductsResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ListProductsResponse::IsInitialized() const { return true; } void ListProductsResponse::InternalSwap(ListProductsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.products_.InternalSwap(&other->_impl_.products_); } ::google::protobuf::Metadata ListProductsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[9]); } // =================================================================== class GetProductRequest::_Internal { public: }; GetProductRequest::GetProductRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.GetProductRequest) } GetProductRequest::GetProductRequest(const GetProductRequest& from) : ::google::protobuf::Message() { GetProductRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_id().empty()) { _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.GetProductRequest) } inline void GetProductRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GetProductRequest::~GetProductRequest() { // @@protoc_insertion_point(destructor:oteldemo.GetProductRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void GetProductRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.id_.Destroy(); } void GetProductRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void GetProductRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.GetProductRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.id_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* GetProductRequest::_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, 37, 2> GetProductRequest::_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 &_GetProductRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetProductRequest, _impl_.id_)}}, }}, {{ 65535, 65535 }}, {{ // string id = 1; {PROTOBUF_FIELD_OFFSET(GetProductRequest, _impl_.id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\32\2\0\0\0\0\0\0" "oteldemo.GetProductRequest" "id" }}, }; ::uint8_t* GetProductRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetProductRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string id = 1; 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, "oteldemo.GetProductRequest.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:oteldemo.GetProductRequest) return target; } ::size_t GetProductRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.GetProductRequest) ::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; if (!this->_internal_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData GetProductRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, GetProductRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*GetProductRequest::GetClassData() const { return &_class_data_; } void GetProductRequest::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:oteldemo.GetProductRequest) 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()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetProductRequest::CopyFrom(const GetProductRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetProductRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool GetProductRequest::IsInitialized() const { return true; } void GetProductRequest::InternalSwap(GetProductRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena, &other->_impl_.id_, rhs_arena); } ::google::protobuf::Metadata GetProductRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[10]); } // =================================================================== class SearchProductsRequest::_Internal { public: }; SearchProductsRequest::SearchProductsRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.SearchProductsRequest) } SearchProductsRequest::SearchProductsRequest(const SearchProductsRequest& from) : ::google::protobuf::Message() { SearchProductsRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.query_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.query_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.query_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_query().empty()) { _this->_impl_.query_.Set(from._internal_query(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.SearchProductsRequest) } inline void SearchProductsRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.query_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.query_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.query_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SearchProductsRequest::~SearchProductsRequest() { // @@protoc_insertion_point(destructor:oteldemo.SearchProductsRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void SearchProductsRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.query_.Destroy(); } void SearchProductsRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void SearchProductsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.SearchProductsRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.query_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* SearchProductsRequest::_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, 44, 2> SearchProductsRequest::_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 &_SearchProductsRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string query = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(SearchProductsRequest, _impl_.query_)}}, }}, {{ 65535, 65535 }}, {{ // string query = 1; {PROTOBUF_FIELD_OFFSET(SearchProductsRequest, _impl_.query_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\36\5\0\0\0\0\0\0" "oteldemo.SearchProductsRequest" "query" }}, }; ::uint8_t* SearchProductsRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.SearchProductsRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string query = 1; if (!this->_internal_query().empty()) { const std::string& _s = this->_internal_query(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.SearchProductsRequest.query"); 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:oteldemo.SearchProductsRequest) return target; } ::size_t SearchProductsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.SearchProductsRequest) ::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 query = 1; if (!this->_internal_query().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_query()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData SearchProductsRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, SearchProductsRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*SearchProductsRequest::GetClassData() const { return &_class_data_; } void SearchProductsRequest::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:oteldemo.SearchProductsRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_query().empty()) { _this->_internal_set_query(from._internal_query()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SearchProductsRequest::CopyFrom(const SearchProductsRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.SearchProductsRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool SearchProductsRequest::IsInitialized() const { return true; } void SearchProductsRequest::InternalSwap(SearchProductsRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.query_, lhs_arena, &other->_impl_.query_, rhs_arena); } ::google::protobuf::Metadata SearchProductsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[11]); } // =================================================================== class SearchProductsResponse::_Internal { public: }; SearchProductsResponse::SearchProductsResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.SearchProductsResponse) } SearchProductsResponse::SearchProductsResponse(const SearchProductsResponse& from) : ::google::protobuf::Message() { SearchProductsResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.results_){from._impl_.results_}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.SearchProductsResponse) } inline void SearchProductsResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.results_){arena}, /*decltype(_impl_._cached_size_)*/ {}, }; } SearchProductsResponse::~SearchProductsResponse() { // @@protoc_insertion_point(destructor:oteldemo.SearchProductsResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void SearchProductsResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.results_.~RepeatedPtrField(); } void SearchProductsResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void SearchProductsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.SearchProductsResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_results()->Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* SearchProductsResponse::_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, 1, 0, 2> SearchProductsResponse::_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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_SearchProductsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated .oteldemo.Product results = 1; {::_pbi::TcParser::FastMtR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(SearchProductsResponse, _impl_.results_)}}, }}, {{ 65535, 65535 }}, {{ // repeated .oteldemo.Product results = 1; {PROTOBUF_FIELD_OFFSET(SearchProductsResponse, _impl_.results_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Product>()}, }}, {{ }}, }; ::uint8_t* SearchProductsResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.SearchProductsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .oteldemo.Product results = 1; for (unsigned i = 0, n = static_cast(this->_internal_results_size()); i < n; i++) { const auto& repfield = this->_internal_results().Get(i); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:oteldemo.SearchProductsResponse) return target; } ::size_t SearchProductsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.SearchProductsResponse) ::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 .oteldemo.Product results = 1; total_size += 1UL * this->_internal_results_size(); for (const auto& msg : this->_internal_results()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData SearchProductsResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, SearchProductsResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*SearchProductsResponse::GetClassData() const { return &_class_data_; } void SearchProductsResponse::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:oteldemo.SearchProductsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_results()->MergeFrom(from._internal_results()); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SearchProductsResponse::CopyFrom(const SearchProductsResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.SearchProductsResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool SearchProductsResponse::IsInitialized() const { return true; } void SearchProductsResponse::InternalSwap(SearchProductsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.results_.InternalSwap(&other->_impl_.results_); } ::google::protobuf::Metadata SearchProductsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[12]); } // =================================================================== class GetQuoteRequest::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_._has_bits_); static const ::oteldemo::Address& address(const GetQuoteRequest* msg); static void set_has_address(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::Address& GetQuoteRequest::_Internal::address(const GetQuoteRequest* msg) { return *msg->_impl_.address_; } GetQuoteRequest::GetQuoteRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.GetQuoteRequest) } GetQuoteRequest::GetQuoteRequest(const GetQuoteRequest& from) : ::google::protobuf::Message() { GetQuoteRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.items_){from._impl_.items_}, decltype(_impl_.address_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.address_ = new ::oteldemo::Address(*from._impl_.address_); } // @@protoc_insertion_point(copy_constructor:oteldemo.GetQuoteRequest) } inline void GetQuoteRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.items_){arena}, decltype(_impl_.address_){nullptr}, }; } GetQuoteRequest::~GetQuoteRequest() { // @@protoc_insertion_point(destructor:oteldemo.GetQuoteRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void GetQuoteRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.items_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.address_; } void GetQuoteRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void GetQuoteRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.GetQuoteRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_items()->Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.address_ != nullptr); _impl_.address_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* GetQuoteRequest::_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<1, 2, 2, 0, 2> GetQuoteRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_GetQuoteRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated .oteldemo.CartItem items = 2; {::_pbi::TcParser::FastMtR1, {18, 63, 1, PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.items_)}}, // .oteldemo.Address address = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.address_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.Address address = 1; {PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // repeated .oteldemo.CartItem items = 2; {PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.items_), -1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, }}, {{ }}, }; ::uint8_t* GetQuoteRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetQuoteRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Address address = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::address(this), _Internal::address(this).GetCachedSize(), target, stream); } // repeated .oteldemo.CartItem items = 2; 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(2, repfield, repfield.GetCachedSize(), target, stream); } 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:oteldemo.GetQuoteRequest) return target; } ::size_t GetQuoteRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.GetQuoteRequest) ::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 .oteldemo.CartItem items = 2; total_size += 1UL * this->_internal_items_size(); for (const auto& msg : this->_internal_items()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // .oteldemo.Address address = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.address_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData GetQuoteRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, GetQuoteRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*GetQuoteRequest::GetClassData() const { return &_class_data_; } void GetQuoteRequest::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:oteldemo.GetQuoteRequest) 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._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_address()->::oteldemo::Address::MergeFrom( from._internal_address()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetQuoteRequest::CopyFrom(const GetQuoteRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetQuoteRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool GetQuoteRequest::IsInitialized() const { return true; } void GetQuoteRequest::InternalSwap(GetQuoteRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.items_.InternalSwap(&other->_impl_.items_); swap(_impl_.address_, other->_impl_.address_); } ::google::protobuf::Metadata GetQuoteRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[13]); } // =================================================================== class GetQuoteResponse::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_._has_bits_); static const ::oteldemo::Money& cost_usd(const GetQuoteResponse* msg); static void set_has_cost_usd(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::Money& GetQuoteResponse::_Internal::cost_usd(const GetQuoteResponse* msg) { return *msg->_impl_.cost_usd_; } GetQuoteResponse::GetQuoteResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.GetQuoteResponse) } GetQuoteResponse::GetQuoteResponse(const GetQuoteResponse& from) : ::google::protobuf::Message() { GetQuoteResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.cost_usd_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.cost_usd_ = new ::oteldemo::Money(*from._impl_.cost_usd_); } // @@protoc_insertion_point(copy_constructor:oteldemo.GetQuoteResponse) } inline void GetQuoteResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.cost_usd_){nullptr}, }; } GetQuoteResponse::~GetQuoteResponse() { // @@protoc_insertion_point(destructor:oteldemo.GetQuoteResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void GetQuoteResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.cost_usd_; } void GetQuoteResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void GetQuoteResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.GetQuoteResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.cost_usd_ != nullptr); _impl_.cost_usd_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* GetQuoteResponse::_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, 1, 0, 2> GetQuoteResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_._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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_GetQuoteResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.Money cost_usd = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_.cost_usd_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.Money cost_usd = 1; {PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_.cost_usd_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, }}, {{ }}, }; ::uint8_t* GetQuoteResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetQuoteResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Money cost_usd = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::cost_usd(this), _Internal::cost_usd(this).GetCachedSize(), target, stream); } 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:oteldemo.GetQuoteResponse) return target; } ::size_t GetQuoteResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.GetQuoteResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .oteldemo.Money cost_usd = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.cost_usd_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData GetQuoteResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, GetQuoteResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*GetQuoteResponse::GetClassData() const { return &_class_data_; } void GetQuoteResponse::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:oteldemo.GetQuoteResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_cost_usd()->::oteldemo::Money::MergeFrom( from._internal_cost_usd()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetQuoteResponse::CopyFrom(const GetQuoteResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetQuoteResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool GetQuoteResponse::IsInitialized() const { return true; } void GetQuoteResponse::InternalSwap(GetQuoteResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.cost_usd_, other->_impl_.cost_usd_); } ::google::protobuf::Metadata GetQuoteResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[14]); } // =================================================================== class ShipOrderRequest::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_._has_bits_); static const ::oteldemo::Address& address(const ShipOrderRequest* msg); static void set_has_address(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::Address& ShipOrderRequest::_Internal::address(const ShipOrderRequest* msg) { return *msg->_impl_.address_; } ShipOrderRequest::ShipOrderRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ShipOrderRequest) } ShipOrderRequest::ShipOrderRequest(const ShipOrderRequest& from) : ::google::protobuf::Message() { ShipOrderRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.items_){from._impl_.items_}, decltype(_impl_.address_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.address_ = new ::oteldemo::Address(*from._impl_.address_); } // @@protoc_insertion_point(copy_constructor:oteldemo.ShipOrderRequest) } inline void ShipOrderRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.items_){arena}, decltype(_impl_.address_){nullptr}, }; } ShipOrderRequest::~ShipOrderRequest() { // @@protoc_insertion_point(destructor:oteldemo.ShipOrderRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ShipOrderRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.items_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.address_; } void ShipOrderRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ShipOrderRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ShipOrderRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_items()->Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.address_ != nullptr); _impl_.address_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ShipOrderRequest::_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<1, 2, 2, 0, 2> ShipOrderRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_ShipOrderRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated .oteldemo.CartItem items = 2; {::_pbi::TcParser::FastMtR1, {18, 63, 1, PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.items_)}}, // .oteldemo.Address address = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.address_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.Address address = 1; {PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // repeated .oteldemo.CartItem items = 2; {PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.items_), -1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, }}, {{ }}, }; ::uint8_t* ShipOrderRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ShipOrderRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Address address = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::address(this), _Internal::address(this).GetCachedSize(), target, stream); } // repeated .oteldemo.CartItem items = 2; 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(2, repfield, repfield.GetCachedSize(), target, stream); } 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:oteldemo.ShipOrderRequest) return target; } ::size_t ShipOrderRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ShipOrderRequest) ::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 .oteldemo.CartItem items = 2; total_size += 1UL * this->_internal_items_size(); for (const auto& msg : this->_internal_items()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // .oteldemo.Address address = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.address_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ShipOrderRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ShipOrderRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*ShipOrderRequest::GetClassData() const { return &_class_data_; } void ShipOrderRequest::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:oteldemo.ShipOrderRequest) 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._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_address()->::oteldemo::Address::MergeFrom( from._internal_address()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ShipOrderRequest::CopyFrom(const ShipOrderRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ShipOrderRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ShipOrderRequest::IsInitialized() const { return true; } void ShipOrderRequest::InternalSwap(ShipOrderRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.items_.InternalSwap(&other->_impl_.items_); swap(_impl_.address_, other->_impl_.address_); } ::google::protobuf::Metadata ShipOrderRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[15]); } // =================================================================== class ShipOrderResponse::_Internal { public: }; ShipOrderResponse::ShipOrderResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ShipOrderResponse) } ShipOrderResponse::ShipOrderResponse(const ShipOrderResponse& from) : ::google::protobuf::Message() { ShipOrderResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.tracking_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.tracking_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.tracking_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_tracking_id().empty()) { _this->_impl_.tracking_id_.Set(from._internal_tracking_id(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.ShipOrderResponse) } inline void ShipOrderResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.tracking_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.tracking_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.tracking_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ShipOrderResponse::~ShipOrderResponse() { // @@protoc_insertion_point(destructor:oteldemo.ShipOrderResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ShipOrderResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.tracking_id_.Destroy(); } void ShipOrderResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ShipOrderResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ShipOrderResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.tracking_id_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ShipOrderResponse::_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, 46, 2> ShipOrderResponse::_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 &_ShipOrderResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string tracking_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShipOrderResponse, _impl_.tracking_id_)}}, }}, {{ 65535, 65535 }}, {{ // string tracking_id = 1; {PROTOBUF_FIELD_OFFSET(ShipOrderResponse, _impl_.tracking_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\32\13\0\0\0\0\0\0" "oteldemo.ShipOrderResponse" "tracking_id" }}, }; ::uint8_t* ShipOrderResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ShipOrderResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string tracking_id = 1; if (!this->_internal_tracking_id().empty()) { const std::string& _s = this->_internal_tracking_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ShipOrderResponse.tracking_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:oteldemo.ShipOrderResponse) return target; } ::size_t ShipOrderResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ShipOrderResponse) ::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 tracking_id = 1; if (!this->_internal_tracking_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_tracking_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ShipOrderResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ShipOrderResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*ShipOrderResponse::GetClassData() const { return &_class_data_; } void ShipOrderResponse::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:oteldemo.ShipOrderResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_tracking_id().empty()) { _this->_internal_set_tracking_id(from._internal_tracking_id()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ShipOrderResponse::CopyFrom(const ShipOrderResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ShipOrderResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ShipOrderResponse::IsInitialized() const { return true; } void ShipOrderResponse::InternalSwap(ShipOrderResponse* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tracking_id_, lhs_arena, &other->_impl_.tracking_id_, rhs_arena); } ::google::protobuf::Metadata ShipOrderResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[16]); } // =================================================================== class Address::_Internal { public: }; Address::Address(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.Address) } Address::Address(const Address& from) : ::google::protobuf::Message() { Address* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.street_address_){}, decltype(_impl_.city_){}, decltype(_impl_.state_){}, decltype(_impl_.country_){}, decltype(_impl_.zip_code_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.street_address_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.street_address_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_street_address().empty()) { _this->_impl_.street_address_.Set(from._internal_street_address(), _this->GetArenaForAllocation()); } _impl_.city_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.city_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_city().empty()) { _this->_impl_.city_.Set(from._internal_city(), _this->GetArenaForAllocation()); } _impl_.state_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.state_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_state().empty()) { _this->_impl_.state_.Set(from._internal_state(), _this->GetArenaForAllocation()); } _impl_.country_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.country_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_country().empty()) { _this->_impl_.country_.Set(from._internal_country(), _this->GetArenaForAllocation()); } _impl_.zip_code_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.zip_code_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_zip_code().empty()) { _this->_impl_.zip_code_.Set(from._internal_zip_code(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.Address) } inline void Address::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.street_address_){}, decltype(_impl_.city_){}, decltype(_impl_.state_){}, decltype(_impl_.country_){}, decltype(_impl_.zip_code_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.street_address_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.street_address_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.city_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.city_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.state_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.state_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.country_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.country_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.zip_code_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.zip_code_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Address::~Address() { // @@protoc_insertion_point(destructor:oteldemo.Address) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Address::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.street_address_.Destroy(); _impl_.city_.Destroy(); _impl_.state_.Destroy(); _impl_.country_.Destroy(); _impl_.zip_code_.Destroy(); } void Address::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void Address::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.Address) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.street_address_.ClearToEmpty(); _impl_.city_.ClearToEmpty(); _impl_.state_.ClearToEmpty(); _impl_.country_.ClearToEmpty(); _impl_.zip_code_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Address::_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<3, 5, 0, 63, 2> Address::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967264, // skipmap offsetof(decltype(_table_), field_entries), 5, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_Address_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string street_address = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.street_address_)}}, // string city = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.city_)}}, // string state = 3; {::_pbi::TcParser::FastUS1, {26, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.state_)}}, // string country = 4; {::_pbi::TcParser::FastUS1, {34, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.country_)}}, // string zip_code = 5; {::_pbi::TcParser::FastUS1, {42, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.zip_code_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string street_address = 1; {PROTOBUF_FIELD_OFFSET(Address, _impl_.street_address_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string city = 2; {PROTOBUF_FIELD_OFFSET(Address, _impl_.city_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string state = 3; {PROTOBUF_FIELD_OFFSET(Address, _impl_.state_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string country = 4; {PROTOBUF_FIELD_OFFSET(Address, _impl_.country_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string zip_code = 5; {PROTOBUF_FIELD_OFFSET(Address, _impl_.zip_code_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\20\16\4\5\7\10\0\0" "oteldemo.Address" "street_address" "city" "state" "country" "zip_code" }}, }; ::uint8_t* Address::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Address) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string street_address = 1; if (!this->_internal_street_address().empty()) { const std::string& _s = this->_internal_street_address(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.street_address"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string city = 2; if (!this->_internal_city().empty()) { const std::string& _s = this->_internal_city(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.city"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string state = 3; if (!this->_internal_state().empty()) { const std::string& _s = this->_internal_state(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.state"); target = stream->WriteStringMaybeAliased(3, _s, target); } // string country = 4; if (!this->_internal_country().empty()) { const std::string& _s = this->_internal_country(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.country"); target = stream->WriteStringMaybeAliased(4, _s, target); } // string zip_code = 5; if (!this->_internal_zip_code().empty()) { const std::string& _s = this->_internal_zip_code(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.zip_code"); target = stream->WriteStringMaybeAliased(5, _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:oteldemo.Address) return target; } ::size_t Address::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.Address) ::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 street_address = 1; if (!this->_internal_street_address().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_street_address()); } // string city = 2; if (!this->_internal_city().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_city()); } // string state = 3; if (!this->_internal_state().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_state()); } // string country = 4; if (!this->_internal_country().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_country()); } // string zip_code = 5; if (!this->_internal_zip_code().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_zip_code()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Address::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, Address::MergeImpl }; const ::google::protobuf::Message::ClassData*Address::GetClassData() const { return &_class_data_; } void Address::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:oteldemo.Address) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_street_address().empty()) { _this->_internal_set_street_address(from._internal_street_address()); } if (!from._internal_city().empty()) { _this->_internal_set_city(from._internal_city()); } if (!from._internal_state().empty()) { _this->_internal_set_state(from._internal_state()); } if (!from._internal_country().empty()) { _this->_internal_set_country(from._internal_country()); } if (!from._internal_zip_code().empty()) { _this->_internal_set_zip_code(from._internal_zip_code()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Address::CopyFrom(const Address& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Address) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Address::IsInitialized() const { return true; } void Address::InternalSwap(Address* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.street_address_, lhs_arena, &other->_impl_.street_address_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.city_, lhs_arena, &other->_impl_.city_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, lhs_arena, &other->_impl_.state_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.country_, lhs_arena, &other->_impl_.country_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.zip_code_, lhs_arena, &other->_impl_.zip_code_, rhs_arena); } ::google::protobuf::Metadata Address::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[17]); } // =================================================================== class Money::_Internal { public: }; Money::Money(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.Money) } Money::Money(const Money& from) : ::google::protobuf::Message() { Money* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.currency_code_){}, decltype(_impl_.units_){}, decltype(_impl_.nanos_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.currency_code_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.currency_code_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_currency_code().empty()) { _this->_impl_.currency_code_.Set(from._internal_currency_code(), _this->GetArenaForAllocation()); } ::memcpy(&_impl_.units_, &from._impl_.units_, static_cast<::size_t>(reinterpret_cast(&_impl_.nanos_) - reinterpret_cast(&_impl_.units_)) + sizeof(_impl_.nanos_)); // @@protoc_insertion_point(copy_constructor:oteldemo.Money) } inline void Money::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.currency_code_){}, decltype(_impl_.units_){::int64_t{0}}, decltype(_impl_.nanos_){0}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.currency_code_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.currency_code_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Money::~Money() { // @@protoc_insertion_point(destructor:oteldemo.Money) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Money::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.currency_code_.Destroy(); } void Money::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void Money::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.Money) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.currency_code_.ClearToEmpty(); ::memset(&_impl_.units_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.nanos_) - reinterpret_cast(&_impl_.units_)) + sizeof(_impl_.nanos_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Money::_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<2, 3, 0, 36, 2> Money::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967288, // skipmap offsetof(decltype(_table_), field_entries), 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_Money_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string currency_code = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Money, _impl_.currency_code_)}}, // int64 units = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Money, _impl_.units_), 63>(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(Money, _impl_.units_)}}, // int32 nanos = 3; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Money, _impl_.nanos_), 63>(), {24, 63, 0, PROTOBUF_FIELD_OFFSET(Money, _impl_.nanos_)}}, }}, {{ 65535, 65535 }}, {{ // string currency_code = 1; {PROTOBUF_FIELD_OFFSET(Money, _impl_.currency_code_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int64 units = 2; {PROTOBUF_FIELD_OFFSET(Money, _impl_.units_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, // int32 nanos = 3; {PROTOBUF_FIELD_OFFSET(Money, _impl_.nanos_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, }}, // no aux_entries {{ "\16\15\0\0\0\0\0\0" "oteldemo.Money" "currency_code" }}, }; ::uint8_t* Money::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Money) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string currency_code = 1; if (!this->_internal_currency_code().empty()) { const std::string& _s = this->_internal_currency_code(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Money.currency_code"); target = stream->WriteStringMaybeAliased(1, _s, target); } // int64 units = 2; if (this->_internal_units() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt64ToArrayWithField<2>( stream, this->_internal_units(), target); } // int32 nanos = 3; if (this->_internal_nanos() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<3>( stream, this->_internal_nanos(), 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:oteldemo.Money) return target; } ::size_t Money::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.Money) ::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 currency_code = 1; if (!this->_internal_currency_code().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_currency_code()); } // int64 units = 2; if (this->_internal_units() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this->_internal_units()); } // int32 nanos = 3; if (this->_internal_nanos() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_nanos()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Money::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, Money::MergeImpl }; const ::google::protobuf::Message::ClassData*Money::GetClassData() const { return &_class_data_; } void Money::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:oteldemo.Money) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_currency_code().empty()) { _this->_internal_set_currency_code(from._internal_currency_code()); } if (from._internal_units() != 0) { _this->_internal_set_units(from._internal_units()); } if (from._internal_nanos() != 0) { _this->_internal_set_nanos(from._internal_nanos()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Money::CopyFrom(const Money& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Money) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Money::IsInitialized() const { return true; } void Money::InternalSwap(Money* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.currency_code_, lhs_arena, &other->_impl_.currency_code_, rhs_arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Money, _impl_.nanos_) + sizeof(Money::_impl_.nanos_) - PROTOBUF_FIELD_OFFSET(Money, _impl_.units_)>( reinterpret_cast(&_impl_.units_), reinterpret_cast(&other->_impl_.units_)); } ::google::protobuf::Metadata Money::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[18]); } // =================================================================== class GetSupportedCurrenciesResponse::_Internal { public: }; GetSupportedCurrenciesResponse::GetSupportedCurrenciesResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.GetSupportedCurrenciesResponse) } GetSupportedCurrenciesResponse::GetSupportedCurrenciesResponse(const GetSupportedCurrenciesResponse& from) : ::google::protobuf::Message() { GetSupportedCurrenciesResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.currency_codes_){from._impl_.currency_codes_}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.GetSupportedCurrenciesResponse) } inline void GetSupportedCurrenciesResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.currency_codes_){arena}, /*decltype(_impl_._cached_size_)*/ {}, }; } GetSupportedCurrenciesResponse::~GetSupportedCurrenciesResponse() { // @@protoc_insertion_point(destructor:oteldemo.GetSupportedCurrenciesResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void GetSupportedCurrenciesResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _internal_mutable_currency_codes()->~RepeatedPtrField(); } void GetSupportedCurrenciesResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void GetSupportedCurrenciesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.GetSupportedCurrenciesResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_currency_codes()->Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* GetSupportedCurrenciesResponse::_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, 62, 2> GetSupportedCurrenciesResponse::_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 &_GetSupportedCurrenciesResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated string currency_codes = 1; {::_pbi::TcParser::FastUR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetSupportedCurrenciesResponse, _impl_.currency_codes_)}}, }}, {{ 65535, 65535 }}, {{ // repeated string currency_codes = 1; {PROTOBUF_FIELD_OFFSET(GetSupportedCurrenciesResponse, _impl_.currency_codes_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, }}, // no aux_entries {{ "\47\16\0\0\0\0\0\0" "oteldemo.GetSupportedCurrenciesResponse" "currency_codes" }}, }; ::uint8_t* GetSupportedCurrenciesResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetSupportedCurrenciesResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated string currency_codes = 1; for (int i = 0, n = this->_internal_currency_codes_size(); i < n; ++i) { const auto& s = this->_internal_currency_codes().Get(i); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetSupportedCurrenciesResponse.currency_codes"); target = stream->WriteString(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:oteldemo.GetSupportedCurrenciesResponse) return target; } ::size_t GetSupportedCurrenciesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.GetSupportedCurrenciesResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string currency_codes = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_currency_codes().size()); for (int i = 0, n = _internal_currency_codes().size(); i < n; ++i) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_currency_codes().Get(i)); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData GetSupportedCurrenciesResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, GetSupportedCurrenciesResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*GetSupportedCurrenciesResponse::GetClassData() const { return &_class_data_; } void GetSupportedCurrenciesResponse::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:oteldemo.GetSupportedCurrenciesResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_currency_codes()->MergeFrom(from._internal_currency_codes()); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetSupportedCurrenciesResponse::CopyFrom(const GetSupportedCurrenciesResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetSupportedCurrenciesResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool GetSupportedCurrenciesResponse::IsInitialized() const { return true; } void GetSupportedCurrenciesResponse::InternalSwap(GetSupportedCurrenciesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.currency_codes_.InternalSwap(&other->_impl_.currency_codes_); } ::google::protobuf::Metadata GetSupportedCurrenciesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[19]); } // =================================================================== class CurrencyConversionRequest::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_._has_bits_); static const ::oteldemo::Money& from(const CurrencyConversionRequest* msg); static void set_has_from(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::Money& CurrencyConversionRequest::_Internal::from(const CurrencyConversionRequest* msg) { return *msg->_impl_.from_; } CurrencyConversionRequest::CurrencyConversionRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.CurrencyConversionRequest) } CurrencyConversionRequest::CurrencyConversionRequest(const CurrencyConversionRequest& from) : ::google::protobuf::Message() { CurrencyConversionRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.to_code_){}, decltype(_impl_.from_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.to_code_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.to_code_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_to_code().empty()) { _this->_impl_.to_code_.Set(from._internal_to_code(), _this->GetArenaForAllocation()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.from_ = new ::oteldemo::Money(*from._impl_.from_); } // @@protoc_insertion_point(copy_constructor:oteldemo.CurrencyConversionRequest) } inline void CurrencyConversionRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.to_code_){}, decltype(_impl_.from_){nullptr}, }; _impl_.to_code_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.to_code_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CurrencyConversionRequest::~CurrencyConversionRequest() { // @@protoc_insertion_point(destructor:oteldemo.CurrencyConversionRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void CurrencyConversionRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.to_code_.Destroy(); if (this != internal_default_instance()) delete _impl_.from_; } void CurrencyConversionRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void CurrencyConversionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.CurrencyConversionRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.to_code_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.from_ != nullptr); _impl_.from_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* CurrencyConversionRequest::_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<1, 2, 1, 50, 2> CurrencyConversionRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_CurrencyConversionRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string to_code = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.to_code_)}}, // .oteldemo.Money from = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.from_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.Money from = 1; {PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.from_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // string to_code = 2; {PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.to_code_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, }}, {{ "\42\0\7\0\0\0\0\0" "oteldemo.CurrencyConversionRequest" "to_code" }}, }; ::uint8_t* CurrencyConversionRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CurrencyConversionRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Money from = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::from(this), _Internal::from(this).GetCachedSize(), target, stream); } // string to_code = 2; if (!this->_internal_to_code().empty()) { const std::string& _s = this->_internal_to_code(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CurrencyConversionRequest.to_code"); target = stream->WriteStringMaybeAliased(2, _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:oteldemo.CurrencyConversionRequest) return target; } ::size_t CurrencyConversionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.CurrencyConversionRequest) ::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 to_code = 2; if (!this->_internal_to_code().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_to_code()); } // .oteldemo.Money from = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.from_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData CurrencyConversionRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, CurrencyConversionRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*CurrencyConversionRequest::GetClassData() const { return &_class_data_; } void CurrencyConversionRequest::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:oteldemo.CurrencyConversionRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_to_code().empty()) { _this->_internal_set_to_code(from._internal_to_code()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_from()->::oteldemo::Money::MergeFrom( from._internal_from()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CurrencyConversionRequest::CopyFrom(const CurrencyConversionRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CurrencyConversionRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool CurrencyConversionRequest::IsInitialized() const { return true; } void CurrencyConversionRequest::InternalSwap(CurrencyConversionRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.to_code_, lhs_arena, &other->_impl_.to_code_, rhs_arena); swap(_impl_.from_, other->_impl_.from_); } ::google::protobuf::Metadata CurrencyConversionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[20]); } // =================================================================== class CreditCardInfo::_Internal { public: }; CreditCardInfo::CreditCardInfo(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.CreditCardInfo) } CreditCardInfo::CreditCardInfo(const CreditCardInfo& from) : ::google::protobuf::Message() { CreditCardInfo* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.credit_card_number_){}, decltype(_impl_.credit_card_cvv_){}, decltype(_impl_.credit_card_expiration_year_){}, decltype(_impl_.credit_card_expiration_month_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.credit_card_number_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.credit_card_number_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_credit_card_number().empty()) { _this->_impl_.credit_card_number_.Set(from._internal_credit_card_number(), _this->GetArenaForAllocation()); } ::memcpy(&_impl_.credit_card_cvv_, &from._impl_.credit_card_cvv_, static_cast<::size_t>(reinterpret_cast(&_impl_.credit_card_expiration_month_) - reinterpret_cast(&_impl_.credit_card_cvv_)) + sizeof(_impl_.credit_card_expiration_month_)); // @@protoc_insertion_point(copy_constructor:oteldemo.CreditCardInfo) } inline void CreditCardInfo::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.credit_card_number_){}, decltype(_impl_.credit_card_cvv_){0}, decltype(_impl_.credit_card_expiration_year_){0}, decltype(_impl_.credit_card_expiration_month_){0}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.credit_card_number_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.credit_card_number_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CreditCardInfo::~CreditCardInfo() { // @@protoc_insertion_point(destructor:oteldemo.CreditCardInfo) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void CreditCardInfo::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.credit_card_number_.Destroy(); } void CreditCardInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void CreditCardInfo::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.CreditCardInfo) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.credit_card_number_.ClearToEmpty(); ::memset(&_impl_.credit_card_cvv_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.credit_card_expiration_month_) - reinterpret_cast(&_impl_.credit_card_cvv_)) + sizeof(_impl_.credit_card_expiration_month_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* CreditCardInfo::_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<2, 4, 0, 50, 2> CreditCardInfo::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967280, // skipmap offsetof(decltype(_table_), field_entries), 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_CreditCardInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // int32 credit_card_expiration_month = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreditCardInfo, _impl_.credit_card_expiration_month_), 63>(), {32, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_month_)}}, // string credit_card_number = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_number_)}}, // int32 credit_card_cvv = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreditCardInfo, _impl_.credit_card_cvv_), 63>(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_cvv_)}}, // int32 credit_card_expiration_year = 3; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreditCardInfo, _impl_.credit_card_expiration_year_), 63>(), {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_year_)}}, }}, {{ 65535, 65535 }}, {{ // string credit_card_number = 1; {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_number_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 credit_card_cvv = 2; {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_cvv_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, // int32 credit_card_expiration_year = 3; {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_year_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, // int32 credit_card_expiration_month = 4; {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_month_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, }}, // no aux_entries {{ "\27\22\0\0\0\0\0\0" "oteldemo.CreditCardInfo" "credit_card_number" }}, }; ::uint8_t* CreditCardInfo::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CreditCardInfo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string credit_card_number = 1; if (!this->_internal_credit_card_number().empty()) { const std::string& _s = this->_internal_credit_card_number(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CreditCardInfo.credit_card_number"); target = stream->WriteStringMaybeAliased(1, _s, target); } // int32 credit_card_cvv = 2; if (this->_internal_credit_card_cvv() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<2>( stream, this->_internal_credit_card_cvv(), target); } // int32 credit_card_expiration_year = 3; if (this->_internal_credit_card_expiration_year() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<3>( stream, this->_internal_credit_card_expiration_year(), target); } // int32 credit_card_expiration_month = 4; if (this->_internal_credit_card_expiration_month() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<4>( stream, this->_internal_credit_card_expiration_month(), 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:oteldemo.CreditCardInfo) return target; } ::size_t CreditCardInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.CreditCardInfo) ::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 credit_card_number = 1; if (!this->_internal_credit_card_number().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_credit_card_number()); } // int32 credit_card_cvv = 2; if (this->_internal_credit_card_cvv() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_credit_card_cvv()); } // int32 credit_card_expiration_year = 3; if (this->_internal_credit_card_expiration_year() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_credit_card_expiration_year()); } // int32 credit_card_expiration_month = 4; if (this->_internal_credit_card_expiration_month() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_credit_card_expiration_month()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData CreditCardInfo::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, CreditCardInfo::MergeImpl }; const ::google::protobuf::Message::ClassData*CreditCardInfo::GetClassData() const { return &_class_data_; } void CreditCardInfo::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:oteldemo.CreditCardInfo) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_credit_card_number().empty()) { _this->_internal_set_credit_card_number(from._internal_credit_card_number()); } if (from._internal_credit_card_cvv() != 0) { _this->_internal_set_credit_card_cvv(from._internal_credit_card_cvv()); } if (from._internal_credit_card_expiration_year() != 0) { _this->_internal_set_credit_card_expiration_year(from._internal_credit_card_expiration_year()); } if (from._internal_credit_card_expiration_month() != 0) { _this->_internal_set_credit_card_expiration_month(from._internal_credit_card_expiration_month()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CreditCardInfo::CopyFrom(const CreditCardInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CreditCardInfo) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool CreditCardInfo::IsInitialized() const { return true; } void CreditCardInfo::InternalSwap(CreditCardInfo* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.credit_card_number_, lhs_arena, &other->_impl_.credit_card_number_, rhs_arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_month_) + sizeof(CreditCardInfo::_impl_.credit_card_expiration_month_) - PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_cvv_)>( reinterpret_cast(&_impl_.credit_card_cvv_), reinterpret_cast(&other->_impl_.credit_card_cvv_)); } ::google::protobuf::Metadata CreditCardInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[21]); } // =================================================================== class ChargeRequest::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_._has_bits_); static const ::oteldemo::Money& amount(const ChargeRequest* msg); static void set_has_amount(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::oteldemo::CreditCardInfo& credit_card(const ChargeRequest* msg); static void set_has_credit_card(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::oteldemo::Money& ChargeRequest::_Internal::amount(const ChargeRequest* msg) { return *msg->_impl_.amount_; } const ::oteldemo::CreditCardInfo& ChargeRequest::_Internal::credit_card(const ChargeRequest* msg) { return *msg->_impl_.credit_card_; } ChargeRequest::ChargeRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ChargeRequest) } ChargeRequest::ChargeRequest(const ChargeRequest& from) : ::google::protobuf::Message() { ChargeRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.amount_){nullptr}, decltype(_impl_.credit_card_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.amount_ = new ::oteldemo::Money(*from._impl_.amount_); } if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { _this->_impl_.credit_card_ = new ::oteldemo::CreditCardInfo(*from._impl_.credit_card_); } // @@protoc_insertion_point(copy_constructor:oteldemo.ChargeRequest) } inline void ChargeRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.amount_){nullptr}, decltype(_impl_.credit_card_){nullptr}, }; } ChargeRequest::~ChargeRequest() { // @@protoc_insertion_point(destructor:oteldemo.ChargeRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ChargeRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.amount_; if (this != internal_default_instance()) delete _impl_.credit_card_; } void ChargeRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ChargeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ChargeRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.amount_ != nullptr); _impl_.amount_->Clear(); } if (cached_has_bits & 0x00000002u) { ABSL_DCHECK(_impl_.credit_card_ != nullptr); _impl_.credit_card_->Clear(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ChargeRequest::_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<1, 2, 2, 0, 2> ChargeRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_ChargeRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.CreditCardInfo credit_card = 2; {::_pbi::TcParser::FastMtS1, {18, 1, 1, PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.credit_card_)}}, // .oteldemo.Money amount = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.amount_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.Money amount = 1; {PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.amount_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .oteldemo.CreditCardInfo credit_card = 2; {PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.credit_card_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, {::_pbi::TcParser::GetTable<::oteldemo::CreditCardInfo>()}, }}, {{ }}, }; ::uint8_t* ChargeRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ChargeRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Money amount = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::amount(this), _Internal::amount(this).GetCachedSize(), target, stream); } // .oteldemo.CreditCardInfo credit_card = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::credit_card(this), _Internal::credit_card(this).GetCachedSize(), target, stream); } 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:oteldemo.ChargeRequest) return target; } ::size_t ChargeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ChargeRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // .oteldemo.Money amount = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.amount_); } // .oteldemo.CreditCardInfo credit_card = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.credit_card_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ChargeRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ChargeRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*ChargeRequest::GetClassData() const { return &_class_data_; } void ChargeRequest::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:oteldemo.ChargeRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _this->_internal_mutable_amount()->::oteldemo::Money::MergeFrom( from._internal_amount()); } if (cached_has_bits & 0x00000002u) { _this->_internal_mutable_credit_card()->::oteldemo::CreditCardInfo::MergeFrom( from._internal_credit_card()); } } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ChargeRequest::CopyFrom(const ChargeRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ChargeRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ChargeRequest::IsInitialized() const { return true; } void ChargeRequest::InternalSwap(ChargeRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.credit_card_) + sizeof(ChargeRequest::_impl_.credit_card_) - PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.amount_)>( reinterpret_cast(&_impl_.amount_), reinterpret_cast(&other->_impl_.amount_)); } ::google::protobuf::Metadata ChargeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[22]); } // =================================================================== class ChargeResponse::_Internal { public: }; ChargeResponse::ChargeResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ChargeResponse) } ChargeResponse::ChargeResponse(const ChargeResponse& from) : ::google::protobuf::Message() { ChargeResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.transaction_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.transaction_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.transaction_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_transaction_id().empty()) { _this->_impl_.transaction_id_.Set(from._internal_transaction_id(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.ChargeResponse) } inline void ChargeResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.transaction_id_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.transaction_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.transaction_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ChargeResponse::~ChargeResponse() { // @@protoc_insertion_point(destructor:oteldemo.ChargeResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ChargeResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.transaction_id_.Destroy(); } void ChargeResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ChargeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ChargeResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.transaction_id_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ChargeResponse::_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, 46, 2> ChargeResponse::_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 &_ChargeResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string transaction_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ChargeResponse, _impl_.transaction_id_)}}, }}, {{ 65535, 65535 }}, {{ // string transaction_id = 1; {PROTOBUF_FIELD_OFFSET(ChargeResponse, _impl_.transaction_id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\27\16\0\0\0\0\0\0" "oteldemo.ChargeResponse" "transaction_id" }}, }; ::uint8_t* ChargeResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ChargeResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string transaction_id = 1; if (!this->_internal_transaction_id().empty()) { const std::string& _s = this->_internal_transaction_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ChargeResponse.transaction_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:oteldemo.ChargeResponse) return target; } ::size_t ChargeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ChargeResponse) ::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 transaction_id = 1; if (!this->_internal_transaction_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_transaction_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ChargeResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ChargeResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*ChargeResponse::GetClassData() const { return &_class_data_; } void ChargeResponse::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:oteldemo.ChargeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_transaction_id().empty()) { _this->_internal_set_transaction_id(from._internal_transaction_id()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ChargeResponse::CopyFrom(const ChargeResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ChargeResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ChargeResponse::IsInitialized() const { return true; } void ChargeResponse::InternalSwap(ChargeResponse* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_id_, lhs_arena, &other->_impl_.transaction_id_, rhs_arena); } ::google::protobuf::Metadata ChargeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[23]); } // =================================================================== class OrderItem::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(OrderItem, _impl_._has_bits_); static const ::oteldemo::CartItem& item(const OrderItem* msg); static void set_has_item(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::oteldemo::Money& cost(const OrderItem* msg); static void set_has_cost(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::oteldemo::CartItem& OrderItem::_Internal::item(const OrderItem* msg) { return *msg->_impl_.item_; } const ::oteldemo::Money& OrderItem::_Internal::cost(const OrderItem* msg) { return *msg->_impl_.cost_; } OrderItem::OrderItem(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.OrderItem) } OrderItem::OrderItem(const OrderItem& from) : ::google::protobuf::Message() { OrderItem* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.item_){nullptr}, decltype(_impl_.cost_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.item_ = new ::oteldemo::CartItem(*from._impl_.item_); } if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { _this->_impl_.cost_ = new ::oteldemo::Money(*from._impl_.cost_); } // @@protoc_insertion_point(copy_constructor:oteldemo.OrderItem) } inline void OrderItem::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.item_){nullptr}, decltype(_impl_.cost_){nullptr}, }; } OrderItem::~OrderItem() { // @@protoc_insertion_point(destructor:oteldemo.OrderItem) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void OrderItem::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.item_; if (this != internal_default_instance()) delete _impl_.cost_; } void OrderItem::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void OrderItem::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.OrderItem) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.item_ != nullptr); _impl_.item_->Clear(); } if (cached_has_bits & 0x00000002u) { ABSL_DCHECK(_impl_.cost_ != nullptr); _impl_.cost_->Clear(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* OrderItem::_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<1, 2, 2, 0, 2> OrderItem::_table_ = { { PROTOBUF_FIELD_OFFSET(OrderItem, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_OrderItem_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.Money cost = 2; {::_pbi::TcParser::FastMtS1, {18, 1, 1, PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.cost_)}}, // .oteldemo.CartItem item = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.item_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.CartItem item = 1; {PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.item_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .oteldemo.Money cost = 2; {PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.cost_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, }}, {{ }}, }; ::uint8_t* OrderItem::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.OrderItem) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.CartItem item = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::item(this), _Internal::item(this).GetCachedSize(), target, stream); } // .oteldemo.Money cost = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::cost(this), _Internal::cost(this).GetCachedSize(), target, stream); } 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:oteldemo.OrderItem) return target; } ::size_t OrderItem::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.OrderItem) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // .oteldemo.CartItem item = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.item_); } // .oteldemo.Money cost = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.cost_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData OrderItem::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, OrderItem::MergeImpl }; const ::google::protobuf::Message::ClassData*OrderItem::GetClassData() const { return &_class_data_; } void OrderItem::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:oteldemo.OrderItem) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _this->_internal_mutable_item()->::oteldemo::CartItem::MergeFrom( from._internal_item()); } if (cached_has_bits & 0x00000002u) { _this->_internal_mutable_cost()->::oteldemo::Money::MergeFrom( from._internal_cost()); } } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void OrderItem::CopyFrom(const OrderItem& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.OrderItem) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool OrderItem::IsInitialized() const { return true; } void OrderItem::InternalSwap(OrderItem* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.cost_) + sizeof(OrderItem::_impl_.cost_) - PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.item_)>( reinterpret_cast(&_impl_.item_), reinterpret_cast(&other->_impl_.item_)); } ::google::protobuf::Metadata OrderItem::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[24]); } // =================================================================== class OrderResult::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(OrderResult, _impl_._has_bits_); static const ::oteldemo::Money& shipping_cost(const OrderResult* msg); static void set_has_shipping_cost(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::oteldemo::Address& shipping_address(const OrderResult* msg); static void set_has_shipping_address(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::oteldemo::Money& OrderResult::_Internal::shipping_cost(const OrderResult* msg) { return *msg->_impl_.shipping_cost_; } const ::oteldemo::Address& OrderResult::_Internal::shipping_address(const OrderResult* msg) { return *msg->_impl_.shipping_address_; } OrderResult::OrderResult(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.OrderResult) } OrderResult::OrderResult(const OrderResult& from) : ::google::protobuf::Message() { OrderResult* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.items_){from._impl_.items_}, decltype(_impl_.order_id_){}, decltype(_impl_.shipping_tracking_id_){}, decltype(_impl_.shipping_cost_){nullptr}, decltype(_impl_.shipping_address_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.order_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.order_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_order_id().empty()) { _this->_impl_.order_id_.Set(from._internal_order_id(), _this->GetArenaForAllocation()); } _impl_.shipping_tracking_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.shipping_tracking_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_shipping_tracking_id().empty()) { _this->_impl_.shipping_tracking_id_.Set(from._internal_shipping_tracking_id(), _this->GetArenaForAllocation()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.shipping_cost_ = new ::oteldemo::Money(*from._impl_.shipping_cost_); } if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { _this->_impl_.shipping_address_ = new ::oteldemo::Address(*from._impl_.shipping_address_); } // @@protoc_insertion_point(copy_constructor:oteldemo.OrderResult) } inline void OrderResult::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.items_){arena}, decltype(_impl_.order_id_){}, decltype(_impl_.shipping_tracking_id_){}, decltype(_impl_.shipping_cost_){nullptr}, decltype(_impl_.shipping_address_){nullptr}, }; _impl_.order_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.order_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.shipping_tracking_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.shipping_tracking_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } OrderResult::~OrderResult() { // @@protoc_insertion_point(destructor:oteldemo.OrderResult) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void OrderResult::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.items_.~RepeatedPtrField(); _impl_.order_id_.Destroy(); _impl_.shipping_tracking_id_.Destroy(); if (this != internal_default_instance()) delete _impl_.shipping_cost_; if (this != internal_default_instance()) delete _impl_.shipping_address_; } void OrderResult::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void OrderResult::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.OrderResult) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_items()->Clear(); _impl_.order_id_.ClearToEmpty(); _impl_.shipping_tracking_id_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.shipping_cost_ != nullptr); _impl_.shipping_cost_->Clear(); } if (cached_has_bits & 0x00000002u) { ABSL_DCHECK(_impl_.shipping_address_ != nullptr); _impl_.shipping_address_->Clear(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* OrderResult::_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<3, 5, 3, 57, 2> OrderResult::_table_ = { { PROTOBUF_FIELD_OFFSET(OrderResult, _impl_._has_bits_), 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967264, // skipmap offsetof(decltype(_table_), field_entries), 5, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_OrderResult_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string order_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.order_id_)}}, // string shipping_tracking_id = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_tracking_id_)}}, // .oteldemo.Money shipping_cost = 3; {::_pbi::TcParser::FastMtS1, {26, 0, 0, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_cost_)}}, // .oteldemo.Address shipping_address = 4; {::_pbi::TcParser::FastMtS1, {34, 1, 1, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_address_)}}, // repeated .oteldemo.OrderItem items = 5; {::_pbi::TcParser::FastMtR1, {42, 63, 2, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.items_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string order_id = 1; {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.order_id_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string shipping_tracking_id = 2; {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_tracking_id_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .oteldemo.Money shipping_cost = 3; {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_cost_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .oteldemo.Address shipping_address = 4; {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_address_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // repeated .oteldemo.OrderItem items = 5; {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.items_), -1, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, {::_pbi::TcParser::GetTable<::oteldemo::OrderItem>()}, }}, {{ "\24\10\24\0\0\0\0\0" "oteldemo.OrderResult" "order_id" "shipping_tracking_id" }}, }; ::uint8_t* OrderResult::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.OrderResult) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string order_id = 1; if (!this->_internal_order_id().empty()) { const std::string& _s = this->_internal_order_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.OrderResult.order_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string shipping_tracking_id = 2; if (!this->_internal_shipping_tracking_id().empty()) { const std::string& _s = this->_internal_shipping_tracking_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.OrderResult.shipping_tracking_id"); target = stream->WriteStringMaybeAliased(2, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Money shipping_cost = 3; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(3, _Internal::shipping_cost(this), _Internal::shipping_cost(this).GetCachedSize(), target, stream); } // .oteldemo.Address shipping_address = 4; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(4, _Internal::shipping_address(this), _Internal::shipping_address(this).GetCachedSize(), target, stream); } // repeated .oteldemo.OrderItem items = 5; 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(5, repfield, repfield.GetCachedSize(), target, stream); } 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:oteldemo.OrderResult) return target; } ::size_t OrderResult::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.OrderResult) ::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 .oteldemo.OrderItem items = 5; total_size += 1UL * this->_internal_items_size(); for (const auto& msg : this->_internal_items()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string order_id = 1; if (!this->_internal_order_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_order_id()); } // string shipping_tracking_id = 2; if (!this->_internal_shipping_tracking_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_shipping_tracking_id()); } cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // .oteldemo.Money shipping_cost = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.shipping_cost_); } // .oteldemo.Address shipping_address = 4; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.shipping_address_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData OrderResult::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, OrderResult::MergeImpl }; const ::google::protobuf::Message::ClassData*OrderResult::GetClassData() const { return &_class_data_; } void OrderResult::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:oteldemo.OrderResult) 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_order_id().empty()) { _this->_internal_set_order_id(from._internal_order_id()); } if (!from._internal_shipping_tracking_id().empty()) { _this->_internal_set_shipping_tracking_id(from._internal_shipping_tracking_id()); } cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _this->_internal_mutable_shipping_cost()->::oteldemo::Money::MergeFrom( from._internal_shipping_cost()); } if (cached_has_bits & 0x00000002u) { _this->_internal_mutable_shipping_address()->::oteldemo::Address::MergeFrom( from._internal_shipping_address()); } } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void OrderResult::CopyFrom(const OrderResult& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.OrderResult) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool OrderResult::IsInitialized() const { return true; } void OrderResult::InternalSwap(OrderResult* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _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_.order_id_, lhs_arena, &other->_impl_.order_id_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.shipping_tracking_id_, lhs_arena, &other->_impl_.shipping_tracking_id_, rhs_arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_address_) + sizeof(OrderResult::_impl_.shipping_address_) - PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_cost_)>( reinterpret_cast(&_impl_.shipping_cost_), reinterpret_cast(&other->_impl_.shipping_cost_)); } ::google::protobuf::Metadata OrderResult::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[25]); } // =================================================================== class SendOrderConfirmationRequest::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_._has_bits_); static const ::oteldemo::OrderResult& order(const SendOrderConfirmationRequest* msg); static void set_has_order(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::OrderResult& SendOrderConfirmationRequest::_Internal::order(const SendOrderConfirmationRequest* msg) { return *msg->_impl_.order_; } SendOrderConfirmationRequest::SendOrderConfirmationRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.SendOrderConfirmationRequest) } SendOrderConfirmationRequest::SendOrderConfirmationRequest(const SendOrderConfirmationRequest& from) : ::google::protobuf::Message() { SendOrderConfirmationRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.email_){}, decltype(_impl_.order_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.email_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.email_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_email().empty()) { _this->_impl_.email_.Set(from._internal_email(), _this->GetArenaForAllocation()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.order_ = new ::oteldemo::OrderResult(*from._impl_.order_); } // @@protoc_insertion_point(copy_constructor:oteldemo.SendOrderConfirmationRequest) } inline void SendOrderConfirmationRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.email_){}, decltype(_impl_.order_){nullptr}, }; _impl_.email_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.email_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SendOrderConfirmationRequest::~SendOrderConfirmationRequest() { // @@protoc_insertion_point(destructor:oteldemo.SendOrderConfirmationRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void SendOrderConfirmationRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.email_.Destroy(); if (this != internal_default_instance()) delete _impl_.order_; } void SendOrderConfirmationRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void SendOrderConfirmationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.SendOrderConfirmationRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.email_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.order_ != nullptr); _impl_.order_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* SendOrderConfirmationRequest::_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<1, 2, 1, 51, 2> SendOrderConfirmationRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_SendOrderConfirmationRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.OrderResult order = 2; {::_pbi::TcParser::FastMtS1, {18, 0, 0, PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.order_)}}, // string email = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.email_)}}, }}, {{ 65535, 65535 }}, {{ // string email = 1; {PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.email_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .oteldemo.OrderResult order = 2; {PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.order_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::OrderResult>()}, }}, {{ "\45\5\0\0\0\0\0\0" "oteldemo.SendOrderConfirmationRequest" "email" }}, }; ::uint8_t* SendOrderConfirmationRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.SendOrderConfirmationRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string email = 1; if (!this->_internal_email().empty()) { const std::string& _s = this->_internal_email(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.SendOrderConfirmationRequest.email"); target = stream->WriteStringMaybeAliased(1, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.OrderResult order = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::order(this), _Internal::order(this).GetCachedSize(), target, stream); } 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:oteldemo.SendOrderConfirmationRequest) return target; } ::size_t SendOrderConfirmationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.SendOrderConfirmationRequest) ::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 email = 1; if (!this->_internal_email().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_email()); } // .oteldemo.OrderResult order = 2; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.order_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData SendOrderConfirmationRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, SendOrderConfirmationRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*SendOrderConfirmationRequest::GetClassData() const { return &_class_data_; } void SendOrderConfirmationRequest::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:oteldemo.SendOrderConfirmationRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_email().empty()) { _this->_internal_set_email(from._internal_email()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_order()->::oteldemo::OrderResult::MergeFrom( from._internal_order()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SendOrderConfirmationRequest::CopyFrom(const SendOrderConfirmationRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.SendOrderConfirmationRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool SendOrderConfirmationRequest::IsInitialized() const { return true; } void SendOrderConfirmationRequest::InternalSwap(SendOrderConfirmationRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, lhs_arena, &other->_impl_.email_, rhs_arena); swap(_impl_.order_, other->_impl_.order_); } ::google::protobuf::Metadata SendOrderConfirmationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[26]); } // =================================================================== class PlaceOrderRequest::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_._has_bits_); static const ::oteldemo::Address& address(const PlaceOrderRequest* msg); static void set_has_address(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::oteldemo::CreditCardInfo& credit_card(const PlaceOrderRequest* msg); static void set_has_credit_card(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::oteldemo::Address& PlaceOrderRequest::_Internal::address(const PlaceOrderRequest* msg) { return *msg->_impl_.address_; } const ::oteldemo::CreditCardInfo& PlaceOrderRequest::_Internal::credit_card(const PlaceOrderRequest* msg) { return *msg->_impl_.credit_card_; } PlaceOrderRequest::PlaceOrderRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.PlaceOrderRequest) } PlaceOrderRequest::PlaceOrderRequest(const PlaceOrderRequest& from) : ::google::protobuf::Message() { PlaceOrderRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.user_id_){}, decltype(_impl_.user_currency_){}, decltype(_impl_.email_){}, decltype(_impl_.address_){nullptr}, decltype(_impl_.credit_card_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_user_id().empty()) { _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); } _impl_.user_currency_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_currency_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_user_currency().empty()) { _this->_impl_.user_currency_.Set(from._internal_user_currency(), _this->GetArenaForAllocation()); } _impl_.email_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.email_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_email().empty()) { _this->_impl_.email_.Set(from._internal_email(), _this->GetArenaForAllocation()); } if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.address_ = new ::oteldemo::Address(*from._impl_.address_); } if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { _this->_impl_.credit_card_ = new ::oteldemo::CreditCardInfo(*from._impl_.credit_card_); } // @@protoc_insertion_point(copy_constructor:oteldemo.PlaceOrderRequest) } inline void PlaceOrderRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.user_id_){}, decltype(_impl_.user_currency_){}, decltype(_impl_.email_){}, decltype(_impl_.address_){nullptr}, decltype(_impl_.credit_card_){nullptr}, }; _impl_.user_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_id_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_currency_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.user_currency_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.email_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.email_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } PlaceOrderRequest::~PlaceOrderRequest() { // @@protoc_insertion_point(destructor:oteldemo.PlaceOrderRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void PlaceOrderRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.user_id_.Destroy(); _impl_.user_currency_.Destroy(); _impl_.email_.Destroy(); if (this != internal_default_instance()) delete _impl_.address_; if (this != internal_default_instance()) delete _impl_.credit_card_; } void PlaceOrderRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void PlaceOrderRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.PlaceOrderRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.user_id_.ClearToEmpty(); _impl_.user_currency_.ClearToEmpty(); _impl_.email_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.address_ != nullptr); _impl_.address_->Clear(); } if (cached_has_bits & 0x00000002u) { ABSL_DCHECK(_impl_.credit_card_ != nullptr); _impl_.credit_card_->Clear(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* PlaceOrderRequest::_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<3, 5, 2, 60, 2> PlaceOrderRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_._has_bits_), 0, // no _extensions_ 6, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967240, // skipmap offsetof(decltype(_table_), field_entries), 5, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_PlaceOrderRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string user_id = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_id_)}}, // string user_currency = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_currency_)}}, // .oteldemo.Address address = 3; {::_pbi::TcParser::FastMtS1, {26, 0, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.address_)}}, {::_pbi::TcParser::MiniParse, {}}, // string email = 5; {::_pbi::TcParser::FastUS1, {42, 63, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.email_)}}, // .oteldemo.CreditCardInfo credit_card = 6; {::_pbi::TcParser::FastMtS1, {50, 1, 1, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.credit_card_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string user_id = 1; {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_id_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string user_currency = 2; {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_currency_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .oteldemo.Address address = 3; {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // string email = 5; {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.email_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .oteldemo.CreditCardInfo credit_card = 6; {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.credit_card_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, {::_pbi::TcParser::GetTable<::oteldemo::CreditCardInfo>()}, }}, {{ "\32\7\15\0\5\0\0\0" "oteldemo.PlaceOrderRequest" "user_id" "user_currency" "email" }}, }; ::uint8_t* PlaceOrderRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.PlaceOrderRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string user_id = 1; if (!this->_internal_user_id().empty()) { const std::string& _s = this->_internal_user_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.PlaceOrderRequest.user_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string user_currency = 2; if (!this->_internal_user_currency().empty()) { const std::string& _s = this->_internal_user_currency(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.PlaceOrderRequest.user_currency"); target = stream->WriteStringMaybeAliased(2, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Address address = 3; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(3, _Internal::address(this), _Internal::address(this).GetCachedSize(), target, stream); } // string email = 5; if (!this->_internal_email().empty()) { const std::string& _s = this->_internal_email(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.PlaceOrderRequest.email"); target = stream->WriteStringMaybeAliased(5, _s, target); } // .oteldemo.CreditCardInfo credit_card = 6; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(6, _Internal::credit_card(this), _Internal::credit_card(this).GetCachedSize(), target, stream); } 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:oteldemo.PlaceOrderRequest) return target; } ::size_t PlaceOrderRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.PlaceOrderRequest) ::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 user_id = 1; if (!this->_internal_user_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_id()); } // string user_currency = 2; if (!this->_internal_user_currency().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_currency()); } // string email = 5; if (!this->_internal_email().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_email()); } cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // .oteldemo.Address address = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.address_); } // .oteldemo.CreditCardInfo credit_card = 6; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.credit_card_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData PlaceOrderRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, PlaceOrderRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*PlaceOrderRequest::GetClassData() const { return &_class_data_; } void PlaceOrderRequest::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:oteldemo.PlaceOrderRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_user_id().empty()) { _this->_internal_set_user_id(from._internal_user_id()); } if (!from._internal_user_currency().empty()) { _this->_internal_set_user_currency(from._internal_user_currency()); } if (!from._internal_email().empty()) { _this->_internal_set_email(from._internal_email()); } cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _this->_internal_mutable_address()->::oteldemo::Address::MergeFrom( from._internal_address()); } if (cached_has_bits & 0x00000002u) { _this->_internal_mutable_credit_card()->::oteldemo::CreditCardInfo::MergeFrom( from._internal_credit_card()); } } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void PlaceOrderRequest::CopyFrom(const PlaceOrderRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.PlaceOrderRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool PlaceOrderRequest::IsInitialized() const { return true; } void PlaceOrderRequest::InternalSwap(PlaceOrderRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, &other->_impl_.user_id_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_currency_, lhs_arena, &other->_impl_.user_currency_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, lhs_arena, &other->_impl_.email_, rhs_arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.credit_card_) + sizeof(PlaceOrderRequest::_impl_.credit_card_) - PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.address_)>( reinterpret_cast(&_impl_.address_), reinterpret_cast(&other->_impl_.address_)); } ::google::protobuf::Metadata PlaceOrderRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[27]); } // =================================================================== class PlaceOrderResponse::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_._has_bits_); static const ::oteldemo::OrderResult& order(const PlaceOrderResponse* msg); static void set_has_order(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::OrderResult& PlaceOrderResponse::_Internal::order(const PlaceOrderResponse* msg) { return *msg->_impl_.order_; } PlaceOrderResponse::PlaceOrderResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.PlaceOrderResponse) } PlaceOrderResponse::PlaceOrderResponse(const PlaceOrderResponse& from) : ::google::protobuf::Message() { PlaceOrderResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.order_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.order_ = new ::oteldemo::OrderResult(*from._impl_.order_); } // @@protoc_insertion_point(copy_constructor:oteldemo.PlaceOrderResponse) } inline void PlaceOrderResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.order_){nullptr}, }; } PlaceOrderResponse::~PlaceOrderResponse() { // @@protoc_insertion_point(destructor:oteldemo.PlaceOrderResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void PlaceOrderResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.order_; } void PlaceOrderResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void PlaceOrderResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.PlaceOrderResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.order_ != nullptr); _impl_.order_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* PlaceOrderResponse::_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, 1, 0, 2> PlaceOrderResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_._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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_PlaceOrderResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.OrderResult order = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_.order_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.OrderResult order = 1; {PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_.order_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::OrderResult>()}, }}, {{ }}, }; ::uint8_t* PlaceOrderResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.PlaceOrderResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.OrderResult order = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::order(this), _Internal::order(this).GetCachedSize(), target, stream); } 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:oteldemo.PlaceOrderResponse) return target; } ::size_t PlaceOrderResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.PlaceOrderResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .oteldemo.OrderResult order = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.order_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData PlaceOrderResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, PlaceOrderResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*PlaceOrderResponse::GetClassData() const { return &_class_data_; } void PlaceOrderResponse::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:oteldemo.PlaceOrderResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_order()->::oteldemo::OrderResult::MergeFrom( from._internal_order()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void PlaceOrderResponse::CopyFrom(const PlaceOrderResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.PlaceOrderResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool PlaceOrderResponse::IsInitialized() const { return true; } void PlaceOrderResponse::InternalSwap(PlaceOrderResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.order_, other->_impl_.order_); } ::google::protobuf::Metadata PlaceOrderResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[28]); } // =================================================================== class AdRequest::_Internal { public: }; AdRequest::AdRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.AdRequest) } AdRequest::AdRequest(const AdRequest& from) : ::google::protobuf::Message() { AdRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.context_keys_){from._impl_.context_keys_}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.AdRequest) } inline void AdRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.context_keys_){arena}, /*decltype(_impl_._cached_size_)*/ {}, }; } AdRequest::~AdRequest() { // @@protoc_insertion_point(destructor:oteldemo.AdRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void AdRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _internal_mutable_context_keys()->~RepeatedPtrField(); } void AdRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void AdRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.AdRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_context_keys()->Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* AdRequest::_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, 39, 2> AdRequest::_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 &_AdRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated string context_keys = 1; {::_pbi::TcParser::FastUR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(AdRequest, _impl_.context_keys_)}}, }}, {{ 65535, 65535 }}, {{ // repeated string context_keys = 1; {PROTOBUF_FIELD_OFFSET(AdRequest, _impl_.context_keys_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, }}, // no aux_entries {{ "\22\14\0\0\0\0\0\0" "oteldemo.AdRequest" "context_keys" }}, }; ::uint8_t* AdRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AdRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated string context_keys = 1; for (int i = 0, n = this->_internal_context_keys_size(); i < n; ++i) { const auto& s = this->_internal_context_keys().Get(i); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.AdRequest.context_keys"); target = stream->WriteString(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:oteldemo.AdRequest) return target; } ::size_t AdRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.AdRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string context_keys = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_context_keys().size()); for (int i = 0, n = _internal_context_keys().size(); i < n; ++i) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_context_keys().Get(i)); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData AdRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, AdRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*AdRequest::GetClassData() const { return &_class_data_; } void AdRequest::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:oteldemo.AdRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_context_keys()->MergeFrom(from._internal_context_keys()); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void AdRequest::CopyFrom(const AdRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AdRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool AdRequest::IsInitialized() const { return true; } void AdRequest::InternalSwap(AdRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.context_keys_.InternalSwap(&other->_impl_.context_keys_); } ::google::protobuf::Metadata AdRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[29]); } // =================================================================== class AdResponse::_Internal { public: }; AdResponse::AdResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.AdResponse) } AdResponse::AdResponse(const AdResponse& from) : ::google::protobuf::Message() { AdResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.ads_){from._impl_.ads_}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.AdResponse) } inline void AdResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.ads_){arena}, /*decltype(_impl_._cached_size_)*/ {}, }; } AdResponse::~AdResponse() { // @@protoc_insertion_point(destructor:oteldemo.AdResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void AdResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.ads_.~RepeatedPtrField(); } void AdResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void AdResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.AdResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_ads()->Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* AdResponse::_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, 1, 0, 2> AdResponse::_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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_AdResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated .oteldemo.Ad ads = 1; {::_pbi::TcParser::FastMtR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(AdResponse, _impl_.ads_)}}, }}, {{ 65535, 65535 }}, {{ // repeated .oteldemo.Ad ads = 1; {PROTOBUF_FIELD_OFFSET(AdResponse, _impl_.ads_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Ad>()}, }}, {{ }}, }; ::uint8_t* AdResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AdResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .oteldemo.Ad ads = 1; for (unsigned i = 0, n = static_cast(this->_internal_ads_size()); i < n; i++) { const auto& repfield = this->_internal_ads().Get(i); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:oteldemo.AdResponse) return target; } ::size_t AdResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.AdResponse) ::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 .oteldemo.Ad ads = 1; total_size += 1UL * this->_internal_ads_size(); for (const auto& msg : this->_internal_ads()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData AdResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, AdResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*AdResponse::GetClassData() const { return &_class_data_; } void AdResponse::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:oteldemo.AdResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_ads()->MergeFrom(from._internal_ads()); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void AdResponse::CopyFrom(const AdResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AdResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool AdResponse::IsInitialized() const { return true; } void AdResponse::InternalSwap(AdResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.ads_.InternalSwap(&other->_impl_.ads_); } ::google::protobuf::Metadata AdResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[30]); } // =================================================================== class Ad::_Internal { public: }; Ad::Ad(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.Ad) } Ad::Ad(const Ad& from) : ::google::protobuf::Message() { Ad* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.redirect_url_){}, decltype(_impl_.text_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.redirect_url_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.redirect_url_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_redirect_url().empty()) { _this->_impl_.redirect_url_.Set(from._internal_redirect_url(), _this->GetArenaForAllocation()); } _impl_.text_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.text_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_text().empty()) { _this->_impl_.text_.Set(from._internal_text(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.Ad) } inline void Ad::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.redirect_url_){}, decltype(_impl_.text_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.redirect_url_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.redirect_url_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.text_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.text_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Ad::~Ad() { // @@protoc_insertion_point(destructor:oteldemo.Ad) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Ad::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.redirect_url_.Destroy(); _impl_.text_.Destroy(); } void Ad::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void Ad::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.Ad) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.redirect_url_.ClearToEmpty(); _impl_.text_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Ad::_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<1, 2, 0, 36, 2> Ad::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 2, 8, // 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 &_Ad_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string text = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(Ad, _impl_.text_)}}, // string redirect_url = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Ad, _impl_.redirect_url_)}}, }}, {{ 65535, 65535 }}, {{ // string redirect_url = 1; {PROTOBUF_FIELD_OFFSET(Ad, _impl_.redirect_url_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string text = 2; {PROTOBUF_FIELD_OFFSET(Ad, _impl_.text_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\13\14\4\0\0\0\0\0" "oteldemo.Ad" "redirect_url" "text" }}, }; ::uint8_t* Ad::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Ad) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string redirect_url = 1; if (!this->_internal_redirect_url().empty()) { const std::string& _s = this->_internal_redirect_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Ad.redirect_url"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string text = 2; if (!this->_internal_text().empty()) { const std::string& _s = this->_internal_text(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Ad.text"); target = stream->WriteStringMaybeAliased(2, _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:oteldemo.Ad) return target; } ::size_t Ad::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.Ad) ::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 redirect_url = 1; if (!this->_internal_redirect_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_redirect_url()); } // string text = 2; if (!this->_internal_text().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_text()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Ad::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, Ad::MergeImpl }; const ::google::protobuf::Message::ClassData*Ad::GetClassData() const { return &_class_data_; } void Ad::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:oteldemo.Ad) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_redirect_url().empty()) { _this->_internal_set_redirect_url(from._internal_redirect_url()); } if (!from._internal_text().empty()) { _this->_internal_set_text(from._internal_text()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Ad::CopyFrom(const Ad& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Ad) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Ad::IsInitialized() const { return true; } void Ad::InternalSwap(Ad* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.redirect_url_, lhs_arena, &other->_impl_.redirect_url_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.text_, lhs_arena, &other->_impl_.text_, rhs_arena); } ::google::protobuf::Metadata Ad::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[31]); } // =================================================================== class Flag::_Internal { public: }; Flag::Flag(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.Flag) } Flag::Flag(const Flag& from) : ::google::protobuf::Message() { Flag* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.name_){}, decltype(_impl_.description_){}, decltype(_impl_.enabled_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } _impl_.description_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_description().empty()) { _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); } _this->_impl_.enabled_ = from._impl_.enabled_; // @@protoc_insertion_point(copy_constructor:oteldemo.Flag) } inline void Flag::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.name_){}, decltype(_impl_.description_){}, decltype(_impl_.enabled_){false}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Flag::~Flag() { // @@protoc_insertion_point(destructor:oteldemo.Flag) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Flag::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_.Destroy(); _impl_.description_.Destroy(); } void Flag::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void Flag::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.Flag) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _impl_.description_.ClearToEmpty(); _impl_.enabled_ = false; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Flag::_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<2, 3, 0, 37, 2> Flag::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967288, // skipmap offsetof(decltype(_table_), field_entries), 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_Flag_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string name = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Flag, _impl_.name_)}}, // string description = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(Flag, _impl_.description_)}}, // bool enabled = 3; {::_pbi::TcParser::SingularVarintNoZag1(), {24, 63, 0, PROTOBUF_FIELD_OFFSET(Flag, _impl_.enabled_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; {PROTOBUF_FIELD_OFFSET(Flag, _impl_.name_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string description = 2; {PROTOBUF_FIELD_OFFSET(Flag, _impl_.description_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enabled = 3; {PROTOBUF_FIELD_OFFSET(Flag, _impl_.enabled_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBool)}, }}, // no aux_entries {{ "\15\4\13\0\0\0\0\0" "oteldemo.Flag" "name" "description" }}, }; ::uint8_t* Flag::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Flag) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Flag.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string description = 2; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Flag.description"); target = stream->WriteStringMaybeAliased(2, _s, target); } // bool enabled = 3; if (this->_internal_enabled() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 3, this->_internal_enabled(), 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:oteldemo.Flag) return target; } ::size_t Flag::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.Flag) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // string description = 2; if (!this->_internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // bool enabled = 3; if (this->_internal_enabled() != 0) { total_size += 2; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Flag::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, Flag::MergeImpl }; const ::google::protobuf::Message::ClassData*Flag::GetClassData() const { return &_class_data_; } void Flag::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:oteldemo.Flag) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } if (from._internal_enabled() != 0) { _this->_internal_set_enabled(from._internal_enabled()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Flag::CopyFrom(const Flag& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Flag) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Flag::IsInitialized() const { return true; } void Flag::InternalSwap(Flag* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, &other->_impl_.name_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, &other->_impl_.description_, rhs_arena); swap(_impl_.enabled_, other->_impl_.enabled_); } ::google::protobuf::Metadata Flag::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[32]); } // =================================================================== class GetFlagRequest::_Internal { public: }; GetFlagRequest::GetFlagRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.GetFlagRequest) } GetFlagRequest::GetFlagRequest(const GetFlagRequest& from) : ::google::protobuf::Message() { GetFlagRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.name_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.GetFlagRequest) } inline void GetFlagRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.name_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GetFlagRequest::~GetFlagRequest() { // @@protoc_insertion_point(destructor:oteldemo.GetFlagRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void GetFlagRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_.Destroy(); } void GetFlagRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void GetFlagRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.GetFlagRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* GetFlagRequest::_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, 36, 2> GetFlagRequest::_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 &_GetFlagRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string name = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetFlagRequest, _impl_.name_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; {PROTOBUF_FIELD_OFFSET(GetFlagRequest, _impl_.name_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\27\4\0\0\0\0\0\0" "oteldemo.GetFlagRequest" "name" }}, }; ::uint8_t* GetFlagRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetFlagRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetFlagRequest.name"); 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:oteldemo.GetFlagRequest) return target; } ::size_t GetFlagRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.GetFlagRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData GetFlagRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, GetFlagRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*GetFlagRequest::GetClassData() const { return &_class_data_; } void GetFlagRequest::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:oteldemo.GetFlagRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetFlagRequest::CopyFrom(const GetFlagRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetFlagRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool GetFlagRequest::IsInitialized() const { return true; } void GetFlagRequest::InternalSwap(GetFlagRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, &other->_impl_.name_, rhs_arena); } ::google::protobuf::Metadata GetFlagRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[33]); } // =================================================================== class GetFlagResponse::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_._has_bits_); static const ::oteldemo::Flag& flag(const GetFlagResponse* msg); static void set_has_flag(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::Flag& GetFlagResponse::_Internal::flag(const GetFlagResponse* msg) { return *msg->_impl_.flag_; } GetFlagResponse::GetFlagResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.GetFlagResponse) } GetFlagResponse::GetFlagResponse(const GetFlagResponse& from) : ::google::protobuf::Message() { GetFlagResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.flag_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.flag_ = new ::oteldemo::Flag(*from._impl_.flag_); } // @@protoc_insertion_point(copy_constructor:oteldemo.GetFlagResponse) } inline void GetFlagResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.flag_){nullptr}, }; } GetFlagResponse::~GetFlagResponse() { // @@protoc_insertion_point(destructor:oteldemo.GetFlagResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void GetFlagResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.flag_; } void GetFlagResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void GetFlagResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.GetFlagResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.flag_ != nullptr); _impl_.flag_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* GetFlagResponse::_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, 1, 0, 2> GetFlagResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_._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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_GetFlagResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.Flag flag = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_.flag_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.Flag flag = 1; {PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_.flag_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Flag>()}, }}, {{ }}, }; ::uint8_t* GetFlagResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetFlagResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Flag flag = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::flag(this), _Internal::flag(this).GetCachedSize(), target, stream); } 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:oteldemo.GetFlagResponse) return target; } ::size_t GetFlagResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.GetFlagResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .oteldemo.Flag flag = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.flag_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData GetFlagResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, GetFlagResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*GetFlagResponse::GetClassData() const { return &_class_data_; } void GetFlagResponse::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:oteldemo.GetFlagResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_flag()->::oteldemo::Flag::MergeFrom( from._internal_flag()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetFlagResponse::CopyFrom(const GetFlagResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetFlagResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool GetFlagResponse::IsInitialized() const { return true; } void GetFlagResponse::InternalSwap(GetFlagResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.flag_, other->_impl_.flag_); } ::google::protobuf::Metadata GetFlagResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[34]); } // =================================================================== class CreateFlagRequest::_Internal { public: }; CreateFlagRequest::CreateFlagRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.CreateFlagRequest) } CreateFlagRequest::CreateFlagRequest(const CreateFlagRequest& from) : ::google::protobuf::Message() { CreateFlagRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.name_){}, decltype(_impl_.description_){}, decltype(_impl_.enabled_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } _impl_.description_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_description().empty()) { _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); } _this->_impl_.enabled_ = from._impl_.enabled_; // @@protoc_insertion_point(copy_constructor:oteldemo.CreateFlagRequest) } inline void CreateFlagRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.name_){}, decltype(_impl_.description_){}, decltype(_impl_.enabled_){false}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.description_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CreateFlagRequest::~CreateFlagRequest() { // @@protoc_insertion_point(destructor:oteldemo.CreateFlagRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void CreateFlagRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_.Destroy(); _impl_.description_.Destroy(); } void CreateFlagRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void CreateFlagRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.CreateFlagRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _impl_.description_.ClearToEmpty(); _impl_.enabled_ = false; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* CreateFlagRequest::_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<2, 3, 0, 50, 2> CreateFlagRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967288, // skipmap offsetof(decltype(_table_), field_entries), 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_CreateFlagRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string name = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.name_)}}, // string description = 2; {::_pbi::TcParser::FastUS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.description_)}}, // bool enabled = 3; {::_pbi::TcParser::SingularVarintNoZag1(), {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.enabled_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; {PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.name_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string description = 2; {PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.description_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enabled = 3; {PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.enabled_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBool)}, }}, // no aux_entries {{ "\32\4\13\0\0\0\0\0" "oteldemo.CreateFlagRequest" "name" "description" }}, }; ::uint8_t* CreateFlagRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CreateFlagRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CreateFlagRequest.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string description = 2; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CreateFlagRequest.description"); target = stream->WriteStringMaybeAliased(2, _s, target); } // bool enabled = 3; if (this->_internal_enabled() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 3, this->_internal_enabled(), 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:oteldemo.CreateFlagRequest) return target; } ::size_t CreateFlagRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.CreateFlagRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // string description = 2; if (!this->_internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // bool enabled = 3; if (this->_internal_enabled() != 0) { total_size += 2; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData CreateFlagRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, CreateFlagRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*CreateFlagRequest::GetClassData() const { return &_class_data_; } void CreateFlagRequest::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:oteldemo.CreateFlagRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } if (from._internal_enabled() != 0) { _this->_internal_set_enabled(from._internal_enabled()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CreateFlagRequest::CopyFrom(const CreateFlagRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CreateFlagRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool CreateFlagRequest::IsInitialized() const { return true; } void CreateFlagRequest::InternalSwap(CreateFlagRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, &other->_impl_.name_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, &other->_impl_.description_, rhs_arena); swap(_impl_.enabled_, other->_impl_.enabled_); } ::google::protobuf::Metadata CreateFlagRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[35]); } // =================================================================== class CreateFlagResponse::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_._has_bits_); static const ::oteldemo::Flag& flag(const CreateFlagResponse* msg); static void set_has_flag(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::oteldemo::Flag& CreateFlagResponse::_Internal::flag(const CreateFlagResponse* msg) { return *msg->_impl_.flag_; } CreateFlagResponse::CreateFlagResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.CreateFlagResponse) } CreateFlagResponse::CreateFlagResponse(const CreateFlagResponse& from) : ::google::protobuf::Message() { CreateFlagResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.flag_){nullptr}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_impl_.flag_ = new ::oteldemo::Flag(*from._impl_.flag_); } // @@protoc_insertion_point(copy_constructor:oteldemo.CreateFlagResponse) } inline void CreateFlagResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){}, /*decltype(_impl_._cached_size_)*/ {}, decltype(_impl_.flag_){nullptr}, }; } CreateFlagResponse::~CreateFlagResponse() { // @@protoc_insertion_point(destructor:oteldemo.CreateFlagResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void CreateFlagResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.flag_; } void CreateFlagResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void CreateFlagResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.CreateFlagResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.flag_ != nullptr); _impl_.flag_->Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* CreateFlagResponse::_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, 1, 0, 2> CreateFlagResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_._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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_CreateFlagResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .oteldemo.Flag flag = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_.flag_)}}, }}, {{ 65535, 65535 }}, {{ // .oteldemo.Flag flag = 1; {PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_.flag_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Flag>()}, }}, {{ }}, }; ::uint8_t* CreateFlagResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CreateFlagResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .oteldemo.Flag flag = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::flag(this), _Internal::flag(this).GetCachedSize(), target, stream); } 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:oteldemo.CreateFlagResponse) return target; } ::size_t CreateFlagResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.CreateFlagResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .oteldemo.Flag flag = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *_impl_.flag_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData CreateFlagResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, CreateFlagResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*CreateFlagResponse::GetClassData() const { return &_class_data_; } void CreateFlagResponse::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:oteldemo.CreateFlagResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_flag()->::oteldemo::Flag::MergeFrom( from._internal_flag()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CreateFlagResponse::CopyFrom(const CreateFlagResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CreateFlagResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool CreateFlagResponse::IsInitialized() const { return true; } void CreateFlagResponse::InternalSwap(CreateFlagResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.flag_, other->_impl_.flag_); } ::google::protobuf::Metadata CreateFlagResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[36]); } // =================================================================== class UpdateFlagRequest::_Internal { public: }; UpdateFlagRequest::UpdateFlagRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.UpdateFlagRequest) } UpdateFlagRequest::UpdateFlagRequest(const UpdateFlagRequest& from) : ::google::protobuf::Message() { UpdateFlagRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.name_){}, decltype(_impl_.enabled_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } _this->_impl_.enabled_ = from._impl_.enabled_; // @@protoc_insertion_point(copy_constructor:oteldemo.UpdateFlagRequest) } inline void UpdateFlagRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.name_){}, decltype(_impl_.enabled_){false}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } UpdateFlagRequest::~UpdateFlagRequest() { // @@protoc_insertion_point(destructor:oteldemo.UpdateFlagRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void UpdateFlagRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_.Destroy(); } void UpdateFlagRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void UpdateFlagRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.UpdateFlagRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _impl_.enabled_ = false; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* UpdateFlagRequest::_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<1, 2, 0, 39, 2> UpdateFlagRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 2, 8, // 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 &_UpdateFlagRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // bool enabled = 2; {::_pbi::TcParser::SingularVarintNoZag1(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.enabled_)}}, // string name = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.name_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; {PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.name_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enabled = 2; {PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.enabled_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBool)}, }}, // no aux_entries {{ "\32\4\0\0\0\0\0\0" "oteldemo.UpdateFlagRequest" "name" }}, }; ::uint8_t* UpdateFlagRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.UpdateFlagRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.UpdateFlagRequest.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // bool enabled = 2; if (this->_internal_enabled() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 2, this->_internal_enabled(), 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:oteldemo.UpdateFlagRequest) return target; } ::size_t UpdateFlagRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.UpdateFlagRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // bool enabled = 2; if (this->_internal_enabled() != 0) { total_size += 2; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData UpdateFlagRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, UpdateFlagRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*UpdateFlagRequest::GetClassData() const { return &_class_data_; } void UpdateFlagRequest::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:oteldemo.UpdateFlagRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } if (from._internal_enabled() != 0) { _this->_internal_set_enabled(from._internal_enabled()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void UpdateFlagRequest::CopyFrom(const UpdateFlagRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.UpdateFlagRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool UpdateFlagRequest::IsInitialized() const { return true; } void UpdateFlagRequest::InternalSwap(UpdateFlagRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, &other->_impl_.name_, rhs_arena); swap(_impl_.enabled_, other->_impl_.enabled_); } ::google::protobuf::Metadata UpdateFlagRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[37]); } // =================================================================== class UpdateFlagResponse::_Internal { public: }; UpdateFlagResponse::UpdateFlagResponse(::google::protobuf::Arena* arena) : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:oteldemo.UpdateFlagResponse) } UpdateFlagResponse::UpdateFlagResponse(const UpdateFlagResponse& from) : ::google::protobuf::internal::ZeroFieldsBase() { UpdateFlagResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.UpdateFlagResponse) } const ::google::protobuf::Message::ClassData UpdateFlagResponse::_class_data_ = { ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, }; const ::google::protobuf::Message::ClassData*UpdateFlagResponse::GetClassData() const { return &_class_data_; } ::google::protobuf::Metadata UpdateFlagResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[38]); } // =================================================================== class ListFlagsRequest::_Internal { public: }; ListFlagsRequest::ListFlagsRequest(::google::protobuf::Arena* arena) : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:oteldemo.ListFlagsRequest) } ListFlagsRequest::ListFlagsRequest(const ListFlagsRequest& from) : ::google::protobuf::internal::ZeroFieldsBase() { ListFlagsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.ListFlagsRequest) } const ::google::protobuf::Message::ClassData ListFlagsRequest::_class_data_ = { ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, }; const ::google::protobuf::Message::ClassData*ListFlagsRequest::GetClassData() const { return &_class_data_; } ::google::protobuf::Metadata ListFlagsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[39]); } // =================================================================== class ListFlagsResponse::_Internal { public: }; ListFlagsResponse::ListFlagsResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.ListFlagsResponse) } ListFlagsResponse::ListFlagsResponse(const ListFlagsResponse& from) : ::google::protobuf::Message() { ListFlagsResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.flag_){from._impl_.flag_}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.ListFlagsResponse) } inline void ListFlagsResponse::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.flag_){arena}, /*decltype(_impl_._cached_size_)*/ {}, }; } ListFlagsResponse::~ListFlagsResponse() { // @@protoc_insertion_point(destructor:oteldemo.ListFlagsResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ListFlagsResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.flag_.~RepeatedPtrField(); } void ListFlagsResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ListFlagsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.ListFlagsResponse) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_flag()->Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ListFlagsResponse::_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, 1, 0, 2> ListFlagsResponse::_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 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_ListFlagsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // repeated .oteldemo.Flag flag = 1; {::_pbi::TcParser::FastMtR1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListFlagsResponse, _impl_.flag_)}}, }}, {{ 65535, 65535 }}, {{ // repeated .oteldemo.Flag flag = 1; {PROTOBUF_FIELD_OFFSET(ListFlagsResponse, _impl_.flag_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::oteldemo::Flag>()}, }}, {{ }}, }; ::uint8_t* ListFlagsResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListFlagsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .oteldemo.Flag flag = 1; for (unsigned i = 0, n = static_cast(this->_internal_flag_size()); i < n; i++) { const auto& repfield = this->_internal_flag().Get(i); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ListFlagsResponse) return target; } ::size_t ListFlagsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.ListFlagsResponse) ::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 .oteldemo.Flag flag = 1; total_size += 1UL * this->_internal_flag_size(); for (const auto& msg : this->_internal_flag()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ListFlagsResponse::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ListFlagsResponse::MergeImpl }; const ::google::protobuf::Message::ClassData*ListFlagsResponse::GetClassData() const { return &_class_data_; } void ListFlagsResponse::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:oteldemo.ListFlagsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_flag()->MergeFrom(from._internal_flag()); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ListFlagsResponse::CopyFrom(const ListFlagsResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListFlagsResponse) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ListFlagsResponse::IsInitialized() const { return true; } void ListFlagsResponse::InternalSwap(ListFlagsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.flag_.InternalSwap(&other->_impl_.flag_); } ::google::protobuf::Metadata ListFlagsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[40]); } // =================================================================== class DeleteFlagRequest::_Internal { public: }; DeleteFlagRequest::DeleteFlagRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:oteldemo.DeleteFlagRequest) } DeleteFlagRequest::DeleteFlagRequest(const DeleteFlagRequest& from) : ::google::protobuf::Message() { DeleteFlagRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.name_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:oteldemo.DeleteFlagRequest) } inline void DeleteFlagRequest::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.name_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } DeleteFlagRequest::~DeleteFlagRequest() { // @@protoc_insertion_point(destructor:oteldemo.DeleteFlagRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void DeleteFlagRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_.Destroy(); } void DeleteFlagRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void DeleteFlagRequest::Clear() { // @@protoc_insertion_point(message_clear_start:oteldemo.DeleteFlagRequest) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* DeleteFlagRequest::_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, 39, 2> DeleteFlagRequest::_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 &_DeleteFlagRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // string name = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteFlagRequest, _impl_.name_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; {PROTOBUF_FIELD_OFFSET(DeleteFlagRequest, _impl_.name_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ "\32\4\0\0\0\0\0\0" "oteldemo.DeleteFlagRequest" "name" }}, }; ::uint8_t* DeleteFlagRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:oteldemo.DeleteFlagRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.DeleteFlagRequest.name"); 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:oteldemo.DeleteFlagRequest) return target; } ::size_t DeleteFlagRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:oteldemo.DeleteFlagRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData DeleteFlagRequest::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, DeleteFlagRequest::MergeImpl }; const ::google::protobuf::Message::ClassData*DeleteFlagRequest::GetClassData() const { return &_class_data_; } void DeleteFlagRequest::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:oteldemo.DeleteFlagRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void DeleteFlagRequest::CopyFrom(const DeleteFlagRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.DeleteFlagRequest) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool DeleteFlagRequest::IsInitialized() const { return true; } void DeleteFlagRequest::InternalSwap(DeleteFlagRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, &other->_impl_.name_, rhs_arena); } ::google::protobuf::Metadata DeleteFlagRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[41]); } // =================================================================== class DeleteFlagResponse::_Internal { public: }; DeleteFlagResponse::DeleteFlagResponse(::google::protobuf::Arena* arena) : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:oteldemo.DeleteFlagResponse) } DeleteFlagResponse::DeleteFlagResponse(const DeleteFlagResponse& from) : ::google::protobuf::internal::ZeroFieldsBase() { DeleteFlagResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:oteldemo.DeleteFlagResponse) } const ::google::protobuf::Message::ClassData DeleteFlagResponse::_class_data_ = { ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, }; const ::google::protobuf::Message::ClassData*DeleteFlagResponse::GetClassData() const { return &_class_data_; } ::google::protobuf::Metadata DeleteFlagResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, file_level_metadata_demo_2eproto[42]); } // @@protoc_insertion_point(namespace_scope) } // namespace oteldemo namespace google { namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc"