From 00036bf331292e4e1b87b8d43a341c10845dbb1c Mon Sep 17 00:00:00 2001 From: viambot Date: Tue, 11 Nov 2025 21:10:46 +0000 Subject: [PATCH] [WORKFLOW] Updating protos from viamrobotics/api, commit: b631a0700058364b74f25052880dd7ce56f7838c --- src/viam/api/api_proto_tag.lock | 2 +- src/viam/api/app/v1/billing.pb.cc | 289 ++++- src/viam/api/app/v1/billing.pb.h | 100 +- src/viam/api/buf.lock | 2 +- src/viam/api/common/v1/common.pb.cc | 643 ++++++++- src/viam/api/common/v1/common.pb.h | 556 +++++++- src/viam/api/component/arm/v1/arm.grpc.pb.cc | 42 + src/viam/api/component/arm/v1/arm.grpc.pb.h | 168 ++- src/viam/api/component/arm/v1/arm.pb.cc | 12 +- .../api/service/video/v1/video.grpc.pb.cc | 127 ++ src/viam/api/service/video/v1/video.grpc.pb.h | 409 ++++++ src/viam/api/service/video/v1/video.pb.cc | 944 ++++++++++++++ src/viam/api/service/video/v1/video.pb.h | 1146 +++++++++++++++++ 13 files changed, 4303 insertions(+), 137 deletions(-) create mode 100644 src/viam/api/service/video/v1/video.grpc.pb.cc create mode 100644 src/viam/api/service/video/v1/video.grpc.pb.h create mode 100644 src/viam/api/service/video/v1/video.pb.cc create mode 100644 src/viam/api/service/video/v1/video.pb.h diff --git a/src/viam/api/api_proto_tag.lock b/src/viam/api/api_proto_tag.lock index 7728a9f96..057355fc9 100644 --- a/src/viam/api/api_proto_tag.lock +++ b/src/viam/api/api_proto_tag.lock @@ -1 +1 @@ -v0.1.484 +v0.1.488 diff --git a/src/viam/api/app/v1/billing.pb.cc b/src/viam/api/app/v1/billing.pb.cc index 055656cc0..8ace3e921 100644 --- a/src/viam/api/app/v1/billing.pb.cc +++ b/src/viam/api/app/v1/billing.pb.cc @@ -331,7 +331,8 @@ struct CreateInvoiceAndChargeImmediatelyRequestDefaultTypeInternal { }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateInvoiceAndChargeImmediatelyRequestDefaultTypeInternal _CreateInvoiceAndChargeImmediatelyRequest_default_instance_; PROTOBUF_CONSTEXPR CreateInvoiceAndChargeImmediatelyResponse::CreateInvoiceAndChargeImmediatelyResponse( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) + : invoice_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct CreateInvoiceAndChargeImmediatelyResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CreateInvoiceAndChargeImmediatelyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -564,6 +565,7 @@ const uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTIO ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateInvoiceAndChargeImmediatelyResponse, invoice_id_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::app::v1::InvoiceSummary)}, @@ -713,72 +715,73 @@ const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTI "iption\210\001\001\0222\n\023org_id_for_branding\030\004 \001(\tH\001" "R\020orgIdForBranding\210\001\001\022#\n\rdisable_email\030\005" " \001(\010R\014disableEmailB\016\n\014_descriptionB\026\n\024_o" - "rg_id_for_branding\"+\n)CreateInvoiceAndCh" - "argeImmediatelyResponse*}\n\021PaymentMethod" - "Type\022#\n\037PAYMENT_METHOD_TYPE_UNSPECIFIED\020" - "\000\022\034\n\030PAYMENT_METHOD_TYPE_CARD\020\001\022%\n!PAYME" - "NT_METHOD_TYPE_USBANKACCOUNT\020\002*\250\010\n\rUsage" - "CostType\022\037\n\033USAGE_COST_TYPE_UNSPECIFIED\020" - "\000\022#\n\033USAGE_COST_TYPE_DATA_UPLOAD\020\001\032\002\010\001\022#" - "\n\033USAGE_COST_TYPE_DATA_EGRESS\020\002\032\002\010\001\022\"\n\036U" - "SAGE_COST_TYPE_REMOTE_CONTROL\020\003\022$\n USAGE" - "_COST_TYPE_STANDARD_COMPUTE\020\004\022%\n\035USAGE_C" - "OST_TYPE_CLOUD_STORAGE\020\005\032\002\010\001\022-\n)USAGE_CO" - "ST_TYPE_BINARY_DATA_CLOUD_STORAGE\020\006\022+\n#U" - "SAGE_COST_TYPE_OTHER_CLOUD_STORAGE\020\007\032\002\010\001" - "\022\037\n\033USAGE_COST_TYPE_PER_MACHINE\020\010\022(\n$USA" - "GE_COST_TYPE_TRIGGER_NOTIFICATION\020\t\022.\n*U" - "SAGE_COST_TYPE_TABULAR_DATA_CLOUD_STORAG" - "E\020\n\0220\n,USAGE_COST_TYPE_CONFIG_HISTORY_CL" - "OUD_STORAGE\020\013\022&\n\"USAGE_COST_TYPE_LOGS_CL" - "OUD_STORAGE\020\014\022/\n+USAGE_COST_TYPE_TRAININ" - "G_LOGS_CLOUD_STORAGE\020\r\022*\n&USAGE_COST_TYP" - "E_PACKAGES_CLOUD_STORAGE\020\016\022&\n\"USAGE_COST" - "_TYPE_BINARY_DATA_UPLOAD\020\017\022\'\n#USAGE_COST" - "_TYPE_TABULAR_DATA_UPLOAD\020\020\022\037\n\033USAGE_COS" - "T_TYPE_LOGS_UPLOAD\020\021\022&\n\"USAGE_COST_TYPE_" - "BINARY_DATA_EGRESS\020\022\022\'\n#USAGE_COST_TYPE_" - "TABULAR_DATA_EGRESS\020\023\022\037\n\033USAGE_COST_TYPE" - "_LOGS_EGRESS\020\024\022(\n$USAGE_COST_TYPE_TRAINI" - "NG_LOGS_EGRESS\020\025\0227\n3USAGE_COST_TYPE_TABU" - "LAR_DATA_DATABASE_CLOUD_STORAGE\020\026\0221\n-USA" - "GE_COST_TYPE_TABULAR_DATA_DATABASE_COMPU" - "TE\020\027\0223\n/USAGE_COST_TYPE_BINARY_DATA_CROS" - "S_REGION_EGRESS\020\030*X\n\nSourceType\022\033\n\027SOURC" - "E_TYPE_UNSPECIFIED\020\000\022\023\n\017SOURCE_TYPE_ORG\020" - "\001\022\030\n\024SOURCE_TYPE_FRAGMENT\020\0022\307\007\n\016BillingS" - "ervice\022k\n\024GetCurrentMonthUsage\022(.viam.ap" - "p.v1.GetCurrentMonthUsageRequest\032).viam." - "app.v1.GetCurrentMonthUsageResponse\022w\n\030G" - "etOrgBillingInformation\022,.viam.app.v1.Ge" - "tOrgBillingInformationRequest\032-.viam.app" - ".v1.GetOrgBillingInformationResponse\022e\n\022" - "GetInvoicesSummary\022&.viam.app.v1.GetInvo" - "icesSummaryRequest\032\'.viam.app.v1.GetInvo" - "icesSummaryResponse\022X\n\rGetInvoicePdf\022!.v" - "iam.app.v1.GetInvoicePdfRequest\032\".viam.a" - "pp.v1.GetInvoicePdfResponse0\001\022w\n\030SendPay" - "mentRequiredEmail\022,.viam.app.v1.SendPaym" - "entRequiredEmailRequest\032-.viam.app.v1.Se" - "ndPaymentRequiredEmailResponse\022w\n\030GetAva" - "ilableBillingTiers\022,.viam.app.v1.GetAvai" - "lableBillingTiersRequest\032-.viam.app.v1.G" - "etAvailableBillingTiersResponse\022\206\001\n\035Upda" - "teOrganizationBillingTier\0221.viam.app.v1." - "UpdateOrganizationBillingTierRequest\0322.v" - "iam.app.v1.UpdateOrganizationBillingTier" - "Response\022\222\001\n!CreateInvoiceAndChargeImmed" - "iately\0225.viam.app.v1.CreateInvoiceAndCha" - "rgeImmediatelyRequest\0326.viam.app.v1.Crea" - "teInvoiceAndChargeImmediatelyResponseB\030Z" - "\026go.viam.com/api/app/v1b\006proto3" + "rg_id_for_branding\"J\n)CreateInvoiceAndCh" + "argeImmediatelyResponse\022\035\n\ninvoice_id\030\001 " + "\001(\tR\tinvoiceId*}\n\021PaymentMethodType\022#\n\037P" + "AYMENT_METHOD_TYPE_UNSPECIFIED\020\000\022\034\n\030PAYM" + "ENT_METHOD_TYPE_CARD\020\001\022%\n!PAYMENT_METHOD" + "_TYPE_USBANKACCOUNT\020\002*\250\010\n\rUsageCostType\022" + "\037\n\033USAGE_COST_TYPE_UNSPECIFIED\020\000\022#\n\033USAG" + "E_COST_TYPE_DATA_UPLOAD\020\001\032\002\010\001\022#\n\033USAGE_C" + "OST_TYPE_DATA_EGRESS\020\002\032\002\010\001\022\"\n\036USAGE_COST" + "_TYPE_REMOTE_CONTROL\020\003\022$\n USAGE_COST_TYP" + "E_STANDARD_COMPUTE\020\004\022%\n\035USAGE_COST_TYPE_" + "CLOUD_STORAGE\020\005\032\002\010\001\022-\n)USAGE_COST_TYPE_B" + "INARY_DATA_CLOUD_STORAGE\020\006\022+\n#USAGE_COST" + "_TYPE_OTHER_CLOUD_STORAGE\020\007\032\002\010\001\022\037\n\033USAGE" + "_COST_TYPE_PER_MACHINE\020\010\022(\n$USAGE_COST_T" + "YPE_TRIGGER_NOTIFICATION\020\t\022.\n*USAGE_COST" + "_TYPE_TABULAR_DATA_CLOUD_STORAGE\020\n\0220\n,US" + "AGE_COST_TYPE_CONFIG_HISTORY_CLOUD_STORA" + "GE\020\013\022&\n\"USAGE_COST_TYPE_LOGS_CLOUD_STORA" + "GE\020\014\022/\n+USAGE_COST_TYPE_TRAINING_LOGS_CL" + "OUD_STORAGE\020\r\022*\n&USAGE_COST_TYPE_PACKAGE" + "S_CLOUD_STORAGE\020\016\022&\n\"USAGE_COST_TYPE_BIN" + "ARY_DATA_UPLOAD\020\017\022\'\n#USAGE_COST_TYPE_TAB" + "ULAR_DATA_UPLOAD\020\020\022\037\n\033USAGE_COST_TYPE_LO" + "GS_UPLOAD\020\021\022&\n\"USAGE_COST_TYPE_BINARY_DA" + "TA_EGRESS\020\022\022\'\n#USAGE_COST_TYPE_TABULAR_D" + "ATA_EGRESS\020\023\022\037\n\033USAGE_COST_TYPE_LOGS_EGR" + "ESS\020\024\022(\n$USAGE_COST_TYPE_TRAINING_LOGS_E" + "GRESS\020\025\0227\n3USAGE_COST_TYPE_TABULAR_DATA_" + "DATABASE_CLOUD_STORAGE\020\026\0221\n-USAGE_COST_T" + "YPE_TABULAR_DATA_DATABASE_COMPUTE\020\027\0223\n/U" + "SAGE_COST_TYPE_BINARY_DATA_CROSS_REGION_" + "EGRESS\020\030*X\n\nSourceType\022\033\n\027SOURCE_TYPE_UN" + "SPECIFIED\020\000\022\023\n\017SOURCE_TYPE_ORG\020\001\022\030\n\024SOUR" + "CE_TYPE_FRAGMENT\020\0022\307\007\n\016BillingService\022k\n" + "\024GetCurrentMonthUsage\022(.viam.app.v1.GetC" + "urrentMonthUsageRequest\032).viam.app.v1.Ge" + "tCurrentMonthUsageResponse\022w\n\030GetOrgBill" + "ingInformation\022,.viam.app.v1.GetOrgBilli" + "ngInformationRequest\032-.viam.app.v1.GetOr" + "gBillingInformationResponse\022e\n\022GetInvoic" + "esSummary\022&.viam.app.v1.GetInvoicesSumma" + "ryRequest\032\'.viam.app.v1.GetInvoicesSumma" + "ryResponse\022X\n\rGetInvoicePdf\022!.viam.app.v" + "1.GetInvoicePdfRequest\032\".viam.app.v1.Get" + "InvoicePdfResponse0\001\022w\n\030SendPaymentRequi" + "redEmail\022,.viam.app.v1.SendPaymentRequir" + "edEmailRequest\032-.viam.app.v1.SendPayment" + "RequiredEmailResponse\022w\n\030GetAvailableBil" + "lingTiers\022,.viam.app.v1.GetAvailableBill" + "ingTiersRequest\032-.viam.app.v1.GetAvailab" + "leBillingTiersResponse\022\206\001\n\035UpdateOrganiz" + "ationBillingTier\0221.viam.app.v1.UpdateOrg" + "anizationBillingTierRequest\0322.viam.app.v" + "1.UpdateOrganizationBillingTierResponse\022" + "\222\001\n!CreateInvoiceAndChargeImmediately\0225." + "viam.app.v1.CreateInvoiceAndChargeImmedi" + "atelyRequest\0326.viam.app.v1.CreateInvoice" + "AndChargeImmediatelyResponseB\030Z\026go.viam." + "com/api/app/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fbilling_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; static ::_pbi::once_flag descriptor_table_app_2fv1_2fbilling_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fbilling_2eproto = { - false, false, 6151, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, + false, false, 6182, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, "app/v1/billing.proto", &descriptor_table_app_2fv1_2fbilling_2eproto_once, descriptor_table_app_2fv1_2fbilling_2eproto_deps, 1, 23, schemas, file_default_instances, TableStruct_app_2fv1_2fbilling_2eproto::offsets, @@ -6429,30 +6432,186 @@ class CreateInvoiceAndChargeImmediatelyResponse::_Internal { CreateInvoiceAndChargeImmediatelyResponse::CreateInvoiceAndChargeImmediatelyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) } CreateInvoiceAndChargeImmediatelyResponse::CreateInvoiceAndChargeImmediatelyResponse(const CreateInvoiceAndChargeImmediatelyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + invoice_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + invoice_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_invoice_id().empty()) { + invoice_id_.Set(from._internal_invoice_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) } +inline void CreateInvoiceAndChargeImmediatelyResponse::SharedCtor() { +invoice_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + invoice_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CreateInvoiceAndChargeImmediatelyResponse::~CreateInvoiceAndChargeImmediatelyResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateInvoiceAndChargeImmediatelyResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + invoice_id_.Destroy(); +} + +void CreateInvoiceAndChargeImmediatelyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateInvoiceAndChargeImmediatelyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + invoice_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateInvoiceAndChargeImmediatelyResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string invoice_id = 1 [json_name = "invoiceId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_invoice_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse.invoice_id")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CreateInvoiceAndChargeImmediatelyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string invoice_id = 1 [json_name = "invoiceId"]; + if (!this->_internal_invoice_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_invoice_id().data(), static_cast(this->_internal_invoice_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse.invoice_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_invoice_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) + return target; +} + +size_t CreateInvoiceAndChargeImmediatelyResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) + 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 invoice_id = 1 [json_name = "invoiceId"]; + if (!this->_internal_invoice_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_invoice_id()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateInvoiceAndChargeImmediatelyResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateInvoiceAndChargeImmediatelyResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateInvoiceAndChargeImmediatelyResponse::GetClassData() const { return &_class_data_; } +void CreateInvoiceAndChargeImmediatelyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} +void CreateInvoiceAndChargeImmediatelyResponse::MergeFrom(const CreateInvoiceAndChargeImmediatelyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_invoice_id().empty()) { + _internal_set_invoice_id(from._internal_invoice_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} +void CreateInvoiceAndChargeImmediatelyResponse::CopyFrom(const CreateInvoiceAndChargeImmediatelyResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} +bool CreateInvoiceAndChargeImmediatelyResponse::IsInitialized() const { + return true; +} +void CreateInvoiceAndChargeImmediatelyResponse::InternalSwap(CreateInvoiceAndChargeImmediatelyResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &invoice_id_, lhs_arena, + &other->invoice_id_, rhs_arena + ); +} ::PROTOBUF_NAMESPACE_ID::Metadata CreateInvoiceAndChargeImmediatelyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( diff --git a/src/viam/api/app/v1/billing.pb.h b/src/viam/api/app/v1/billing.pb.h index b8f4291f4..3f5668e47 100644 --- a/src/viam/api/app/v1/billing.pb.h +++ b/src/viam/api/app/v1/billing.pb.h @@ -4055,9 +4055,10 @@ class CreateInvoiceAndChargeImmediatelyRequest final : // ------------------------------------------------------------------- class CreateInvoiceAndChargeImmediatelyResponse final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) */ { public: inline CreateInvoiceAndChargeImmediatelyResponse() : CreateInvoiceAndChargeImmediatelyResponse(nullptr) {} + ~CreateInvoiceAndChargeImmediatelyResponse() override; explicit PROTOBUF_CONSTEXPR CreateInvoiceAndChargeImmediatelyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CreateInvoiceAndChargeImmediatelyResponse(const CreateInvoiceAndChargeImmediatelyResponse& from); @@ -4130,15 +4131,27 @@ class CreateInvoiceAndChargeImmediatelyResponse final : CreateInvoiceAndChargeImmediatelyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CreateInvoiceAndChargeImmediatelyResponse& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CreateInvoiceAndChargeImmediatelyResponse& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateInvoiceAndChargeImmediatelyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateInvoiceAndChargeImmediatelyResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateInvoiceAndChargeImmediatelyResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -4159,6 +4172,23 @@ class CreateInvoiceAndChargeImmediatelyResponse final : // accessors ------------------------------------------------------- + enum : int { + kInvoiceIdFieldNumber = 1, + }; + // string invoice_id = 1 [json_name = "invoiceId"]; + void clear_invoice_id(); + const std::string& invoice_id() const; + template + void set_invoice_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_invoice_id(); + PROTOBUF_NODISCARD std::string* release_invoice_id(); + void set_allocated_invoice_id(std::string* invoice_id); + private: + const std::string& _internal_invoice_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_invoice_id(const std::string& value); + std::string* _internal_mutable_invoice_id(); + public: + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse) private: class _Internal; @@ -4166,6 +4196,8 @@ class CreateInvoiceAndChargeImmediatelyResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr invoice_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; }; // =================================================================== @@ -7031,6 +7063,56 @@ inline void CreateInvoiceAndChargeImmediatelyRequest::set_disable_email(bool val // CreateInvoiceAndChargeImmediatelyResponse +// string invoice_id = 1 [json_name = "invoiceId"]; +inline void CreateInvoiceAndChargeImmediatelyResponse::clear_invoice_id() { + invoice_id_.ClearToEmpty(); +} +inline const std::string& CreateInvoiceAndChargeImmediatelyResponse::invoice_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse.invoice_id) + return _internal_invoice_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateInvoiceAndChargeImmediatelyResponse::set_invoice_id(ArgT0&& arg0, ArgT... args) { + + invoice_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse.invoice_id) +} +inline std::string* CreateInvoiceAndChargeImmediatelyResponse::mutable_invoice_id() { + std::string* _s = _internal_mutable_invoice_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse.invoice_id) + return _s; +} +inline const std::string& CreateInvoiceAndChargeImmediatelyResponse::_internal_invoice_id() const { + return invoice_id_.Get(); +} +inline void CreateInvoiceAndChargeImmediatelyResponse::_internal_set_invoice_id(const std::string& value) { + + invoice_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateInvoiceAndChargeImmediatelyResponse::_internal_mutable_invoice_id() { + + return invoice_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateInvoiceAndChargeImmediatelyResponse::release_invoice_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse.invoice_id) + return invoice_id_.Release(); +} +inline void CreateInvoiceAndChargeImmediatelyResponse::set_allocated_invoice_id(std::string* invoice_id) { + if (invoice_id != nullptr) { + + } else { + + } + invoice_id_.SetAllocated(invoice_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (invoice_id_.IsDefault()) { + invoice_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse.invoice_id) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index f0a8094f1..1b7e5e316 100644 --- a/src/viam/api/buf.lock +++ b/src/viam/api/buf.lock @@ -8,7 +8,7 @@ deps: - remote: buf.build owner: viamrobotics repository: api - commit: 6fdd95320d0c45308483925b1ac91ca0 + commit: 8a411dd224e14fed940d13207190a276 - remote: buf.build owner: viamrobotics repository: goutils diff --git a/src/viam/api/common/v1/common.pb.cc b/src/viam/api/common/v1/common.pb.cc index 21de8859d..59ce527d0 100644 --- a/src/viam/api/common/v1/common.pb.cc +++ b/src/viam/api/common/v1/common.pb.cc @@ -356,6 +356,42 @@ struct GetGeometriesResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGeometriesResponseDefaultTypeInternal _GetGeometriesResponse_default_instance_; +PROTOBUF_CONSTEXPR Get3DModelsRequest::Get3DModelsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct Get3DModelsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR Get3DModelsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Get3DModelsRequestDefaultTypeInternal() {} + union { + Get3DModelsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Get3DModelsRequestDefaultTypeInternal _Get3DModelsRequest_default_instance_; +PROTOBUF_CONSTEXPR Get3DModelsResponse_ModelsEntry_DoNotUse::Get3DModelsResponse_ModelsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct Get3DModelsResponse_ModelsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Get3DModelsResponse_ModelsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Get3DModelsResponse_ModelsEntry_DoNotUseDefaultTypeInternal() {} + union { + Get3DModelsResponse_ModelsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Get3DModelsResponse_ModelsEntry_DoNotUseDefaultTypeInternal _Get3DModelsResponse_ModelsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Get3DModelsResponse::Get3DModelsResponse( + ::_pbi::ConstantInitialized) + : models_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct Get3DModelsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Get3DModelsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Get3DModelsResponseDefaultTypeInternal() {} + union { + Get3DModelsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Get3DModelsResponseDefaultTypeInternal _Get3DModelsResponse_default_instance_; PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) @@ -455,7 +491,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace v1 } // namespace common } // namespace viam -static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[32]; +static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[35]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2fv1_2fcommon_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_common_2fv1_2fcommon_2eproto = nullptr; @@ -679,6 +715,31 @@ const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesResponse, geometries_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsRequest, extra_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Get3DModelsResponse, models_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -770,13 +831,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 195, -1, -1, sizeof(::viam::common::v1::GetKinematicsResponse)}, { 203, -1, -1, sizeof(::viam::common::v1::GetGeometriesRequest)}, { 211, -1, -1, sizeof(::viam::common::v1::GetGeometriesResponse)}, - { 218, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, - { 226, 234, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, - { 236, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, - { 243, -1, -1, sizeof(::viam::common::v1::LogEntry)}, - { 257, -1, -1, sizeof(::viam::common::v1::AudioInfo)}, - { 266, -1, -1, sizeof(::viam::common::v1::GetPropertiesRequest)}, - { 274, -1, -1, sizeof(::viam::common::v1::GetPropertiesResponse)}, + { 218, -1, -1, sizeof(::viam::common::v1::Get3DModelsRequest)}, + { 226, 234, -1, sizeof(::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse)}, + { 236, -1, -1, sizeof(::viam::common::v1::Get3DModelsResponse)}, + { 243, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, + { 251, 259, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, + { 261, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, + { 268, -1, -1, sizeof(::viam::common::v1::LogEntry)}, + { 282, -1, -1, sizeof(::viam::common::v1::AudioInfo)}, + { 291, -1, -1, sizeof(::viam::common::v1::GetPropertiesRequest)}, + { 299, -1, -1, sizeof(::viam::common::v1::GetPropertiesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -805,6 +869,9 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::common::v1::_GetKinematicsResponse_default_instance_._instance, &::viam::common::v1::_GetGeometriesRequest_default_instance_._instance, &::viam::common::v1::_GetGeometriesResponse_default_instance_._instance, + &::viam::common::v1::_Get3DModelsRequest_default_instance_._instance, + &::viam::common::v1::_Get3DModelsResponse_ModelsEntry_DoNotUse_default_instance_._instance, + &::viam::common::v1::_Get3DModelsResponse_default_instance_._instance, &::viam::common::v1::_GetReadingsRequest_default_instance_._instance, &::viam::common::v1::_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_._instance, &::viam::common::v1::_GetReadingsResponse_default_instance_._instance, @@ -886,37 +953,43 @@ const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SEC "\001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protob" "uf.StructR\005extra\"Q\n\025GetGeometriesRespons" "e\0228\n\ngeometries\030\001 \003(\0132\030.viam.common.v1.G" - "eometryR\ngeometries\"W\n\022GetReadingsReques" + "eometryR\ngeometries\"W\n\022Get3DModelsReques" "t\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.g" - "oogle.protobuf.StructR\005extra\"\271\001\n\023GetRead" - "ingsResponse\022M\n\010readings\030\001 \003(\01321.viam.co" - "mmon.v1.GetReadingsResponse.ReadingsEntr" - "yR\010readings\032S\n\rReadingsEntry\022\020\n\003key\030\001 \001(" - "\tR\003key\022,\n\005value\030\002 \001(\0132\026.google.protobuf." - "ValueR\005value:\0028\001\"\227\002\n\010LogEntry\022\022\n\004host\030\001 " - "\001(\tR\004host\022\024\n\005level\030\002 \001(\tR\005level\022.\n\004time\030" - "\003 \001(\0132\032.google.protobuf.TimestampR\004time\022" - "\037\n\013logger_name\030\004 \001(\tR\nloggerName\022\030\n\007mess" - "age\030\005 \001(\tR\007message\022/\n\006caller\030\006 \001(\0132\027.goo" - "gle.protobuf.StructR\006caller\022\024\n\005stack\030\007 \001" - "(\tR\005stack\022/\n\006fields\030\010 \003(\0132\027.google.proto" - "buf.StructR\006fields\"j\n\tAudioInfo\022\024\n\005codec" - "\030\001 \001(\tR\005codec\022$\n\016sample_rate_hz\030\002 \001(\005R\014s" - "ampleRateHz\022!\n\014num_channels\030\003 \001(\005R\013numCh" - "annels\"Y\n\024GetPropertiesRequest\022\022\n\004name\030\001" - " \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.proto" - "buf.StructR\005extra\"\213\001\n\025GetPropertiesRespo" - "nse\022)\n\020supported_codecs\030\001 \003(\tR\017supported" - "Codecs\022$\n\016sample_rate_hz\030\002 \001(\005R\014sampleRa" - "teHz\022!\n\014num_channels\030\003 \001(\005R\013numChannels*" - "\177\n\024KinematicsFileFormat\022&\n\"KINEMATICS_FI" - "LE_FORMAT_UNSPECIFIED\020\000\022\036\n\032KINEMATICS_FI" - "LE_FORMAT_SVA\020\001\022\037\n\033KINEMATICS_FILE_FORMA" - "T_URDF\020\002:a\n\032safety_heartbeat_monitored\022\036" - ".google.protobuf.MethodOptions\030\244\222\005 \001(\010R\030" - "safetyHeartbeatMonitored\210\001\001B/\n\022com.viam." - "common.v1Z\031go.viam.com/api/common/v1b\006pr" - "oto3" + "oogle.protobuf.StructR\005extra\"\257\001\n\023Get3DMo" + "delsResponse\022G\n\006models\030\001 \003(\0132/.viam.comm" + "on.v1.Get3DModelsResponse.ModelsEntryR\006m" + "odels\032O\n\013ModelsEntry\022\020\n\003key\030\001 \001(\tR\003key\022*" + "\n\005value\030\002 \001(\0132\024.viam.common.v1.MeshR\005val" + "ue:\0028\001\"W\n\022GetReadingsRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extra\"\271\001\n\023GetReadingsResponse\022" + "M\n\010readings\030\001 \003(\01321.viam.common.v1.GetRe" + "adingsResponse.ReadingsEntryR\010readings\032S" + "\n\rReadingsEntry\022\020\n\003key\030\001 \001(\tR\003key\022,\n\005val" + "ue\030\002 \001(\0132\026.google.protobuf.ValueR\005value:" + "\0028\001\"\227\002\n\010LogEntry\022\022\n\004host\030\001 \001(\tR\004host\022\024\n\005" + "level\030\002 \001(\tR\005level\022.\n\004time\030\003 \001(\0132\032.googl" + "e.protobuf.TimestampR\004time\022\037\n\013logger_nam" + "e\030\004 \001(\tR\nloggerName\022\030\n\007message\030\005 \001(\tR\007me" + "ssage\022/\n\006caller\030\006 \001(\0132\027.google.protobuf." + "StructR\006caller\022\024\n\005stack\030\007 \001(\tR\005stack\022/\n\006" + "fields\030\010 \003(\0132\027.google.protobuf.StructR\006f" + "ields\"j\n\tAudioInfo\022\024\n\005codec\030\001 \001(\tR\005codec" + "\022$\n\016sample_rate_hz\030\002 \001(\005R\014sampleRateHz\022!" + "\n\014num_channels\030\003 \001(\005R\013numChannels\"Y\n\024Get" + "PropertiesRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n" + "\005extra\030c \001(\0132\027.google.protobuf.StructR\005e" + "xtra\"\213\001\n\025GetPropertiesResponse\022)\n\020suppor" + "ted_codecs\030\001 \003(\tR\017supportedCodecs\022$\n\016sam" + "ple_rate_hz\030\002 \001(\005R\014sampleRateHz\022!\n\014num_c" + "hannels\030\003 \001(\005R\013numChannels*\177\n\024Kinematics" + "FileFormat\022&\n\"KINEMATICS_FILE_FORMAT_UNS" + "PECIFIED\020\000\022\036\n\032KINEMATICS_FILE_FORMAT_SVA" + "\020\001\022\037\n\033KINEMATICS_FILE_FORMAT_URDF\020\002:a\n\032s" + "afety_heartbeat_monitored\022\036.google.proto" + "buf.MethodOptions\030\244\222\005 \001(\010R\030safetyHeartbe" + "atMonitored\210\001\001B/\n\022com.viam.common.v1Z\031go" + ".viam.com/api/common/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommon_2eproto_deps[3] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, @@ -925,9 +998,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommo }; static ::_pbi::once_flag descriptor_table_common_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_common_2fv1_2fcommon_2eproto = { - false, false, 4044, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, + false, false, 4311, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, "common/v1/common.proto", - &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 32, + &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 35, schemas, file_default_instances, TableStruct_common_2fv1_2fcommon_2eproto::offsets, file_level_metadata_common_2fv1_2fcommon_2eproto, file_level_enum_descriptors_common_2fv1_2fcommon_2eproto, file_level_service_descriptors_common_2fv1_2fcommon_2eproto, @@ -7277,6 +7350,470 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetGeometriesResponse::GetMetadata() const { // =================================================================== +class Get3DModelsRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const Get3DModelsRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +Get3DModelsRequest::_Internal::extra(const Get3DModelsRequest* msg) { + return *msg->extra_; +} +void Get3DModelsRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +Get3DModelsRequest::Get3DModelsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Get3DModelsRequest) +} +Get3DModelsRequest::Get3DModelsRequest(const Get3DModelsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Get3DModelsRequest) +} + +inline void Get3DModelsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; +} + +Get3DModelsRequest::~Get3DModelsRequest() { + // @@protoc_insertion_point(destructor:viam.common.v1.Get3DModelsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Get3DModelsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void Get3DModelsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Get3DModelsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Get3DModelsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Get3DModelsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.Get3DModelsRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Get3DModelsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Get3DModelsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.Get3DModelsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.Get3DModelsRequest) + return target; +} + +size_t Get3DModelsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Get3DModelsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Get3DModelsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Get3DModelsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Get3DModelsRequest::GetClassData() const { return &_class_data_; } + +void Get3DModelsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Get3DModelsRequest::MergeFrom(const Get3DModelsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Get3DModelsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Get3DModelsRequest::CopyFrom(const Get3DModelsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Get3DModelsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Get3DModelsRequest::IsInitialized() const { + return true; +} + +void Get3DModelsRequest::InternalSwap(Get3DModelsRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Get3DModelsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, + file_level_metadata_common_2fv1_2fcommon_2eproto[25]); +} + +// =================================================================== + +Get3DModelsResponse_ModelsEntry_DoNotUse::Get3DModelsResponse_ModelsEntry_DoNotUse() {} +Get3DModelsResponse_ModelsEntry_DoNotUse::Get3DModelsResponse_ModelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void Get3DModelsResponse_ModelsEntry_DoNotUse::MergeFrom(const Get3DModelsResponse_ModelsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Get3DModelsResponse_ModelsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, + file_level_metadata_common_2fv1_2fcommon_2eproto[26]); +} + +// =================================================================== + +class Get3DModelsResponse::_Internal { + public: +}; + +Get3DModelsResponse::Get3DModelsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + models_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &Get3DModelsResponse::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.common.v1.Get3DModelsResponse) +} +Get3DModelsResponse::Get3DModelsResponse(const Get3DModelsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + models_.MergeFrom(from.models_); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Get3DModelsResponse) +} + +inline void Get3DModelsResponse::SharedCtor() { +} + +Get3DModelsResponse::~Get3DModelsResponse() { + // @@protoc_insertion_point(destructor:viam.common.v1.Get3DModelsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void Get3DModelsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + models_.Destruct(); +} + +void Get3DModelsResponse::ArenaDtor(void* object) { + Get3DModelsResponse* _this = reinterpret_cast< Get3DModelsResponse* >(object); + _this->models_.Destruct(); +} +void Get3DModelsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Get3DModelsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.Get3DModelsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + models_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Get3DModelsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // map models = 1 [json_name = "models"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&models_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Get3DModelsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Get3DModelsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map models = 1 [json_name = "models"]; + if (!this->_internal_models().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Get3DModelsResponse_ModelsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_models(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.Get3DModelsResponse.ModelsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.Get3DModelsResponse) + return target; +} + +size_t Get3DModelsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Get3DModelsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map models = 1 [json_name = "models"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_models_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >::const_iterator + it = this->_internal_models().begin(); + it != this->_internal_models().end(); ++it) { + total_size += Get3DModelsResponse_ModelsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Get3DModelsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Get3DModelsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Get3DModelsResponse::GetClassData() const { return &_class_data_; } + +void Get3DModelsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Get3DModelsResponse::MergeFrom(const Get3DModelsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Get3DModelsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + models_.MergeFrom(from.models_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Get3DModelsResponse::CopyFrom(const Get3DModelsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.Get3DModelsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Get3DModelsResponse::IsInitialized() const { + return true; +} + +void Get3DModelsResponse::InternalSwap(Get3DModelsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + models_.InternalSwap(&other->models_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Get3DModelsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, + file_level_metadata_common_2fv1_2fcommon_2eproto[27]); +} + +// =================================================================== + class GetReadingsRequest::_Internal { public: static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetReadingsRequest* msg); @@ -7515,7 +8052,7 @@ void GetReadingsRequest::InternalSwap(GetReadingsRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, - file_level_metadata_common_2fv1_2fcommon_2eproto[25]); + file_level_metadata_common_2fv1_2fcommon_2eproto[28]); } // =================================================================== @@ -7529,7 +8066,7 @@ void GetReadingsResponse_ReadingsEntry_DoNotUse::MergeFrom(const GetReadingsResp ::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse_ReadingsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, - file_level_metadata_common_2fv1_2fcommon_2eproto[26]); + file_level_metadata_common_2fv1_2fcommon_2eproto[29]); } // =================================================================== @@ -7739,7 +8276,7 @@ void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, - file_level_metadata_common_2fv1_2fcommon_2eproto[27]); + file_level_metadata_common_2fv1_2fcommon_2eproto[30]); } // =================================================================== @@ -8264,7 +8801,7 @@ void LogEntry::InternalSwap(LogEntry* other) { ::PROTOBUF_NAMESPACE_ID::Metadata LogEntry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, - file_level_metadata_common_2fv1_2fcommon_2eproto[28]); + file_level_metadata_common_2fv1_2fcommon_2eproto[31]); } // =================================================================== @@ -8519,7 +9056,7 @@ void AudioInfo::InternalSwap(AudioInfo* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AudioInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, - file_level_metadata_common_2fv1_2fcommon_2eproto[29]); + file_level_metadata_common_2fv1_2fcommon_2eproto[32]); } // =================================================================== @@ -8762,7 +9299,7 @@ void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, - file_level_metadata_common_2fv1_2fcommon_2eproto[30]); + file_level_metadata_common_2fv1_2fcommon_2eproto[33]); } // =================================================================== @@ -9005,7 +9542,7 @@ void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, - file_level_metadata_common_2fv1_2fcommon_2eproto[31]); + file_level_metadata_common_2fv1_2fcommon_2eproto[34]); } PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false> @@ -9116,6 +9653,18 @@ template<> PROTOBUF_NOINLINE ::viam::common::v1::GetGeometriesResponse* Arena::CreateMaybeMessage< ::viam::common::v1::GetGeometriesResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::common::v1::GetGeometriesResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::common::v1::Get3DModelsRequest* +Arena::CreateMaybeMessage< ::viam::common::v1::Get3DModelsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Get3DModelsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Get3DModelsResponse* +Arena::CreateMaybeMessage< ::viam::common::v1::Get3DModelsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Get3DModelsResponse >(arena); +} template<> PROTOBUF_NOINLINE ::viam::common::v1::GetReadingsRequest* Arena::CreateMaybeMessage< ::viam::common::v1::GetReadingsRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::common::v1::GetReadingsRequest >(arena); diff --git a/src/viam/api/common/v1/common.pb.h b/src/viam/api/common/v1/common.pb.h index ed87cd723..aac9df87f 100644 --- a/src/viam/api/common/v1/common.pb.h +++ b/src/viam/api/common/v1/common.pb.h @@ -81,6 +81,15 @@ extern GeometriesInFrameDefaultTypeInternal _GeometriesInFrame_default_instance_ class Geometry; struct GeometryDefaultTypeInternal; extern GeometryDefaultTypeInternal _Geometry_default_instance_; +class Get3DModelsRequest; +struct Get3DModelsRequestDefaultTypeInternal; +extern Get3DModelsRequestDefaultTypeInternal _Get3DModelsRequest_default_instance_; +class Get3DModelsResponse; +struct Get3DModelsResponseDefaultTypeInternal; +extern Get3DModelsResponseDefaultTypeInternal _Get3DModelsResponse_default_instance_; +class Get3DModelsResponse_ModelsEntry_DoNotUse; +struct Get3DModelsResponse_ModelsEntry_DoNotUseDefaultTypeInternal; +extern Get3DModelsResponse_ModelsEntry_DoNotUseDefaultTypeInternal _Get3DModelsResponse_ModelsEntry_DoNotUse_default_instance_; class GetGeometriesRequest; struct GetGeometriesRequestDefaultTypeInternal; extern GetGeometriesRequestDefaultTypeInternal _GetGeometriesRequest_default_instance_; @@ -163,6 +172,9 @@ template<> ::viam::common::v1::GeoGeometry* Arena::CreateMaybeMessage<::viam::co template<> ::viam::common::v1::GeoPoint* Arena::CreateMaybeMessage<::viam::common::v1::GeoPoint>(Arena*); template<> ::viam::common::v1::GeometriesInFrame* Arena::CreateMaybeMessage<::viam::common::v1::GeometriesInFrame>(Arena*); template<> ::viam::common::v1::Geometry* Arena::CreateMaybeMessage<::viam::common::v1::Geometry>(Arena*); +template<> ::viam::common::v1::Get3DModelsRequest* Arena::CreateMaybeMessage<::viam::common::v1::Get3DModelsRequest>(Arena*); +template<> ::viam::common::v1::Get3DModelsResponse* Arena::CreateMaybeMessage<::viam::common::v1::Get3DModelsResponse>(Arena*); +template<> ::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::common::v1::Get3DModelsResponse_ModelsEntry_DoNotUse>(Arena*); template<> ::viam::common::v1::GetGeometriesRequest* Arena::CreateMaybeMessage<::viam::common::v1::GetGeometriesRequest>(Arena*); template<> ::viam::common::v1::GetGeometriesResponse* Arena::CreateMaybeMessage<::viam::common::v1::GetGeometriesResponse>(Arena*); template<> ::viam::common::v1::GetKinematicsRequest* Arena::CreateMaybeMessage<::viam::common::v1::GetKinematicsRequest>(Arena*); @@ -4509,6 +4521,358 @@ class GetGeometriesResponse final : }; // ------------------------------------------------------------------- +class Get3DModelsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Get3DModelsRequest) */ { + public: + inline Get3DModelsRequest() : Get3DModelsRequest(nullptr) {} + ~Get3DModelsRequest() override; + explicit PROTOBUF_CONSTEXPR Get3DModelsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Get3DModelsRequest(const Get3DModelsRequest& from); + Get3DModelsRequest(Get3DModelsRequest&& from) noexcept + : Get3DModelsRequest() { + *this = ::std::move(from); + } + + inline Get3DModelsRequest& operator=(const Get3DModelsRequest& from) { + CopyFrom(from); + return *this; + } + inline Get3DModelsRequest& operator=(Get3DModelsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Get3DModelsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const Get3DModelsRequest* internal_default_instance() { + return reinterpret_cast( + &_Get3DModelsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(Get3DModelsRequest& a, Get3DModelsRequest& b) { + a.Swap(&b); + } + inline void Swap(Get3DModelsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Get3DModelsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Get3DModelsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Get3DModelsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Get3DModelsRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Get3DModelsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Get3DModelsRequest"; + } + protected: + explicit Get3DModelsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.Get3DModelsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Get3DModelsResponse_ModelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Get3DModelsResponse_ModelsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Get3DModelsResponse_ModelsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Get3DModelsResponse_ModelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Get3DModelsResponse_ModelsEntry_DoNotUse& other); + static const Get3DModelsResponse_ModelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Get3DModelsResponse_ModelsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.common.v1.Get3DModelsResponse.ModelsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; + +// ------------------------------------------------------------------- + +class Get3DModelsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Get3DModelsResponse) */ { + public: + inline Get3DModelsResponse() : Get3DModelsResponse(nullptr) {} + ~Get3DModelsResponse() override; + explicit PROTOBUF_CONSTEXPR Get3DModelsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Get3DModelsResponse(const Get3DModelsResponse& from); + Get3DModelsResponse(Get3DModelsResponse&& from) noexcept + : Get3DModelsResponse() { + *this = ::std::move(from); + } + + inline Get3DModelsResponse& operator=(const Get3DModelsResponse& from) { + CopyFrom(from); + return *this; + } + inline Get3DModelsResponse& operator=(Get3DModelsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Get3DModelsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const Get3DModelsResponse* internal_default_instance() { + return reinterpret_cast( + &_Get3DModelsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(Get3DModelsResponse& a, Get3DModelsResponse& b) { + a.Swap(&b); + } + inline void Swap(Get3DModelsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Get3DModelsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Get3DModelsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Get3DModelsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Get3DModelsResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Get3DModelsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Get3DModelsResponse"; + } + protected: + explicit Get3DModelsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kModelsFieldNumber = 1, + }; + // map models = 1 [json_name = "models"]; + int models_size() const; + private: + int _internal_models_size() const; + public: + void clear_models(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >& + _internal_models() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >* + _internal_mutable_models(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >& + models() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >* + mutable_models(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.Get3DModelsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Get3DModelsResponse_ModelsEntry_DoNotUse, + std::string, ::viam::common::v1::Mesh, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> models_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + class GetReadingsRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetReadingsRequest) */ { public: @@ -4557,7 +4921,7 @@ class GetReadingsRequest final : &_GetReadingsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 28; friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { a.Swap(&b); @@ -4751,7 +5115,7 @@ class GetReadingsResponse final : &_GetReadingsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 30; friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { a.Swap(&b); @@ -4909,7 +5273,7 @@ class LogEntry final : &_LogEntry_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 31; friend void swap(LogEntry& a, LogEntry& b) { a.Swap(&b); @@ -5181,7 +5545,7 @@ class AudioInfo final : &_AudioInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 32; friend void swap(AudioInfo& a, AudioInfo& b) { a.Swap(&b); @@ -5351,7 +5715,7 @@ class GetPropertiesRequest final : &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 33; friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); @@ -5519,7 +5883,7 @@ class GetPropertiesResponse final : &_GetPropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 34; friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { a.Swap(&b); @@ -8755,6 +9119,180 @@ GetGeometriesResponse::geometries() const { // ------------------------------------------------------------------- +// Get3DModelsRequest + +// string name = 1 [json_name = "name"]; +inline void Get3DModelsRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& Get3DModelsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Get3DModelsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Get3DModelsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.Get3DModelsRequest.name) +} +inline std::string* Get3DModelsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Get3DModelsRequest.name) + return _s; +} +inline const std::string& Get3DModelsRequest::_internal_name() const { + return name_.Get(); +} +inline void Get3DModelsRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Get3DModelsRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Get3DModelsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.common.v1.Get3DModelsRequest.name) + return name_.Release(); +} +inline void Get3DModelsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Get3DModelsRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool Get3DModelsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool Get3DModelsRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Get3DModelsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Get3DModelsRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.common.v1.Get3DModelsRequest.extra) + return _internal_extra(); +} +inline void Get3DModelsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); + } + extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Get3DModelsRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Get3DModelsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Get3DModelsRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.common.v1.Get3DModelsRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Get3DModelsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* Get3DModelsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.Get3DModelsRequest.extra) + return _msg; +} +inline void Get3DModelsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); + } + if (extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra)); + if (message_arena != submessage_arena) { + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); + } + + } else { + + } + extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Get3DModelsRequest.extra) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Get3DModelsResponse + +// map models = 1 [json_name = "models"]; +inline int Get3DModelsResponse::_internal_models_size() const { + return models_.size(); +} +inline int Get3DModelsResponse::models_size() const { + return _internal_models_size(); +} +inline void Get3DModelsResponse::clear_models() { + models_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >& +Get3DModelsResponse::_internal_models() const { + return models_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >& +Get3DModelsResponse::models() const { + // @@protoc_insertion_point(field_map:viam.common.v1.Get3DModelsResponse.models) + return _internal_models(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >* +Get3DModelsResponse::_internal_mutable_models() { + return models_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::Mesh >* +Get3DModelsResponse::mutable_models() { + // @@protoc_insertion_point(field_mutable_map:viam.common.v1.Get3DModelsResponse.models) + return _internal_mutable_models(); +} + +// ------------------------------------------------------------------- + // GetReadingsRequest // string name = 1 [json_name = "name"]; @@ -9802,6 +10340,12 @@ inline void GetPropertiesResponse::set_num_channels(int32_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/component/arm/v1/arm.grpc.pb.cc b/src/viam/api/component/arm/v1/arm.grpc.pb.cc index f89ec8431..928234a43 100644 --- a/src/viam/api/component/arm/v1/arm.grpc.pb.cc +++ b/src/viam/api/component/arm/v1/arm.grpc.pb.cc @@ -35,6 +35,7 @@ static const char* ArmService_method_names[] = { "/viam.component.arm.v1.ArmService/DoCommand", "/viam.component.arm.v1.ArmService/GetKinematics", "/viam.component.arm.v1.ArmService/GetGeometries", + "/viam.component.arm.v1.ArmService/Get3DModels", }; std::unique_ptr< ArmService::Stub> ArmService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -54,6 +55,7 @@ ArmService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel , rpcmethod_DoCommand_(ArmService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetKinematics_(ArmService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetGeometries_(ArmService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Get3DModels_(ArmService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ArmService::Stub::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::viam::component::arm::v1::GetEndPositionResponse* response) { @@ -286,6 +288,29 @@ ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* A return result; } +::grpc::Status ArmService::Stub::Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::viam::common::v1::Get3DModelsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Get3DModels_, context, request, response); +} + +void ArmService::Stub::async::Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Get3DModels_, context, request, response, std::move(f)); +} + +void ArmService::Stub::async::Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Get3DModels_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>* ArmService::Stub::PrepareAsyncGet3DModelsRaw(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::Get3DModelsResponse, ::viam::common::v1::Get3DModelsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Get3DModels_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>* ArmService::Stub::AsyncGet3DModelsRaw(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGet3DModelsRaw(context, request, cq); + result->StartCall(); + return result; +} + ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[0], @@ -387,6 +412,16 @@ ArmService::Service::Service() { ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArmService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ArmService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::common::v1::Get3DModelsRequest* req, + ::viam::common::v1::Get3DModelsResponse* resp) { + return service->Get3DModels(ctx, req, resp); + }, this))); } ArmService::Service::~Service() { @@ -462,6 +497,13 @@ ::grpc::Status ArmService::Service::GetGeometries(::grpc::ServerContext* context return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ArmService::Service::Get3DModels(::grpc::ServerContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace viam } // namespace component diff --git a/src/viam/api/component/arm/v1/arm.grpc.pb.h b/src/viam/api/component/arm/v1/arm.grpc.pb.h index b498a5176..cde367f31 100644 --- a/src/viam/api/component/arm/v1/arm.grpc.pb.h +++ b/src/viam/api/component/arm/v1/arm.grpc.pb.h @@ -123,6 +123,14 @@ class ArmService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>> PrepareAsyncGetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>>(PrepareAsyncGetGeometriesRaw(context, request, cq)); } + // Get3DModels returns the 3D models of the component + virtual ::grpc::Status Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::viam::common::v1::Get3DModelsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::Get3DModelsResponse>> AsyncGet3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::Get3DModelsResponse>>(AsyncGet3DModelsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::Get3DModelsResponse>> PrepareAsyncGet3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::Get3DModelsResponse>>(PrepareAsyncGet3DModelsRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -160,6 +168,9 @@ class ArmService final { // GetGeometries returns the geometries of the component in their current configuration virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Get3DModels returns the 3D models of the component + virtual void Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response, std::function) = 0; + virtual void Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -185,6 +196,8 @@ class ArmService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetKinematicsResponse>* PrepareAsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::Get3DModelsResponse>* AsyncGet3DModelsRaw(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::Get3DModelsResponse>* PrepareAsyncGet3DModelsRaw(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -259,6 +272,13 @@ class ArmService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>> PrepareAsyncGetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>>(PrepareAsyncGetGeometriesRaw(context, request, cq)); } + ::grpc::Status Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::viam::common::v1::Get3DModelsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>> AsyncGet3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>>(AsyncGet3DModelsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>> PrepareAsyncGet3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>>(PrepareAsyncGet3DModelsRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -282,6 +302,8 @@ class ArmService final { void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response, std::function) override; + void Get3DModels(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -313,6 +335,8 @@ class ArmService final { ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* PrepareAsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>* AsyncGet3DModelsRaw(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::Get3DModelsResponse>* PrepareAsyncGet3DModelsRaw(::grpc::ClientContext* context, const ::viam::common::v1::Get3DModelsRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetEndPosition_; const ::grpc::internal::RpcMethod rpcmethod_MoveToPosition_; const ::grpc::internal::RpcMethod rpcmethod_GetJointPositions_; @@ -323,6 +347,7 @@ class ArmService final { const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; const ::grpc::internal::RpcMethod rpcmethod_GetKinematics_; const ::grpc::internal::RpcMethod rpcmethod_GetGeometries_; + const ::grpc::internal::RpcMethod rpcmethod_Get3DModels_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -354,6 +379,8 @@ class ArmService final { virtual ::grpc::Status GetKinematics(::grpc::ServerContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response); // GetGeometries returns the geometries of the component in their current configuration virtual ::grpc::Status GetGeometries(::grpc::ServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response); + // Get3DModels returns the 3D models of the component + virtual ::grpc::Status Get3DModels(::grpc::ServerContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response); }; template class WithAsyncMethod_GetEndPosition : public BaseClass { @@ -555,7 +582,27 @@ class ArmService final { ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetEndPosition > > > > > > > > > AsyncService; + template + class WithAsyncMethod_Get3DModels : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Get3DModels() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_Get3DModels() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get3DModels(::grpc::ServerContext* /*context*/, const ::viam::common::v1::Get3DModelsRequest* /*request*/, ::viam::common::v1::Get3DModelsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGet3DModels(::grpc::ServerContext* context, ::viam::common::v1::Get3DModelsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::Get3DModelsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetEndPosition > > > > > > > > > > AsyncService; template class WithCallbackMethod_GetEndPosition : public BaseClass { private: @@ -826,7 +873,34 @@ class ArmService final { virtual ::grpc::ServerUnaryReactor* GetGeometries( ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_GetEndPosition > > > > > > > > > CallbackService; + template + class WithCallbackMethod_Get3DModels : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Get3DModels() { + ::grpc::Service::MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::common::v1::Get3DModelsRequest* request, ::viam::common::v1::Get3DModelsResponse* response) { return this->Get3DModels(context, request, response); }));} + void SetMessageAllocatorFor_Get3DModels( + ::grpc::MessageAllocator< ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Get3DModels() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get3DModels(::grpc::ServerContext* /*context*/, const ::viam::common::v1::Get3DModelsRequest* /*request*/, ::viam::common::v1::Get3DModelsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Get3DModels( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::Get3DModelsRequest* /*request*/, ::viam::common::v1::Get3DModelsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetEndPosition > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_GetEndPosition : public BaseClass { @@ -999,6 +1073,23 @@ class ArmService final { } }; template + class WithGenericMethod_Get3DModels : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Get3DModels() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_Get3DModels() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get3DModels(::grpc::ServerContext* /*context*/, const ::viam::common::v1::Get3DModelsRequest* /*request*/, ::viam::common::v1::Get3DModelsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_GetEndPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1199,6 +1290,26 @@ class ArmService final { } }; template + class WithRawMethod_Get3DModels : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Get3DModels() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_Get3DModels() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get3DModels(::grpc::ServerContext* /*context*/, const ::viam::common::v1::Get3DModelsRequest* /*request*/, ::viam::common::v1::Get3DModelsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGet3DModels(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawCallbackMethod_GetEndPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1419,6 +1530,28 @@ class ArmService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_Get3DModels : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Get3DModels() { + ::grpc::Service::MarkMethodRawCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Get3DModels(context, request, response); })); + } + ~WithRawCallbackMethod_Get3DModels() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Get3DModels(::grpc::ServerContext* /*context*/, const ::viam::common::v1::Get3DModelsRequest* /*request*/, ::viam::common::v1::Get3DModelsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Get3DModels( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_GetEndPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1688,9 +1821,36 @@ class ArmService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetGeometries(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest,::viam::common::v1::GetGeometriesResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetEndPosition > > > > > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_Get3DModels : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Get3DModels() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::common::v1::Get3DModelsRequest, ::viam::common::v1::Get3DModelsResponse>* streamer) { + return this->StreamedGet3DModels(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Get3DModels() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Get3DModels(::grpc::ServerContext* /*context*/, const ::viam::common::v1::Get3DModelsRequest* /*request*/, ::viam::common::v1::Get3DModelsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGet3DModels(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::Get3DModelsRequest,::viam::common::v1::Get3DModelsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetEndPosition > > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_GetEndPosition > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_GetEndPosition > > > > > > > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/component/arm/v1/arm.pb.cc b/src/viam/api/component/arm/v1/arm.pb.cc index f6ecd9c97..d85cc2a00 100644 --- a/src/viam/api/component/arm/v1/arm.pb.cc +++ b/src/viam/api/component/arm/v1/arm.pb.cc @@ -464,7 +464,7 @@ const char descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto[] PROTOB "ax_vel_degs_per_sec\030\001 \001(\001H\000R\020maxVelDegsP" "erSec\210\001\001\0225\n\025max_acc_degs_per_sec2\030\002 \001(\001H" "\001R\021maxAccDegsPerSec2\210\001\001B\027\n\025_max_vel_degs" - "_per_secB\030\n\026_max_acc_degs_per_sec22\361\014\n\nA" + "_per_secB\030\n\026_max_acc_degs_per_sec22\377\r\n\nA" "rmService\022\241\001\n\016GetEndPosition\022,.viam.comp" "onent.arm.v1.GetEndPositionRequest\032-.via" "m.component.arm.v1.GetEndPositionRespons" @@ -506,8 +506,12 @@ const char descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto[] PROTOB "am.common.v1.GetGeometriesRequest\032%.viam" ".common.v1.GetGeometriesResponse\"4\202\323\344\223\002." "\022,/viam/api/v1/component/arm/{name}/geom" - "etriesB=\n\031com.viam.component.arm.v1Z go." - "viam.com/api/component/arm/v1b\006proto3" + "etries\022\213\001\n\013Get3DModels\022\".viam.common.v1." + "Get3DModelsRequest\032#.viam.common.v1.Get3" + "DModelsResponse\"3\202\323\344\223\002-\022+/viam/api/v1/co" + "mponent/arm/{name}/3d_modelsB=\n\031com.viam" + ".component.arm.v1Z go.viam.com/api/compo" + "nent/arm/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_component_2farm_2fv1_2farm_2eproto_deps[3] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -516,7 +520,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_component_2farm_2fv }; static ::_pbi::once_flag descriptor_table_component_2farm_2fv1_2farm_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2farm_2fv1_2farm_2eproto = { - false, false, 3437, descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto, + false, false, 3579, descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto, "component/arm/v1/arm.proto", &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, descriptor_table_component_2farm_2fv1_2farm_2eproto_deps, 3, 17, schemas, file_default_instances, TableStruct_component_2farm_2fv1_2farm_2eproto::offsets, diff --git a/src/viam/api/service/video/v1/video.grpc.pb.cc b/src/viam/api/service/video/v1/video.grpc.pb.cc new file mode 100644 index 000000000..d1d6cb7b7 --- /dev/null +++ b/src/viam/api/service/video/v1/video.grpc.pb.cc @@ -0,0 +1,127 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/video/v1/video.proto + +#include "service/video/v1/video.pb.h" +#include "service/video/v1/video.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace video { +namespace v1 { + +static const char* VideoService_method_names[] = { + "/viam.service.video.v1.VideoService/GetVideo", + "/viam.service.video.v1.VideoService/DoCommand", +}; + +std::unique_ptr< VideoService::Stub> VideoService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< VideoService::Stub> stub(new VideoService::Stub(channel, options)); + return stub; +} + +VideoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetVideo_(VideoService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_DoCommand_(VideoService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::ClientReader< ::viam::service::video::v1::GetVideoResponse>* VideoService::Stub::GetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::viam::service::video::v1::GetVideoResponse>::Create(channel_.get(), rpcmethod_GetVideo_, context, request); +} + +void VideoService::Stub::async::GetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest* request, ::grpc::ClientReadReactor< ::viam::service::video::v1::GetVideoResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::viam::service::video::v1::GetVideoResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetVideo_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>* VideoService::Stub::AsyncGetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::service::video::v1::GetVideoResponse>::Create(channel_.get(), cq, rpcmethod_GetVideo_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>* VideoService::Stub::PrepareAsyncGetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::viam::service::video::v1::GetVideoResponse>::Create(channel_.get(), cq, rpcmethod_GetVideo_, context, request, false, nullptr); +} + +::grpc::Status VideoService::Stub::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DoCommand_, context, request, response); +} + +void VideoService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void VideoService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* VideoService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* VideoService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDoCommandRaw(context, request, cq); + result->StartCall(); + return result; +} + +VideoService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + VideoService_method_names[0], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< VideoService::Service, ::viam::service::video::v1::GetVideoRequest, ::viam::service::video::v1::GetVideoResponse>( + [](VideoService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::service::video::v1::GetVideoRequest* req, + ::grpc::ServerWriter<::viam::service::video::v1::GetVideoResponse>* writer) { + return service->GetVideo(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VideoService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VideoService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VideoService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::common::v1::DoCommandRequest* req, + ::viam::common::v1::DoCommandResponse* resp) { + return service->DoCommand(ctx, req, resp); + }, this))); +} + +VideoService::Service::~Service() { +} + +::grpc::Status VideoService::Service::GetVideo(::grpc::ServerContext* context, const ::viam::service::video::v1::GetVideoRequest* request, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VideoService::Service::DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace video +} // namespace v1 + diff --git a/src/viam/api/service/video/v1/video.grpc.pb.h b/src/viam/api/service/video/v1/video.grpc.pb.h new file mode 100644 index 000000000..8170b89ea --- /dev/null +++ b/src/viam/api/service/video/v1/video.grpc.pb.h @@ -0,0 +1,409 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/video/v1/video.proto +#ifndef GRPC_service_2fvideo_2fv1_2fvideo_2eproto__INCLUDED +#define GRPC_service_2fvideo_2fv1_2fvideo_2eproto__INCLUDED + +#include "service/video/v1/video.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace service { +namespace video { +namespace v1 { + +// VideoService services video streaming and retrieval +class VideoService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.video.v1.VideoService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // GetVideo retrieves a video for a given time range + std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::service::video::v1::GetVideoResponse>> GetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::viam::service::video::v1::GetVideoResponse>>(GetVideoRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::service::video::v1::GetVideoResponse>> AsyncGetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::service::video::v1::GetVideoResponse>>(AsyncGetVideoRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::service::video::v1::GetVideoResponse>> PrepareAsyncGetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::service::video::v1::GetVideoResponse>>(PrepareAsyncGetVideoRaw(context, request, cq)); + } + // DoCommand sends/receives arbitrary commands + virtual ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // GetVideo retrieves a video for a given time range + virtual void GetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest* request, ::grpc::ClientReadReactor< ::viam::service::video::v1::GetVideoResponse>* reactor) = 0; + // DoCommand sends/receives arbitrary commands + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientReaderInterface< ::viam::service::video::v1::GetVideoResponse>* GetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::service::video::v1::GetVideoResponse>* AsyncGetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::viam::service::video::v1::GetVideoResponse>* PrepareAsyncGetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + std::unique_ptr< ::grpc::ClientReader< ::viam::service::video::v1::GetVideoResponse>> GetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::viam::service::video::v1::GetVideoResponse>>(GetVideoRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>> AsyncGetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>>(AsyncGetVideoRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>> PrepareAsyncGetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>>(PrepareAsyncGetVideoRaw(context, request, cq)); + } + ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetVideo(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest* request, ::grpc::ClientReadReactor< ::viam::service::video::v1::GetVideoResponse>* reactor) override; + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientReader< ::viam::service::video::v1::GetVideoResponse>* GetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request) override; + ::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>* AsyncGetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::viam::service::video::v1::GetVideoResponse>* PrepareAsyncGetVideoRaw(::grpc::ClientContext* context, const ::viam::service::video::v1::GetVideoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetVideo_; + const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // GetVideo retrieves a video for a given time range + virtual ::grpc::Status GetVideo(::grpc::ServerContext* context, const ::viam::service::video::v1::GetVideoRequest* request, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* writer); + // DoCommand sends/receives arbitrary commands + virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); + }; + template + class WithAsyncMethod_GetVideo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetVideo() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetVideo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVideo(::grpc::ServerContext* /*context*/, const ::viam::service::video::v1::GetVideoRequest* /*request*/, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetVideo(::grpc::ServerContext* context, ::viam::service::video::v1::GetVideoRequest* request, ::grpc::ServerAsyncWriter< ::viam::service::video::v1::GetVideoResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DoCommand() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDoCommand(::grpc::ServerContext* context, ::viam::common::v1::DoCommandRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::DoCommandResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetVideo > AsyncService; + template + class WithCallbackMethod_GetVideo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetVideo() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackServerStreamingHandler< ::viam::service::video::v1::GetVideoRequest, ::viam::service::video::v1::GetVideoResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::service::video::v1::GetVideoRequest* request) { return this->GetVideo(context, request); })); + } + ~WithCallbackMethod_GetVideo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVideo(::grpc::ServerContext* /*context*/, const ::viam::service::video::v1::GetVideoRequest* /*request*/, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::viam::service::video::v1::GetVideoResponse>* GetVideo( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::video::v1::GetVideoRequest* /*request*/) { return nullptr; } + }; + template + class WithCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DoCommand() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { return this->DoCommand(context, request, response); }));} + void SetMessageAllocatorFor_DoCommand( + ::grpc::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetVideo > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetVideo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetVideo() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetVideo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVideo(::grpc::ServerContext* /*context*/, const ::viam::service::video::v1::GetVideoRequest* /*request*/, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DoCommand() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetVideo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetVideo() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetVideo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVideo(::grpc::ServerContext* /*context*/, const ::viam::service::video::v1::GetVideoRequest* /*request*/, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetVideo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DoCommand() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDoCommand(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetVideo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetVideo() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->GetVideo(context, request); })); + } + ~WithRawCallbackMethod_GetVideo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVideo(::grpc::ServerContext* /*context*/, const ::viam::service::video::v1::GetVideoRequest* /*request*/, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetVideo( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DoCommand() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~WithRawCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DoCommand() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { + return this->StreamedDoCommand(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDoCommand(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest,::viam::common::v1::DoCommandResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_DoCommand StreamedUnaryService; + template + class WithSplitStreamingMethod_GetVideo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_GetVideo() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::SplitServerStreamingHandler< + ::viam::service::video::v1::GetVideoRequest, ::viam::service::video::v1::GetVideoResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::viam::service::video::v1::GetVideoRequest, ::viam::service::video::v1::GetVideoResponse>* streamer) { + return this->StreamedGetVideo(context, + streamer); + })); + } + ~WithSplitStreamingMethod_GetVideo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetVideo(::grpc::ServerContext* /*context*/, const ::viam::service::video::v1::GetVideoRequest* /*request*/, ::grpc::ServerWriter< ::viam::service::video::v1::GetVideoResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedGetVideo(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::service::video::v1::GetVideoRequest,::viam::service::video::v1::GetVideoResponse>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_GetVideo SplitStreamedService; + typedef WithSplitStreamingMethod_GetVideo > StreamedService; +}; + +} // namespace v1 +} // namespace video +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fvideo_2fv1_2fvideo_2eproto__INCLUDED diff --git a/src/viam/api/service/video/v1/video.pb.cc b/src/viam/api/service/video/v1/video.pb.cc new file mode 100644 index 000000000..803a178ef --- /dev/null +++ b/src/viam/api/service/video/v1/video.pb.cc @@ -0,0 +1,944 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/video/v1/video.proto + +#include "service/video/v1/video.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace viam { +namespace service { +namespace video { +namespace v1 { +PROTOBUF_CONSTEXPR GetVideoRequest::GetVideoRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , video_codec_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , video_container_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , request_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , start_timestamp_(nullptr) + , end_timestamp_(nullptr) + , extra_(nullptr){} +struct GetVideoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetVideoRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetVideoRequestDefaultTypeInternal() {} + union { + GetVideoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVideoRequestDefaultTypeInternal _GetVideoRequest_default_instance_; +PROTOBUF_CONSTEXPR GetVideoResponse::GetVideoResponse( + ::_pbi::ConstantInitialized) + : video_data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , video_container_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , request_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetVideoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetVideoResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetVideoResponseDefaultTypeInternal() {} + union { + GetVideoResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVideoResponseDefaultTypeInternal _GetVideoResponse_default_instance_; +} // namespace v1 +} // namespace video +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fvideo_2fv1_2fvideo_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fvideo_2fv1_2fvideo_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fvideo_2fv1_2fvideo_2eproto = nullptr; + +const uint32_t TableStruct_service_2fvideo_2fv1_2fvideo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, start_timestamp_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, end_timestamp_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, video_codec_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, video_container_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, request_id_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoResponse, video_data_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoResponse, video_container_), + PROTOBUF_FIELD_OFFSET(::viam::service::video::v1::GetVideoResponse, request_id_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::video::v1::GetVideoRequest)}, + { 13, -1, -1, sizeof(::viam::service::video::v1::GetVideoResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::video::v1::_GetVideoRequest_default_instance_._instance, + &::viam::service::video::v1::_GetVideoResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fvideo_2fv1_2fvideo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\034service/video/v1/video.proto\022\025viam.ser" + "vice.video.v1\032\026common/v1/common.proto\032\034g" + "oogle/api/annotations.proto\032\034google/prot" + "obuf/struct.proto\032\037google/protobuf/times" + "tamp.proto\"\303\002\n\017GetVideoRequest\022\022\n\004name\030\001" + " \001(\tR\004name\022C\n\017start_timestamp\030\002 \001(\0132\032.go" + "ogle.protobuf.TimestampR\016startTimestamp\022" + "\?\n\rend_timestamp\030\003 \001(\0132\032.google.protobuf" + ".TimestampR\014endTimestamp\022\037\n\013video_codec\030" + "\004 \001(\tR\nvideoCodec\022\'\n\017video_container\030\005 \001" + "(\tR\016videoContainer\022\035\n\nrequest_id\030\006 \001(\tR\t" + "requestId\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"y\n\020GetVideoResponse\022\035\n\n" + "video_data\030\001 \001(\014R\tvideoData\022\'\n\017video_con" + "tainer\030\002 \001(\tR\016videoContainer\022\035\n\nrequest_" + "id\030\003 \001(\tR\trequestId2\263\002\n\014VideoService\022\231\001\n" + "\010GetVideo\022&.viam.service.video.v1.GetVid" + "eoRequest\032\'.viam.service.video.v1.GetVid" + "eoResponse\":\202\323\344\223\0024\"2/viam/api/v1/service" + "/video/{name}/get_video_stream0\001\022\206\001\n\tDoC" + "ommand\022 .viam.common.v1.DoCommandRequest" + "\032!.viam.common.v1.DoCommandResponse\"4\202\323\344" + "\223\002.\",/viam/api/v1/service/video/{name}/d" + "o_commandB=\n\031com.viam.service.video.v1Z " + "go.viam.com/api/service/video/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto = { + false, false, 1000, descriptor_table_protodef_service_2fvideo_2fv1_2fvideo_2eproto, + "service/video/v1/video.proto", + &descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_once, descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_deps, 4, 2, + schemas, file_default_instances, TableStruct_service_2fvideo_2fv1_2fvideo_2eproto::offsets, + file_level_metadata_service_2fvideo_2fv1_2fvideo_2eproto, file_level_enum_descriptors_service_2fvideo_2fv1_2fvideo_2eproto, + file_level_service_descriptors_service_2fvideo_2fv1_2fvideo_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_getter() { + return &descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fvideo_2fv1_2fvideo_2eproto(&descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto); +namespace viam { +namespace service { +namespace video { +namespace v1 { + +// =================================================================== + +class GetVideoRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_timestamp(const GetVideoRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& end_timestamp(const GetVideoRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetVideoRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +GetVideoRequest::_Internal::start_timestamp(const GetVideoRequest* msg) { + return *msg->start_timestamp_; +} +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +GetVideoRequest::_Internal::end_timestamp(const GetVideoRequest* msg) { + return *msg->end_timestamp_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetVideoRequest::_Internal::extra(const GetVideoRequest* msg) { + return *msg->extra_; +} +void GetVideoRequest::clear_start_timestamp() { + if (GetArenaForAllocation() == nullptr && start_timestamp_ != nullptr) { + delete start_timestamp_; + } + start_timestamp_ = nullptr; +} +void GetVideoRequest::clear_end_timestamp() { + if (GetArenaForAllocation() == nullptr && end_timestamp_ != nullptr) { + delete end_timestamp_; + } + end_timestamp_ = nullptr; +} +void GetVideoRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +GetVideoRequest::GetVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.service.video.v1.GetVideoRequest) +} +GetVideoRequest::GetVideoRequest(const GetVideoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + video_codec_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_codec_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_video_codec().empty()) { + video_codec_.Set(from._internal_video_codec(), + GetArenaForAllocation()); + } + video_container_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_container_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_video_container().empty()) { + video_container_.Set(from._internal_video_container(), + GetArenaForAllocation()); + } + request_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + request_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_request_id().empty()) { + request_id_.Set(from._internal_request_id(), + GetArenaForAllocation()); + } + if (from._internal_has_start_timestamp()) { + start_timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.start_timestamp_); + } else { + start_timestamp_ = nullptr; + } + if (from._internal_has_end_timestamp()) { + end_timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.end_timestamp_); + } else { + end_timestamp_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.service.video.v1.GetVideoRequest) +} + +inline void GetVideoRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +video_codec_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_codec_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +video_container_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_container_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +request_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + request_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&start_timestamp_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&start_timestamp_)) + sizeof(extra_)); +} + +GetVideoRequest::~GetVideoRequest() { + // @@protoc_insertion_point(destructor:viam.service.video.v1.GetVideoRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetVideoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + video_codec_.Destroy(); + video_container_.Destroy(); + request_id_.Destroy(); + if (this != internal_default_instance()) delete start_timestamp_; + if (this != internal_default_instance()) delete end_timestamp_; + if (this != internal_default_instance()) delete extra_; +} + +void GetVideoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetVideoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.video.v1.GetVideoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + video_codec_.ClearToEmpty(); + video_container_.ClearToEmpty(); + request_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && start_timestamp_ != nullptr) { + delete start_timestamp_; + } + start_timestamp_ = nullptr; + if (GetArenaForAllocation() == nullptr && end_timestamp_ != nullptr) { + delete end_timestamp_; + } + end_timestamp_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetVideoRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.video.v1.GetVideoRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp start_timestamp = 2 [json_name = "startTimestamp"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_start_timestamp(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp end_timestamp = 3 [json_name = "endTimestamp"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_end_timestamp(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string video_codec = 4 [json_name = "videoCodec"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_video_codec(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.video.v1.GetVideoRequest.video_codec")); + } else + goto handle_unusual; + continue; + // string video_container = 5 [json_name = "videoContainer"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_video_container(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.video.v1.GetVideoRequest.video_container")); + } else + goto handle_unusual; + continue; + // string request_id = 6 [json_name = "requestId"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_request_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.video.v1.GetVideoRequest.request_id")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetVideoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.video.v1.GetVideoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.video.v1.GetVideoRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .google.protobuf.Timestamp start_timestamp = 2 [json_name = "startTimestamp"]; + if (this->_internal_has_start_timestamp()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::start_timestamp(this), + _Internal::start_timestamp(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp end_timestamp = 3 [json_name = "endTimestamp"]; + if (this->_internal_has_end_timestamp()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::end_timestamp(this), + _Internal::end_timestamp(this).GetCachedSize(), target, stream); + } + + // string video_codec = 4 [json_name = "videoCodec"]; + if (!this->_internal_video_codec().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_video_codec().data(), static_cast(this->_internal_video_codec().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.video.v1.GetVideoRequest.video_codec"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_video_codec(), target); + } + + // string video_container = 5 [json_name = "videoContainer"]; + if (!this->_internal_video_container().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_video_container().data(), static_cast(this->_internal_video_container().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.video.v1.GetVideoRequest.video_container"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_video_container(), target); + } + + // string request_id = 6 [json_name = "requestId"]; + if (!this->_internal_request_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_request_id().data(), static_cast(this->_internal_request_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.video.v1.GetVideoRequest.request_id"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_request_id(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.video.v1.GetVideoRequest) + return target; +} + +size_t GetVideoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.video.v1.GetVideoRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string video_codec = 4 [json_name = "videoCodec"]; + if (!this->_internal_video_codec().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_video_codec()); + } + + // string video_container = 5 [json_name = "videoContainer"]; + if (!this->_internal_video_container().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_video_container()); + } + + // string request_id = 6 [json_name = "requestId"]; + if (!this->_internal_request_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_request_id()); + } + + // .google.protobuf.Timestamp start_timestamp = 2 [json_name = "startTimestamp"]; + if (this->_internal_has_start_timestamp()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *start_timestamp_); + } + + // .google.protobuf.Timestamp end_timestamp = 3 [json_name = "endTimestamp"]; + if (this->_internal_has_end_timestamp()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *end_timestamp_); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetVideoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetVideoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVideoRequest::GetClassData() const { return &_class_data_; } + +void GetVideoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetVideoRequest::MergeFrom(const GetVideoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.video.v1.GetVideoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + if (!from._internal_video_codec().empty()) { + _internal_set_video_codec(from._internal_video_codec()); + } + if (!from._internal_video_container().empty()) { + _internal_set_video_container(from._internal_video_container()); + } + if (!from._internal_request_id().empty()) { + _internal_set_request_id(from._internal_request_id()); + } + if (from._internal_has_start_timestamp()) { + _internal_mutable_start_timestamp()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_start_timestamp()); + } + if (from._internal_has_end_timestamp()) { + _internal_mutable_end_timestamp()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_end_timestamp()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetVideoRequest::CopyFrom(const GetVideoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.video.v1.GetVideoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetVideoRequest::IsInitialized() const { + return true; +} + +void GetVideoRequest::InternalSwap(GetVideoRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &video_codec_, lhs_arena, + &other->video_codec_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &video_container_, lhs_arena, + &other->video_container_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &request_id_, lhs_arena, + &other->request_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetVideoRequest, extra_) + + sizeof(GetVideoRequest::extra_) + - PROTOBUF_FIELD_OFFSET(GetVideoRequest, start_timestamp_)>( + reinterpret_cast(&start_timestamp_), + reinterpret_cast(&other->start_timestamp_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetVideoRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_getter, &descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_once, + file_level_metadata_service_2fvideo_2fv1_2fvideo_2eproto[0]); +} + +// =================================================================== + +class GetVideoResponse::_Internal { + public: +}; + +GetVideoResponse::GetVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.service.video.v1.GetVideoResponse) +} +GetVideoResponse::GetVideoResponse(const GetVideoResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + video_data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_video_data().empty()) { + video_data_.Set(from._internal_video_data(), + GetArenaForAllocation()); + } + video_container_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_container_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_video_container().empty()) { + video_container_.Set(from._internal_video_container(), + GetArenaForAllocation()); + } + request_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + request_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_request_id().empty()) { + request_id_.Set(from._internal_request_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.service.video.v1.GetVideoResponse) +} + +inline void GetVideoResponse::SharedCtor() { +video_data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +video_container_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + video_container_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +request_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + request_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GetVideoResponse::~GetVideoResponse() { + // @@protoc_insertion_point(destructor:viam.service.video.v1.GetVideoResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetVideoResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + video_data_.Destroy(); + video_container_.Destroy(); + request_id_.Destroy(); +} + +void GetVideoResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetVideoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.video.v1.GetVideoResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + video_data_.ClearToEmpty(); + video_container_.ClearToEmpty(); + request_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bytes video_data = 1 [json_name = "videoData"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_video_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string video_container = 2 [json_name = "videoContainer"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_video_container(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.video.v1.GetVideoResponse.video_container")); + } else + goto handle_unusual; + continue; + // string request_id = 3 [json_name = "requestId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_request_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.video.v1.GetVideoResponse.request_id")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetVideoResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.video.v1.GetVideoResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes video_data = 1 [json_name = "videoData"]; + if (!this->_internal_video_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_video_data(), target); + } + + // string video_container = 2 [json_name = "videoContainer"]; + if (!this->_internal_video_container().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_video_container().data(), static_cast(this->_internal_video_container().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.video.v1.GetVideoResponse.video_container"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_video_container(), target); + } + + // string request_id = 3 [json_name = "requestId"]; + if (!this->_internal_request_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_request_id().data(), static_cast(this->_internal_request_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.video.v1.GetVideoResponse.request_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_request_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.video.v1.GetVideoResponse) + return target; +} + +size_t GetVideoResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.video.v1.GetVideoResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes video_data = 1 [json_name = "videoData"]; + if (!this->_internal_video_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_video_data()); + } + + // string video_container = 2 [json_name = "videoContainer"]; + if (!this->_internal_video_container().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_video_container()); + } + + // string request_id = 3 [json_name = "requestId"]; + if (!this->_internal_request_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_request_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetVideoResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetVideoResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVideoResponse::GetClassData() const { return &_class_data_; } + +void GetVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetVideoResponse::MergeFrom(const GetVideoResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.video.v1.GetVideoResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_video_data().empty()) { + _internal_set_video_data(from._internal_video_data()); + } + if (!from._internal_video_container().empty()) { + _internal_set_video_container(from._internal_video_container()); + } + if (!from._internal_request_id().empty()) { + _internal_set_request_id(from._internal_request_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetVideoResponse::CopyFrom(const GetVideoResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.video.v1.GetVideoResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetVideoResponse::IsInitialized() const { + return true; +} + +void GetVideoResponse::InternalSwap(GetVideoResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &video_data_, lhs_arena, + &other->video_data_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &video_container_, lhs_arena, + &other->video_container_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &request_id_, lhs_arena, + &other->request_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetVideoResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_getter, &descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto_once, + file_level_metadata_service_2fvideo_2fv1_2fvideo_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace video +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::video::v1::GetVideoRequest* +Arena::CreateMaybeMessage< ::viam::service::video::v1::GetVideoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::video::v1::GetVideoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::video::v1::GetVideoResponse* +Arena::CreateMaybeMessage< ::viam::service::video::v1::GetVideoResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::video::v1::GetVideoResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/viam/api/service/video/v1/video.pb.h b/src/viam/api/service/video/v1/video.pb.h new file mode 100644 index 000000000..3cb612123 --- /dev/null +++ b/src/viam/api/service/video/v1/video.pb.h @@ -0,0 +1,1146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/video/v1/video.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fvideo_2fv1_2fvideo_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fvideo_2fv1_2fvideo_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fvideo_2fv1_2fvideo_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fvideo_2fv1_2fvideo_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fvideo_2fv1_2fvideo_2eproto; +namespace viam { +namespace service { +namespace video { +namespace v1 { +class GetVideoRequest; +struct GetVideoRequestDefaultTypeInternal; +extern GetVideoRequestDefaultTypeInternal _GetVideoRequest_default_instance_; +class GetVideoResponse; +struct GetVideoResponseDefaultTypeInternal; +extern GetVideoResponseDefaultTypeInternal _GetVideoResponse_default_instance_; +} // namespace v1 +} // namespace video +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::video::v1::GetVideoRequest* Arena::CreateMaybeMessage<::viam::service::video::v1::GetVideoRequest>(Arena*); +template<> ::viam::service::video::v1::GetVideoResponse* Arena::CreateMaybeMessage<::viam::service::video::v1::GetVideoResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace video { +namespace v1 { + +// =================================================================== + +class GetVideoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.video.v1.GetVideoRequest) */ { + public: + inline GetVideoRequest() : GetVideoRequest(nullptr) {} + ~GetVideoRequest() override; + explicit PROTOBUF_CONSTEXPR GetVideoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetVideoRequest(const GetVideoRequest& from); + GetVideoRequest(GetVideoRequest&& from) noexcept + : GetVideoRequest() { + *this = ::std::move(from); + } + + inline GetVideoRequest& operator=(const GetVideoRequest& from) { + CopyFrom(from); + return *this; + } + inline GetVideoRequest& operator=(GetVideoRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetVideoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetVideoRequest* internal_default_instance() { + return reinterpret_cast( + &_GetVideoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(GetVideoRequest& a, GetVideoRequest& b) { + a.Swap(&b); + } + inline void Swap(GetVideoRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetVideoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetVideoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetVideoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetVideoRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetVideoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.video.v1.GetVideoRequest"; + } + protected: + explicit GetVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kVideoCodecFieldNumber = 4, + kVideoContainerFieldNumber = 5, + kRequestIdFieldNumber = 6, + kStartTimestampFieldNumber = 2, + kEndTimestampFieldNumber = 3, + kExtraFieldNumber = 99, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string video_codec = 4 [json_name = "videoCodec"]; + void clear_video_codec(); + const std::string& video_codec() const; + template + void set_video_codec(ArgT0&& arg0, ArgT... args); + std::string* mutable_video_codec(); + PROTOBUF_NODISCARD std::string* release_video_codec(); + void set_allocated_video_codec(std::string* video_codec); + private: + const std::string& _internal_video_codec() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_video_codec(const std::string& value); + std::string* _internal_mutable_video_codec(); + public: + + // string video_container = 5 [json_name = "videoContainer"]; + void clear_video_container(); + const std::string& video_container() const; + template + void set_video_container(ArgT0&& arg0, ArgT... args); + std::string* mutable_video_container(); + PROTOBUF_NODISCARD std::string* release_video_container(); + void set_allocated_video_container(std::string* video_container); + private: + const std::string& _internal_video_container() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_video_container(const std::string& value); + std::string* _internal_mutable_video_container(); + public: + + // string request_id = 6 [json_name = "requestId"]; + void clear_request_id(); + const std::string& request_id() const; + template + void set_request_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_request_id(); + PROTOBUF_NODISCARD std::string* release_request_id(); + void set_allocated_request_id(std::string* request_id); + private: + const std::string& _internal_request_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_request_id(const std::string& value); + std::string* _internal_mutable_request_id(); + public: + + // .google.protobuf.Timestamp start_timestamp = 2 [json_name = "startTimestamp"]; + bool has_start_timestamp() const; + private: + bool _internal_has_start_timestamp() const; + public: + void clear_start_timestamp(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_timestamp() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_start_timestamp(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_start_timestamp(); + void set_allocated_start_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* start_timestamp); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_start_timestamp() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_start_timestamp(); + public: + void unsafe_arena_set_allocated_start_timestamp( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_timestamp); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_start_timestamp(); + + // .google.protobuf.Timestamp end_timestamp = 3 [json_name = "endTimestamp"]; + bool has_end_timestamp() const; + private: + bool _internal_has_end_timestamp() const; + public: + void clear_end_timestamp(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& end_timestamp() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_end_timestamp(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_end_timestamp(); + void set_allocated_end_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* end_timestamp); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_end_timestamp() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_end_timestamp(); + public: + void unsafe_arena_set_allocated_end_timestamp( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_timestamp); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_end_timestamp(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.service.video.v1.GetVideoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr video_codec_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr video_container_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_id_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_timestamp_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_timestamp_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fvideo_2fv1_2fvideo_2eproto; +}; +// ------------------------------------------------------------------- + +class GetVideoResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.video.v1.GetVideoResponse) */ { + public: + inline GetVideoResponse() : GetVideoResponse(nullptr) {} + ~GetVideoResponse() override; + explicit PROTOBUF_CONSTEXPR GetVideoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetVideoResponse(const GetVideoResponse& from); + GetVideoResponse(GetVideoResponse&& from) noexcept + : GetVideoResponse() { + *this = ::std::move(from); + } + + inline GetVideoResponse& operator=(const GetVideoResponse& from) { + CopyFrom(from); + return *this; + } + inline GetVideoResponse& operator=(GetVideoResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetVideoResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetVideoResponse* internal_default_instance() { + return reinterpret_cast( + &_GetVideoResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(GetVideoResponse& a, GetVideoResponse& b) { + a.Swap(&b); + } + inline void Swap(GetVideoResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetVideoResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetVideoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetVideoResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetVideoResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetVideoResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.video.v1.GetVideoResponse"; + } + protected: + explicit GetVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVideoDataFieldNumber = 1, + kVideoContainerFieldNumber = 2, + kRequestIdFieldNumber = 3, + }; + // bytes video_data = 1 [json_name = "videoData"]; + void clear_video_data(); + const std::string& video_data() const; + template + void set_video_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_video_data(); + PROTOBUF_NODISCARD std::string* release_video_data(); + void set_allocated_video_data(std::string* video_data); + private: + const std::string& _internal_video_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_video_data(const std::string& value); + std::string* _internal_mutable_video_data(); + public: + + // string video_container = 2 [json_name = "videoContainer"]; + void clear_video_container(); + const std::string& video_container() const; + template + void set_video_container(ArgT0&& arg0, ArgT... args); + std::string* mutable_video_container(); + PROTOBUF_NODISCARD std::string* release_video_container(); + void set_allocated_video_container(std::string* video_container); + private: + const std::string& _internal_video_container() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_video_container(const std::string& value); + std::string* _internal_mutable_video_container(); + public: + + // string request_id = 3 [json_name = "requestId"]; + void clear_request_id(); + const std::string& request_id() const; + template + void set_request_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_request_id(); + PROTOBUF_NODISCARD std::string* release_request_id(); + void set_allocated_request_id(std::string* request_id); + private: + const std::string& _internal_request_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_request_id(const std::string& value); + std::string* _internal_mutable_request_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.video.v1.GetVideoResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr video_data_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr video_container_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fvideo_2fv1_2fvideo_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetVideoRequest + +// string name = 1 [json_name = "name"]; +inline void GetVideoRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetVideoRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVideoRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.video.v1.GetVideoRequest.name) +} +inline std::string* GetVideoRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoRequest.name) + return _s; +} +inline const std::string& GetVideoRequest::_internal_name() const { + return name_.Get(); +} +inline void GetVideoRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoRequest.name) + return name_.Release(); +} +inline void GetVideoRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoRequest.name) +} + +// .google.protobuf.Timestamp start_timestamp = 2 [json_name = "startTimestamp"]; +inline bool GetVideoRequest::_internal_has_start_timestamp() const { + return this != internal_default_instance() && start_timestamp_ != nullptr; +} +inline bool GetVideoRequest::has_start_timestamp() const { + return _internal_has_start_timestamp(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetVideoRequest::_internal_start_timestamp() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = start_timestamp_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetVideoRequest::start_timestamp() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoRequest.start_timestamp) + return _internal_start_timestamp(); +} +inline void GetVideoRequest::unsafe_arena_set_allocated_start_timestamp( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_timestamp) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_timestamp_); + } + start_timestamp_ = start_timestamp; + if (start_timestamp) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.video.v1.GetVideoRequest.start_timestamp) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::release_start_timestamp() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = start_timestamp_; + start_timestamp_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::unsafe_arena_release_start_timestamp() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoRequest.start_timestamp) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = start_timestamp_; + start_timestamp_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::_internal_mutable_start_timestamp() { + + if (start_timestamp_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + start_timestamp_ = p; + } + return start_timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::mutable_start_timestamp() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_start_timestamp(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoRequest.start_timestamp) + return _msg; +} +inline void GetVideoRequest::set_allocated_start_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* start_timestamp) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_timestamp_); + } + if (start_timestamp) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_timestamp)); + if (message_arena != submessage_arena) { + start_timestamp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, start_timestamp, submessage_arena); + } + + } else { + + } + start_timestamp_ = start_timestamp; + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoRequest.start_timestamp) +} + +// .google.protobuf.Timestamp end_timestamp = 3 [json_name = "endTimestamp"]; +inline bool GetVideoRequest::_internal_has_end_timestamp() const { + return this != internal_default_instance() && end_timestamp_ != nullptr; +} +inline bool GetVideoRequest::has_end_timestamp() const { + return _internal_has_end_timestamp(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetVideoRequest::_internal_end_timestamp() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = end_timestamp_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetVideoRequest::end_timestamp() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoRequest.end_timestamp) + return _internal_end_timestamp(); +} +inline void GetVideoRequest::unsafe_arena_set_allocated_end_timestamp( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_timestamp) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_timestamp_); + } + end_timestamp_ = end_timestamp; + if (end_timestamp) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.video.v1.GetVideoRequest.end_timestamp) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::release_end_timestamp() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = end_timestamp_; + end_timestamp_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::unsafe_arena_release_end_timestamp() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoRequest.end_timestamp) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = end_timestamp_; + end_timestamp_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::_internal_mutable_end_timestamp() { + + if (end_timestamp_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + end_timestamp_ = p; + } + return end_timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetVideoRequest::mutable_end_timestamp() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_end_timestamp(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoRequest.end_timestamp) + return _msg; +} +inline void GetVideoRequest::set_allocated_end_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* end_timestamp) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_timestamp_); + } + if (end_timestamp) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_timestamp)); + if (message_arena != submessage_arena) { + end_timestamp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, end_timestamp, submessage_arena); + } + + } else { + + } + end_timestamp_ = end_timestamp; + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoRequest.end_timestamp) +} + +// string video_codec = 4 [json_name = "videoCodec"]; +inline void GetVideoRequest::clear_video_codec() { + video_codec_.ClearToEmpty(); +} +inline const std::string& GetVideoRequest::video_codec() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoRequest.video_codec) + return _internal_video_codec(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVideoRequest::set_video_codec(ArgT0&& arg0, ArgT... args) { + + video_codec_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.video.v1.GetVideoRequest.video_codec) +} +inline std::string* GetVideoRequest::mutable_video_codec() { + std::string* _s = _internal_mutable_video_codec(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoRequest.video_codec) + return _s; +} +inline const std::string& GetVideoRequest::_internal_video_codec() const { + return video_codec_.Get(); +} +inline void GetVideoRequest::_internal_set_video_codec(const std::string& value) { + + video_codec_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::_internal_mutable_video_codec() { + + return video_codec_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::release_video_codec() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoRequest.video_codec) + return video_codec_.Release(); +} +inline void GetVideoRequest::set_allocated_video_codec(std::string* video_codec) { + if (video_codec != nullptr) { + + } else { + + } + video_codec_.SetAllocated(video_codec, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (video_codec_.IsDefault()) { + video_codec_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoRequest.video_codec) +} + +// string video_container = 5 [json_name = "videoContainer"]; +inline void GetVideoRequest::clear_video_container() { + video_container_.ClearToEmpty(); +} +inline const std::string& GetVideoRequest::video_container() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoRequest.video_container) + return _internal_video_container(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVideoRequest::set_video_container(ArgT0&& arg0, ArgT... args) { + + video_container_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.video.v1.GetVideoRequest.video_container) +} +inline std::string* GetVideoRequest::mutable_video_container() { + std::string* _s = _internal_mutable_video_container(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoRequest.video_container) + return _s; +} +inline const std::string& GetVideoRequest::_internal_video_container() const { + return video_container_.Get(); +} +inline void GetVideoRequest::_internal_set_video_container(const std::string& value) { + + video_container_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::_internal_mutable_video_container() { + + return video_container_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::release_video_container() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoRequest.video_container) + return video_container_.Release(); +} +inline void GetVideoRequest::set_allocated_video_container(std::string* video_container) { + if (video_container != nullptr) { + + } else { + + } + video_container_.SetAllocated(video_container, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (video_container_.IsDefault()) { + video_container_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoRequest.video_container) +} + +// string request_id = 6 [json_name = "requestId"]; +inline void GetVideoRequest::clear_request_id() { + request_id_.ClearToEmpty(); +} +inline const std::string& GetVideoRequest::request_id() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoRequest.request_id) + return _internal_request_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVideoRequest::set_request_id(ArgT0&& arg0, ArgT... args) { + + request_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.video.v1.GetVideoRequest.request_id) +} +inline std::string* GetVideoRequest::mutable_request_id() { + std::string* _s = _internal_mutable_request_id(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoRequest.request_id) + return _s; +} +inline const std::string& GetVideoRequest::_internal_request_id() const { + return request_id_.Get(); +} +inline void GetVideoRequest::_internal_set_request_id(const std::string& value) { + + request_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::_internal_mutable_request_id() { + + return request_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetVideoRequest::release_request_id() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoRequest.request_id) + return request_id_.Release(); +} +inline void GetVideoRequest::set_allocated_request_id(std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + request_id_.SetAllocated(request_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (request_id_.IsDefault()) { + request_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoRequest.request_id) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetVideoRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool GetVideoRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetVideoRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetVideoRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoRequest.extra) + return _internal_extra(); +} +inline void GetVideoRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); + } + extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.video.v1.GetVideoRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVideoRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVideoRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVideoRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVideoRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoRequest.extra) + return _msg; +} +inline void GetVideoRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); + } + if (extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra)); + if (message_arena != submessage_arena) { + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); + } + + } else { + + } + extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetVideoResponse + +// bytes video_data = 1 [json_name = "videoData"]; +inline void GetVideoResponse::clear_video_data() { + video_data_.ClearToEmpty(); +} +inline const std::string& GetVideoResponse::video_data() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoResponse.video_data) + return _internal_video_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVideoResponse::set_video_data(ArgT0&& arg0, ArgT... args) { + + video_data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.video.v1.GetVideoResponse.video_data) +} +inline std::string* GetVideoResponse::mutable_video_data() { + std::string* _s = _internal_mutable_video_data(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoResponse.video_data) + return _s; +} +inline const std::string& GetVideoResponse::_internal_video_data() const { + return video_data_.Get(); +} +inline void GetVideoResponse::_internal_set_video_data(const std::string& value) { + + video_data_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetVideoResponse::_internal_mutable_video_data() { + + return video_data_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetVideoResponse::release_video_data() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoResponse.video_data) + return video_data_.Release(); +} +inline void GetVideoResponse::set_allocated_video_data(std::string* video_data) { + if (video_data != nullptr) { + + } else { + + } + video_data_.SetAllocated(video_data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (video_data_.IsDefault()) { + video_data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoResponse.video_data) +} + +// string video_container = 2 [json_name = "videoContainer"]; +inline void GetVideoResponse::clear_video_container() { + video_container_.ClearToEmpty(); +} +inline const std::string& GetVideoResponse::video_container() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoResponse.video_container) + return _internal_video_container(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVideoResponse::set_video_container(ArgT0&& arg0, ArgT... args) { + + video_container_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.video.v1.GetVideoResponse.video_container) +} +inline std::string* GetVideoResponse::mutable_video_container() { + std::string* _s = _internal_mutable_video_container(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoResponse.video_container) + return _s; +} +inline const std::string& GetVideoResponse::_internal_video_container() const { + return video_container_.Get(); +} +inline void GetVideoResponse::_internal_set_video_container(const std::string& value) { + + video_container_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetVideoResponse::_internal_mutable_video_container() { + + return video_container_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetVideoResponse::release_video_container() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoResponse.video_container) + return video_container_.Release(); +} +inline void GetVideoResponse::set_allocated_video_container(std::string* video_container) { + if (video_container != nullptr) { + + } else { + + } + video_container_.SetAllocated(video_container, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (video_container_.IsDefault()) { + video_container_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoResponse.video_container) +} + +// string request_id = 3 [json_name = "requestId"]; +inline void GetVideoResponse::clear_request_id() { + request_id_.ClearToEmpty(); +} +inline const std::string& GetVideoResponse::request_id() const { + // @@protoc_insertion_point(field_get:viam.service.video.v1.GetVideoResponse.request_id) + return _internal_request_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVideoResponse::set_request_id(ArgT0&& arg0, ArgT... args) { + + request_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.video.v1.GetVideoResponse.request_id) +} +inline std::string* GetVideoResponse::mutable_request_id() { + std::string* _s = _internal_mutable_request_id(); + // @@protoc_insertion_point(field_mutable:viam.service.video.v1.GetVideoResponse.request_id) + return _s; +} +inline const std::string& GetVideoResponse::_internal_request_id() const { + return request_id_.Get(); +} +inline void GetVideoResponse::_internal_set_request_id(const std::string& value) { + + request_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetVideoResponse::_internal_mutable_request_id() { + + return request_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetVideoResponse::release_request_id() { + // @@protoc_insertion_point(field_release:viam.service.video.v1.GetVideoResponse.request_id) + return request_id_.Release(); +} +inline void GetVideoResponse::set_allocated_request_id(std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + request_id_.SetAllocated(request_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (request_id_.IsDefault()) { + request_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.service.video.v1.GetVideoResponse.request_id) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace video +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fvideo_2fv1_2fvideo_2eproto